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

This subforum contains all the issues which we already resolved.
LeonSkills
Inserter
Inserter
Posts: 21
Joined: Mon Feb 11, 2019 12:37 pm
Contact:

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

Post 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
posila
Factorio Staff
Factorio Staff
Posts: 5421
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post 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)
Post Reply

Return to “Resolved Problems and Bugs”