Page 1 of 2

Easy Dedicated Server Self-Hosted Guide

Posted: 28 Jun 2017, 12:07
by mook06
1: Download files:
Canyon https://v4.live.maniaplanet.com/ingame/ ... e.Pack.gbx
Valley https://v4.live.maniaplanet.com/ingame/ ... e.Pack.gbx
Lagoon https://v4.live.maniaplanet.com/ingame/ ... e.Pack.gbx
Stadium https://v4.live.maniaplanet.com/ingame/ ... e.Pack.gbx
MP4 Server files : http://files.v04.maniaplanet.com/server ... -06-15.zip

3: extract "ManiaplanetServer_2017-06-15.zip" files to "C:\ManiaplanetServer\MP4\"
4: place all of the "TM******@nadeo.Title.Pack.gbx" files into "C:\ManiaplanetServer\MP4\Packs\"

5: create a text document "C:\ManiaplanetServer\MP4\UserData\Map\MatchSettings\maplist_canyon.txt" with following contents:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<playlist>
	<gameinfos>
		<game_mode>0</game_mode>
		<script_name>TimeAttack.Script.txt</script_name>
		<title>TMCanyon@nadeo</title>
		<chat_time>10000</chat_time>
		<finishtimeout>1</finishtimeout>
		<allwarmupduration>0</allwarmupduration>
		<disablerespawn>0</disablerespawn>
		<forceshowallopponents>0</forceshowallopponents>
		<rounds_pointslimit>50</rounds_pointslimit>
		<rounds_usenewrules>0</rounds_usenewrules>
		<rounds_forcedlaps>0</rounds_forcedlaps>
		<rounds_pointslimitnewrules>5</rounds_pointslimitnewrules>
		<team_pointslimit>5</team_pointslimit>
		<team_maxpoints>6</team_maxpoints>
		<team_usenewrules>0</team_usenewrules>
		<team_pointslimitnewrules>5</team_pointslimitnewrules>
		<timeattack_limit>300000</timeattack_limit>
		<timeattack_synchstartperiod>0</timeattack_synchstartperiod>
		<laps_nblaps>5</laps_nblaps>
		<laps_timelimit>0</laps_timelimit>
		<cup_pointslimit>100</cup_pointslimit>
		<cup_roundsperchallenge>5</cup_roundsperchallenge>
		<cup_nbwinners>3</cup_nbwinners>
		<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_solo>0</is_solo>
		<is_hotseat>0</is_hotseat>
		<sort_index>1000</sort_index>
		<random_map_order>0</random_map_order>
	</filter>

	<startindex>0</startindex>
	<map>
		<file>Campaigns\TMCanyon\White\A01.Map.Gbx</file>
		<ident>dd1v3VuYkSWRQ_L_J3hkrkDftG2</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A02.Map.Gbx</file>
		<ident>ZxgrYTGoLR14Nhkh2W1EEurwvua</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A03.Map.Gbx</file>
		<ident>RVkh5OfoIhm6pU0xrR7ztHOvPme</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A04.Map.Gbx</file>
		<ident>2Ivc6HeRL05M6OagKoTV3PuCarm</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A05.Map.Gbx</file>
		<ident>BjT76hW3K9bQw6t_W5FbTnig0e9</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A06.Map.Gbx</file>
		<ident>Do6qYW3tQU2DAtS_FijFm29fJr1</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A07.Map.Gbx</file>
		<ident>9x3kgg9tCTC1PIQxKg3Z_OjcRh9</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A08.Map.Gbx</file>
		<ident>db24d9G78vWzx_xFCQJszilraRi</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A09.Map.Gbx</file>
		<ident>x2pBAq2_TNpDeEIf8NonaozdwRh</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A10.Map.Gbx</file>
		<ident>7MuIQTPlZa_kZWtvblRRwcf5i01</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A11.Map.Gbx</file>
		<ident>QdEO2wCnXmvUUjAXVmLznQDlA95</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A12.Map.Gbx</file>
		<ident>ZIGGgBjHwQAsHsChqlihkNJLKBd</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A13.Map.Gbx</file>
		<ident>I_FuXM5aua285XXhvKCu9cMA7Ki</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A14.Map.Gbx</file>
		<ident>a4L8usYBgDSgD5PqCJn3Gzp_kL</ident>
	</map>
	<map>
		<file>Campaigns\TMCanyon\White\A15.Map.Gbx</file>
		<ident>tx881N32Bi_XXGTjWpFt3fKmS7e</ident>
	</map>
</playlist>
6: log into your player account on the new MP4 page: https://v4.live.maniaplanet.com/account ... ed-servers
7: under "dedicated servers" create an account and password for your dedicated server

8: create another text document "C:\ManiaplanetServer\MP4\UserData\Config\dedicated_canyon.txt" with following contents:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>

<dedicated>
	<authorization_levels>
		<level>
			<name>SuperAdmin</name>
			<password>changeme12345</password>
		</level>
		<level>
			<name>Admin</name>
			<password>changeme1234</password>
		</level>
		<level>
			<name>User</name>
			<password>changeme123</password>
		</level>
	</authorization_levels>
	
 	<masterserver_account>
		<login>changeme</login>
		<password>changeme</password>
		<validation_key>changeme</validation_key>
	</masterserver_account>
	
	<server_options>
		<name>Easy Canyon Server Test</name>
		<comment></comment>
		<hide_server>0</hide_server>					<!-- value is 0 (always shown), 1 (always hidden), 2 (hidden from nations) -->

		<max_players>32</max_players>
		<password></password>
		
		<max_spectators>32</max_spectators>
		<password_spectator></password_spectator>
	
		<keep_player_slots>False</keep_player_slots>			<!-- when a player changes to spectator, hould the server keep if player slots/scores etc.. or not. --> 	
		<ladder_mode>forced</ladder_mode>				<!-- value between 'inactive', 'forced' (or '0', '1') -->
		
		<enable_p2p_upload>True</enable_p2p_upload>
		<enable_p2p_download>True</enable_p2p_download>
		
		<callvote_timeout>60000</callvote_timeout>
		<callvote_ratio>0.5</callvote_ratio>				<!-- default ratio. value in [0..1], or -1 to forbid. -->
		<callvote_ratios>
			<voteratio command="Ban" ratio="-1"/>
			<!-- commands can be "Ban", "Kick", "RestartMap", "NextMap", "SetModeScriptSettingsAndCommands"... -->
		</callvote_ratios>

		<allow_map_download>True</allow_map_download>
		<autosave_replays>False</autosave_replays>
		<autosave_validation_replays>False</autosave_validation_replays>

		<referee_password></referee_password>
		<referee_validation_mode>0</referee_validation_mode>		<!-- value is 0 (only validate top3 players),  1 (validate all players) -->

		<use_changing_validation_seed>False</use_changing_validation_seed>

		<disable_horns>False</disable_horns>
		<clientinputs_maxlatency>0</clientinputs_maxlatency>		<!-- 0 mean automatic adjustement -->
	</server_options>
	
	<system_config>
		<connection_uploadrate>8000</connection_uploadrate>		<!-- Kbits per second -->
		<connection_downloadrate>8000</connection_downloadrate>		<!-- Kbits per second -->

		<allow_spectator_relays>False</allow_spectator_relays>

		<p2p_cache_size>600</p2p_cache_size>

		<force_ip_address></force_ip_address>
		<server_port>2350</server_port>
		<server_p2p_port>3450</server_p2p_port>
		<client_port>0</client_port>
		<bind_ip_address></bind_ip_address>
		<use_nat_upnp></use_nat_upnp>

		<gsp_name></gsp_name>						<!-- Game Server Provider name and info url -->
		<gsp_url></gsp_url>						<!-- If you're a server hoster, you can use this to advertise your services -->

		<xmlrpc_port>5000</xmlrpc_port>
		<xmlrpc_allowremote>False</xmlrpc_allowremote>			<!-- If you specify an ip adress here, it'll be the only accepted adress. this will improve security. -->

		<scriptcloud_source>nadeocloud</scriptcloud_source>		<!-- Specify the cloud storage mode for Titles that use it. Can be "localdebug" or "xmlrpc" or "nadeocloud" (default). "nadeocloud" will work only if the creator of the title subscribed to the cloud service. -->

		
		<blacklist_url></blacklist_url>
		<guestlist_filename></guestlist_filename>
		<blacklist_filename></blacklist_filename>
		
		<title>TMCanyon@nadeo</title>		<!-- SMStorm, TMCanyon, ... -->

		<minimum_client_build></minimum_client_build>			<!-- Only accept updated client to a specific version. ex: 2011-10-06 -->

		<disable_coherence_checks>False</disable_coherence_checks>	<!-- disable internal checks to detect issues/cheats, and reject race times -->

		<disable_replay_recording>False</disable_replay_recording>	<!-- disable replay recording in memory during the game to lower memory usage. -->

		<use_proxy>False</use_proxy>
		<proxy_login></proxy_login>
		<proxy_password></proxy_password>
	</system_config>
</dedicated>
9: change the following lines to use the server account you just made on the MP4 website:
-your validation_key should be in your email, or you can get a new one https://v4.live.maniaplanet.com/account/validation-code
-you can get your steam key by right clicking on canyon in your steam game list

Code: Select all

	<masterserver_account>
		<login>changeme</login>
		<password>changeme</password>
		<validation_key>changeme</validation_key>
	</masterserver_account>
10: also change these password lines to something new and unique

Code: Select all

	<authorization_levels>
		<level>
			<name>SuperAdmin</name>
			<password>changeme12345</password>
		</level>
		<level>
			<name>Admin</name>
			<password>changeme1234</password>
		</level>
		<level>
			<name>User</name>
			<password>changeme123</password>
		</level>
	</authorization_levels>
11: create a batch file "C:\ManiaplanetServer\MP4\start canyon server.bat" with the following inside (create a text file and rename .txt to .bat, then edit it with notepad)

Code: Select all

ManiaPlanetServer.exe /title=TMCanyon@nadeo /game_settings=MatchSettings/maplist_canyon.txt /dedicated_cfg=dedicated_canyon.txt
12: run the batch file, make sure to allow through the firewall - if there are any errors, take a screenshot of the errors if you can


- players inside your LAN (inside your house) will have to connect through "local play" -> "local network"
- players outside your LAN (not in your house) will have to connect through "online play"

Re: Easy Dedicated Server Self-Hosted Guide

Posted: 28 Jun 2017, 12:08
by mook06
this is pretty much just a tweeked version of https://www.uaseco.org/documentation/installation.php but i did have a few issues as a noobie that i am, i could not find the TMCanyonA.txt with the MP4 server files, but i found it on the old MP3 files, so i had to copy it from MP3, also same with the cfg.txt, and the batch file, i somehow couldnt figure the batch file out on MP4, but eventually i got it

hope this helps some other noobies like myself :thumbsup:

oh and you may have to port forward on your router to your internal ip:

Code: Select all

2350 udp + tcp
3450 udp + tcp
443 udp + tcp
80 udp + tcp

Re: Easy Dedicated Server Self-Hosted Guide

Posted: 28 Jun 2017, 15:43
by sotn0r
just a hint: no need to forward ports 80 and 443 for the MP server

Re: Easy Dedicated Server Self-Hosted Guide

Posted: 29 Aug 2017, 10:47
by Chaser
I do what you say but I have a mistake:

Yet the identifiers are the right ones

[2017/08/29 11:45:44] Starting ManiaPlanet date=2017-06-15_16_04 Svn=75278 GameVersion=3.3.0...
[2017/08/29 11:45:44] Configuration file : dedicated_canyon.txt
[2017/08/29 11:45:44] Loading system configuration...
[2017/08/29 11:45:44] ...system configuration loaded
[2017/08/29 11:45:44] Loading cache...
[2017/08/29 11:45:45] ...OK
[2017/08/29 11:45:45] Loading dedicated server configuration...
[2017/08/29 11:45:45] ...Dedicated server configuration loaded
[2017/08/29 11:45:45] Connecting to master server...
[2017/08/29 11:45:45] ...OK
[2017/08/29 11:45:45] Identifying on master server...
[2017/08/29 11:45:46] ...master server error: (15) Error, please check your login and password.
[2017/08/29 11:45:46] ...ERROR: Error, please check your login and password.
[2017/08/29 11:45:46] ERROR: Connection to master server lost. Exiting...

Re: Easy Dedicated Server Self-Hosted Guide

Posted: 29 Aug 2017, 10:56
by index
mook06 wrote: 28 Jun 2017, 12:07 6: log into your player account on the new MP4 page: https://v4.live.maniaplanet.com/account ... ed-servers
7: under "dedicated servers" create an account and password for your dedicated server
Chaser wrote: 29 Aug 2017, 10:47 I do what you say but I have a mistake:

[2017/08/29 11:45:45] Identifying on master server...
[2017/08/29 11:45:46] ...master server error: (15) Error, please check your login and password.
[2017/08/29 11:45:46] ...ERROR: Error, please check your login and password.
[2017/08/29 11:45:46] ERROR: Connection to master server lost. Exiting...
Hi Chaser,

this looks like the account data ( login / password ) for your dedicated server is wrong.

Re: Easy Dedicated Server Self-Hosted Guide

Posted: 29 Aug 2017, 11:56
by Chaser
now

[2017/08/29 12:55:48] Starting ManiaPlanet date=2017-06-15_16_04 Svn=75278 GameVersion=3.3.0...
[2017/08/29 12:55:48] Configuration file : dedicated_canyon.txt
[2017/08/29 12:55:48] Loading system configuration...
[2017/08/29 12:55:48] ...ERROR: Couldn't load 'dedicated_canyon.txt'.
...Could not load the system configuration
[2017/08/29 12:55:48] Loading cache...
[2017/08/29 12:55:48] ...OK
[2017/08/29 12:55:48] Loading dedicated server configuration...
[2017/08/29 12:55:48] ...ERROR: Couldn't load 'dedicated_canyon.txt'.
...Could not load the dedicated server configuration
[2017/08/29 12:55:49] ...ERROR: Not connected

[2017/08/29 12:55:49] ...ERROR: Load failed. Could not get access to 'Trackmania² Canyon'.
[2017/08/29 12:55:49] Could not install or update the title's files...

Re: Easy Dedicated Server Self-Hosted Guide

Posted: 29 Aug 2017, 12:32
by Chaser
its ok thanks i change dedicated xxx.txt ==> dedicated xxx and start ok

Re: Easy Dedicated Server Self-Hosted Guide

Posted: 13 Sep 2017, 14:49
by SyntaxError99
mook06 wrote: 28 Jun 2017, 12:07 4: place all of the "TM******@nadeo.Title.Pack.gbx" files into "C:\ManiaplanetServer\MP4\Packs\"
Do title packs have to be in \Packs or in UserData\Packs? Found differing information regarding that.

Also, is it only needed so that clients can download the title pack or does the server also use it?

Is it possible to make the client download the title pack from maniaplanet directly, since maniaplanet hosts all of them anyway. The title pack I am using is 3.7 GB and my server's internet connection is slow.

Re: Easy Dedicated Server Self-Hosted Guide

Posted: 13 Sep 2017, 15:07
by fng_thatoneguy
I believe the custom title packs you will use for your server are all supposed to go in UserData\Packs, even though they "can" go in the other location. I believe Nadeo uses this convention so you can update your server files with their updates without tainting the custom things you wish to use.

I also believe the server and client need to have matching versions of the title pack, so you will need to download that 3.xGB file.

Re: Easy Dedicated Server Self-Hosted Guide

Posted: 14 Sep 2017, 02:01
by SyntaxError99
Thanks thatoneguy!