Page 1 of 1

[0.17.68] Underground belt ghost lua set direction into belt weaving+desync

Posted: Wed Sep 11, 2019 6:05 pm
by boskid
save with replay
Issue - steps to reproduce:
  1. build 2 underground belts (connected) in direction east-west
  2. build ghost of underground belt in between so it does not interrupt underground part (with entrance to north)
  3. Point underground belt ghost with cursor
  4. Code: Select all

    /c game.player.selected.direction=defines.direction.west
  5. Heavy mode fails (in state, outer underground pair is connected, after load it is disconnected)
Above issue can be extended to perform weaving belts:
belt-weaving.gif
belt-weaving.gif (1.04 MiB) Viewed 1157 times

Re: [0.17.68] Underground belt ghost lua set direction into belt weaving+desync

Posted: Wed Sep 11, 2019 7:46 pm
by Rseding91
Thanks for the report. Setting direction on ghosts isn't supposed to work through the Lua API as we don't support it in the base game at the moment either. So, this will be fixed by disallowing setting the direction after the ghost is created.