Pipe Visualizer 2.0

by Ashier

Visualize the layout and contents of pipe networks. Press Y to draw the selected entity's fluid systems. Press Shift + Y to draw all visible fluid systems. Press Alt + Y to automatically visualize systems on mouse-over. Press Control + Y to toggle between color-by-fluid and color-by-system.

Utilities
11 days ago
2.0
9.05K

b [Fixed in 2.4.1] [2.4.0] Crash after updating SE from 0.7.30 to 0.7.32

2 months ago

The mod Pipe Visualizer 2.0 (2.4.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event PipeVisualizer-Updated::on_load()
core/lualib/event_handler.lua:12: attempt to index local 'lib' (a boolean value)
stack traceback:
core/lualib/event_handler.lua:12: in function 'register_remote_interfaces'
core/lualib/event_handler.lua:100: in function <core/lualib/event_handler.lua:99>

Worked with no issues on SE 0.7.30 and prior versions, crashed after simultaneously updating PV to 2.4.0 and SE from 0.7.30 to 0.7.32.

2 months ago

Rolling SE back to 0.7.30 does not solve the problem - PV is still crashing.

2 months ago

Oh, it crashes almost the same but not exactly the same way (note different line number) on Vanilla Space Age with no other mods:

The mod Pipe Visualizer 2.0 (2.4.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event PipeVisualizer-Updated::on_init()
core/lualib/event_handler.lua:12: attempt to index local 'lib' (a boolean value)
stack traceback:
core/lualib/event_handler.lua:12: in function 'register_remote_interfaces'
core/lualib/event_handler.lua:90: in function <core/lualib/event_handler.lua:89>

Factorio v2.0.66 (+ Elevated Rails + Quality + Space Age)
Factorio Library v0.16.3
Pipe Visualizer 2.0 v2.4.0

2 months ago

*different line number and a different method: on_load vs on_init.

2 months ago
(updated 2 months ago)

if you want. you can replace compatibility/fmf_ducts.lua text into mod archive
for me, this solved the problem of load the mod.

local compat = {}

-- Return empty table if the mod is not installed
if not (script.active_mods["FluidMustFlow"]) then
return compat
end

local function setup()
remote.call("PipeVisualizer", "pipelist_add", "storage-tank", "duct")
remote.call("PipeVisualizer", "pipelist_add", "storage-tank", "duct-cross")
remote.call("PipeVisualizer", "pipelist_add", "storage-tank", "duct-curve")
remote.call("PipeVisualizer", "pipelist_add", "storage-tank", "duct-long")
remote.call("PipeVisualizer", "pipelist_add", "storage-tank", "duct-small")
remote.call("PipeVisualizer", "pipelist_add", "storage-tank", "duct-t-junction")
end

compat.on_init = setup
compat.on_configuration_changed = setup

return compat

2 months ago

Hello, I get the same style of error with Py:

The mod Pipe Visualizer 2.0 (2.4.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event PipeVisualizer-Updated::on_load()
core/lualib/event_handler.lua:12: attempt to index local 'lib' (a boolean value)
stack traceback:
core/lualib/event_handler.lua:12: in function 'register_remote_interfaces'
core/lualib/event_handler.lua:100: in function <core/lualib/event_handler.lua:99>

2 months ago

I am getting the exact same error on load in my pyanodons run.

2 months ago
(updated 2 months ago)

Had the same type of error in Krastorio 2 Spaced Out:

The mod Pipe Visualizer 2.0 (2.4.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event PipeVisualizer-Updated::on_load()
core/lualib/event_handler.lua:12: attempt to index local 'lib' (a boolean value) stack traceback:
core/lualib/event_handler.lua:12: in function 'register_remote_interfaces'
core/lualib/event_handler.lua:100: in function
<core/lualib/event_handler.lua:99>

And mmavka's solution worked
(changing compat to first line, then returning it if FluidMustFlow is not active)

I've also tested the current version (2.4.0) without those changes, it only loads if you have FluidMustFlow enabled as a mod.

2 months ago

Same issue, 2.3.3 worked fine, 2.4 crashes on update. Space-exploration was updated from 0.7.30 to 0.7.32 in the same batch, but I doubt its the culprit given other reactions here

2 months ago

Hello Everyone! Thanks for reporting, weird that it happened under specific circumstances, I would've thought this error would show up always. I will update it and push a fix in a few hours when I get home.

2 months ago

Fixed in 2.4.1. Tested with K2 no error. Should be all good now!

2 months ago

Hello Ashier,

Works on my end now!

Thank you for your service, sir or madam :D

New response