2025-07-22 02:08 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005038Spring engineLuapublic2016-01-18 00:11
ReporterJools 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version100.0+git 
Target VersionFixed in Version100.0+git 
Summary0005038: Unable to use chataction before gameframe #2
DescriptionBackground:

You cannot reload luaui from a widget by issuing SendCommands("luaui reload"), so it can therefore be done from a gadget instead.An example is posted here:
https://github.com/xta-springrts/xta-springrts/blob/master/luarules/gadgets/cmd_luaui_reload.lua

Problem #1:

The "AddChatAction" command doesn't work before gameframe #2, as handled by SyncedGameCommands.cpp:

https://github.com/spring/spring/blob/develop/rts/Game/SyncedGameCommands.cpp#L269

Problem #2:

The error message that is sent is sent to all players, not just the player trying to push the reload luaui button.

Fix: remove the framenumber requirement, maybe only for unsynced luarules state if possible? Or why is it needed?

TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0015536

Kloot (developer)

the framenumber requirement was there for historical reasons and pertained to reloading, not chat actions.

note because I happened to see it: this https://github.com/xta-springrts/xta-springrts/commit/d5f10e0241abb75c38d809f8676bea82e925d760 is not the latest gadget handler.
+Notes

-Issue History
Date Modified Username Field Change
2016-01-17 16:09 Jools New Issue
2016-01-18 00:11 Kloot Note Added: 0015536
2016-01-18 00:11 Kloot Status new => resolved
2016-01-18 00:11 Kloot Fixed in Version => 100.0+git
2016-01-18 00:11 Kloot Resolution open => fixed
2016-01-18 00:11 Kloot Assigned To => Kloot
+Issue History