Military Trucks


EARLY ACCESS: an early version, expect bugs and balance changes. Military trucks carry cargo between truck stops along military roads. A truck with an empty schedule shuttles between the nearest loading and unloading stops; or give it a schedule like a train (stop + wait condition).

Content
12 hours ago
2.1
548

b Error

a month ago

Got another non-recoverable error this time, I'm pretty sure I can work around it by backdating the mods, removing the signs then re-updating it all, but here's the error incase it helps

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

Error while running event military-trucks::on_configuration_changed
invalid key to 'next'
stack traceback:
[C]: in function 'for iterator'
military-trucks/control.lua:1209: in function 'convert_load_stops'
military-trucks/control.lua:5201: in function <military-trucks/control.lua:5187>

a month ago

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

When a save with old truck stops in loading mode is loaded, the mod converts them into loading stations. Each new station registers itself in the same list the converter was still walking through, and that broke the loop ("invalid key to 'next'").

Fixed in Military Trucks 0.24.2 (just uploaded, together with Military Core 0.4.2): the stops are collected first and converted after. Your save should load normally now - no need to downgrade or remove anything.

Sorry for the trouble, and thanks again!

New response