User:Maxoufox/TMESWC

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).

These parameters are always present (except for /patch/patch.php).

/patch/patch.php
Used to check for updates - Defaults parameters not present!

Parameters

Response

For action 0 If up to date 0;0; If not 0;;  For action 1 0;;; ; (So url is / )

For action 3 0

/online_game/autotest_connection.php
Used to check if the servers are still alive

Parameters

No additional parameters.

Response

Seems to always return 0;1;

/online_game/getladders.php
Used to get ladder server URL

Parameters

No additional parameters.

Response

Seems to always return 0;1; ;ladder;;;;

Ex (official servers) 0;1 ladder.trackmanianations.com;ladder;443;TrackMania Nations Ladder;80;

/ladder/getcountriesrankings.php
Used to get rankings of countries

Parameters

Response

Seems to always return 0;;[For each country: " ; ; ;"]

Example: 0;4;1;FRA;16777215;2;NED;16777215;3;CZE;16777215;4;GER;16777215;

The master sends number of countries at max, but set to the total number of countries, not the returned numbers.