Level Up


Crafting items upgrades both building and productivity

26 days ago
2.0
997
Factorio: Space Age Icon Space Age Mod
Cheats

g Level Up/ Dimension Warp Compatability

30 days ago

Been playing Level up with the Dimension Warp mod and I keep having a reoccuring error everytime I warp planets

Error while running event levelup::on_nth_tick(6)
levelup/control.lua:18: attempt to index field '?' (a nil value)
stack traceback:
levelup/control.lua:18: in function 'refresh_chunks'
levelup/control.lua:49: in function 'get_buildings'
levelup/control.lua:75: in function <levelup/control.lua:73>

Asked that mod creator if it was something on his end and he said no, this was his response

"unfortunately, it's something on the level up mod side.
It looks like it uses surfaces index (instead of looping over surfaces themselves) but not expecting non contiguous indexes (as surfaces in dimension warp are created/deleted as we warp), resulting in checking non existing surfaces."

Dunno if this is something you are able to fix or not, but would be greatly appreciated!

30 days ago

Hey, I had a quick look at the mod repo, and can see do they delete surfaces.
maybe it needs a check if the surface is still valid but I'll have to test it.

https://github.com/Kyria/dimension-warp/blob/d30503a71005a1d260638762b9ef82b09370a2f6/scripts/surface-generation.lua#L83

30 days ago

Have pushed a fix in v1.0.4 and it seemed to survive warping the first three "worlds".
Please do let me know if you see any issues.

27 days ago
(updated 27 days ago)

Version 1.0.5 reintroduced the OP's bug while using Dimension Warp.

The mod Level Up (1.0.5) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event levelup::on_nth_tick(6)
levelup/control.lua:19: attempt to index global 'surface' (a nil value)
stack traceback:
levelup/control.lua:19: in function 'refresh_chunks'
levelup/control.lua:56: in function 'get_buildings'
levelup/control.lua:83: in function <levelup/control.lua:81>

26 days ago

added a bunch of code to deal with the deleting surfaces, then passed a few hours of testing today.

New response