TM²C dedicated server methods and callbacks
Posted: 17 Aug 2011, 15:30
The dedicated server package contains static lists of the methods and callbacks (mirrored online here). The new callback is TrackMania.RulesScriptCallback, while the PlayerManialinkPageAnswer has changed: third parameter Answer is now a string instead of integer, and there's a new fourth parameter called Entries, an array of name/value pairs. Haven't experimented with these yet.
There are also eight new methods, GetServerPlanets plus seven related to scripts. GetServerPlanets does for planets what GetServerCoppers did for coppers in TMUF (and that one now returns the planets count too).
To easily see the new methods, check out the dynamic TM²C vs. TMF page on my methods comparison site.
For the seven new Script functions, select that option from the Show drop-down list.
The SendNotice methods had their 'max duration' parameter replaced by a 'variant' with value [0 = normal, 1 = Sad, 2 = Happy].
The Pay and SendBill methods now work on planets instead of coppers, obviously.
And most significantly, the game mode numbers used by GetGameMode and SetGameMode have changed (not just incremented for the old modes, as Cup remained the same):
There are also eight new methods, GetServerPlanets plus seven related to scripts. GetServerPlanets does for planets what GetServerCoppers did for coppers in TMUF (and that one now returns the planets count too).
To easily see the new methods, check out the dynamic TM²C vs. TMF page on my methods comparison site.
For the seven new Script functions, select that option from the Show drop-down list.
The SendNotice methods had their 'max duration' parameter replaced by a 'variant' with value [0 = normal, 1 = Sad, 2 = Happy].
The Pay and SendBill methods now work on planets instead of coppers, obviously.
And most significantly, the game mode numbers used by GetGameMode and SetGameMode have changed (not just incremented for the old modes, as Cup remained the same):
Code: Select all
TMF: TM2C:
0: Rounds 0: Script
1: TimeAttack 1: Rounds
2: Team 2: TimeAttack
3: Laps 3: Team
4: Stunts 4: Laps
5: Cup 5: Cup
6: Stunts