• Welcome to PiBoSo Official Forum. Please login or sign up.
 
January 18, 2022, 05:19:35 AM

News:

World Racing Series beta14 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: January 17, 2022, 08:43:59 PM by PiBoSo
To start a dedicated server, launch gpbikes.exe with the following params:
gpbikes.exe -dedicated (port number) [-set params (config_file)]

for example:
gpbikes.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", "xml" or "both". 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
contacts = ; 1 -> contacts between bikes are added to the XML export, 2 -> contacts with walls are exported, too

[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 ). If no track is found, then it is searched in the full names ( for ex. Assen to match "Assen 2005" )
track_layout = ; track layout ( for ex. Short ). Empty -> Default. If "track" is used to search in the full names, then "track_layout" is used as a second filter ( for ex. 2005 to choose between different versions of Assen )
track_paint = ; track paint file name ( without the PNT extension ). Empty -> Default
category = ; bike category allowed. Empty -> Open. Multiple categories can be set with a slash in between. For example: M2/GP500
allowed_bikes = ; list of ID of allowed bikes, separated by a slash. For example: schwaben_m2_18/varese_v594

[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" )
contacts = ; 1 -> contacts between bikes are written, 2 -> contacts with walls are written, too ( only used with "enable = 2" )

[remote_admin]
enable = ; 1 to enable remote admin ( more info: https://forum.piboso.com/index.php?topic=9652.0 )
port = ; the UDP port. If missing or set to 0, port 54230 is used
password =

[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=
track2_paint=
track3=
track3_layout=
track3_paint=
...
...
track10=
track10_layout=
track10_paint=
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.
Whitelist only: it is possible to set, for each entry, the race number, the name, a prefix to the name ( for example a team "tag" ) and the bike.
Also, it is possible to set a custom string, up to 18 character long, that is added to the XML results export and to the live timing data.
[entry0]
guid = ........
race_number = ...
name = ...
name_prefix = ...
bike_id = ...
extra = ........

In the dedicated server text input, it is possible to type text that will be sent to the connected clients. It can be a personal message: https://forum.piboso.com/index.php?topic=9942.msg109763#msg109763
It is also possible to send commands: https://forum.piboso.com/index.php?topic=9942.msg109764#msg109764
Additional commands:
- "!restart" to reset the server
- "!whitelist update" to reload the whitelist file
- "!blacklist update" to reload the blacklist file
- "!admin" followed by client's name ( or #race number) to promote a client to admin
Text can be sent to the dedicated server from remote, too: https://forum.piboso.com/index.php?topic=9652.0


NOTE: a license is not needed to start a dedicated server.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

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.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

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.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

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

"La perfezione non è il nostro obiettivo, è la nostra tendenza".