Construction Approvals

by azaghal

Ghosts require player's approval before construction bots are dispatched. This gives the player improved control over what parts of the factory get built, and when.

Utilities
9 months ago
1.1 - 2.0
3.89K
Logistic network Blueprints

b Crash when pasting ghost belts over different belt ghosts — invalid LuaEntity (Construction Planner 2.0.0)

a day ago
(updated a day ago)

Title: Crash when pasting ghost belts over different belt ghosts — invalid LuaEntity (Construction Planner 2.0.0)

Edit: I accidentally posted this here instead of on the original Construction Planner mod page (the one I’m actually using). I’ve now reposted it in the correct place — apologies for the mix-up.

Description:
While pasting a copied selection of red belts, red balancers, and red underground belts (as ghosts) over existing but different red belt ghosts, the game paused and displayed an unrecoverable error. After clicking Continue, the game returned to the main menu.

Steps to reproduce:

Select a group of red belts/undergrounds/balancers with Ctrl + C

Paste them as ghosts using super forced build CTRL + Shift + LMB

Paste them over mismatched/different existing red belt ghosts

Crash occurs immediately

Factorio Version: 2.0.72
Mod Version: Construction Planner 2.0.0
Reproducibility: every time.

Error message:

The mod Construction Planner (2.0.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event ConstructionPlanner::on_built_entity (ID 6)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
    [C]: in function '__index'
    __ConstructionPlanner__/control.lua:142: in function 'create_placeholder_for'
    __ConstructionPlanner__/control.lua:240: in function 'unapprove_entities'
    __ConstructionPlanner__/control.lua:331: in function <__ConstructionPlanner__/control.lua:325>

the most recent autosaves in order of most to least recent:

_autosave3.zip: https://1drv.ms/u/c/325f97da286664c2/IQC7o689WOLlR7v_sJI1DpRpAd8TfzqFVK2dPxqS8tj8m8M?e=lcjHPJ
_autosave2.zip: https://1drv.ms/u/c/325f97da286664c2/IQBsOJI5p4XOT62Zn5DLoyjmAROdclTldxggUBnWH9tzSL0?e=ae2B0j
_autosave1.zip: https://1drv.ms/u/c/325f97da286664c2/IQDcEjfoxuqJRqlgZr9KRjBrASnIDVMB1RYOroU1SJSmc0w?e=gBnK7M

a screenshot of the pop up window: https://1drv.ms/i/c/325f97da286664c2/IQD4Uzgt3WgqS5t8hjEi-UAxAc_IojrYqmCvzCboWCNh7bw?e=cRUGCc

Factorio AppData Roaming Folder (includes both the mod-list.json file and the mod-settings.dat file): https://1drv.ms/f/c/325f97da286664c2/IgCK0PZqGMmfTZIO_o460gH7Ad-jyFzUw1QYQkiNBMTcVn4?e=h8ZUKc

New response