Shortwave Fixed


Connect circuit networks via shortwave radio channels.

Content
25 days ago
1.1 - 2.0
2.15K
Circuit network

b unrecoverable error when shortwave gets killed

2 years ago

The mod Shortwave for 1.1 (0.3.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event shortwave_fix::on_entity_died (ID 4)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__shortwave_fix
/control.lua:28: in function 'check_channels'
shortwave_fix/control.lua:244: in function <shortwave_fix/control.lua:233>

2 years ago

I can't seem to reproduce it. When looking at it, I found some things that probably need to be improved. For example, you can kill the connection port without killing the radio body. The error you have likely has something to do with a virtual circuit network with only two things attached, so it disappears when one of them is killed. I don't have time to refactor the whole thing right now, but let me know if you have a way to reproduce this particular error.

1 year, 11 months ago

I seem to have a similar error.
A drone (from a drone maintenance mod) crashed atop the transmitting radio. Visually everything got replaced with drones (except a wire to the radio, which would also be nice to fix). However transmission stopped.
I opened the radio interface (the channel was remembered correctly), closed the interface and got this error:

14755.033 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: "Мод Shortwave for 1.1 (0.3.2) вызвал неустранимую ошибку.
Пожалуйста, сообщите об этой ошибке автору мода.

Error while running event shortwave_fix::on_gui_closed (ID 88)
Given entity doesn't exist anymore.
stack traceback:
[C]: in function 'connect_neighbour'
shortwave_fix/control.lua:146: in function 'radio_tune'
shortwave_fix/control.lua:305: in function <shortwave_fix/control.lua:302>"

1 year, 11 months ago

G'day

So I encountered this Error every time i try to place a new radio no ideaa how it Broke but it was working for a while before it started this,

Error while running event shortwave_fix::on_built_entity (ID 6)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__shortwave_fix
/control.lua:28: in function 'check_channels'
shortwave_fix/control.lua:229: in function <shortwave_fix/control.lua:169>

1 year, 11 months ago

Can you post the affected save file(s) in a google drive link or a github issue? Then I can take a look.

1 year, 11 months ago

Without looking too much into it to figure out why it might corrupt its internal state, shouldn't the check_channels function look something like this?

local function check_channels()
    for team,channels in pairs(global) do
        for channel,link in pairs(channels) do
            if link and link.valid then
                local nodes = link.circuit_connected_entities
                if #nodes.red == 0 and #nodes.green == 0 then
                    link.destroy()
                    channels[channel] = nil
                end
            else
                channels[channel] = nil
            end
        end
    end
end
1 year, 11 months ago
(updated 1 year, 11 months ago)

Can you post the affected save file(s) in a google drive link or a github issue? Then I can take a look.

Yea ill upload it later todayand send you the link

Thanx in advance

9 months ago

I just had this issue.
Happens when i interact with

1.) Placing with bot
2.) Removing with bot
3.) Interacting with GUI

I am using the radios to talk cross planet in SE.

Also having keyboard lag with 60fps...odd problems.

New response