Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Giving addinional Documentation of TMNF Hosting #112

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* [Multi Theft Auto](game-servers/multi-theft-auto.md)
* [Rust](game-servers/rust.md)
* [Sven Co-op](game-servers/sven-co-op.md)
* [Trackmania Nations Forever / Trackmania United Forever](game-servers/trackmania-forever.md)
* [TeamSpeak 3](game-servers/teamspeak-3.md)
* [Unreal Tournament 99](game-servers/unreal-tournament-99.md)
* [Unreal Tournament 2004](game-servers/unreal-tournament-2004.md)
Expand Down
78 changes: 66 additions & 12 deletions game-servers/trackmania-forever.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@

## Ports

- Game Port Default: 2350 UDP
- Game Port Default: 2350 TCP & UDP
- P2P Port for downloading Custom Maps / Files: 3450 TCP
- XMLRPC Port: 5000 TCP

## Online Hosting Requirements

Hosting an Internet accessable Online Server requires a login to the master server. It can't be your game login and every server needs an unique account.
- Hosting an Internet accessable Online Server requires a login to the master server. It can't be your game login and every server needs an unique account.
- The Hosting Server needs to be enabled of accessing `http://game.trackmaniaforever.com/online_game/request.php`

For LAN Hosting a server login isn't required!

Expand All @@ -27,7 +28,7 @@ For LAN Hosting a server login isn't required!

Startparameters override Settings in the configuration of `dedicated_cfg`

| Startparameter | Function
| Startparameter | Function |
|--|--|
| dedicated_cfg=xxx | Specifies the name of the dedicated configuration |
| game_settings=xxx | Specifies the name of game settings configuration |
Expand Down Expand Up @@ -55,6 +56,10 @@ Source of parameters: https://web.archive.org/web/20221003213817/https://www.tm-

Configuration happens on two `.txt` files which are formatted in XML, name can be anything you like. The dedicated configuration needs to be located in `GameData/Config/` and game settings in `GameData/Tracks/`.

### Trackmania Nations Forever Config Requirement

For having on the Free Version your server visible in the gamebrowser, you have to make sure that `<packmask>stadium</packmask>` is set on the Dedicated Server Configuration in `<dedicated><system_config>`

### Dedicated Server Configuration

Example:
Expand Down Expand Up @@ -132,7 +137,51 @@ Example:

### Game Settings

Example:
#### Tip for easier generation of Game Settings

The Game Settings can be generated ingame as well. To do this Create a Server ingame and after setting everything up, press `save match settings` button. The file will then be saved in `(PATH)\GameData\Tracks\MatchSettings`

#### First Block

The First Block setup the match settings like gamemode, timelimit etc.

| Parameter | Description |
|--|--|
| game_mode | Specify the played Game Mode |
| chat_time | Specify in milliseconds how long chat is available after finishing the map |
| finishtimeout | Specify in milliseconds how much time is left after first player finish the round. (use `0` for classic and `1` for adaptive. `1` is default) |
| allwarmupduration | Specify how many rounds warmup is active before game begins |
| disablerespawn | Disable / Enable respawn |
| forceshowallopponents | Forcing players to see all opponents |
| rounds_pointslimit | Point Limit in Rounds Gamemode |
| rounds_usenewrules | `0`= First on the round gets 10 points, the second 6 etc, `1`= First on the round gets one point and the others nothing |
| rounds_forcedlaps | Force the number of laps in roundmode |
| rounds_pointslimitnewrules | Point Limit if `rounds_usenewrules=1` |
| team_pointslimit | Point Limit in Team Gamemode |
| team_maxpoints | Defines how many points a team is able to win max. in a round |
| team_usenewrules | `0`= Teampoints are getting distributed depending of how many players where on the lead in one team. For Example: If Team A got players on place 1, 2 and 3, this means the team scores 3 points. `1`= Points are getting distributed to players regardless of teams. Example: If `maxpoints=6` then Place 1 gets 6 points, Place 2 gets 5 points etc. The Team with the most points get a point for the round |
| team_pointslimitnewrules | Point Limit if `team_usenewrules=1` |
| timeattack_limit | Specify in milliseconds how much time players got to achieve the best roundtime |
| laps_nblaps | Specify the amount of laps played in Laps Mode |
| laps_timelimit | Specify a Timelimit in milliseconds in Laps Gamemode |
| cup_pointslimit | Specify the pointlimit in Cups Mode |
| cup_roundsperchallenge | Specify the amount of rounds per Challenge in Cups Mode |
| cup_nbwinner | Specify the amount of winners in Cups Mode |
| cup_warmupduration | Specify the amount of warmup rounds on Cups Mode |

#### Second Block

The Second Block setup the filters, to make sure of the server is a LAN server, Internet server etc

| Parameter | Description |
|--|--|
| is_lan | Specify that server is a LAN server |
| is_internet | Specify that server is an Internet server |
| | |
| | |
| | |

#### Example of Game Settings

```
<?xml version="1.0" encoding="utf-8" ?>
Expand Down Expand Up @@ -162,15 +211,10 @@ Example:
<cup_warmupduration>2</cup_warmupduration>
</gameinfos>

<hotseat>
<game_mode>0</game_mode>
<time_limit>300000</time_limit>
<rounds_count>5</rounds_count>
</hotseat>

<filter>
<is_lan>1</is_lan>
<is_internet>1</is_internet>
<is_internet>0</is_internet>
<is_solo>0</is_solo>
<is_hotseat>0</is_hotseat>
<sort_index>1000</sort_index>
Expand Down Expand Up @@ -254,8 +298,18 @@ Can be tested on http://dedimania.net/deditest

## Source

More Information about Serverhosting can be aquired on https://server.xaseco.org/
More Information about Serverhosting can be aquired on https://server.xaseco.org/
More Information about Server configuration can be aquired on https://web.archive.org/web/20221208093059/https://www.tm-forum.com/viewtopic.php?t=14203 and https://www.gamers.org/tmf/docs/readme_dedicated.html and https://web.archive.org/web/20150318151253/https://wiki.maniaplanet.com/en/Dedicated_servers


## Game Modes

TBW
The Gamemode will be configured in `<playlist><gameinfos><game_mode>` and can have the following Values:

| Gametype | Servervalue | Description |
|--|--|--|
| Rounds | 0 | Players start all at the same time and receive points depending on the place they finished in this race. After everyone is finished the next race starts on the same map. Map will be changed after point limit is reached and ranked by the points they achieved. |
| TimeAttack | 1 | Players wants to achieve the best round time. Therefore they got unlimited tries until the timelimit is reached. |
| Team | 2 | Like in Rounds players start at the same time. Then points of all team members are calculated. The team with the most points wins the round. Map get changed after reaching Pointlimit. |
| Laps | 3 | Like Formula 1 racing a fixed amount of laps that need to be run is set. First reaching the amount of laps wins the race. |
| Stunts | 4 | Players goal is to make as much points with stunts as possible. Roundtime does not count here. |