Item Network

by y_e_a_r

This mod adds a new logistics mechanic: The Item Network. It replaces trains and logistics bots by teleporting items and fluids directly between Network Chests and Tanks.

Tweaks
1 year, 2 months ago
1.1
2.20K
Logistics Fluids Logistic network Storage Cheats

b [FIXED] GUI related error in map editor

1 year, 4 months ago

Mod throws this error when closing GUI elements in map editor.

The mod Item Network (0.3.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event item-network::on_gui_closed (ID 89)
__item-network__/src/GlobalState.lua:209: attempt to index field 'mod' (a nil value)
stack traceback:
    __item-network__/src/GlobalState.lua:209: in function 'get_player_info'
    __item-network__/src/GlobalState.lua:222: in function 'get_ui_state'
    __item-network__/src/NetworkChestGui.lua:162: in function 'on_gui_closed'
    __item-network__/src/NetworkChest.lua:575: in function <__item-network__/src/NetworkChest.lua:568>
1 year, 4 months ago

I'm having trouble reproducing this on my end. I think I found where it might be happening but do you have some steps I can follow to reproduce? Otherwise I'll release what I think is the fix in case it helps.

1 year, 4 months ago

Map Editor » New Scenario » Next » Play » E (inventory hotkey) » error message

1 year, 4 months ago

Ah this is caused because the map editor is paused by default on map load and global values in the mod are set on the first tick. A temporary workaround is to use the stopwatch tab to advance forward a tick or 2. I should have a better fix out shortly.

1 year, 4 months ago

Should be fixed in 0.3.7

New response