MinimalWire - Clean Power Networks


MinimalWire is a quality of life mod that eliminates spaghetti and keeps your factory wires clean by enforcing efficient connections, using Kruskal's algorithm to produce a minimum spanning tree each time a power pole is added to the network. Check out my other mod for a much more relaxed approach to this idea: OneWire

Tweaks
9 months ago
2.0
3.19K
Circuit network Power Blueprints

g Error

10 months ago

The mod MinimalWire - Clean Power Networks (1.0.7) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event minimalwire::on_robot_built_entity (ID 15)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__minimalwire
/control.lua:304: in function 'rebuild_mst_for_subnetwork'
minimalwire/control.lua:430: in function <minimalwire/control.lua:427>

10 months ago

Same error here, no idea how to reproduce yet.

The mod MinimalWire - Clean Power Networks (1.0.7) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event minimalwire::on_robot_built_entity (ID 15)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__minimalwire
/control.lua:304: in function 'rebuild_mst_for_subnetwork'
minimalwire/control.lua:430: in function <minimalwire/control.lua:427>

10 months ago
(updated 10 months ago)

I've run into the exact same issue on my current save, and I can consistently reproduce it. I'm not sure if/how I can share the save to help debug, but it's 100% reproducible within seconds of loading my current save: run over a steel power pole with a tank, back off and allow bots to replace it, then run it over again. As soon as I drive off of the power pole ghost for a second time, this error occurs and the game crashes.

Feel free to message me if there's any way I can help (i.e. providing the save, my current mod list, or anything else)

10 months ago

Hi L1G1TCL0WN, thanks so much for your help! Do you have discord? If so add me @SleepyStew

10 months ago

I believe I have fixed the issue in 1.0.8, although I'm not entirely sure why the ghost gets considered an invalid entity.

10 months ago

im getting this error in the editer

Error while running event minimalwire::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__minimalwire
/control.lua:296: in function 'rebuild_mst_for_subnetwork'
minimalwire/control.lua:462: in function <minimalwire/control.lua:459>

9 months ago

Hopefully fixed in 1.0.9. Still can't recreate and am unsure of cause.

New response