Baron Factions

by wasmoo

Multiplayer mod that creates teams that dedicated to each kind of power source in Factorio.

Overhaul
1 year, 1 month ago
0.18 - 1.1
361

b [RESOLVED] Laser turret error loading with RP Warfare

1 year, 1 month ago

I'm trying to play with this mod and RP Warfare, but every time I try and load this mod up I get an error loading the mod. The error I get is "Failed to load mods:baron-factions/lib/faction.lua:642 "Laser-turret" must be enabled for the same faction as it's entity "Laser-turret"
stack traceback:
[C]: in function 'error'
baron-factions/lua/faction.lua:642: in function 'validate'
baron-factions/lua/faction.lua:668: in function 'replaceEntites'
baron-factions/data-final-fixes.lua:2: in main chunk

I have no idea what's going on and if it's something I might be able to fix by messing with some options or not.

1 year, 1 month ago

Fixed this in version 1.1.39.

I've looked into this, and it seems that marking a proto tree as faction-unique was slightly more rigid than it needed to be. Specifically, the recipe was required to be faction-unique, while marking the entity or item as faction-unique would break (if the respective recipe was not also marked). I've added code that, if the entity is faction-unique and the the item and recipe is not, the faction-uniqueness is copied to the others.

New response