[boskid][1.1.50] Desync with belt_neighbours and ghosts

This subforum contains all the issues which we already resolved.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3714
Joined: Tue May 13, 2014 11:06 am
Contact:

[boskid][1.1.50] Desync with belt_neighbours and ghosts

Post by DaveMcW »

Steps to reproduce:

1. /toggle-heavy-mode
2.

Code: Select all

/c 
belt = game.player.surface.create_entity{name="transport-belt", force=game.player.force, position={0.5,0.5}}
ghost = game.player.surface.create_entity{name="entity-ghost", inner_name="transport-belt", force=game.player.force, position={0.5,-0.5}}
belt.belt_neighbours.outputs[1].order_deconstruction(game.player.force)
Result
Heavy mode check before-update-109 failed.
Heavy mode check after-gameactionhandler-update-109 failed.
Heavy mode check after-scenario-update-110 failed.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2964
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [boskid][1.1.50] Desync with belt_neighbours and ghosts

Post by boskid »

Thanks for the report. Issue is now fixed for 1.1.51.

Primary issue was that LuaEntity::belt_neighbours would return broken objects for ghosts. Secondary issue was (most likely) you missed `local` on the `belt` and `ghost` violating requirement of not holding LuaObjects in the lua's global scope from where it cannot be serialized.
Post Reply

Return to “Resolved Problems and Bugs”