Line 5: |
Line 5: |
| == Running the game == | | == Running the game == |
| | | |
− | To run ESWC, I had to set up a Windows XP virtual machine. Then just install the game as normal.
| + | New methods have been found to run ESWC, which works on any Windows version and on wine. See [https://www.youtube.com/watch?v=LBa5LSH3Pqg This video]. For it to run in wine, Windows version has to be set to XP. |
| | | |
| == Auth stuff == | | == Auth stuff == |
Line 13: |
Line 13: |
| 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). | | 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) === | + | These parameters are always present (except for /patch/patch.php). |
| + | |
| + | {| class="wikitable" |
| + | ! Param name |
| + | ! Description |
| + | ! Comment |
| + | |- |
| + | | ver |
| + | | game version |
| + | | Latest is 0.1.8.0 |
| + | |- |
| + | | lang |
| + | | user's defined language |
| + | | en;fr;nl;zh_cn |
| + | |} |
| + | |
| + | === Requests stuff (game.trackmanianations.com) === |
| | | |
| ==== /patch/patch.php ==== | | ==== /patch/patch.php ==== |
− | ''Used to check for updates'' | + | ''Used to check for updates - Defaults parameters not present!'' |
| | | |
| '''Parameters''' | | '''Parameters''' |
Line 47: |
Line 63: |
| | os | | | os |
| | String showing used (not the same as osdesc) | | | String showing used (not the same as osdesc) |
− | | Only present on < 1.7.9; "WinNt2kXp" for XP SP2. | + | | Only present on < 0.1.7.9; "WinNt2kXp" for XP SP2. |
| |- | | |- |
| | action | | | action |
Line 80: |
Line 96: |
| '''For action 3''' | | '''For action 3''' |
| 0 | | 0 |
− |
| |
| | | |
| ==== /online_game/autotest_connection.php ==== | | ==== /online_game/autotest_connection.php ==== |
Line 87: |
Line 102: |
| '''Parameters''' | | '''Parameters''' |
| | | |
− | {| class="wikitable"
| + | No additional parameters. |
− | ! Param name
| |
− | ! Description
| |
− | ! Comment
| |
− | |-
| |
− | | ver
| |
− | | game version
| |
− | | Latest is 1.8.0
| |
− | |-
| |
− | | lang
| |
− | | user's defined language
| |
− | | en;fr;nl;zh_cn
| |
− | |}
| |
| | | |
| '''Response''' | | '''Response''' |
Line 107: |
Line 110: |
| | | |
| ==== /online_game/getladders.php ==== | | ==== /online_game/getladders.php ==== |
− | ''Used to get ladder server url'' | + | ''Used to get ladder server URL'' |
| | | |
| '''Parameters''' | | '''Parameters''' |
| | | |
| + | No additional parameters. |
| + | |
| + | '''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; |
| + | |
| + | === Requests stuff (ladder.trackmanianations.com) === |
| + | |
| + | ==== /ladder/getcountriesrankings.php ==== |
| + | ''Used to get rankings of countries'' |
| + | |
| + | '''Parameters''' |
| {| class="wikitable" | | {| class="wikitable" |
| ! Param name | | ! Param name |
Line 116: |
Line 137: |
| ! Comment | | ! Comment |
| |- | | |- |
− | | ver | + | | start |
− | | game version | + | | First rank to display |
− | | Latest is 1.8.0 | + | | |
| + | |- |
| + | | limit |
| + | | Number of ranks to display |
| + | | |
| |- | | |- |
− | | lang | + | | laddertype |
− | | user's defined language | + | | type of ladder |
− | | en;fr;nl;zh_cn | + | | Seen g, seems to be ignored by master. |
| |} | | |} |
| | | |
Line 128: |
Line 153: |
| | | |
| Seems to always return | | Seems to always return |
− | 0;1; | + | 0;<Number of countires>;[For each country: "<position>;<name>;<points>;"] |
− | <server dns name>;ladder;<HTTPS port>;<Server name>;<HTTP port>;
| + | |
| + | Example: |
| + | 0;4;1;FRA;16777215;2;NED;16777215;3;CZE;16777215;4;GER;16777215; |
| | | |
− | Ex (official servers)
| + | The master sends <limit> number of countries at max, but set <number of countries> to the total number of countries, not the returned numbers. |
− | 0;1
| |
− | ladder.trackmanianations.com;ladder;443;TrackMania Nations Ladder;80;
| |