Author Topic: Dedicated server  (Read 16961 times)

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2200
    • View Profile
Dedicated server
« on: March 20, 2013, 08:08:35 PM »
To start a dedicated server, launch core.exe with the following params:
Code: [Select]
core.exe -dedicated (port number) [-set params (config_file)]

for example:
Code: [Select]
core.exe -dedicated 10510 -set params dedicated.ini

Configuration file must be in installation path, under "gpbikes" folder.
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 =
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

[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. 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]
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
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 to enable live timing
port = ; the UDP port
password =

You can 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: October 28, 2015, 11:26:52 AM by PiBoSo »

Hispinkness Prior

  • Newbie
  • *
  • Posts: 7
  • 2010 SWS world Champion
    • View Profile
Re: Dedicated server
« Reply #1 on: March 29, 2013, 12:00:26 PM »
what is the bandwidth and what does it do :) thnx

janaucarre

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 922
    • View Profile
Re: Dedicated server
« Reply #2 on: February 19, 2014, 07:50:38 PM »
images were very nice:)
second time i try to do one and nothing happens. grrrrrrr

HornetMaX

  • Hero Member
  • *****
  • Posts: 5590
    • View Profile
Re: Dedicated server
« Reply #3 on: May 14, 2014, 06:27:22 PM »
I don't see the option for the warmup lap in the .ini above.

MaX.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2200
    • View Profile
Re: Dedicated server
« Reply #4 on: May 14, 2014, 08:19:53 PM »
I don't see the option for the warmup lap in the .ini above.

MaX.

First post updated.

ALEale

  • Hero Member
  • *****
  • Posts: 583
  • GP Bikes Italia CO-FOUNDER
    • View Profile
    • GP Bikes Italia
Re: Dedicated server
« Reply #5 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?

HornetMaX

  • Hero Member
  • *****
  • Posts: 5590
    • View Profile
Re: Dedicated server
« Reply #6 on: May 14, 2014, 09:24:14 PM »
I don't see the option for the warmup lap in the .ini above.

MaX.

First post updated.

Thx.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2200
    • View Profile
Re: Dedicated server
« Reply #7 on: May 14, 2014, 09:32:11 PM »
when i enter in the server as Admin... is possibile to restart it with a command in chat?

No.

ALEale

  • Hero Member
  • *****
  • Posts: 583
  • GP Bikes Italia CO-FOUNDER
    • View Profile
    • GP Bikes Italia
Re: Dedicated server
« Reply #8 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?

HornetMaX

  • Hero Member
  • *****
  • Posts: 5590
    • View Profile
Re: Dedicated server
« Reply #9 on: May 23, 2014, 11:16:35 AM »
You can't. Only thing you can do in that case is create a whitelist.

MaX.

guigui404

  • Sr. Member
  • ****
  • Posts: 379
    • View Profile
Re: Dedicated server
« Reply #10 on: June 19, 2014, 12:22:03 PM »
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

  • Full Member
  • ***
  • Posts: 169
    • View Profile
    • www.motonline-france.com
Re: Dedicated server
« Reply #11 on: June 19, 2014, 12:24:45 PM »
Or with this page if the server is registered : http://gpbikes.motonline-france.com/drivers.php

 ;)

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

guigui404

  • Sr. Member
  • ****
  • Posts: 379
    • View Profile
Re: Dedicated server
« Reply #12 on: June 19, 2014, 01:21:17 PM »
good ali , your project is very useful for whitelist and black list thanks a lot :)

Klax75

  • Hero Member
  • *****
  • Posts: 1187
  • GP Team: Horizon GP #75
    • View Profile
Re: Dedicated server
« Reply #13 on: July 15, 2014, 04:45:04 AM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 2200
    • View Profile
Re: Dedicated server
« Reply #14 on: July 15, 2014, 04:17:50 PM »

First post updated.