Water-Friendly Walls Compatibility Fix

by Techjar

Screw landfill! Defences on the coastline is no longer painful and ugly! You can place walls, gates, land mines, and big electric poles on shallow water! Walls no longer visually connect to nothing when next to water! Spaceship walls no longer visually connect to nothing when next to the vacuum of space! Supports modded shallow tiles, walls, gates, and land mines!

Tweaks
7 months ago
2.0
837
Combat

b Error with Asphalt Roads Patched & Dectorio Fork

2 months ago

Error with Asphalt Roads Patched & Dectorio Fork. Removing either mod, or this one, resolves the error. Default mod settings. No space age or any other mods enabled.

Failed to load mods: dectorio-fixes/prototypes/entity/walls.lua:25: attempt to index field 'water_connection_patch' (a nil value)
stack traceback:
dectorio-fixes/prototypes/entity/walls.lua:25: in main chunk
[C]: in function 'require'

Mods to be disabled:
dectorio-fixes (0.13.2)

Links to the other mods:
https://mods.factorio.com/mod/dectorio-fixes
https://mods.factorio.com/mod/AsphaltRoadsPatched

17 days ago

Leaving this comment for the mod author: I looked at our mods and found that this mod changes a value that Dectorio fixes relies on to nil. Normally it's not an issue because Dectorio fixes will load before this mod but once my mod is added it will pull Dectorio fixes further down the load order, making it read a nil value. Either Dectorio fixes needs a nil check or this mod needs Dectorio fixes as an optional dependency.

17 days ago

Oh thanks for investigating this! I never got around to it. Adding an optional dependency is no problem if that's all that's needed.

17 days ago
(updated 17 days ago)

I didn't test if any issues arise in-game, but I don't expect anything game-breaking based on the code I saw. I suspect this mod will modify the Dectorio fork's walls as it does vanilla walls this way, which IDK if it is a problem or not.

17 days ago

Actually I see the original Dectorio is a dependency too, so I'm guessing that should work just fine then.

New response