Asphalt Roads Patched


Asphalt pavement for increased vehicle speed. Also includes tiles for lane marking (single and double lines) and various hazard areas. Original mod by Arcitos patched for 2.0.

Content
5 months ago
2.0
8.11K
Transportation

b [Partially Solved] Error with Dectorio Fork & Water-Friendly Walls Compatibility Fix

a month ago

Error with Dectorio Fork & Water-Friendly Walls Compatibility Fix. 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/Water-Friendly-Walls-Fix
https://mods.factorio.com/mod/dectorio-fixes

a day ago

Apologies for the super late response, I'll take a look at this and see if I can fix this from my end when I can.

16 hours ago
(updated 16 hours ago)

So what's happening is Water-Friendly-Walls-Fix sets the "water_connection_patch" value of all walls to "nil" on condition of the startup setting "shallow-water-walls-water-connect" being false in its settings, which always happens by default but adding this mod to the mix shifts the load order around (due to it being a dependency for Dectorio Fixes) to make it an issue.

In the normal load order without this mod Dectorio Fixes will probably load before Water-Friendly-Walls-Fix so it can access the value it needs before it is set to nil. But since Dectorio Fixes has this mod as an optional dependency, it will want to load after this mod, and wherever this mod may be ends up after Water-Friendly-Walls-Fix meaning Dectorio Fixes now loads that value after it becomes nil, and doesn't know how to deal with it.

This could be fixed by Dectorio fixes having a nil check added, or by having Water-Friendly-Walls-Fix have Dectorio fork as an optional dependency to make it load after. I tested the latter solution and found that the game will launch that way.

Ideally, one of the other devs will implement a solution but if they are MIA you can manually add Dectorio fork as a dependency for Water-Friendly-Walls-Fix by editing the info.json in Water-Friendly-Walls-Fix and adding "? dectorio-fixes" to the dependency array (make sure to add a comma after the previous entry too if it doesn't have one).

New response