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
13 days ago
2.0
7.58K

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

18 days 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.

18 days ago

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

18 days 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

18 days ago

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

18 days ago
(updated 18 days 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

18 days 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>

18 days ago

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

18 days ago
(updated 18 days 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.

17 days 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

17 days 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.

17 days ago

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

17 days ago

Hello Ashier,

Works on my end now!

Thank you for your service, sir or madam :D

New response