Military MLRS


EARLY ACCESS: an early version, expect bugs and balance changes. Multiple launch rocket systems: the BM-30 Smerch (12-rocket salvos, 30-400 tiles) and the Kupidon heavy MLRS (3 big missiles, 40-800 tiles, one per click, targets on any side). Two radar trucks - the Smerch fire-control radar and a huge folding long-range radar - find nests and worms and direct salvos at them; one fire-control network and one fire-control remote for both. Replaces the separate Smerch MLRS mod. Runs on liquid fuel only (light oil; with Military Trucks also military diesel and gasoline).

Content
13 hours ago
2.1
455

b Crash with Bob's Warfare ("military-grad-fcu" next_upgrade) + overhaul compatibility

13 hours ago

Hello again! Sorry for bringing another crash so soon, this time a heavier one 😄
After updating military-mlrs to 1.4.15, the game fails to load in my modpack (220+ mods including Bob's Mods, Angel's Mods, and Omnimatter) with the following prototype error:
Error while running setup for entity prototype "military-grad-fcu" (artillery-turret): Entity must be minable when next_upgrade is set. (was bob-artillery-turret-2)
What is happening:
Bob's Warfare (bobwarfare) adds next_upgrade = "bob-artillery-turret-2" to the vanilla artillery-turret. When military-mlrs copies artillery-turret to create the hidden non-minable military-grad-fcu (and probably other *-fcu turrets), it inherits next_upgrade while minable is set to nil, which causes Factorio to crash during setup.
Suggestion for future-proofing:
Could you please clear next_upgrade = nil (and any leftover upgrade/mining properties) when cloning vanilla entities for hidden FCU turrets? Also, since big overhaul packs like Bob's, Angel's, and Omnimatter heavily modify vanilla entities, fluids, and recipes, adding safety checks like this when cloning or altering prototypes will prevent a lot of similar crashes in large modpacks!
Thanks in advance for looking into this!

13 hours ago

Thanks for the precise report! Fixed in Military MLRS 1.4.16 (just released): the hidden fire-control turrets (Grad, Smerch, Kupidon, Chimera, Segun, Jobaria) no longer inherit next_upgrade from the vanilla artillery turret. Checked with a test mod that sets next_upgrade on the vanilla turret like Bob's Warfare does: 1.4.15 fails with your error, 1.4.16 loads. If anything else breaks in your pack, please post the error here.

New response