[1.1.57] Belt ghosts can't have their belt_neighbours checked

This subforum contains all the issues which we already resolved.
Post Reply
PFQNiet
Filter Inserter
Filter Inserter
Posts: 257
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

[1.1.57] Belt ghosts can't have their belt_neighbours checked

Post by PFQNiet »

I'm honestly not sure if this used to be possible and has regressed, or was just never possible in the first place (in which case this should be moved to Modding Interface Requests), but my mod just crashed today and I had to do some debugging!

Steps to reproduce:
- Build a belt
- Place a belt ghost after it

- Mouse over the "real" belt and use the command:

Code: Select all

/c game.print(#game.player.selected.belt_neighbours.outputs)
The console prints 1, showing that the ghost belt is considered a belt_neighbour of the real belt.

- Mouse over the ghost belt and use the command:

Code: Select all

/c game.print(#game.player.selected.belt_neighbours.inputs)
I expect the console to print 1 since the "real" belt is an input to the ghost belt, but instead the game returns an error "Entity is not transport-belt-connectable."

Basically this is an inconsistency. Either the ghost belt shouldn't count as a belt_neighbour because it's not a "real" belt, or the ghost belt should have access to its belt_neighbours.

Rseding91
Factorio Staff
Factorio Staff
Posts: 12231
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.57] Belt ghosts can't have their belt_neighbours checked

Post by Rseding91 »

Thanks for the report. It's now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.

lyvgbfh
Fast Inserter
Fast Inserter
Posts: 104
Joined: Fri Jul 10, 2020 6:48 pm
Contact:

Re: [1.1.57] Belt ghosts can't have their belt_neighbours checked

Post by lyvgbfh »

Rseding91 wrote:
Tue Apr 19, 2022 6:20 pm
Thanks for the report. It's now fixed for the next release.
This also happens for electric pole ghosts

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 1792
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.1.57] Belt ghosts can't have their belt_neighbours checked

Post by boskid »

lyvgbfh wrote:
Tue Apr 19, 2022 6:33 pm
Rseding91 wrote:
Tue Apr 19, 2022 6:20 pm
Thanks for the report. It's now fixed for the next release.
This also happens for electric pole ghosts
Please do not reuse resolved bug reports for unrelated stuff. Also LuaEntity::belt_neighbours cannot be used on electric poles so your report is invalid.

Post Reply

Return to “Resolved Problems and Bugs”