MxSimulatorMods wrote:Is it possible to add hook when riders have finished to load the track after restart ?
I would like to send message if the rider is in spectator status after restart.
For now, I use "at +X" but if the rider take lot of time time to load the track, he didn't see the message.
No good way right now. This might work but it's definitely not pretty (and not tested either):
tail -f log.txt | grep '^All ready!$' | (while read line; do echo "x/mypassword/customallreadycmd" >/dev/udp/127.0.0.1/19800; done)
Probably would be a good idea to add an all ready hook.
MxSimulatorMods wrote:My problem is not the restart, it's to know when players are ready and wait behind the gate.
I could use starttime and date in the result file but theses values have a big bugs (It's why the timer of my leaderboard doesn't work correctly, the leaderboard which S.Y.S use for his stream).
It's still the same with --result-cmd.
I think it's currently impossible to know if the player is in loading or if is ready.
"starttime" is when the gate dropped in 1/128 second units. "date" is seconds since the beginning of time in 1970