Pipette Ghost Builder

by Thaui

Automatically mine and builds ghost and fill requests when pipette is used

Utilities
5 months ago
2.0
200

b module fill request

2 months ago
(updated 2 months ago)

Hi, I love this mod.

I noticed this when playing my main save, so I disabled mods and tried to replicate it:

description of problem

when using the pipette tool on a blueprinted factory with modules the game will crash.

expected behaviour

blueprint of factory placed with module slots populated + pipette trigger = place factory and fill with modules from inventory
factory placed which has blueprinted modules in slot + pipette trigger = fill slots with modules from inventory

test setup

Spawned a new regular game, enabled cheat mode, and unlocked all research.
Using Linux. Don't think that'd affect this bug though.

modlist

base mod - 2.0.32
elevated rails - 2.0.32
quality - 2.0.32
space age - 2.0.32
pipette ghost builder 2.0.1

correct me if im wrong, but base game mods are expected to be enabled i think.

stack trace for all crashes:

The mod Pipette Ghost Builder (2.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event hover_ghost_builder::on_player_pipette (ID 106)
Invalid plan. Inventory positions for {speed-module-2, normal} is empty.
stack traceback:
    [C]: in function '__newindex'
    __hover_ghost_builder__/modules/fill_request_proxies.lua:66: in function 'fill_request_proxy'
    __hover_ghost_builder__/modules/fill_request_proxies.lua:93: in function 'fill_request_proxies'
    __hover_ghost_builder__/modules/build_ghost.lua:37: in function 'build_entity_ghost'
    __hover_ghost_builder__/control.lua:39: in function <__hover_ghost_builder__/control.lua:31>

scenarios tested

tested using factory t2 t3, chemical plant, and various different modules and module slot amounts populated.

copy/blueprint factory with modules inside
place blueprint of factory with modules
with modules and factory in inventory, trigger pipette to build factory
crash

place blueprint of factory with modules
with no modules and only factory in inventory, trigger pipette to build factory
factory is placed, modules are shown as blueprint icons on factory
with modules in inventory, trigger pipette on factory
crash

place factory
go in to map mode
select factory
place a module in factory slot (shows as blueprint module icons on factory now)
exit map
with module in inventory, trigger pipette on factory
crash

let me know if you have any questions or need anything else,
thankyou

New response