Difference between revisions of "User:Maxoufox/TMESWC"
m |
(Added patch and getladder) |
||
Line 14: | Line 14: | ||
=== Requests stuff (game) === | === Requests stuff (game) === | ||
+ | |||
+ | ==== /patch/patch.php ==== | ||
+ | ''Used to check for updates'' | ||
+ | |||
+ | '''Parameters''' | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! Param name | ||
+ | ! Description | ||
+ | ! Comment | ||
+ | |- | ||
+ | | key | ||
+ | | XXXX-XXXX-XXXX-XXXX-XXX, where X is [A-Z0-9] | ||
+ | | Looks like a product key, even tho the game is free | ||
+ | |- | ||
+ | | game | ||
+ | | the game to check for updates for | ||
+ | | TmNationsESWC | ||
+ | |- | ||
+ | | lang | ||
+ | | user's defined language | ||
+ | | en;fr;nl;zh_cn | ||
+ | |- | ||
+ | | version | ||
+ | | game version (current) | ||
+ | | Latest is 1.8.0 | ||
+ | |- | ||
+ | | osdesc | ||
+ | | String showing used OS | ||
+ | | | ||
+ | |- | ||
+ | | action | ||
+ | | ? | ||
+ | | Seen 0 | ||
+ | |- | ||
+ | | protocol | ||
+ | | maybe protocol version (retro compatibility stuff?) | ||
+ | | Seen 2 | ||
+ | |} | ||
+ | |||
+ | '''Response''' | ||
+ | |||
+ | If up to date | ||
+ | 0;0;<A string telling you it's up to date, in your language> | ||
==== /online_game/autotest_connection.php ==== | ==== /online_game/autotest_connection.php ==== | ||
Line 35: | Line 79: | ||
'''Response''' | '''Response''' | ||
+ | |||
Seems to always return | Seems to always return | ||
0;1; | 0;1; | ||
+ | |||
+ | ==== /online_game/getladders.php ==== | ||
+ | ''Used to get ladder server url'' | ||
+ | |||
+ | '''Parameters''' | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! Param name | ||
+ | ! Description | ||
+ | ! Comment | ||
+ | |- | ||
+ | | ver | ||
+ | | game version | ||
+ | | Latest is 1.8.0 | ||
+ | |- | ||
+ | | lang | ||
+ | | user's defined language | ||
+ | | en;fr;nl;zh_cn | ||
+ | |} | ||
+ | |||
+ | '''Response''' | ||
+ | |||
+ | Seems to always return | ||
+ | 0;1; | ||
+ | <server dns name>;ladder;<HTTPS port>;<Server name>;<HTTP port>; | ||
+ | |||
+ | Ex (official servers) | ||
+ | 0;1 | ||
+ | ladder.trackmanianations.com;ladder;443;TrackMania Nations Ladder;80; |
Revision as of 17:54, 6 August 2019
Just writing my thoughts about TMESWC. Don't expect anything useful from this (else it would not be under my user). This is purposely written in non-wiki style, as I'm just writing as I'm going. Formatting will be done later. Everything here is done via educated guesses (disassembling the game is a pain due to StarForce).
Running the game
To run ESWC, I had to set up a Windows XP virtual machine. Then just install the game as normal.
Auth stuff
ESWC's auth isn't like TMF one. Requests and responses don't use XML, but instead uses HTTP GET parameters and CSV-like responses. User-Agent is still set to GameBox.
The game connects to two servers : https://game.trackmanianations.com/ and http://ladder.trackmanianations.com/. The SSL certificates for these domains aren't valid anymore. To make the game connect to them (the servers are still alive), you have to use an HTTP(S) proxy like Fiddler (and allow it to accept bad certificates).
Requests stuff (game)
/patch/patch.php
Used to check for updates
Parameters
Param name | Description | Comment |
---|---|---|
key | XXXX-XXXX-XXXX-XXXX-XXX, where X is [A-Z0-9] | Looks like a product key, even tho the game is free |
game | the game to check for updates for | TmNationsESWC |
lang | user's defined language | en;fr;nl;zh_cn |
version | game version (current) | Latest is 1.8.0 |
osdesc | String showing used OS | |
action | ? | Seen 0 |
protocol | maybe protocol version (retro compatibility stuff?) | Seen 2 |
Response
If up to date
0;0;<A string telling you it's up to date, in your language>
/online_game/autotest_connection.php
Used to check if the servers are still alive
Parameters
Param name | Description | Comment |
---|---|---|
ver | game version | Latest is 1.8.0 |
lang | user's defined language | en;fr;nl;zh_cn |
Response
Seems to always return
0;1;
/online_game/getladders.php
Used to get ladder server url
Parameters
Param name | Description | Comment |
---|---|---|
ver | game version | Latest is 1.8.0 |
lang | user's defined language | en;fr;nl;zh_cn |
Response
Seems to always return
0;1; <server dns name>;ladder;<HTTPS port>;<Server name>;<HTTP port>;
Ex (official servers)
0;1 ladder.trackmanianations.com;ladder;443;TrackMania Nations Ladder;80;