ChunkyChunks - Configurable Gridlines

by Qon

Chunk aligned blueprints? Display chunk lines without the annoying tile lines that the debug option adds. Configurable grids at any sizes if your blueprints are substation, chunk, roboport or radar sized (or any other size)!

Utilities
26 days ago
0.17 - 2.0
8.44K

b [Resolved] Crash in map editor

3 years ago
The mod ChunkyChunks - Configurable Geodesic Grid (1.5.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event ChunkyChunks::chunkychunks-toggle (ID 189)
The mod ChunkyChunks - Configurable Geodesic Grid (1.5.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event ChunkyChunks::on_runtime_mod_setting_changed (ID 60)
__ChunkyChunks__/control.lua:383: attempt to index local 'd' (a nil value)
stack traceback:
    __ChunkyChunks__/control.lua:383: in function <__ChunkyChunks__/control.lua:370>
    [C]: in function '__newindex'
    __ChunkyChunks__/control.lua:103: in function 'f'
    __ChunkyChunks__/lib/functional.lua:15: in function 'map'
    __ChunkyChunks__/control.lua:103: in function 'enabled'
    __ChunkyChunks__/control.lua:111: in function <__ChunkyChunks__/control.lua:108>
stack traceback:
    [C]: in function '__newindex'
    __ChunkyChunks__/control.lua:103: in function 'f'
    __ChunkyChunks__/lib/functional.lua:15: in function 'map'
    __ChunkyChunks__/control.lua:103: in function 'enabled'
    __ChunkyChunks__/control.lua:111: in function <__ChunkyChunks__/control.lua:108>
3 years ago

Thanks for the report, even if I was a bit slow to respond :)
Hopefully I can take a look without too much delay, fingers crossed...

3 years ago

Seems to me that this happens only if you enable the grid on the first tick (start a scenario and then enable the grid before starting time). I guess I should fix so it doesn't crash, but the grid is spawned in the on_tick event. If time isn't progressing then I don't think the grid can appear anyways, maybe? The map editor can modify the world without ticks passing though so it might be possible, but that would mean a lot of rewriting to get it to work in paused mode as well since the mod does build the grid spread out over several ticks to not lag the game as it is now.

3 years ago

Version: 1.5.1
Bugfixes:
- No longer crashes when settings are changed on tick 0 (which would happen in map editor in
new maps) where the player data structures are uninitialised.
Thanks modo_lv for the report!
https://mods.factorio.com/mod/ChunkyChunks/discussion/60492bf907831390d90913de

It doesn't "work" while paused, but it at least doesn't crash now...

New response