Page 1 of 1

[Rseding91] [0.17.68] Steam engine ghost lua set direction to northeast weird graphics

Posted: Wed Sep 11, 2019 6:43 pm
by boskid
  1. Place steam engine ghost
  2. Point cursor to steam engine ghost
  3. Code: Select all

    /c game.player.selected.direction=defines.direction.northeast
steam-engine-northeast.png
steam-engine-northeast.png (43.73 KiB) Viewed 3438 times

Re: [0.17.68] Steam engine ghost lua set direction to northeast weird graphics

Posted: Wed Sep 11, 2019 6:59 pm
by boskid
Heat exchanger ghost, when set to "northeast" crashes game:
log

Re: [0.17.68] Steam engine ghost lua set direction to northeast weird graphics

Posted: Wed Sep 11, 2019 7:07 pm
by boskid
Express loader ghost, when set to northeast also crashes but in a different way:
log

Re: [0.17.68] Steam engine ghost lua set direction to northeast weird graphics

Posted: Wed Sep 11, 2019 7:44 pm
by Rseding91
Thanks for the report(s). The main issue is: setting direction of a ghost after creation currently isn't supported - so I'm not surprised that it crashes when you do so.

Re: [Rseding91] [0.17.68] Steam engine ghost lua set direction to northeast weird graphics

Posted: Wed Sep 11, 2019 7:58 pm
by Rseding91
It's now fixed for the next version of 0.17 by disallowing writing direction on entity ghosts. There's a to-do to make ghosts work the same as standard entities (let you rotate them, change settings, and so on) for one of the future versions of the game and when that happens the Lua API will allow setting direction on them again.

Re: [Rseding91] [0.17.68] Steam engine ghost lua set direction to northeast weird graphics

Posted: Wed Sep 11, 2019 8:10 pm
by boskid
Rseding91 wrote: Wed Sep 11, 2019 7:58 pm [...] There's a to-do to make ghosts work the same as standard entities (let you rotate them, change settings, and so on) for one of the future versions of the game and when that happens the Lua API will allow setting direction on them again.
So both 75594 and 75595 are "duplicate" for now because core issue is "entity ghost lua set direction" not supported. Second one is not yet marked as duplicate. Is it intentional so Dominik makes note that this will need to be fixed in future?

Re: [Rseding91] [0.17.68] Steam engine ghost lua set direction to northeast weird graphics

Posted: Wed Sep 11, 2019 8:57 pm
by Rseding91
I'll move the other report into duplicates. The desync will most likely be fixed when support to set direction on ghosts is implemented. Most likely the reason it desyncs is it's not doing the normal rotation logic because it's a ghost and all of the pipe logic expects that ghosts don't rotate after creation.