• Welcome to PiBoSo Official Forum. Please login or sign up.
 
July 06, 2020, 01:34:33 PM

News:

GP Bikes beta18c available! :)


Dedicated server

Started by PiBoSo, March 20, 2013, 08:08:35 PM

Previous topic - Next topic

PiBoSo

March 20, 2013, 08:08:35 PM Last Edit: May 28, 2020, 08:40:31 PM by PiBoSo
To start a dedicated server, launch core.exe with the following params:
core.exe -dedicated (port number) [-set params (config_file)]

for example:
core.exe -dedicated 54310 -set params dedicated.ini


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


Configuration file must be in installation path, under "gpbikes" folder.
If not set "server.ini" is used.

Format:
[connection]
name =
maxclient =
password =
admin_password =
bandwidth = ; 0 -> very low, 1 -> low, 2 -> medium, 3 -> high, 4 -> very high
max_ping =
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

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

[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 )
prefix = ; filename prefix of replays

[event]
name = ; the name of the event ( optional )
track = ; track ID ( the track folder name, for ex. Victoria )
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: GP125/GP500/GP1000

[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]
testing_day = ; 0 or 1, if set to 1, the following race settings are unused
quick_race = ; 0 or 1. If set to 1, practice, warmup, sighting lap and warmup lap are skipped
practice_length = ; minutes
qualify_length = ; minutes
warmup_length = ; minutes
sighting_lap = ; 0 or 1
warmup_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. The default is 300, 5 minutes. If set at zero, there is no restart

pause = ; 0 or 1. If set to 1, the event is paused and saved at the end of "pause_session"
pause_session = ; practice, qualify, warmup or race
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, qualify, warmup or race
save_directory = ; the directory where data is saved. The default is "resume"

[live]
enable = ; 1 or 2 to enable live timing. If set to 1, data is sent through UDP packets ( more info: https://forum.piboso.com/index.php?topic=5419.0 ). If set to 2, data is written to a local file
port = ; the UDP port ( only used with "enable = 1" )
password = ;  ( only used with "enable = 1" )
file = ; the name of the file to write  ( only used with "enable = 2" )
track_position = ; 0 or 1. If set to 1, the track centerline and the position of all bikes are written, too ( only used with "enable = 2" )

[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

[polls]
disable_during_races = ; 0 or 1. It set to 1, polls are disabled during races

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

You can 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.
"Obviously your ambition outweighs your talent".

Hispinkness Prior

what is the bandwidth and what does it do :) thnx

janaucarre

images were very nice:)
second time i try to do one and nothing happens. grrrrrrr

HornetMaX

I don't see the option for the warmup lap in the .ini above.

MaX.

PiBoSo

Quote from: HornetMaX on May 14, 2014, 06:27:22 PM
I don't see the option for the warmup lap in the .ini above.

MaX.

First post updated.
"Obviously your ambition outweighs your talent".

ALEale

when i enter in the server as Admin... is possibile to restart it with a command in chat?

HornetMaX


PiBoSo

Quote from: ALEale on May 14, 2014, 08:21:09 PM
when i enter in the server as Admin... is possibile to restart it with a command in chat?

No.
"Obviously your ambition outweighs your talent".

ALEale

if i don't know the GUID of a banned user... how can i create a blacklist?

HornetMaX

You can't. Only thing you can do in that case is create a whitelist.

MaX.

guigui404

Quote from: ALEale on May 23, 2014, 10:58:36 AM
if i don't know the GUID of a banned user... how can i create a blacklist?
u can know because when he come to the serv GUID is write on the server console

Alibaskins


Même si sans maîtrise la puissance n'est rien, sans puissance, la maîtrise ne fait pas tout !

guigui404

good ali , your project is very useful for whitelist and black list thanks a lot :)

Klax75

Just found out you can add in location in your dedicated server .ini file. To display where your server is hosted from. I added "location = United States" after admin password. Now it shows United States for my server in GP Bikes server list once I click on it.

PiBoSo

"Obviously your ambition outweighs your talent".