Author Topic: Dedicated server  (Read 44842 times)

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1851
    • View Profile
    • Email
Dedicated server
« on: June 19, 2010, 09:38:45 PM »
To start a dedicated server, launch kart.exe with the following params:
Code: [Select]
kart.exe -dedicated (port number) [-set params (config_file)]
for example:
Code: [Select]
kart.exe -dedicated 54410 -set params dedicated.ini


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


Configuration file must be in installation path.
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 = ; 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 ( for ex. Lonato )
track_layout = ; track layout ( for ex. Short ). Empty -> Default;
category = ; kart category allowed. Empty -> Open. Multiple categories can be set with a slash in between. For example: KF1/FS250/F100

[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 ( values in between like 0.5 are allowed )

[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, sighting lap and warmup lap are skipped
practice_length = ; minutes
qualify_length = ; minutes
sighting_lap = ; 0 or 1
start = ; 0 -> default, 1 -> force the standing start, 2 -> force the rolling start
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, prefinal or final
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, prefinal or final
save_directory = ; the directory where data is saved. The default is "resume"

[live]
enable = ; 1 to enable live timing
port = ; the UDP port
password =

It is possible to 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 use 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 text that will be sent to the connected clients.
It is also possible to execute some commands:
"!restart" to reset the server
"!update whitelist" to reload the whitelist file
"!update blacklist" to reload the blacklist file


NOTE: a license is not needed to start a dedicated server.

« Last Edit: October 19, 2017, 09:02:33 PM by PiBoSo »

GSR03

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: Dedicated server
« Reply #1 on: December 07, 2010, 04:19:24 AM »
How do you launch it with different params?

OS-Chris

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: Dedicated server
« Reply #2 on: December 09, 2010, 12:53:34 PM »
How do you launch it with different params?

create a new shortcut (copy & paste the existing game shortcut), right-click -> properties, rename it (i.e. KartRacingPro-DedicatedServer) and add the parameters to the "target" field ;)

Zapata

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • Email
Re: Dedicated server
« Reply #3 on: December 09, 2010, 01:18:48 PM »
One question, I create a server.ini?
When I create the i.e. KartRacingPro-DedicatedServer where I put the parameters?

Tomy

  • Newbie
  • *
  • Posts: 21
  • rFactorNews.com admin
    • View Profile
    • www.rFactorNews.com
    • Email
Re: Dedicated server
« Reply #4 on: December 09, 2010, 09:39:21 PM »
Hi all, my name is Tomy. I'm www.rFactorNews.com administrator, one of the greatest comunities of simracing in Spain.

First of all like to congratulate the author of this game because after buy and test it thoroughly during the day I found one of the best simulators currently on the market, but I will try to present here some questions on how to create an online server, because it has been a little complicated for me.

As I've read...

1) I have opened ports on my router:



2) I've created a alternative shortcut on desktop like this:

"C:\Program Files (x86)\Kart Racing Pro\kart.exe" -dedicated 10600 -set params dedicated.ini



3) I've created a dedicated.ini in the Kart Racing Pro default folder like this one:



4) To finish, launch this shortcut that I call "Kart Racing Pro [Server]" and the Dedicated Server it's seems that's online now (the dedicated.ini it's in this path: C:\Program Files (x86)\Kart Racing Pro):



But my colleagues who also purchased the game can't see the server, what am I doing wrong?
« Last Edit: December 10, 2010, 02:17:10 PM by Tomy »

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1851
    • View Profile
    • Email
Re: Dedicated server
« Reply #5 on: December 09, 2010, 10:55:11 PM »
Hi all, my name is Tomy. I'm www.rFactorNews.com administrator, one of the greatest comunities of simracing in Spain.

First of all like to congratulate the author of this game because after buy and test it thoroughly during the day I found one of the best simulators currently on the market, but I will try to present here some questions on how to create an online server, because it has been a little complicated for me.

4) Launch this shortcut Kart Racing Pro [Server] and the Dedicated Server it's seems that's online now:



But my colleagues who also purchased the game can't see the server, what am I doing wrong?

Please try setting race parameters.
Example:
Code: [Select]
practice_length = 30
qualify_length = 20
race_length = 20

Tomy

  • Newbie
  • *
  • Posts: 21
  • rFactorNews.com admin
    • View Profile
    • www.rFactorNews.com
    • Email
Re: Dedicated server
« Reply #6 on: December 10, 2010, 12:41:10 AM »
Now it works on another machine (dedicated server PC) with this settings in dedicated.ini file:

Code: [Select]
[connection]
name = rFactorNews.com
maxclient = 5
password =
admin_password = **********
bandwidth = 2 ; 0 -> low, 1 -> medium, 2 -> high
MOTD = No olvides visitarnos en www.rFactorNews.com; message of the day

[export]
results =  ; 0 or 1, If set to 1 it will automatically save the full replay at the end of the race
directory = ; the directory where results will be saved ( must exist )
units = 0 ; 0 -> metric units, 1 -> English units

[replay]
save = 1; 0 or 1, If set to 1 it will automatically save the full replay at the end of the race
directory = C:\Program Files (x86)\Kart Racing Pro\replays; the directory where replays will be saved ( must exist )

[event]
track = ; track ID ( for ex. rye )
category = KC1; kart category allowed. Empty -> Open; KC1, KC3, KS1

[weather]
realistic = 0; 0 or 1, if set to 1, following params are ignored
conditions = 0; 0 -> sunny, 1 -> cloudy, 2 -> rainy
temperature = 24; air temperature, celsius
wind_direction = 0; 0 -> north, 1 -> north-east, 2 -> east, ..., 7 -> north-west
wind_speed = 1; meters/second

[hardcore]
force_cockpit = 1; 0 or 1
no_aids = 1; 0 or 1

[race]
quick_race = 1; 0 or 1, if set to 1, practice, sighting lap and warmup lap are skipped
practice_length = 30; minutes
qualify_length = 10; minutes
sighting_lap = 0; 0 or 1
warmup_lap = 0; 0 or 1
race_length = 20; % of full length




Thanks a lot!  ;)
« Last Edit: December 10, 2010, 02:07:14 PM by Tomy »

Tomy

  • Newbie
  • *
  • Posts: 21
  • rFactorNews.com admin
    • View Profile
    • www.rFactorNews.com
    • Email
Re: Dedicated server
« Reply #7 on: December 11, 2010, 08:25:57 PM »
Today, suddenly and without doing anything before the server goes down and closes when I accept the error.

The server is giving me these errors all time (about 20 minutes of running), what could it be?  :-\



« Last Edit: December 11, 2010, 08:38:00 PM by Tomy »

VELOCIPEDE

  • Sr. Member
  • ****
  • Posts: 279
    • View Profile
Re: Dedicated server
« Reply #8 on: December 13, 2010, 10:44:41 PM »
this is my dedicated.ini

Quote
[connection]
name = DrivingItalia.NET
maxclient = 15
password =
admin_password =
bandwidth = 1 ; 0 -> low, 1 -> medium, 2 -> high
MOTD = ---> www.drivingitalia.net <---

[export]
results = 0 ; 0 or 1, If set to 1 it will automatically save the full replay at the end of the race
directory = ; the directory where results will be saved ( must exist )
units = 0 ; 0 -> metric units, 1 -> English units

[replay]
save = 0 ; 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]
track = Lonato ; track ID ( for ex. rye )
category = KC1; kart category allowed. Empty -> Open; KC1, KC3, KS1

[weather]
realistic = 0; 0 or 1, if set to 1, following params are ignored
conditions = 0; 0 -> sunny, 1 -> cloudy, 2 -> rainy
temperature = 24; air temperature, celsius
wind_direction = 0; 0 -> north, 1 -> north-east, 2 -> east, ..., 7 -> north-westwind_speed = 1; meters/second

[hardcore]
force_cockpit = 1; 0 or 1
no_aids = 1; 0 or 1

[race]
quick_race = 1; 0 or 1, if set to 1, practice, sighting lap and warmup lap are skipped
practice_length = 10;
minutesqualify_length = 10;
minutessighting_lap = 0; 0 or 1
warmup_lap = 0; 0 or 1
race_length = 15; % of full length

but in the server i have 20 minutes of qualifing!  :(
i want only 10 min of qual

mopar93

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Dedicated server
« Reply #9 on: December 14, 2010, 03:25:50 AM »
quick_race = 1; 0 or 1, if set to 1, practice, sighting lap and warmup lap are skipped

Try changing it to quick_race = 0

I don't think it works right if it's set to 1.

-Maurice

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1851
    • View Profile
    • Email
Re: Dedicated server
« Reply #10 on: December 14, 2010, 10:02:27 AM »
this is my dedicated.ini

Quote
[race]
quick_race = 1; 0 or 1, if set to 1, practice, sighting lap and warmup lap are skipped
practice_length = 10;
minutesqualify_length = 10;
minutessighting_lap = 0; 0 or 1
warmup_lap = 0; 0 or 1
race_length = 15; % of full length

but in the server i have 20 minutes of qualifing!  :(
i want only 10 min of qual

There is a typo, this should be:
Code: [Select]
[race]
quick_race = 1
practice_length = 10
qualify_length = 10
sighting_lap = 0
warmup_lap = 0
race_length = 15

VELOCIPEDE

  • Sr. Member
  • ****
  • Posts: 279
    • View Profile
Re: Dedicated server
« Reply #11 on: December 14, 2010, 03:37:34 PM »
thanks Piboso, now work

Schwoni

  • Hero Member
  • *****
  • Posts: 771
    • ICQ Messenger - 323510444
    • MSN Messenger - Schwonek@hotmail.de
    • View Profile
    • Email
Re: Dedicated server
« Reply #12 on: March 02, 2011, 04:18:17 PM »
i tried to start a server i have created the shortcut with parameters, the ini file in KRP folder, ports are open.
But when click on this  shortcut server starts but the parameters that i have set are not there all is wrong, and when i run the game and click on world it says: connection lost.

[connection]
name = Training in Dijon
maxclient =10
password =
admin_password =****
bandwidth =1; 0 -> low, 1 -> medium, 2 -> high
MOTD = Have Fun!; message of the day

[export]
results = 0; 0 or 1, If set to 1 it will automatically save the full replay at the end of the race
directory = C:\programm files\Kart Racing Pro\Results; the directory where results will be saved ( must exist )
units = 0; 0 -> metric units, 1 -> English units

[replay]
save = 0; 0 or 1, If set to 1 it will automatically save the full replay at the end of the race
directory = C:\programm files\Kart Racing Pro\Replayson; the directory where replays will be saved ( must exist )

[event]
track =  Dijon; track ID ( for ex. rye )
category = KC1 ; kart category allowed. Empty -> Open; KC1, KC3, KS1

[weather]
realistic = 0; 0 or 1, if set to 1, following params are ignored
conditions = 0 ; 0 -> sunny, 1 -> cloudy, 2 -> rainy
temperature = 38 ; air temperature, celsius
wind_direction = 0 ; 0 -> north, 1 -> north-east, 2 -> east, ..., 7 -> north-west
wind_speed = 0  ; meters/second

[hardcore]
force_cockpit = 0; 0 or 1
no_aids = 0; 0 or 1

[race]
quick_race = 0 ; 0 or 1, if set to 1, practice, sighting lap and warmup lap are skipped
practice_length = 60 ; minutes
qualify_length = 60 ; minutes
sighting_lap = 0; 0 or 1
warmup_lap = 0; 0 or 1
race_length = 30 ; % of full length

« Last Edit: March 02, 2011, 06:42:36 PM by Schwoni »

VELOCIPEDE

  • Sr. Member
  • ****
  • Posts: 279
    • View Profile
Re: Dedicated server
« Reply #13 on: March 13, 2011, 12:24:27 PM »
when i open the Drivingitalia.net dedicated server i have the rolling start, but i don't want the rolling, i want the normal standing start! Help me please.
This is my config for the dedicated:

Code: [Select]
[connection]
name = DrivingItalia.NET
maxclient = 25
password =
admin_password =
bandwidth = 2 ; 0 -> low, 1 -> medium, 2 -> high
MOTD = DrivingItalia.NET www.drivingitalia.net ; message of the day

[export]
results = 0 ; 0 or 1, If set to 1 it will automatically save the full replay at the end of the race
directory = ; the directory where results will be saved ( must exist )
units = 0 ; 0 -> metric units, 1 -> English units

[replay]
save = 0 ; 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]
track = lonato ; track ID ( for ex. rye )
category = KC1 ; kart category allowed. Empty -> Open; KC1, KC3, KS1

[rating]
class = ; A -> 2000+, B -> 1600-1999; C -> 1200-1599; D -> 800-1199

[weather]
realistic = 0 ; 0 or 1, if set to 1, following params are ignored
conditions = 0 ; 0 -> sunny, 1 -> cloudy, 2 -> rainy
temperature = 20 ; air temperature, celsius
wind_direction = 0 ; 0 -> north, 1 -> north-east, 2 -> east, ..., 7 -> north-west
wind_speed = 0 ; meters/second

[hardcore]
force_cockpit = 0 ; 0 or 1
no_aids = 0 ; 0 or 1

[race]
quick_race = 1 ; 0 or 1, if set to 1, practice, sighting lap and warmup lap are skipped
practice_length = ; minutes
qualify_length = 15 ; minutes
sighting_lap = 0 ; 0 or 1
warmup_lap = 0 ; 0 or 1
race_length = 15 ; % of full length
restart_delay = 15 ; server restart time in seconds

Aritz

  • Hero Member
  • *****
  • Posts: 1308
    • View Profile
Re: Dedicated server
« Reply #14 on: March 13, 2011, 01:25:26 PM »
I want the same, at least for the KS1 races ;)

By the way, where are the new asphalt grip options?