Author Topic: Dedicated server  (Read 9971 times)

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 906
    • View Profile
Dedicated server
« 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.
« Last Edit: November 14, 2017, 10:13:49 PM by PiBoSo »

teeds

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 762
    • View Profile
Re: Dedicated server
« Reply #1 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?
"Damn dirt bikers!" - Bubba

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 906
    • View Profile
Re: Dedicated server
« Reply #2 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.

teeds

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 762
    • View Profile
Re: Dedicated server
« Reply #3 on: May 14, 2015, 01:37:34 PM »
Thanks  Pibs :)
"Damn dirt bikers!" - Bubba

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 906
    • View Profile
Re: Dedicated server
« Reply #4 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.

gokitty199

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: Dedicated server
« Reply #5 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


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

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 906
    • View Profile
Re: Dedicated server
« Reply #6 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.

gokitty199

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: Dedicated server
« Reply #7 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.

teeds

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 762
    • View Profile
Re: Dedicated server
« Reply #8 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 ;)
"Damn dirt bikers!" - Bubba

JJS209

  • Jr. Member
  • **
  • Posts: 8
  • GP Bikes Germany
    • View Profile
    • GP Bikes Germany
Re: Dedicated server
« Reply #9 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.

Niko Mouk

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • MoukLab
Re: Dedicated server
« Reply #10 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)
If you like my work, you can give me a donation :)

Niko Mouk

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • MoukLab
Re: Dedicated server
« Reply #11 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
If you like my work, you can give me a donation :)

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 906
    • View Profile
Re: Dedicated server
« Reply #12 on: March 21, 2016, 11:20:58 PM »
If I make a "whitelist" will ONLY those riders be able to join server?

Yes.

Niko Mouk

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • MoukLab
Re: Dedicated server
« Reply #13 on: April 09, 2016, 02:45:24 PM »
I got a super question  ;D

How do you define which GUID is admin or not ?
If you like my work, you can give me a donation :)

Niko Mouk

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • MoukLab
Re: Dedicated server
« Reply #14 on: April 09, 2016, 10:36:28 PM »
So, I'm sorry, where do you put the apssword ? Nothing about it in the wiki
If you like my work, you can give me a donation :)