Author Topic: Dedicated server  (Read 1713 times)

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2200
    • View Profile
Dedicated server
« on: May 26, 2015, 11:57:02 AM »
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 "wrs" 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 = ; car category allowed. Empty -> Open. Multiple categories can be set with a slash in between. For example: F3000/GT

[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

[settings]
force_cockpit = ; 0 or 1
no_aids = ; 0 or 1
limited_tyre_sets = ; 0 or 1
fixed_setup = ; 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
start = ; 0 -> default, 1 -> force standing start, 2 -> force rolling start
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: December 09, 2015, 09:08:29 PM by PiBoSo »

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2200
    • View Profile
Re: Dedicated server
« Reply #1 on: October 28, 2015, 11:28:39 AM »
First post update with info about:
- event name
- event save

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2200
    • View Profile
Re: Dedicated server
« Reply #2 on: December 09, 2015, 09:09:05 PM »

First post updated with info about:
- race settings
- fixed setup
- race start type

oppolo

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: Dedicated server
« Reply #3 on: January 16, 2017, 06:46:43 PM »
how can I choose only 1 or 2 cars under a category?

dibu

  • Sr. Member
  • ****
  • Posts: 405
    • View Profile
Re: Dedicated server
« Reply #4 on: January 16, 2017, 06:58:13 PM »
how can I choose only 1 or 2 cars under a category?

Do you mean this?
Code: [Select]
category = F3000/GT

PiBoSo mentioned it in his example dedicated.ini:
Code: [Select]
category = ; car category allowed. Empty -> Open. Multiple categories can be set with a slash in between. For example: F3000/GT

Here the categories:
Code: [Select]
Category car(s) folder

F2000 FR2000 fr2000

F3000 FR3000 fr3000

GT Munchen S392 GT s392_gt

Road Tandridge SL RD sl_rd

Rallycross FMC FMK7 RX fmk7_rx

Sprint car Sprint Car 360 sprintcar_360
Sprint Car 410 sprintcar_410
Wingless Sprint Car 360 sprintcar_wl_360
Wingless Sprint Car 410 sprintcar_wl_410
« Last Edit: January 16, 2017, 07:29:22 PM by dibu »

Napalm Nick

  • Hero Member
  • *****
  • Posts: 4548
  • #68 NICKED-IT RACING - STEAL THE FINISH LINE
    • View Profile
Re: Dedicated server
« Reply #5 on: January 16, 2017, 07:32:46 PM »
A way is to only have the cars you want in the server folder. Then others trying to join with a different car will get "car not known to server" error even if the same category.
That's how we do it in GPB. Hope that helps.
Owners Club Racing
CAWS Member


oppolo

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: Dedicated server
« Reply #6 on: January 16, 2017, 08:11:36 PM »
thanks
I meant how to open a dedi server with only sprint car 360 allowed?

PS: in the first post it would be better add this http://forum.kartracing-pro.com/index.php?topic=8.msg25631#msg25631

dibu

  • Sr. Member
  • ****
  • Posts: 405
    • View Profile
Re: Dedicated server
« Reply #7 on: January 16, 2017, 09:25:47 PM »
thanks
I meant how to open a dedi server with only sprint car 360 allowed?

PS: in the first post it would be better add this http://forum.kartracing-pro.com/index.php?topic=8.msg25631#msg25631

Nick and I gave you all infos you need.


Here a step by step solution for allowing Sprintcar 360 only:

-unzip cars.pkz directly to your  ...\World Racing Series\wrs  folder
  now it shows something like  ...\World Racing Series\wrs\cars\sprintcar_360  and the other car folders

-rename or delete all other sprintcar folders (sprintcar_410, sprintcar_wl_360, sprintcar_wl_410)

-rename  ...\World Racing Series\wrs\cars.pkz to _cars.pkz or whatever you want

-start your dedicated server with  category = Sprint car  in your dedicated.ini


ATM I'm running a server, where you can test the result.

oppolo

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: Dedicated server
« Reply #8 on: January 16, 2017, 10:00:26 PM »
ok thanks dibu, now I understood