I was testing a script that listens for gbx events, and on one instance was able to get callbacks for player DNF, player checkpoint times, etc to work. I got this to work after fixing capitalization of the "Trackmania/TM_TimeAttack_Online" mode. I don't think I changed anything after it worked, but it stopped working ever since then. I've tried touching the MatchSettings again and doesn't seem like anything works. I also can't seem to find any logs streamed anywhere that are useful. (I also tried running with /noautoquit and that didn't change anything).
#missing some xmlrpc events after unknown server config change
8 messages · Page 1 of 1 (latest)
are you enabling XMLRPC Callbacks for the script mode?
yeah i call
if err := client.EnableCallbacks(true); err != nil {
fmt.Println(err)
os.Exit(1)
}
from node-gbxclient, you also need to call this: await gbx.callScript("XmlRpc.EnableCallbacks", "true");
that gives you all the script mode callbacks
Trackmania Wiki
which is a shorthand for TriggerModeScriptEventArray("XmlRpc.EnableCallbacks", ["true"]);
ok lol yes i was missing that 🙃