Problem
I would like to disable the faction on an existing save. I have been able to do this in the past but hit a non-recoverable error immediately after load with the latest version of rampant.
How to Reproduce
- Sync mods with the save
- Disable a biter faction, I have reproduced the issue with the spawner and physical biter factions.
- Load the save
- Factorio will warn you that entities were removed and then it will immediately show a second error.
Mods
AutoDeconstruct 0.1.14
Automatic_Train_Painter 0.3.2
Dectorio 0.9.16
Rampant 0.17.32
RampantArsenal 0.17.18
artillery-bombardment-remote 0.17.3
base 0.17.79
Error Message
The mod Rampant caused a non-recoverable error.
Please report this error to the mod author.
Error while running event Rampant::on_entity_spawned (ID 129)
Rampant/libs/BaseUtils.lua:194: attempt to index field '?' (a nil value)
stack traceback:
Rampant/libs/BaseUtils.lua:194: in function <Rampant/libs/BaseUtils.lua:186>
(...tail calls...)
Rampant/libs/BaseUtils.lua:287: in function 'upgradeEntity'
Rampant/control.lua:958: in function <Rampant/control.lua:936>
Needless Backstory
Some of the factions exploit weaknesses in the factorio AI and that can be annoying. It's fun to mess with the AI as the player but it's worse when it's your AI working against you. So for example, the cannon turret doesn't know what friendly fire is so it blows up the whole front line if a spawner spitter attacks. Your robots will march to their deaths like lemmings whenever a wasp, hornet, or fire biter attacks because they don't understand persistent AOE damage. The fire one is tolerable because the AOE is small but the other two cause robot genocides that you are powerless to stop. I think the new enemy types are fun in general but I'd like to be able to disable some mid game that are frustrating.