Page 1 of 1

[posila] [2.0.28] LuaRenderObjects with a robot as target follow the "real robot", not the rendered one.

Posted: Tue Dec 31, 2024 11:48 am
by LeonSkills
As per FFF-421, the robot that is drawn is not their actual location, but their predicted one.

A LuaRenderObject with a robot as target still follows the "real robot" instead of the rendered one, making it seems like it lags behind.
Suggestion is to have LuaRenderingObjects follow the rendered bot.

Code: Select all

/c local robot = game.player.surface.create_entity{name="logistic-robot", force=game.player.force, position=game.player.position}
rendering.draw_circle{surface=robot.surface, target=robot, width=2, color={1,1,1}, radius=1}
Image

Re: [posila] [2.0.28] LuaRenderObjects with a robot as target follow the "real robot", not the rendered one.

Posted: Thu Jan 09, 2025 2:50 pm
by posila
Thanks for the report.
Fixed for 2.0.30.
LuaRenderObjects will use target render position, so the change will affect other things too (like rolling stocks on elevated rails or spidertron)