[0.12.29]Mod API: set_command build_base arguments incorrect

This subforum contains all the issues which we already resolved.
User avatar
Afforess
Filter Inserter
Filter Inserter
Posts: 422
Joined: Tue May 05, 2015 6:07 pm
Contact:

[0.12.29]Mod API: set_command build_base arguments incorrect

Post by Afforess »

When issuing a set_command to an entity or unit group of the type defines.command.build_base, the ignore_planner option requires an integer value of 0 or 1, rather than the documented true or false.

Ex:

Code: Select all

            entity.set_command({type = defines.command.build_base, destination = safe_base_pos, ignore_planner = true, distraction = defines.distraction.by_damage})
The documentation suggests this is the right format, but Factorio will error with that command. However:

Code: Select all

            entity.set_command({type = defines.command.build_base, destination = safe_base_pos, ignore_planner = 1, distraction = defines.distraction.by_damage})
This form works.

Oxyd and HanziQ on IRC confirmed the issue. Posted here for reference.
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [0.12.29]Mod API: set_command build_base arguments incorrect

Post by Oxyd »

Fixed. In 0.12.30, ignore_planner will take a boolean.
Post Reply

Return to “Resolved Problems and Bugs”