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

b Bug with Drill

a month ago

I'm getting a random bug non-recoverable error when using the drills, not entirely sure what's causing it though,
but this is what I'm getting with the error code

Error while running event military-support::on_nth_tick(3)
LuaItemStack API call when LuaItemStack was invalid.
stack traceback:
[C]: in function 'index'
__military-support
/scripts/drills.lua:149: in function 'lanes'
military-support/scripts/drills.lua:236: in function 'f'
military-support/scripts/events.lua:23: in function <military-support/scripts/events.lua:23>

a month ago

Hi WritingGriff, thanks a lot for the report and the stack trace - it pointed straight at the cause.

The cutter and ring drills spread their ore over both belt lanes. When the drill moved a piece of ore to the other lane, the other pieces it had read in the same pass could become invalid, and reading one of them crashed the game. Now the drill reads all pieces first and only then moves them, so this cannot happen any more.

The fix will be in the next update of Military Support. Sorry for the trouble, and thanks again!

a month ago

ahhhhh I see I see, thanks for the quick reply, the mod's amazing btw been enjoying it a huge amount,

a month ago

Thank you, really glad you're enjoying it! The drill fix is in the next update of Military Support. If anything else comes up, just post it here.

a month ago

got another error with the new support version

The mod Military Support (1.19.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:1228: attempt to index field 'scroll' (a nil value)
stack traceback:
military-support/scripts/military.lua:1228: in function 'refresh_panels'
military-support/scripts/military.lua:1514: in function 'f'
military-support/scripts/events.lua:23: in function <military-support/scripts/events.lua:23>

a month ago

Thanks for this one too, and for the full stack trace!

The cause: your save still had a military base (or landing pad) window left over from an older version of the mod. Its layout was different, so the once-a-second refresh found no 'scroll' element in it and crashed.

Fixed in Military Support 1.19.1 (just uploaded): an old window like that is now removed, and opening the base / pad builds the new one. Your save loads and runs normally with 1.19.1 - nothing else to do.

Sorry for the trouble, and glad you're enjoying the mod!

a month ago

thanks for the quick responses :)
and sorry for all the bug reports haha

a month ago

No need to apologise - reports like yours make the mod better. Thanks!

New response