• Welcome, Guest. Please login.
 
November 24, 2024, 04:28:08 PM

News:

Kart Racing Pro release13e 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: June 09, 2021, 12:24:34 AM 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", "xml" or "both". 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
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 karts 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 ( 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
allowed_karts = ; list of ID of allowed karts, separated by a slash. For example: t_kf1/ms_kf1

[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
fixed_setup_file = ; the name ( without the extension ) of the fixed setup file. It must exist for all allowed karts, otherwise the default setup is used
fixed_setup_dir = ; the directory where to load the fixed setups. For example: C:\Users\"your user name"\Documents\PiBoSo\Kart Racing Pro\profiles\"your profile"\setups
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
warmup_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. 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, 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 or 2 to enable live timing. If set to 1, data is sent through UDP packets ( more info: http://forum.kartracing-pro.com/index.php?topic=2134.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 kartss are written, 2 -> contacts with walls are written, too ( only used with "enable = 2" )

[remote_admin]
enable = ; 1 to enable remote admin ( more info: http://forum.kartracing-pro.com/index.php?topic=7736.0 )
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

[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 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]
steamid = ........
The GUID can be read in the "Profiles" page.
Optionally, it is possible to replace "guid" with "steamid", to use the Steam ID number instead.
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 kart.
Also, it is possible to set a custom string, up to 18 character long, that is added to the XML results export.
[entry0]
guid = ........
race_number = ...
name = ...
name_prefix = ...
kart_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: http://forum.kartracing-pro.com/index.php?topic=7939.msg52700#msg52700
It is also possible to send commands: http://forum.kartracing-pro.com/index.php?topic=7939.msg52703#msg52703
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: http://forum.kartracing-pro.com/index.php?topic=7736.0


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?