• Welcome to Kart Racing Pro Official Forum. Please login or sign up.
 
November 17, 2019, 04:10:38 pm

News:

Kart Racing Pro release9b available! :)


Dedicated server

Started by PiBoSo, June 19, 2010, 11:38:45 pm

Previous topic - Next topic

PiBoSo

June 19, 2010, 11:38:45 pm Last Edit: September 07, 2019, 11:54:32 pm by PiBoSo
To start a dedicated server, launch kart.exe with the following params:
kart.exe -dedicated (port number) [-set params (config_file)]
for example:
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:
[connection]
name =
maxclient =
password =
admin_password =
bandwidth = ; 0 -> very low, 1 -> low, 2 -> medium, 3 -> high, 4 -> very 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
no_tucking = ; 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, 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 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 =

[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

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

It is possible to 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 use 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 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.

GSR03

How do you launch it with different params?

OS-Chris

Quote from: GSR03 on December 07, 2010, 05:19:24 am
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

One question, I create a server.ini?
When I create the i.e. KartRacingPro-DedicatedServer where I put the parameters?

Tomy

December 09, 2010, 10:39:21 pm #4 Last Edit: December 10, 2010, 03:17:10 pm by Tomy
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?

PiBoSo

Quote from: Tomy on December 09, 2010, 10: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.

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:

practice_length = 30
qualify_length = 20
race_length = 20


Tomy

December 10, 2010, 01:41:10 am #6 Last Edit: December 10, 2010, 03:07:14 pm by Tomy
Now it works on another machine (dedicated server PC) with this settings in dedicated.ini file:

[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!  ;)

Tomy

December 11, 2010, 09:25:57 pm #7 Last Edit: December 11, 2010, 09:38:00 pm by Tomy
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?  :-\




VELOCIPEDE

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

Quote from: VELOCIPEDE on December 13, 2010, 11:44:41 pm
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

Quote from: VELOCIPEDE on December 13, 2010, 11:44:41 pm
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:

[race]
quick_race = 1
practice_length = 10
qualify_length = 10
sighting_lap = 0
warmup_lap = 0
race_length = 15


VELOCIPEDE


Schwoni

March 02, 2011, 05:18:17 pm #12 Last Edit: March 02, 2011, 07:42:36 pm by Schwoni
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


VELOCIPEDE

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:

[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

I want the same, at least for the KS1 races ;)

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