Orphan Finder

by GotLag

Adds a hotkey to highlight unconnected undergound pipes/belts near the player.

Utilities
3 years ago
0.13 - 1.1
18.5K

b Bug - game crash [15.13]

7 years ago

I was placing down a red underground belt (the first of the pair) and got this error. Happens every time I try to place a red underground belt in 0.15.13. Didn't happen in 0.15.12. I disabled all other mods to make sure it was just orphan finder, and still get the issue even with no other mods.

Error while running event Orphan Finder::on_built_entity (ID 6)
Orphan Finder/control.lua:39: bad argument #1 to 'pairs' (table expected, got nil)

7 years ago

I hit the same bug, in 0.15.13, same time as original poster, when placing underground red belts, modded in my case. It never happened in .15 - .15.12 .

7 years ago
(updated 7 years ago)

Seems to be related to this bit of .15.13 ChangeLog

Fixed LuaEntity::neighbours return format to match the docs. (48176)

Postby Rseding91 » Mon May 22, 2017 2:12 am
Making it return what the docs say so "nil" or the entity for underground belts.

7 years ago

Got same error:
[img]http://i.imgur.com/BhJ3EDt.png[/img]

7 years ago

Got the same error with all underground belts, the pipes worked fine

Thanks for the Mod

7 years ago

Seems to be related to this bit of .15.13 ChangeLog

Fixed LuaEntity::neighbours return format to match the docs. (48176)

Postby Rseding91 » Mon May 22, 2017 2:12 am
Making it return what the docs say so "nil" or the entity for underground belts.

It's slightly more complex than that, now underground belts return a single entity while undergound pipes return an array. Will fix when I get home from work tonight.

6 years ago

control.lua:68:
change to

for _,neighbour in pairs(pipe.neighbours[1]) do

fixed :)

New response