MX Bikes Official Forum

General Category => Documentation => Topic started by: PiBoSo on October 02, 2014, 12:38:18 PM

Title: Dedicated server
Post by: PiBoSo on October 02, 2014, 12:38:18 PM
To start a dedicated server, launch mxbikes.exe with the following parameters:
Code: [Select]
core.exe -dedicated (port number) [-set params (config_file)]

for example:
Code: [Select]
mxbikes.exe -dedicated 54210 -set params dedicated.ini


NOTE: if a client runs on the same PC, port 54210 cannot be used.


Configuration file must be in the installation path
If not set SERVER.INI is used.

Format:
Code: [Select]
[connection]
name =
maxclient =
password =
admin_password =
bandwidth = ; 0 -> low, 1 -> medium, 2 -> high
max_ping = ; milliseconds. 0 -> no limit
whitelist = ; the filename of the whitelist
blacklist = ; the filename of the blacklist
polls_disable = ; if set to 1, polls are disabled
location = ; information about server location
MOTD = ; message of the day. Use "/r" to split the message in multiple lines.

[export]
results =  ; html or xml. If set it will automatically export results at the end of the last session
directory = ; the directory where results will be saved ( must exist )
units =  ; 0 -> metric units, 1 -> US units, 2 -> UK units

[replay]
save = ; 0 or 1, If set to 1 it will automatically save the full replay at the end of the race
directory = ; the directory where replays will be saved ( must exist )

[event]
name = ; the name of the event ( optional )
track = ; track ID ( for ex. Practice )
track_layout = ; track layout ( for ex. Short ). Empty -> Default;
category = ; bike category allowed. Empty -> Open. Multiple categories can be set with a slash in between. For example: MX1/MX2

[rating]
class = ; A -> 2000+, B -> 1600-1999; C -> 1200-1599; D -> 800-1199

[weather]
realistic = ; 0 or 1, if set to 1, following params are ignored
conditions = ; 0 -> sunny, 1 -> cloudy, 2 -> rainy
temperature = ; air temperature, celsius
wind_direction = ; 0 -> north, 1 -> north-east, 2 -> east, ..., 7 -> north-west
wind_speed = ; meters/second
track_conditions = ; 0 -> dry, 1 -> wet

[hardcore]
force_cockpit = ; 0 or 1
no_aids = ; 0 or 1
limited_tyre_sets = ; 0 or 1

[race]
quick_race = ; 0 or 1, if set to 1, practice, sighting lap and warmup lap are skipped
practice_length = ; minutes
prequalify_length = ; minutes
warmup_length = ; minutes
sighting_lap = ; 0 or 1
race_length = ; % of full length
race_use_laps = ; 0 or 1. If set to 1, race_laps is used instead of race_length
race_laps = ; number of race laps
restart_delay = ; server restart time in seconds
pause = ; 0 or 1. If set to 1, the event is paused and saved at the end of "pause_session"
pause_session = ; practice, prequalify, qualify, warmup, race1 or race2
pause_directory = ; the directory where data is saved. The default is "resume"
resume = ; the file to load to resume an event
save = ; 0 or 1. If set to 1, the event is saved at the end of "save_session". If "pause" is set, this setting is ignored
save_session = ; practice, prequalify, qualify, warmup, race1 or race2
save_directory = ; the directory where data is saved. The default is "resume"

[live]
enable = ; 1 to enable live timing
port = ; the UDP port
password =

[collisions]
disable = ; 0 or 1. If set to 1, collisions between bikes are disabled. The default is 1

[deformation]
scale = ; 0 to 1. 0 disables the terrain deformation ( values in between like 0.5 are allowed )

NOTE: To minimize join lag, please make sure to restrict the allowed bike categories as much as possible

It is possible to set up to 9 additional tracks, in the "events" section:
Code: [Select]
track2=
track2_layout=
track3=
track3_layout=
...
...
track10=
track10_layout=
The server will move to the next at each restart and wrap to the first after the last.
The same track and layout can be repeated multiple times in the 10 "slots".

The whitelist and blacklist are a text file using the following format:
Code: [Select]
[entry0]
guid = ........

[entry1]
guid = ........

[entry2]
guid = ........

The GUID can be read in the "Profiles" page.

In the dedicated server text input, it is possible to type:
"!restart" to reset the server
"!update whitelist" to update the whitelist
"!update blacklist" to update the blacklist


NOTE: a license is not needed to start a dedicated server.
Title: Re: Dedicated server
Post by: teeds on May 14, 2015, 12:21:20 PM
I've been trying this -

In the dedicated server text input, it is possible to type:
"restart" to reset the server


But when I type "restart" in the dedi console it only seems to type a message in chat, is there a command symbol of some kind in need to put in front of these dedi console commands?
Title: Re: Dedicated server
Post by: PiBoSo on May 14, 2015, 01:21:34 PM
I've been trying this -

In the dedicated server text input, it is possible to type:
"restart" to reset the server


But when I type "restart" in the dedi console it only seems to type a message in chat, is there a command symbol of some kind in need to put in front of these dedi console commands?

The "!" prefix must be used to execute a command.
First post updated.
Title: Re: Dedicated server
Post by: teeds on May 14, 2015, 01:37:34 PM
Thanks  Pibs :)
Title: Re: Dedicated server
Post by: PiBoSo on March 02, 2016, 06:36:49 PM

First post updated to add info about event name, race laps, event save, disable collisions and terrain deformation.
Title: Re: Dedicated server
Post by: gokitty199 on March 04, 2016, 01:55:22 AM
ok im hosting my own server, and whenever i have my dedicated server running i cant join any server, not even my own. when i click join on a server it doesnt say connecting, it just gives me the option to cancel the server like this
(http://i68.tinypic.com/160vbzo.png)

does anyone have a fix? when i close the server it works and im able to relaunch the game and join other servers.
Title: Re: Dedicated server
Post by: PiBoSo on March 04, 2016, 10:35:16 AM
ok im hosting my own server, and whenever i have my dedicated server running i cant join any server, not even my own. when i click join on a server it doesnt say connecting, it just gives me the option to cancel the server like this

does anyone have a fix? when i close the server it works and im able to relaunch the game and join other servers.

When hosting on the same PC where the client is running, the port must be changed from 10410 to something else, for example 10411.
Title: Re: Dedicated server
Post by: gokitty199 on March 04, 2016, 09:29:39 PM
ok im hosting my own server, and whenever i have my dedicated server running i cant join any server, not even my own. when i click join on a server it doesnt say connecting, it just gives me the option to cancel the server like this

does anyone have a fix? when i close the server it works and im able to relaunch the game and join other servers.

When hosting on the same PC where the client is running, the port must be changed from 10410 to something else, for example 10411.
ahh thank you sir. great work on beta 4 by the way, quite an improvement.
Title: Re: Dedicated server
Post by: teeds on March 05, 2016, 12:50:17 PM
Any chance we can get to set the qualifying race laps please? Looks like right now it's calculated at something like 70% of race distance, be nice if we could alter this as some Qualifying events, like LCQ, run less laps than a Heat race IRL.

I'd really like the ability to setup an ini for each race stage to get, for instance, the AMA Supercross 250 format of 2 heats, an LCQ and the main. I'd like to use the qualifying races for all heats and disable the qualy race for a main.

 :)

Of course the ultimate way would be to allow us to totally customise an event, numerous heats, mains and all  :D  I can dream eh ;)
Title: Re: Dedicated server
Post by: JJS209 on March 15, 2016, 08:08:20 PM
is it possible to select that riders crash with each other? now it seems that they drive thru like they are ghosts.
Title: Re: Dedicated server
Post by: Niko Mouk on March 16, 2016, 10:01:23 AM
 8) 300 Mbps french server is out.
Testing phase, password : saucisson (it was hard to make a choice between this and wine haha)
(http://www.mx-bikes.fr/wp-content/uploads/2016/03/serveur-800x450.png)
Title: Re: Dedicated server
Post by: Niko Mouk on March 16, 2016, 10:02:20 AM
is it possible to select that riders crash with each other? now it seems that they drive thru like they are ghosts.

[collisions]
disable = ; 0 or 1. If set to 1, collisions between bikes are disabled. The default is 1
Title: Re: Dedicated server
Post by: PiBoSo on March 21, 2016, 11:20:58 PM
If I make a "whitelist" will ONLY those riders be able to join server?

Yes.
Title: Re: Dedicated server
Post by: Niko Mouk on April 09, 2016, 02:45:24 PM
I got a super question  ;D

How do you define which GUID is admin or not ?
Title: Re: Dedicated server
Post by: Niko Mouk on April 09, 2016, 10:36:28 PM
So, I'm sorry, where do you put the apssword ? Nothing about it in the wiki
Title: Re: Dedicated server
Post by: HornetMaX on April 10, 2016, 01:24:28 PM
So, I'm sorry, where do you put the apssword ? Nothing about it in the wiki
http://forum.mx-bikes.com/index.php?topic=197.0 (http://forum.mx-bikes.com/index.php?topic=197.0)
Title: Re: Dedicated server
Post by: Niko Mouk on April 10, 2016, 03:46:32 PM
No sorry I rode this, what I mean is me, as a client when I'm connected to my own server, where/how do I put the password to type admin commands ?
Title: Re: Dedicated server
Post by: HornetMaX on April 10, 2016, 03:48:37 PM
In the same place where you put the password to connect to a password protected server. If you put the admin password, you'll log in as admin.
Title: Re: Dedicated server
Post by: teeds on April 10, 2016, 04:00:39 PM
No sorry I rode this, what I mean is me, as a client when I'm connected to my own server, where/how do I put the password to type admin commands ?

You need to enter the admin password before joining a server, it goes in the password box bottom right of the server list screen.
Title: Re: Dedicated server
Post by: Niko Mouk on April 10, 2016, 08:32:36 PM
Haha ok, I'll never thought to put the admin password here !
Thank you guys :)
Title: Re: Dedicated server
Post by: Azazel on January 10, 2017, 08:44:58 AM
Hi,
I dont understand how i can set qualif time and race time in the dedicated.ini.
I can set race_lap and race_length but i dont know what does it do?
When i join my dedicated server i play in practice, in qualif but never in race, where is the problem?

dedicated.ini :

[race]
quick_race = 0; 0 or 1, if set to 1, practice, sighting lap and warmup lap are skipped
practice_length = 1; minutes
prequalify_length = 0; minutes
warmup_length = 0; minutes
sighting_lap = 0; 0 or 1
race_length = 100; % of full length
race_use_laps = 1; 0 or 1. If set to 1, race_laps is used instead of race_length
race_laps = 1; number of race laps


Title: Re: Dedicated server
Post by: teeds on January 10, 2017, 10:51:41 AM
Last I knew (don't think it's changed since) you can either set race laps or % of full race depending on the switch "race_use_laps = 1; 0 or 1. If set to 1, race_laps is used instead of race_length" . The qualifying laps are then set at 70% of the race distance and currently are not separately adjustable.

When i join my dedicated server i play in practice, in qualif but never in race, where is the problem?

Not sure what you mean by this? Your ini below is set for a 1 race lap, not sure how the game will set the qualifying laps but guess it'll round up to 1. But are you saying you never get to the race in your server with these settings?
Title: Re: Dedicated server
Post by: Azazel on January 10, 2017, 12:57:36 PM
Thanks Teeds,

If i understand good, I have to try with other parameters, maybe my problems will disappear.

When you tell 70%, it is 70% of race lap or race length?
So, if in parameters i have : 100% race and 100 laps race we have 70 qualif laps and 30 race laps or 70 qualif laps and 100 race laps?
Or i understanding nothing   :-[
Title: Re: Dedicated server
Post by: teeds on January 10, 2017, 03:40:33 PM
When you tell 70%, it is 70% of race lap or race length?
So, if in parameters i have : 100% race and 100 laps race we have 70 qualif laps and 30 race laps or 70 qualif laps and 100 race laps?

Yea I think you've got it but It's either laps or %, not both depending on how you set "race_use_laps = 1; 0 or 1. If set to 1, race_laps is used instead of race_length"

Qually is 70% of either, so -

If you use Laps - race_use_laps = 1
10 laps = 7 qualifying laps
20 laps = 14 qualifying laps

If you use % - race_use_laps = 0
If a real race is 20 laps and you set 100%, that's 20 laps = 14 qualifying laps
If a real race is 20 laps and you set 50%, that's 10 laps = 7 qualifying laps

Not used % myself so I'm not sure what the number of laps for 100% is (easy to find out though, just run a 100% race and note laps), maybe it's a certain amount set in game for SX and MX but maybe it's in each track config?
Title: Re: Dedicated server
Post by: Azazel on January 10, 2017, 04:10:10 PM
Thanks for all Teeds!!

I will try  ;D
Title: Re: Dedicated server
Post by: Yamaha285 on March 26, 2017, 11:48:12 PM
So was just getting mine to work but i have some confusion on what to do for this to work correctly so please help if you can. My server shows up as dedicated server and we can get our friends to connect but its stuck on a supermoto track only. Can i get some direction on how to name the tracks in order for this to work. Also the server is always on even when i disconnect it shows up on the list is that normal? Can someone post a code for how it should look to work correct and with the proper track codes?

Thanks and hopefully i can add to the list over servers.
Title: Re: Dedicated server
Post by: Yamaha285 on March 27, 2017, 12:23:43 AM
Name the track same as the folder name (or pkz) for the track.

Some have different layouts like on JS7 and require a layout name as well (which is name of subfolder in track folder).

Hope that helps.

I've named them that but it defaults to the Adria international Raceway every time. Plus the laps are not changing as well. I want to make sure i am spacing and entering in all the right info. when i copy that code line do i need to edit every line in there?
Title: Re: Dedicated server
Post by: Yamaha285 on March 27, 2017, 12:33:15 AM
[connection]
name =Monster Yamaha Racing
maxclient =20
password =
admin_password =
bandwidth = ; 0
max_ping = ; milliseconds. 0
whitelist = ; the filename of the whitelist
blacklist = ; the filename of the blacklist
polls_disable = ; 0
location = ; Pacific Northwest
MOTD = ; Have Fun

[export]
results =  ; html or xml. If set it will automatically export results at the end of the last session
directory = ; the directory where results will be saved ( must exist )
units =  ; 0 -> metric units, 1 -> US units, 2 -> UK units

[replay]
save = ; 0 or 1, If set to 1 it will automatically save the full replay at the end of the race
directory = ; the directory where replays will be saved ( must exist )

[event]
name = ; the name of the event ( optional )
track = ; Glen Helen 2015
track_layout = ; track layout ( for ex. Short ). Empty -> Default;
category = ; bike category allowed. Empty -> Open. Multiple categories can be set with a slash in between. For example: MX1/MX2

[rating]
class = ; A -> 2000+, B -> 1600-1999; C -> 1200-1599; D -> 800-1199

[weather]
realistic = ; 0 or 1, if set to 1, following params are ignored
conditions = ; 0 -> sunny, 1 -> cloudy, 2 -> rainy
temperature = ; air temperature, celsius
wind_direction = ; 0 -> north, 1 -> north-east, 2 -> east, ..., 7 -> north-west
wind_speed = ; meters/second
track_conditions = ; 0 -> dry, 1 -> wet

[hardcore]
force_cockpit = ; 0 or 1
no_aids = ; 0 or 1
limited_tyre_sets = ; 0 or 1

[race]
quick_race = ; 0 or 1, if set to 1, practice, sighting lap and warmup lap are skipped
practice_length = ; minutes
prequalify_length = ; minutes
warmup_length = ; minutes
sighting_lap = ; 0 or 1
race_length = ; % of full length
race_use_laps = ; 0 or 1. If set to 1, race_laps is used instead of race_length
race_laps = ; number of race laps
restart_delay = ; server restart time in seconds
pause = ; 0 or 1. If set to 1, the event is paused and saved at the end of "pause_session"
pause_session = ; practice, prequalify, qualify, warmup, race1 or race2
pause_directory = ; the directory where data is saved. The default is "resume"
resume = ; the file to load to resume an event
save = ; 0 or 1. If set to 1, the event is saved at the end of "save_session". If "pause" is set, this setting is ignored
save_session = ; practice, prequalify, qualify, warmup, race1 or race2
save_directory = ; the directory where data is saved. The default is "resume"

[live]
enable = ; 1 to enable live timing
port = ; the UDP port
password =

[collisions]
disable = ; 0

[deformation]
scale = ; 1
Title: Re: Dedicated server
Post by: Yamaha285 on March 27, 2017, 12:51:44 AM
Ok and do i even need that ; after? is it spaced after the = or does that matter? Also how do i get the server to show something other then dedicated server?
Title: Re: Dedicated server
Post by: Yamaha285 on March 27, 2017, 01:09:59 AM
Ok i still for some reason cannot get it to work. I tried to host one earlier but people get a connection time out. I did the port forwarding as well but not sure
Title: Re: Dedicated server
Post by: Yamaha285 on March 27, 2017, 11:42:12 PM
Better to just turn your firewall off and then see

I want to have a dedicated server just not sure what is wrong on my ini. I created a shortcut with the target info entered in. I have filled out the info on the ini file and when i click the shortcut a cmd like box pops up showing the server on with the supermoto track and the laps unchanged every time. I have to be missing something here. Can you send me in a PM you ini file with out like admin and other info you do not want me to see so i can make this work? I just want to use yours to refer to mine and correct anything i may have missed? I just went into notepad ++ and pasted that code piboso posted then saved it as server.ini but it will not work. That file is in my 86 folder as well
Title: Re: Dedicated server
Post by: Yamaha285 on March 28, 2017, 12:10:46 AM
https://gyazo.com/9e3d7321be0e812d6be4e66d02f2f51b

Just making sure this i need to name something else. Plus at the end of the target before ini i name that. Needs to be the same to match correct?
Title: Re: Dedicated server
Post by: Yamaha285 on March 28, 2017, 12:21:24 AM
In the most none homo way i love you!!! LOL. Thank you for helping me and all of your patience thru all of this i really appreciate it. It came up and worked right.
Title: Re: Dedicated server
Post by: Azazel on April 07, 2017, 08:36:12 AM
Hi,

I'm trying to launch server only in race, to begin to start from the grid.
When i set, in dedicated.ini, quick_race to 1, the game start only in race but i must to wait 15 minutes in stand before start race.
How i can do to disable this waiting time?

Thanks  ;)
Title: Re: Dedicated server
Post by: wahlmat on April 26, 2017, 04:06:59 PM
I'm about to buy this game within the foreseeable future. I'd like to try and set up my own servers and whatnot whenever I get it. However it seems that it's for windows only, is that correct? So it would have to be on a windows server?
Title: Re: Dedicated server
Post by: Big Smooth one3 on April 26, 2017, 06:39:06 PM
I'm about to buy this game within the foreseeable future. I'd like to try and set up my own servers and whatnot whenever I get it. However it seems that it's for windows only, is that correct? So it would have to be on a windows server?
Oh, hey there friend  ;D
Title: Re: Dedicated server
Post by: PizzaChet on April 26, 2017, 08:38:29 PM
Havoc says hi!
Title: Re: Dedicated server
Post by: Big Smooth one3 on April 26, 2017, 10:16:15 PM
Havoc says hi!
PizzaChet? What, was Havoc already taken?  :'(

See some familiar names around here...we'll see how it goes
Title: Re: Dedicated server
Post by: teeds on April 27, 2017, 07:24:42 AM
So it would have to be on a windows server?

I'm fairly sure it's windows only right now.
Title: Re: Dedicated server
Post by: PizzaChet on April 27, 2017, 09:06:23 PM
Naw, I've always been (a) PizzaChet. MXS is the only place I use that name.  ;)
Title: Re: Dedicated server
Post by: PiBoSo on November 05, 2017, 05:12:07 PM

First post updated with the new network ports.
Title: Re: Dedicated server
Post by: MotoSavage on November 14, 2017, 09:41:46 PM
I setup a server last night on a virtual machine and it works amazing(virtual machine is a little powerful for one server). Im not sure how to set the export of race results..

[export]
results =  ; html or xml. If set it will automatically export results at the end of the last session
directory = ; the directory where results will be saved ( must exist )
units =  ; 0 -> metric units, 1 -> US units, 2 -> UK units

I have pasted the path to the directory of a folder to export files already.
What exactly do I put in the:
results = 


One other thing I didn't quite understand is what is "class"?

Just want to understand this file as much as possible because may eventually try to host some little fun races or something.