Parsing of replay data / detecting game state in spads
Posted: 02 Mar 2015, 23:56
I don't really know where to write, in spads or in replay site, as this is a combination of the two.
I'm looking for way to mark certain games with a tag, for example if the game desyncs it would be tagged as desynced (and some stuff could be done automatically like copying infolog etc). Or if the game has a luacallin error, or similar stuff.
Would the best bet to use the endgamecommand to launch a shell process that parses replay file for these things? But endgamecommand is already in use for uploading replays, so one has to make a plugin to use the same event instead? This one: onGameEnd(\%endGameData)
I know the replay site does something to this end...
I'm looking for way to mark certain games with a tag, for example if the game desyncs it would be tagged as desynced (and some stuff could be done automatically like copying infolog etc). Or if the game has a luacallin error, or similar stuff.
Would the best bet to use the endgamecommand to launch a shell process that parses replay file for these things? But endgamecommand is already in use for uploading replays, so one has to make a plugin to use the same event instead? This one: onGameEnd(\%endGameData)
I know the replay site does something to this end...