[1.1.69] Highlight-box targeting entity not visible if tick is paused
Posted: Sat Sep 24, 2022 11:54 pm
Steps to reproduce:
- Create a freeplay save (no mods)
- Go to editor mode (this pauses ticks)
- Build an entity (tested with iron-chest)
- Create a highlight box around that entity ( /c game.surfaces[1].create_entity{name = "highlight-box", position = game.player.selected.position, target = game.player.selected} )
I expect to see the highlight box, however, the highlight box is not be visible until ticks are un-paused.
Highlight boxes will still appear around other entities (like generated trees, etc.) or entities built before ticks were paused.
Also reproducing this is a bit finnicky; sometimes the highlight box still becomes visible on a just-built entity when ticks are paused. However following the above steps exactly does consistently reproduce this.
Use case (how I found this bug):
I have a mod which is meant to be used in editor mode, where highlight boxes are used as indicators. However, when the tick is paused (which is normal in editor mode), sometimes the highlight boxes aren't visible until ticks are unpaused. Investigating with no mods in freeplay led to the above.
- Create a freeplay save (no mods)
- Go to editor mode (this pauses ticks)
- Build an entity (tested with iron-chest)
- Create a highlight box around that entity ( /c game.surfaces[1].create_entity{name = "highlight-box", position = game.player.selected.position, target = game.player.selected} )
I expect to see the highlight box, however, the highlight box is not be visible until ticks are un-paused.
Highlight boxes will still appear around other entities (like generated trees, etc.) or entities built before ticks were paused.
Also reproducing this is a bit finnicky; sometimes the highlight box still becomes visible on a just-built entity when ticks are paused. However following the above steps exactly does consistently reproduce this.
Use case (how I found this bug):
I have a mod which is meant to be used in editor mode, where highlight boxes are used as indicators. However, when the tick is paused (which is normal in editor mode), sometimes the highlight boxes aren't visible until ticks are unpaused. Investigating with no mods in freeplay led to the above.