HelicopterRevival


Adds a fully animated attack helicopter to the game. Ideal for getting from A to B quickly, exploring the map, building islands and nuking biters from the sky. Originally forked from Kumpu with fixes for Factorio 0.18.2+, but adding some enhancements of my own as well.

Content
28 days ago
0.18 - 2.0
79.0K
Transportation

b "Select helichopter pad to fly to" window stuck open, crashes on pressing "H" from remote [closed]

4 years ago

Hi, I hope the title isn't too confusing.

Essentially my "select helicopter pad to fly to" frame didn't close. Now selecting the remote and attempting to relaunch the frame (i believe it is heli_heliPadSelectionGui_rootFrame) causes a crash. I believe uninstalling the mod and reinstalling it will fix this, but perhaps there should be added functionality to cleanup any existing frames when toggling the helicopter remote control.

Let me know if you have any questions or need additional information.

Thanks,
Z

Crash log below.

The mod HelicopterRevival (0.0.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event HelicopterRevival::on_gui_click (ID 1)
Gui element with name heli_heliPadSelectionGui_rootFrame already present in the parent element.
stack traceback:
HelicopterRevival/logic/gui/heliPadSelectionGui.lua:171: in function 'buildGui'
HelicopterRevival/logic/gui/heliPadSelectionGui.lua:27: in function 'new'
HelicopterRevival/logic/gui/remoteGui.lua:119: in function 'OnChildEvent'
HelicopterRevival/logic/gui/heliSelectionGui.lua:83: in function 'OnGuiClick'
HelicopterRevival/logic/gui/remoteGui.lua:100: in function 'OnGuiClick'
HelicopterRevival/control.lua:288: in function <HelicopterRevival/control.lua:268>
stack traceback:
[C]: in function 'add'
HelicopterRevival/logic/gui/heliPadSelectionGui.lua:171: in function 'buildGui'
HelicopterRevival/logic/gui/heliPadSelectionGui.lua:27: in function 'new'
HelicopterRevival/logic/gui/remoteGui.lua:119: in function 'OnChildEvent'
HelicopterRevival/logic/gui/heliSelectionGui.lua:83: in function 'OnGuiClick'
HelicopterRevival/logic/gui/remoteGui.lua:100: in function 'OnGuiClick'
HelicopterRevival/control.lua:288: in function <HelicopterRevival/control.lua:268>

4 years ago

Just tested that, and it works fine for me.

Did you migrate from the Helicopters mod?

4 years ago

Thanks for the reply.

No, we've only used your mod since the others were not updated for v18.

I have the save, but have also been unsuccessful at recreating it. I think it was caused by an improper shutdown with one of the windows open, but uninstalling and reinstalling fixed the issue for me.

I'll try a few more things, but at this point it's most likely an edge case.

New response