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

This subforum contains all the issues which we already resolved.
Post Reply
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

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

Post 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.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post by kovarex »

Hello, thanks for the report.

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

ChrislyBear
Burner Inserter
Burner Inserter
Posts: 14
Joined: Thu Jul 05, 2018 7:46 am
Contact:

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

Post by ChrislyBear »

That's great news! Thanks!

Post Reply

Return to “Resolved Problems and Bugs”