Construction Probe

by Eketek

Scan new constructions within and around a logistics network to assist in automated delivery of construction materials. Proficiency in the use of combinators for mixed shipments is recommended. Or a good set of blueprints.

Content
1 year, 2 months ago
1.1
198
Logistics Logistic network Circuit network Blueprints

b Module Inserter interop (construction event bypassed)

7 months ago

Problem: Construction probes mod does not recognized module upgrades scheduled/requested by the Module Inserter mod.

Scope: Module Inserter mod (and presumably every fork of it)

Details: The script_raised_build event is used to obtain module counts. When inserting modules into empty machines, this produces correct results. When upgrading the existing modules in a machine, no such event is is triggered. This was traced to the create_request_proxy function within the Module Inserter mod, lines 194-220 (where it appears to use alternative logic for requesting modules).

Workaround: remove modules from machines first, then insert new modules.

Suggested fixes:
Ideally, Module Inserter mod should probably be altered to send a script_raised_built event explicitly through LuaBootstrap.raise_event() (see Factorio API).
If there is a preference for a narrow fix, the construction probes mod provides an interface:
remote.call("eketek-construction-probe", "item_table", game.player, game.player.surface, game.player.position, {["assembling-machine-2"]=100, ["fast-transport-belt"]=1000} (it may be preferable to derive surface and position from something actually being manipulated)

New response