Page 1 of 1

[kovarex] [1.0.0] LuaEntity::get_upgrade_target() returns nil if a bot is dispatched

Posted: Sat Oct 10, 2020 6:15 pm
by Nexela
Plop a yellow belt just inside the end of a construction network with red belts in storage,
Hit it with the upgrade planner
/c game.print(game.player.selected.to_be_upgraded()) -> true
/c game.print(game.player.selected.get_upgrade_target()) -> nil

If there are no red belts in storage upgrade_target is returned correctly, same if there are no bots dispatched to the task.

Re: [kovarex] [1.0.0] LuaEntity::get_upgrade_target() returns nil if a bot is dispatched

Posted: Sun Oct 11, 2020 8:13 pm
by kovarex
Hello, thanks for the report.

This problem was already solved for 1.1 as part of upgrade target visualisation.

Re: [kovarex] [1.0.0] LuaEntity::get_upgrade_target() returns nil if a bot is dispatched

Posted: Tue Oct 13, 2020 11:34 am
by ChrislyBear
That's great news! Thanks!