Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The server is crashing if I change the values for the spacing #10

Open
Florian-S-Dev opened this issue Jan 1, 2021 · 3 comments
Open

Comments

@Florian-S-Dev
Copy link

Please report this error to the mod author.

Error while running event artillery-bombardment-remote::on_gui_value_changed (ID 86)
__artillery-bombardment-remote__/control.lua:418: bad argument #1 of 2 to '__newindex' (string expected, got number)
stack traceback:
        [C]: in function '__newindex'
        __artillery-bombardment-remote__/control.lua:418: in function '?'
        __artillery-bombardment-remote__/control.lua:477: in function <__artillery-bombardment-remote__/control.lua:475>5227.808 Error ServerMultiplayerManager.cpp:91: MultiplayerManager failed: "The mod Artillery Bombardment Remote (1.1.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event artillery-bombardment-remote::on_gui_value_changed (ID 86)
__artillery-bombardment-remote__/control.lua:418: bad argument #1 of 2 to '__newindex' (string expected, got number)
stack traceback:
        [C]: in function '__newindex'
        __artillery-bombardment-remote__/control.lua:418: in function '?'
        __artillery-bombardment-remote__/control.lua:477: in function <__artillery-bombardment-remote__/control.lua:475>"
5227.844 Info ServerMultiplayerManager.cpp:780: updateTick(24569526) changing state from(InGame) to(Failed)
5227.844 Quitting: multiplayer error.
5228.496 Info ServerMultiplayerManager.cpp:140: Quitting multiplayer connection.
5228.496 Info ServerMultiplayerManager.cpp:780: updateTick(4294967295) changing state from(Failed) to(Closed)
5228.497 Info UDPSocket.cpp:218: Closing socket
5228.497 Info UDPSocket.cpp:248: Socket closed
5228.497 Info UDPSocket.cpp:218: Closing socket
5228.581 Info UDPSocket.cpp:218: Closing socket
5228.581 Info UDPSocket.cpp:248: Socket closed
5228.582 Goodbye

It seems the slider is returning a number and the input wants a string.

@Elfe
Copy link

Elfe commented Mar 21, 2021

This causes multiplayer servers to crash as well if a player enters a non numeric value or uses the sliders to adjust the pattern.

Players are now used to close these dialogs by using the e key which triggers the crash.

@neocult-de
Copy link

Posted the issue already on the mod forum, but it is exactly the same issue:

Error on value Change in the GUI of the Artillery Bombardment Remote. To reproduce the error just open the Artillery Bombardment Remote of the mod with right click and use one of the sliders. Then the attached error will likely occur (for us every time).

If typing a number value directly into the fields the error will not! occur. It is specifically an issue with the sliders and how they hand over there changed state.

As a workaround just typing the numbers and save them will work for now.

As a second workaround if other windows block the Artillery Bombardment Remotes -> Right Click GUI it its possible to disable the other mods (e.g. Module Inserter). Set the values by manually typing, save the game, then reactivate other mods.

991.039 Error MainLoop.cpp:1283: Exception at tick 22359191: The mod Artillery Bombardment Remote (1.1.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event artillery-bombardment-remote::on_gui_value_changed (ID 88)
artillery-bombardment-remote/control.lua:418: bad argument #1 of 2 to '__newindex' (string expected, got number)
stack traceback:
[C]: in function '__newindex'
artillery-bombardment-remote/control.lua:418: in function '?'
artillery-bombardment-remote/control.lua:477: in function <artillery-bombardment-remote/control.lua:475>
991.039 Error ServerMultiplayerManager.cpp:91: MultiplayerManager failed: "The mod Artillery Bombardment Remote (1.1.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event artillery-bombardment-remote::on_gui_value_changed (ID 88)
artillery-bombardment-remote/control.lua:418: bad argument #1 of 2 to '__newindex' (string expected, got number)
stack traceback:
[C]: in function '__newindex'
artillery-bombardment-remote/control.lua:418: in function '?'
artillery-bombardment-remote/control.lua:477: in function <artillery-bombardment-remote/control.lua:475>"

@Mernom
Copy link

Mernom commented Feb 17, 2023

Seems like gui text boxes now only accept actual text, so it needs to be converted to a string first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants