Military Support


EARLY ACCESS. Military base contracts paid in Galactic credits and a galactic market on the shuttle landing pad. New: military armor, a fluid generator (7.5 MW on diesel, 5 MW on gasoline) and a military electric furnace (speed 4). Also hyper belts (with or without Space Age), a hyper beacon and modules, military pipes and power grid, 3x3 military drills, 1x1 loaders and storage tanks. Each part can be switched off in the startup settings.

Content
22 hours ago
2.1
344

g non recoverable error

a month ago

The mod Military Support (1.18.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event military-support::on_nth_tick(60)
military-support/scripts/military.lua:1034: attempt to index field '?' (a nil value)
stack traceback:
military-support/scripts/military.lua:1034: in function 'update_market_gui'
military-support/scripts/military.lua:1112: in function 'update_pad_gui'
military-support/scripts/military.lua:1206: in function 'refresh_panels'
military-support/scripts/military.lua:1479: in function 'f'
military-support/scripts/events.lua:23: in function <military-support/scripts/events.lua:23>

got this one today, as i removed the military heavy tanks. tried them both (su-100 and t-90) wasnt impressed as spidertron does the job faster of killing them pesky biters. so i would like to play without that mod, but cant. as it crashes my save now

a month ago

Hi Veteranas, thanks for the report and the full stack trace!

The cause: the market still had lots for items of the mod you removed (Military Heavy Tanks sells its shells and vehicles through the market), and the window tried to read an item that no longer exists. Fixed for the next update of Military Support: after a mod is removed, the market is generated anew without the missing items, and a landing pad that was delivering such an item goes back to idle. I tested it exactly this way.

To play your save right now (before the update), run this once in the console (it disables achievements for that save):
/c remote.call("military-support", "market_refresh")
It rebuilds the market from the items that exist, and the crash is gone. Keeping the base / landing pad windows closed also avoids it.

And thanks for the honest word about the tanks. They are getting a big update: own tracks that really move, guns that elevate, turret machine guns that fire on their own at nearby enemies, and new tanks. I'll also look at making them worth it next to the spidertron.

a month ago

oof, dont like the sound of disabling achievements. but yeah, i do like the concept of adding intergalactic trade :D im running it with objectives mod, where you are given objectives to fullfill. ads a bit more to the gameplay than just booring stuff. dont have any new planet mods.

a month ago

Good news, Veteranas: you don't need the console command (and keep your achievements). The current Military Support rebuilds the market by itself when it finds items of a removed mod, and a landing pad that was delivering such an item goes back to idle. Just update to the latest version (1.19.1, uploaded today) and load your save.

Glad the trade fits your objectives run! If anything else comes up, post it here.

a month ago

yes, thank you for trying to fix it fast :) enjoy your mods so far by a lot

a month ago

The mod Military Support (1.19.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event military-support::on_nth_tick(60)
Unknown sprite "item/military-grad-rocket"
stack traceback:
[C]: in function 'newindex'
__military-support
/scripts/military.lua:964: in function 'update_contracts_gui'
military-support/scripts/military.lua:1236: in function 'refresh_panels'
military-support/scripts/military.lua:1523: in function 'f'
military-support/scripts/events.lua:23: in function <military-support/scripts/events.lua:23>

a month ago

Thanks again, Veteranas, and sorry - this is the same kind of bug as before, in another place.

The cause: a military base keeps its 4 contracts in the save. One of them was for Grad rockets (Military MLRS), and after that mod was gone the base window tried to show an item that no longer exists. The market was already cleaned up after a mod removal, the contracts were not.

Fixed in Military Support 1.19.3 (just uploaded): a contract for an item of a removed mod is replaced by a new contract when the save loads. Your save loads and runs normally - no console command needed.

To stop this kind of bug for good, I also added a test that I now run before every update of all my military mods: a save with every mod and the base contracts filled with items of the other mods, then loaded with each mod removed in turn while the windows of all buildings and vehicles are opened. Two more spots of the same kind were found this way; their fixes come with the next updates of Military Core and Military Trucks.

Thanks for your patience, and enjoy the trade!

11 days ago

thank you for prompt fixes :)

New response