Linked Chest Channel Names

by O5MO

Adds a menu to add named channels to linked chests

Utilities
a year ago
2.0
163

b [Resolved] Crash into menu when opening linked chest in remote view with ' Remote view item transfer' mod installed

13 days ago
(updated 13 days ago)

Hi,
thanks for this great mod (I am using it a lot). Recently I installed also 'Remote view item transfer' mod (which is known for causing problems with other mods' GUIs) and I got one such problem too when opening linked chest (the vanilla one) in a remote view when player is on the same surface as the linked-container:

The mod Remote view item transfer (1.1.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event remote-view-item-transfer::on_gui_opened (ID 102)
The mod Linked Chest Channel Names (1.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event linked-chest-channel-names::on_gui_opened (ID 102)
Gui element with name linked_channel_main_frame already present in the parent element.
stack traceback:
[C]: in function 'add'
linked-chest-channel-names/glib.lua:95: in function 'add'
linked-chest-channel-names/control.lua:34: in function <linked-chest-channel-names/control.lua:24>
stack traceback:
[C]: in function 'newindex'
__remote-view-item-transfer
/control.lua:137: in function <remote-view-item-transfer/control.lua:112>

Fortunately hotfix for this was very easy (by editing your code):
In your control.lua, in on_gui_opened event handler just before calling glib.add() to add linked_channel_main_frame I inserted a check if this frame is not already there and return from the handler if so:

if player.gui.relative.linked_channel_main_frame then
    player.print("linked_channel_main_frame already exists")
    return
end

Can you please look at it and fix it in the next version?
many thanks & regards
KUDr

12 days ago

Thanks for the report, that's an issue with RVIT and as you said, it is known. Its the same issue as was before. I've looked into fixing RVIT multiple times, maybe will look at it again, but can't promise anything.

12 days ago

Actually, i already had most of the stuff ready for a fix in RVIT. You can update it to version 2.0.0. Its confirmed to work with this mod, and hopefully all other mods it used to have issues with.

New response