Elevated pipes


Adds pipes on pillars that can go over anything and make those tight corners.

Content
2 months ago
2.0 - 2.1
59.8K
Logistics Fluids

g Crash when Pipe gets destroyed by enemy

2 months ago

This was in sandbox mode. Spawned as a player. Enemies started attacking the things it broke and this came. I tested destroying it myself and this happened.

maybe
if neighbour and neighbour.valid then --stuff-- end

Stacktrace:

Error while running event elevated-pipes::on_tick (ID 0)
elevated-pipes/control.lua:243: attempt to index local 'neighbour' (a nil value)
stack traceback:
elevated-pipes/control.lua:243: in function 'update_elevated_pipes_for_surface'
elevated-pipes/control.lua:152: in function <elevated-pipes/control.lua:149>

2 months ago

Got the same crash in the middle of a normal game:

Error while running event elevated-pipes::on_tick (ID 0)
elevated-pipes/control.lua:243: attempt to index local 'neighbour' (a nil value)
stack traceback:
elevated-pipes/control.lua:243: in function 'update_elevated_pipes_for_surface'
elevated-pipes/control.lua:152: in function <elevated-pipes/control.lua:149>

a month ago

I have same error

a month ago

Temporary fix:

Open control.lua in a text editor (like Notepad++ or VS Code).
Locate line ~243inside function mod.update_elevated_pipes_for_surface

-- Replace this line:
if is_elevated_pipe[neighbour.name] then

-- With this line:
if neighbour and neighbour.valid and is_elevated_pipe[neighbour.name] then

New response