• Welcome to MX Bikes Official Forum. Please login or sign up.
 
September 16, 2019, 10:11:04 pm

News:

MX Bikes beta11d available! :)


Dedicated server

Started by PiBoSo, October 02, 2014, 02:38:18 pm

Previous topic - Next topic

PiBoSo

October 02, 2014, 02:38:18 pm Last Edit: August 16, 2019, 11:10:36 am by PiBoSo
To start a dedicated server, launch mxbikes.exe with the following parameters:
mxbikes.exe -dedicated (port number) [-set params (config_file)]

for example:
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:
[connection]
name =
maxclient =
password =
admin_password =
bandwidth = ; 0 -> low, 1 -> medium, 2 -> high, 3 -> very 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 ( the track folder name, 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]
open_practice = ; 0 or 1. If set to 1, the following race settings are unused
quick_race = ; 0 or 1. If set to 1 all sessions except for warmup and race2 are skipped. The sighting lap is skipped, too
practice_length = ; minutes. If set to 0, the session is skipped
prequalify_length = ; minutes. If set to 0, the session is skipped
warmup_length = ; minutes. If set to 0, the session is skipped
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 )

[dynamicsurface]
disable = ; 0 or 1. If set to 1, the dynamic track surface is disabled
persistent = ; 0 or 1. If set to 1, the dynamic track surface is not reset between events

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:
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:
[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.

teeds

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

Quote from: teeds on May 14, 2015, 02: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?


The "!" prefix must be used to execute a command.
First post updated.

teeds

"Damn dirt bikers!" - Bubba

PiBoSo


First post updated to add info about event name, race laps, event save, disable collisions and terrain deformation.

[GH]Cody

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

Quote from: gokitty199 on March 04, 2016, 02: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.


When hosting on the same PC where the client is running, the port must be changed from 10410 to something else, for example 10411.

[GH]Cody

Quote from: PiBoSo on March 04, 2016, 11:35:16 am
Quote from: gokitty199 on March 04, 2016, 02: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.


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

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

is it possible to select that riders crash with each other? now it seems that they drive thru like they are ghosts.

Niko Mouk

 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

Quote from: JJS209 on March 15, 2016, 09: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.


[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

Quote from: geofanatec on March 22, 2016, 12:16:41 am
If I make a "whitelist" will ONLY those riders be able to join server?


Yes.

Niko Mouk

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

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 :)