-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from ManiaExchange/dev
- Loading branch information
Showing
3 changed files
with
523 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Some notes about commands and callbacks | ||
|
||
onStatusChange and respective callbacks are called in varying order: | ||
|
||
- onStatusChange (Launching) -> onBeginRace | ||
- onStatusChange (Synchronization) -> | ||
- onBeginRound -> onStatusChange (Play) | ||
- onEndRound -> | ||
- onEndRace -> onStatusChange (Finish) | ||
|
||
Some XML-RPC methods only work at specific points in a match. Calling them at an unsuitable time may yield no result or an error from the client. Some of these cases are listed below: | ||
|
||
--- | ||
|
||
- NextChallenge | ||
- RestartChallenge/ChallengeRestart | ||
|
||
Results in error code -1000 (Change in progress), if proceeding to next round, in Finish and Synchronization. Otherwise, results in error code -1000 in Synchronization (but works in Finish). | ||
|
||
--- | ||
|
||
- SendDisplayManialinkPage | ||
- SendDisplayManialinkPageToLogin | ||
|
||
May not have an effect with custom_ui when called in onBeginSynchronization (but could be due to Tm-Gery) | ||
|
||
--- | ||
|
||
- SetRoundCustomPoints | ||
- SetRoundPointsLimit | ||
|
||
Has to be set before onStatusChange (Synchronization) in order to have effect on the upcoming round. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.