PDA

View Full Version : Dedicated Server HowTo (Work in Progress)



Pages : [1] 2 3

apophis
08-05-2015, 17:13
Project Cars Dedicated Server Howto (The Howto is WIP)

About the DS:

The Project Cars Dedicated Server is not a standalone server where you select car and track directly in the dedicated server configuration.
It is a rebroadcaster, collecting information from each player and sends the information to the other players.
This reduces network load of each client drastically and helps reducing lags and adds stability.

The server is working but more features will be added.


Requirements:

Most important is a good internet connection with a low latency (ping) and a high bandwidth, especially a high upload speed.

Minimum Network upload bandwidth you need depending on player count, but mind that the latency can drastically rise, if you are at the limit of your connection:



Players

Download (MBit/s)
Upload (MBit/s)
Comment


10
0.3
1



16
0.5
3



24
0.8
7



32
1
12



48
1.5
25
not supported by the game at the moment


64
2
45
not supported by the game at the moment




On the hardware side (CPU, RAM) the requirements are not very high at the moment.



Install and Update DS:

AppId: 332670

You can download "Project CARS - Dedicated Server" from Steam in the Library-Tools category, or via SteamCMD. Infos about SteamCMD here (http://https://developer.valvesoftware.com/wiki/SteamCMD).

Steam Library tools:
After installation the DS should be in this folder:
{yourSteamLibraryfolder}\steamapps\common\Project CARS Dedicated Server

Steamcmd (Linux):
Switch to the steamcmd directory and run (maybe change "./pcars_ds" to the directory of your liking):
./steamcmd.sh +login anonymous +force_install_dir ./pcars_ds +app_update 332670 validate +exit

Steamcmd (Windows): TODO



Configuration:

Switch to your DS installation directory and copy the server.cfg from config_sample folder to the DS installation directory.
optional: With blacklist and whitelist: copy the blacklist.cfg whitelist.cfg to your DS installation directory. Also copy the server_with_lists.cfg and rename it to server.cfg.

Also, the server can now run from different config file than server.cfg in the current folder.
Use -c (or --conf or --config) command-line option to tell it a non-default location of the config file.
The server provides cmdline help automatically if you run it with -h (or --help). There are no other command-line options available yet.

To quickly run/test a server you only have to change the name.
The password you can set will be needed to create and to join the dedicated server. You can't change this password when hosting the session ingame (it will be ignored).
You should also set the maximum player count to a number your internet connection supports. See 'Requirements'.

The ports selected in the configuration file must be accessable from the internet.
Configure your firewalls or routers if needed.

Settings of config file (server.cfg):


Setting
Description

values

default values
comment


loglevel
logging level of the server. Messages of this severity and more important will be logged.
debug/info/warning/error
"info"



eventsLogSize
number of gameplay events stored on the server. Oldest ones will be discarded once the game logs more.
Number
10000



name
the server's name, this will appear in server browser (when implemented) and will be also the default name of sessions hosted on the server.
Text
"Unconfigured local testing server"



secure
authenticate users with Steam to check VAC ban when set to true.
true/false
true



password
password required to create sessions on the server as well as to join the sessions. The password set in Create options (ingame) is ignored on DS.
Text
""



maxPlayerCount
maximum player count that can connect to this server at the same time.
Number
64



bindIP
IP address of network interface, where the server's sockets should be bound. Leave empty for 'all interfaces'.
Text (IP address)
""



steamPort
Port used to communicate with Steam and game, they must all be accessible on the public IP of the server.
Number
8766



hostPort
Port used to communicate with Steam and game, they must all be accessible on the public IP of the server.
Number
27015



queryPort
Port used to communicate with Steam and game, they must all be accessible on the public IP of the server.
Number
27016



sleepWaiting
delay between ticks in milliseconds, when in idle mode (no one joined)
Number
250



sleepActive
delay between ticks in milliseconds, when active (players on server)
Number
10
lower values could reduce latency, but will increase CPU load



HTTP API





enableHttpApi
enable/disable HTTP API
true/false
false
warning: not secured, so don't make this accessable to the public


httpApiLogLevel
logLevel http-access. Note that all logging still goes through the main filter (loglevel), so you won't be able to use more verbose logging here than the main level
debug/info/warning/error
"warning"



httpApiInterface
IP address of network interface,where to bind the local http server providing the API and web-based controls
Text (IP address)
"127.0.0.1"
default: only localhost
"0.0.0.0": any interface


httpApiPort
port where the local http server listens
Number
9000




game setup control options





allowEmptyJoin
set to true to make this server show up in the browser even if it's empty
true/false
true



controlGameSetup
set to true to enable API that allows the server to control the game's setup. The host will not be able to control the setup if this is set.
true/false
false




sessionAttributes (work in progress)






ServerControlsTrack






ServerControlsVehicle






GridSize

1-32
32



MaxPlayers






Practice1Length





Practice2Length

























































Running the DS:

The DS only has a commandline version until now and cannot run directly from steam.

Linux:
Switch to your DS installation directory and run:
./DedicatedServerCmd

Windows:
Switch to your DS installation directory and start DedicatedServerCmd.exe



Using DS:

The dedicated server will not automatically be shown in the Multiplayer browser list.
To use the DS you have to host a Multiplayer session ingame the same way how you would host a session without DS.

To select a server, the session host has to add a command line argument (or Launch option) to Project Cars in Steam. Howto add command line option to steam games: https://steamcommunity.com/sharedfiles/filedetails/?id=116794507
Possible commandline options
Searching for dedicated server by name: -searchds "Servername" (or a part of the name)
Searching for a free dedicated server: -autods

Example:
Your servername is: "My super DS #1"
Launch option: -searchds "My super DS #1" or -searchds "My super DS"

Other players can join the game like in a normal multiplayer session.
They don't need to add the command line argument.



HTTP API:

You can inform yourself here: http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API
(I had no time to read it until now :))

Troubleshooting:


Additional Tools: (from community)

Windows DS Configuration GUI: http://forum.projectcarsgame.com/showthread.php?29870-Project-Cars-Dedicated-Server-Configuration-0-1
Windows DS GUI Launcher, with “live timing“ (results, timetable): http://forum.projectcarsgame.com/showthread.php?31634-Project-Cars-Dedicated-Server-GUI-Launcher-with-%93live-timing%93-%28results-timetable%29
(http://forum.projectcarsgame.com/showthread.php?31634-Project-Cars-Dedicated-Server-GUI-Launcher-with-%93live-timing%93-%28results-timetable%29&p=995667&viewfull=1#post995667)Windows DS Configurator GUI (incl. patch 3.0): http://forum.projectcarsgame.com/showthread.php?38221-Standalone-GUI-Dedicated-Server-Config-Generator-V0-51-Patch-3-0


If you created a tool related to the DS, please contact me and I will add it here :)



FAQ:

Why can't I configure cars and tracklist in the dedicated server?
- The Project Cars DS works as rebroadcaster only at the moment. He collects information from each driver and sends it to all other drivers. Someone must host a session ingame, descriped in 'Using DS'.

Is the DS working and finished?
- The DS is working and ready to use. Additional features will be added.

I have selected 64 players, but I can only host sessions with max 32 players!?
- The dedicated server supports up to 64 players, but the game itself only supports 32 players in Multiplayer at the moment.

I started my DS, but it is not shown in the DS browser (steam)!?
- It can take some minutes after starting the ts, until your server will be shown in the DS browser.

If I want to set-up a dedicated server, shall I own the game? Or the dedicated server app is free?
- You do not need to own the game. But you need the game to play on it ;)

Feel free to add ideas, correct me and find typos :D

Elmo
08-05-2015, 17:14
Ace apo! Sticked.

hawkenfox
08-05-2015, 17:51
Lol what is this , should the application user do this to create online server. Should not this stuff be intergrated already
in game?

Krobo
08-05-2015, 17:53
Thanks guys ! ;-)

so if I'm reading this right , for now we don't have a working DS ?

the TO DO is explanation enough ?

or can I download the DS from steam and its working now ?

will the DS have (or please make sure it has) some kind of export results file for leagues and such !

Thanks guys so far im loving the sim ! still tweeking for my G27 Im able to use some of the suggestion's here to get the feel im looking for ! thers lots of tweeks inside PC's FFB sections so will take some time !

Thanks ;-)

apophis
08-05-2015, 17:54
Lol what is this , should the application user do this to create online server. Should not this stuff be intergrated already
in game?

You normally install the dedicated server on a machine with a very good internet connection where you don't have the game running (like in many other games...)



Thanks guys ! ;-)

so if I'm reading this right , for now we don't have a working DS ?

the TO DO is explanation enough ?

or can I download the DS from steam and its working now ?

The DS is working.
The TODO only means that I have to finish my howto ;)

Elmo
08-05-2015, 17:55
Lol what is this , should the application user do this to create online server. Should not this stuff be intergrated already
in game?

You don't need to use it, you can happily create sessions just from in the game.

Dedicated Servers are very common for Top Class Multiplayer Games to give people full control about the server settings and performance.

Elmo
08-05-2015, 17:56
so if I'm reading this right , for now we don't have a working DS ?


It is working already. There are still features to be added in the future though.

BMWorld_BR
08-05-2015, 18:40
where i found this (Settings: (copied from example config)), to config my dedicated server?

Krobo
08-05-2015, 18:53
The DS is working.
The TODO only means that I have to finish my howto ;)

Ahhh ok !

Thanks for the quick reply ..so I will wait for the rest of the instructions ;-)

or can I fire it up as is ?

I need to open ports and show it the way like any other DS ?

Im downloading it now ..

apophis
08-05-2015, 19:25
where i found this (Settings: (copied from example config)), to config my dedicated server?

After you download the dedicated server, go to the installation directory of the dedicated server and look in the folder sample_config.

MisterO
08-05-2015, 19:28
If it helps a bit more, installation directory is
{yourSteamLibraryfolder}\steamapps\common\Project CARS Dedicated Server

Gimpymoo
08-05-2015, 19:52
When will pCARS be showing in the Steam server browser as below:

http://i.imgur.com/rMazaWJ.png

Thanks.

apophis
08-05-2015, 20:04
When will pCARS be showing in the Steam server browser as below:

Thanks.

It can take some minutes after starting, until your server will be shown in the DS browser.
Possible you have to your IP manually to your favorites

Adam Jonas
08-05-2015, 20:18
Hi!

I have a question about dedicated servers. If I want to set-up a dedicated server, shall I own the game? Or the dedicated server app is free? Because I can't find at the Library/Tools.

apophis
08-05-2015, 20:23
Hi!

I have a question about dedicated servers. If I want to set-up a dedicated server, shall I own the game? Or the dedicated server app is free? Because I can't find at the Library/Tools.

You don't need to own the game to setup the dedicated server. You should find it in the in the list under 'Tools' or by following this link (enter it in your browser): steam://rungameid/332670

Adam Jonas
08-05-2015, 20:36
You don't need to own the game to setup the dedicated server. You should find it in the in the list under 'Tools' or by following this link (enter it in your browser): steam://rungameid/332670

Thank you very much, it works! :)

MatthiasB
09-05-2015, 07:14
Ok, i set up a DS on my rootserver, and the server appears in the list
http://cars-stats-steam.wmdportal.com/index.php/servers

Then i tried to create a session on my local PC. I add the startoption -searchds SIMRACERS...
When i hit create i got the message "search DS named SIMRACERS..." and after some seconds the exception:
"no suitable dedicated server has been found"
I have opened firewall for the dedicated server on my rootserver and the host and query port.

Many others have the same problem.

So how we can fix this?

Red_X
09-05-2015, 07:14
sleepWaiting, sleepActive: delay between ticks in milliseconds, when not hosting and when hosting a game, respectively.


First i have to say nice HowTo apo!

Maybe it could be helpful, if you complete each setting with the default and if it makes sense your suggested value. (Like a best practice guide :D)

Pinna
09-05-2015, 07:21
Ok, i set up a DS on my rootserver, and the server appears in the list
http://cars-stats-steam.wmdportal.com/index.php/servers

Then i tried to create a session on my local PC. I add the startoption -searchds SIMRACERS...
When i hit create i got the message "search DS named SIMRACERS..." and after some seconds the exception:
"no suitable dedicated server has been found"
I have opened firewall for the dedicated server on my rootserver and the host and query port.

Many others have the same problem.

So how we can fix this?

Try to put the SIMRACERS... like this
-searchds "SIMRACERS.."

MatthiasB
09-05-2015, 07:24
tried already, unfortunately same behaviour.

Pinna
09-05-2015, 07:33
Do you have black-/whitelist disabled in your config? :)

MatthiasB
09-05-2015, 07:39
I used the sample_config server.cfg
So actual there are no parameters for black or whitlist included.

Have i to disable the lists? How can i do this?

Pinna
09-05-2015, 07:46
"//" : "--- Black list ---"
"//" : "Anyone in this list will not be allowed into the server."
"//" : "You can use array or map/object. If object, the keys are ignored, but you can used the strings as comments with name or reason for being in the list."
"//" : "Also instead of listing the ids directly in the config you can list the file names to load those lists from, and combine the two in any order."


blackList : [ "blacklist.cfg" ]


"//" : "--- White list ---"
"//" : "If this is not empty only whitelisted members will be allowed into the server."
"//" : "Usually you don't want to have this set at all and use passwords instead, but if you prefer to control server access by whitelisting instead, keep this in and enter the right IDs."
"//" : "Using the whitelist effectively deactivates the blacklist, as anyone whitelisted will be allowed regardless of the blacklist's contents."
"//" : "You can use array or map/object. If object, the keys are ignored, but you can used the strings as comments with name or reason for being in the list."


whiteList : { 'Whitelist' : "whitelist.cfg", "Stouie" : 76561197994111033 }

You can comment out or delete this part :)

apophis
09-05-2015, 08:21
I used the sample_config server.cfg
So actual there are no parameters for black or whitlist included.

Have i to disable the lists? How can i do this?

Yes. In the sample server.cfg black and whitelists are disabled by default.
Can you post the server output?



First i have to say nice HowTo apo!

Maybe it could be helpful, if you complete each setting with the default and if it makes sense your suggested value. (Like a best practice guide :D)

On it's way :D

MatthiasB
09-05-2015, 09:05
Ok, it seems i get it working.

I added a blacklist with a random number, but i think that was not the problem.

The main problem should be starting the dedicated server over steam.
So i started DedicatedServerCmd.exe directly in the explorer.

And voila, i can create a session.

Thanks you guys for your help.

apophis
09-05-2015, 09:36
Ok, it seems i get it working.

I added a blacklist with a random number, but i think that was not the problem.

The main problem should be starting the dedicated server over steam.
So i started DedicatedServerCmd.exe directly in the explorer.

And voila, i can create a session.

Thanks you guys for your help.

Yes. starting directly via steam does not work atm. Should be in my howto, but I will see to make it more visible :)
But interesting that your server was in the serverlist.

Script
09-05-2015, 17:52
Hi Guys like you can keep a session open 24/7 without being present all the time?
Whenever all users leave the server becomes idle.

apophis
09-05-2015, 23:11
Hi Guys like you can keep a session open 24/7 without being present all the time?
Whenever all users leave the server becomes idle.

Like I wrote. At the moment the dedicated server is not a standalone server. So someone has to create a lobby.
It is not possible at the moment that the session stays open if nobody is connected.

This feature will come later, the dedicated server is still in work (but the DS is working great with the features it has now :))

philmcphil
10-05-2015, 14:30
Hi everyone,

sorry for my bad english......I try to unserstand how to set a DS .....But few mistake iīve done for sure .Can someone tell me what i put wrong in the file below:

name : "ACSGT TEST"
secure : true
password : "123456" ok
maxPlayerCount : 64 ok
bindIP : "" Is that the IP adress of our server???
steamPort : 8766 TCP or UDP
hostPort : 27015 TCP or UDP ?
queryPort : 27016 TCP or UDP?
sleepWaiting : 250
sleepActive : 10


Here iīm lost. What is that for? And what should i do with this parameters?
enableHttpApi : false ?
httpApiLogLevel : "warning" ?
httpApiInterface : "127.0.0.1" ?
httpApiPort : 9000 I suppose i need to open it in UDP and TCP?

In advance thanks for the support ;)

apophis
10-05-2015, 18:37
Hi everyone,

sorry for my bad english......I try to unserstand how to set a DS .....But few mistake iīve done for sure .Can someone tell me what i put wrong in the file below:

name : "ACSGT TEST"
secure : true
password : "123456" ok
maxPlayerCount : 64 ok
bindIP : "" Is that the IP adress of our server???
steamPort : 8766 TCP or UDP
hostPort : 27015 TCP or UDP ?
queryPort : 27016 TCP or UDP?
sleepWaiting : 250
sleepActive : 10


Here iīm lost. What is that for? And what should i do with this parameters?
enableHttpApi : false ?
httpApiLogLevel : "warning" ?
httpApiInterface : "127.0.0.1" ?
httpApiPort : 9000 I suppose i need to open it in UDP and TCP?

In advance thanks for the support ;)

The bind-IP is the IP of one network interface of your server. if you leave it empty all network interfaces will be used. You can leave it as it is or enter your server IP

The ports should all be TCP. (but I need to check this again)

YOu don't need the HTTP api, so you can ignore the last 4 settings.
With the HTTP api you can read information from server (connected people, position of them, logs ...) and send things to the server (kick, ban people ...).
Will write something about that the next days ;).

philmcphil
10-05-2015, 18:54
The bind-IP is the IP of one network interface of your server. if you leave it empty all network interfaces will be used. You can leave it as it is or enter your server IP

The ports should all be TCP. (but I need to check this again)

YOu don't need the HTTP api, so you can ignore the last 4 settings.
With the HTTP api you can read information from server (connected people, position of them, logs ...) and send things to the server (kick, ban people ...).
Will write something about that the next days ;).

Thank you so much ;)

So it look quite simple to do ...In the server folder you donīt need any files from tracks or cars ? (anti cheating )

apophis
10-05-2015, 19:28
Thank you so much ;)

So it look quite simple to do ...In the server folder you donīt need any files from tracks or cars ? (anti cheating )

No, only the server.cfg. What do you mean with anti-cheating?

philmcphil
10-05-2015, 20:04
I donīt know how works PCARS regarding "DRIVERS" joining a DS ...But on other games a driver can modify the physic file of the car and can not join a server ...A mismatch message appears on his screen , same for the tracks.....

Stepan Vondrak
11-05-2015, 13:14
The DS does not do any verification on the game data yet, indeed.

When you download the DS it has a work-in-progress user documentation included. It's not super up to date, but it has the basics covered (nothing about the API and such yet). Attaching it here as well for visibility.
201522

Gianluca Belardinelli
11-05-2015, 13:57
Post deleted

Gimpymoo
11-05-2015, 21:12
Can one comment on the Steam IDs in the whitelist.cfg?

Gadfly13
12-05-2015, 12:16
Hi

I could run ds few days ago (worked), but today I get message in cmd window:
Unable to read VR Path Registry form c:\user\....\AppData\Local\openvr\openvrpaths.vrpath

What is the problem?

Thanks for your answer!

Zona-Gamer
12-05-2015, 17:21
Hello everyone an apology first for my English.


We followed the guide to create dedicated servers Project Cars.

Download the game THROUGH steamcmd your apiid
configure the main parameters of the server.cfg file

logLevel: "info"
eventsLogSize: 10000
name: "xxxxxxxxxxNombre Servidorxxxxxxxxxx"
secure: true
password: ""
maxPlayerCount: 32
bindIP "My direcion public IP of my machine"
steamPort: 8766
hostPort: 27015
QueryPort: 27016
sleepWaiting: 250
sleepActive 10

and after that I created my own setup for tcadmin panel and created the server and run the .exe file through panel dedicated tcadmin

and I found that my server appears in the list of

http://cars-stats-steam.wmdportal.com/index.php/servers


but in the list of online servers own game does not appear, I wonder if someone got this already and as such could run on a dedicated server


is dedicated my windows system, and I see even windows command line does not have to if you use your own server.cfg file

Thank you.

IBM
12-05-2015, 18:12
Title : Some questions of the pCARS Dedicated Server Settings & Execution.

Hello.
I have some questions, as shown below in connection with pCARS Dedicated Sever.

<Figure. 1>
201864

<Figure. 2>
201865

<Figure. 3>
201866

<Figure. 4>
201867

<Figure. 5>
201868

<Figure. 6>
201869

<Figure. 7>
201870

<Figure. 8>
201871

kevinnn
12-05-2015, 18:18
Hello everyone an apology first for my English.


We followed the guide to create dedicated servers Project Cars.

but in the list of online servers own game does not appear, I wonder if someone got this already and as such could run on a dedicated server


is dedicated my windows system, and I see even windows command line does not have to if you use your own server.cfg file

Thank you.

Answer is in the first post and the pdf manual, the DS currently cannot create lobby's, you have to connect with the game to create one on the DS.


Using DS:
The dedicated server will not automatically be shown in the Multiplayer browser list.
To use the DS you have to host a Multiplayer session ingame the same way how you would host a session without DS.

To select a server, the session host has to add a command line argument (or Launch option) to Project Cars in Steam. Howto add command line option to steam games: https://steamcommunity.com/sharedfil.../?id=116794507
Possible commandline options
Searching for dedicated server by name: -searchds "Servername" (or a part of the name)
Searching for a free dedicated server: -autods

Example:
Your servername is: "My super DS #1"
Launch option: -searchds "My super DS #1" or -searchds "My super DS"

Other players can join the game like in a normal multiplayer session.
They don't need to add the command line argument.

Yetteh
12-05-2015, 18:56
On Ubuntu 14 when running the ./DedicatedServerCmd I get the following error:

"

[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
dlopen failed trying to load:
steamclient.so
with error:
steamclient.so: cannot open shared object file: No such file or directory
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
[2015-05-12 14:54:56] ERROR: SteamGameServer_Init failed
[2015-05-12 14:54:56] ERROR: Dedicated Server startup failed
"

Any ideas? :S

kevinnn
12-05-2015, 19:06
copy the *.so files from steamcmd/linux32 to steamcmd/pcars/lib32 and retry

Yetteh
12-05-2015, 19:16
copy the *.so files from steamcmd/linux32 to steamcmd/pcars/lib32 and retry



- protocol version: 116 (1.0.1.16)
- server name: Unconfigured local testing server
- max session size: 64
- details: secure, bind IP INADDR_ANY, Steam port 8766, host port 27015, query port 27016, password protected no
- whitelist size: 0
- blacklist size: 0

[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Setting breakpad minidump AppID = 234630
[2015-05-12 15:14:43] INFO: HttpApi disabled
[2015-05-12 15:14:43] INFO: Dedicated server is starting...
[2015-05-12 15:14:44] INFO: Connection to Steam established
[2015-05-12 15:14:44] INFO: Received public IP 185.38.151.35
[2015-05-12 15:14:45] INFO: Server logged in with Steam id 90095506272544776 ; server is secure
[2015-05-12 15:14:45] INFO: Server startup finished: AppId 234630, public IP 185.38.151.35, Steam id 90095506272544776 ; switching to running state



Guess this means its working now? :D

Yetteh
12-05-2015, 19:24
Hmm getting a problem when using the autods, "No suitable server found" any ideas? Using the default config

Yetteh
12-05-2015, 19:25
Oh its working now how odd! :S

Zona-Gamer
12-05-2015, 19:35
Good and seen in the list of servers in the game itself multiple servers of the same company, then as they do multiple servers?

surtic86
15-05-2015, 19:23
You can easy host more then one pCars Dedicated Server on a Root Server :) i have also set up 4 Server for me and Friends. Normaly i would set up 1 but the "Issue" about that also other Players can Host Sessions on my Servers i had set up more then One that i have always one Server for me to play.

The Performance from the pCars Dedicated Servers are really good :) so it is easy to host more Servers on one when you have enough Upload Speed.

dottorfoggy
15-05-2015, 20:31
why, my friends cant join my dedicated server?
is run on a separate pc, it work for me, whit the command -searchds "name of the server", but if my friends want to join and remote host, they cant, can someone explain why? :/

MatthiasB
15-05-2015, 20:46
@surtic: can you please describe how you host more than one DS?

Zona-Gamer
15-05-2015, 22:25
hello friends, we've discovered as having more than one server project cars today.

It is obvious we use as a company dedicated high-end for it in a PC in your home will be equal but should have a good internet connection assume.


We use panel Gaming Tcadmin, and is very simple and easy project servers now have cars.

regards

Alan_Bernardo
16-05-2015, 03:32
Hello!

When I start Project Cars with the -searchds "<servername>" in the command line the game simply starts up normally.

Does this search thing work and if it does what should I see when it does and the game starts?


Alan

knotme
16-05-2015, 04:51
wow what a mess

Ferrari312
16-05-2015, 06:59
Hello!

When I start Project Cars with the -searchds "<servername>" in the command line the game simply starts up normally.

Does this search thing work and if it does what should I see when it does and the game starts?


Alan

If you entered it in correctly, you only notice it when you're in multiplayer and go to "create" a game. Without it, you would start a peer-to-peer server. With the directive in there, a popup will come up indicate that it is searching for the dedicated server. I have gotten it to work.

Alan_Bernardo
16-05-2015, 12:51
Ferrari312,

Thanks for the information. I didn't see anything in the docs indicating you actually had to go to "create" before you were able to do anything.

BTW, the site to view Servers-- at least the one I have-- is http://cars-stats-steam.wmdportal.com/index.php/servers

I get an error when trying to view servers on this site. The thing worked before but now it doesn't. Is there a different address I should be using?


Thanks!

Alan

Ferrari312
16-05-2015, 18:26
Ferrari312,

Thanks for the information. I didn't see anything in the docs indicating you actually had to go to "create" before you were able to do anything.

BTW, the site to view Servers-- at least the one I have-- is http://cars-stats-steam.wmdportal.com/index.php/servers

I get an error when trying to view servers on this site. The thing worked before but now it doesn't. Is there a different address I should be using?


Thanks!

Alan

Yeah it's not the most intuitive thing ever. I read somewhere that they are going to keep adding more functionality there server-wise.

That site link is the same one I have and it was working a few days ago but now I'm getting the error you are seeing.

Povo
16-05-2015, 21:47
Thanks a lot for this guide. I've set it up and it seems to be running. I will test it tomorrow ;)

flyoffacliff
17-05-2015, 03:15
The server browser is broken: http://cars-stats-steam.wmdportal.com/index.php/servers

When will it be fixed?

wheeler
17-05-2015, 13:13
I am new to this server setup, but is it possible to setup the server with multiple classes and multiple cars within each class (simulating WEC style scenarios)?

uxmax
17-05-2015, 17:11
We can't get to work the AI. They are not joining any session, regardless of settings. Any idea ?

bmaytum
17-05-2015, 17:29
Project CARS Dedicated Server is NOT (currently) listed for download in graphical linux Steam client under Library > Tools. There are 73 Tool items listed from linux Steam client.

However, Project CARS Dedicated Server IS listed for download in Windows Steam client under Library > Tools. There are 90 Tool items listed from Windows Steam client.

Should Project CARS Ded Server be listed under Library > Tools in linux graphical Steam client?
If not, will the pCARS Ded Server listed for Windows be installable & usable on linux OS?

MatthiasB
17-05-2015, 17:52
Did you try to install using this pdf?

Download and update DS via SteamCMD


http://zebra465.server4you.de/contents/UserGuide.pdf

Gimpymoo
18-05-2015, 12:42
When will http://cars-stats-steam.wmdportal.com/index.php/servers be working?

The silence is madness.

Snipeuout
19-05-2015, 06:35
Really excited about this!

I would love to have a stand alone Pcars server. It would be amazing if it could cycle races that are predetermined with a list and have a config file for other perameters. Then when an admins hops on they could control it and voting would be great when the admin isn't online. This will lend itself to a community like you see in other dedicated servers.

I'm going to volunteer my rig for the development of this.

Rig: Duel Xeons, 24gb ecc mem, raid 1 SAS drives and in a server farm in Dallas. Legit gaming server.

Stepan Vondrak
19-05-2015, 13:39
The server lists at http://cars-stats-steam.wmdportal.com/index.php/servers should now be working again, PHP's json encoder exploded on the utf-8 encoded json returned by Valve's servers. Don't ask me why, PHP is just weird like that, the encoding was fine. A bit of hacking made it like it again.

Stepan Vondrak
19-05-2015, 14:35
I see that the first post contains no information about the HTTP API, so I'll try to write down some user-friendly basics about it. This will be contained in a new thread that I will try to keep up to date with the server's feature list. I will however most likely not spend too much time discussing the details or any other game features in that thread, as the only coder on the DS (and many other parts of this and other games) I just unfortunately don't have enough time for that.

This is now posted here:
http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API&p=925927

Stepan Vondrak
19-05-2015, 14:39
Also, the server can now run from different config file than server.cfg in the current folder, use -c (or --conf or --config) command-line option to tell it a non-default location of the config file. The server provides cmdline help automatically if you run it with -h (or --help). There are no other command-line options available yet.

Apophis, could you update that in the first post please? Thanks!

apophis
20-05-2015, 20:01
I see that the first post contains no information about the HTTP API, so I'll try to write down some user-friendly basics about it. This will be contained in a new thread that I will try to keep up to date with the server's feature list. I will however most likely not spend too much time discussing the details or any other game features in that thread, as the only coder on the DS (and many other parts of this and other games) I just unfortunately don't have enough time for that.

This is now posted here:
http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API&p=925927

Added the link to first post.
Thanks for writing that. :) Had not much time to get completly into the API yet.


Also, the server can now run from different config file than server.cfg in the current folder, use -c (or --conf or --config) command-line option to tell it a non-default location of the config file. The server provides cmdline help automatically if you run it with -h (or --help). There are no other command-line options available yet.

Apophis, could you update that in the first post please? Thanks!

Done

Stepan Vondrak
21-05-2015, 11:32
New config option has been added: httpApiExtraHeaders. For now it just adds values from the map to each HTTP header returned by any API call. In the future I might implement conditions to add the headers based on API calls, Origin, source IP or something else.

Robert Gerke
21-05-2015, 11:52
Stepan,

Are there currently any the possibility of displaying and save the results at the end of the race and qualifying?

Stepan Vondrak
21-05-2015, 12:59
Stepan,

Are there currently any the possibility of displaying and save the results at the end of the race and qualifying?

If you hook into the API then yes, it's all already in the events log. Run the server and check /api/list/events for the full event list. The "Results" event is what you are after in this case, you also get per-sector and per-lap events, and overall SessionStage changes will let you monitor how the session advances from one round to another. Best way is to just run the server, play with one or two players on it and check /api/log/range?offset=-1000&count=1000 regularly to see how the events look in real race. Or just /status to check the event log formatted as a web page, at the bottom.

Robert Gerke
21-05-2015, 13:07
Ok, thanks. i will try it later.

I thought I had already tried yesterday. Unfortunately, there was nothing in the log files??

optimalspieler
22-05-2015, 20:51
steamPort
hostPort
queryPort


Regarding the ports: TCP or UDP?

dungeonseeker
23-05-2015, 11:43
All ports are TCP^

Working great for me, first time attempting it and no issues at all (once i worked out how to allow through my software firewall which is hardly pCars fault).

Can i ask about the BL & WL.

I assume the BL is blocked users so does that mean the WL is a list of users who can connect, as in only WL users can connect? What do the populate with, steam ids?

t0daY
23-05-2015, 14:18
Hey guys,

I have a crucial problem xDD

steam@vxxxxxxxxxx: ./DedicatedServerCmd
[2015-05-23 16:13:43] INFO: Starting up the Dedicated Server Library.
[2015-05-23 16:13:43] INFO: Server configuration loaded:
- protocol version: 116 (1.0.1.16)
- server name: Project Cars Gentleman Racers
- max session size: 24
- details: secure, bind IP INADDR_ANY, Steam port 8766, host port 27015, query port 27016, password protected no
- whitelist size: 0
- blacklist size: 0
- http api: disabled

[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
dlopen failed trying to load:
steamclient.so
with error:
steamclient.so: cannot open shared object file: No such file or directory
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
[2015-05-23 16:13:43] ERROR: SteamGameServer_Init failed
[2015-05-23 16:13:43] ERROR: Dedicated Server startup failed

Do I miss something or am I doin something crucially wrong? :D


*edit* found the fix some previous pages before, server is working now :)

steam@v22014052208618559:~/pcars_ds$ ./DedicatedServerCmd
[2015-05-23 16:50:12] INFO: Starting up the Dedicated Server Library.
[2015-05-23 16:50:12] INFO: Server configuration loaded:
- protocol version: 116 (1.0.1.16)
- server name: Project Cars Gentleman Racers
- max session size: 24
- details: secure, bind IP INADDR_ANY, Steam port 8766, host port 27015, query port 27016, password protected no
- whitelist size: 0
- blacklist size: 0
- http api: disabled

[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Setting breakpad minidump AppID = 234630
[2015-05-23 16:50:12] INFO: HttpApi disabled
[2015-05-23 16:50:12] INFO: Dedicated server is starting...
[2015-05-23 16:50:14] INFO: Connection to Steam established
[2015-05-23 16:50:14] INFO: Received public IP 5.45.105.194
[2015-05-23 16:50:14] INFO: Server logged in with Steam id 90095652623932421 ; server is secure
[2015-05-23 16:50:14] INFO: Server startup finished: AppId 234630, public IP 5.45.105.194, Steam id 90095652623932421 ; switching to running state

But here is my next problem. Can not join the server :/ "No suitable Dedicated Server has been found". Any ideas?

Gimpymoo
25-05-2015, 02:27
This needs to be implemented.

The game uses Steamworks API already so I do not see the problem in implementing it.

It would also mean that admins could "delegate" dedicated server administration without giving access to config files for the server as members could very easily be added/removed from the delegated Steam Groups and would make administration easier.

This is also easier than adding each member to the whitelist.cfg

https://partner.steamgames.com/documentation/api

Community - Clan Memberships function.

Gimpymoo
25-05-2015, 02:35
Can i ask about the BL & WL.

I assume the BL is blocked users so does that mean the WL is a list of users who can connect, as in only WL users can connect? What do the populate with, steam ids?

If the Whitelist is enabled, this overrides the Blaclist as you are saying "Ony these people" can connect by having the whitelist enabled.

Regarding the syntax of the Whitelist, I have quoted a post below from Stepan on the WMD forums:


Blacklists and whitelists both use the same format and are quite flexible. In general the config file is in JSON-like format, allowing some bit from being omitted - for example the commas are not mandatory.

In JSON terminology, object (map) is written like this:


{ key1 : value1, key2 : value2, ... }

and list is written like this:


[ value1, value2, ... ]


For whitelists/blaclists both can be used, but only the values matter. The values should be Steam IDs of the users to add to the list. Personally I'd recommend using the object format, and then write anything you want in the key strings - for example why the user was banned, the user's name, etc.

In addition to the above, the value can also be file names, which are then parsed recursively and their contents are added to the whitelist/blacklist. This can be useful if someone decided to maintain a global blacklist for anyone to use, and people would then just download this and reference it from their config.

So in most cases you would:

Delete the whitelist
Write blacklist in format like
{ "Stouie (banned because he is a lazy developer)" : 12345676, "Bruno (banned because he works for dirty SMS now)" : 2342522236 }


The bottom line is an example.

So, your whitelist would contain:


{ "Any gamers name" : steam community ID here, "Another gamers namer here" : 12345678967 }

If that makes sense?

To find a community ID from a name, I use:

http://www.steamid.co.uk/

Narf
27-05-2015, 15:11
Hey guys,

I've got my server up & running. And here's my first question: If I leave the created session, another player gets "admin", and if I join back in, I won't get it back. Means... the other player can do what he wants. Ehm, is there a way to fix/prevent this?

Oh, and it's never shown up in the dedicated server list? Don't get it why not... :/

Greetings fly out

apophis
28-05-2015, 10:33
Hey guys,

I've got my server up & running. And here's my first question: If I leave the created session, another player gets "admin", and if I join back in, I won't get it back. Means... the other player can do what he wants. Ehm, is there a way to fix/prevent this?

Oh, and it's never shown up in the dedicated server list? Don't get it why not... :/

Greetings fly out

At the moment the only thing you can do is to kick the people on the server via HTTP API or restarting the server.

dsarchy
28-05-2015, 18:44
I can see my server here: http://cars-stats-steam.wmdportal.com/index.php/servers (Cyberhut)

But I can't connect it to through the game+launch options, No dedicated server has been found.

MatthiasB
28-05-2015, 20:22
@dsarchy: you chould start your DS without steam.

Maybe you will not see your server in the list anymore, but you can create a session on it through the game.

dsarchy
29-05-2015, 10:31
If steam isn't running I get '[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.'

It's not logged in but should I not be running steam first in the background?

I have DS installed on a linux machine (downloaded through steamcmd) which has steam running in the bg (not logged in). I'm then using a windows machine with my game/account with the launch options to access the Server but no luck.

Any logs I can check? Any pointers are much appreciated.

Edit:

Had another attempt at trying to get my had round this but no luck so I'm giving up and leaving this here for anyone that may try. Booted up a new VPS (ubuntu 32bit no firewall). Installed Steamcmd fine and fetched the files using the guide in the post + https://developer.valvesoftware.com/wiki/SteamCMD

run ./DedicatedServerCmd

get the following:

[2015-05-29 15:03:33] INFO: Starting up the Dedicated Server Library.
[2015-05-29 15:03:33] WARNING: Failed to read data from file 'server.cfg'
[2015-05-29 15:03:33] WARNING: Failed to read server config, using the defaults
[2015-05-29 15:03:33] INFO: Server configuration loaded:
- protocol version: 116 (1.0.1.16)
- server name: Unconfigured local testing server
- max session size: 64
- details: secure, bind IP INADDR_ANY, Steam port 8766, host port 27015, query port 27016, password protected no
- whitelist size: 0
- blacklist size: 0
- http api: disabled

[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
dlopen failed trying to load:
steamclient.so
with error:
steamclient.so: cannot open shared object file: No such file or directory
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
[2015-05-29 15:03:33] ERROR: SteamGameServer_Init failed
[2015-05-29 15:03:33] ERROR: Dedicated Server startup failed

Followed this advice:
Unable to locate a running instance of Steam
You may get the following error when starting a server with Linux:
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
Resolve the issue by linking steamclient.so to the ~/.steam/sdk32/steamclient.so directory:
ln -s steamcmd/linux32/steamclient.so ~/.steam/sdk32/steamclient.so

got the following error:
Failed to create symbolic link ‘/home/steam/.steam/sdk32/steamclient.so’: No such file or directory

Copied the .so files from linux32 -> pcars. Server runs but cant be found.

20715,20716, 8766 (tcp) open on firewall.

Edit 3:

Managed to get it working -> syslog+auth.log (red face)

Clawhammer
31-05-2015, 16:07
How can i login as admin on the server to change the sessions and how can i add bots?

Alan_Bernardo
05-06-2015, 04:30
How can i login as admin on the server to change the sessions and how can i add bots?

The server? What server?


Alan

apophis
05-06-2015, 12:27
How can i login as admin on the server to change the sessions and how can i add bots?

What do you mean with connect as admin?

At the moment you can on the server like you would host a game without DS (See "Using DS" at first post). There you also can add bots.

bmaytum
06-06-2015, 16:14
What do you mean with connect as admin?

At the moment you can on the server like you would host a game without DS (See "Using DS" at first post). There you also can add bots.

I think what he is asking [plz clarify if I got this wrong] is:
(1) Is it possible to enter commands in the console window of a pCARS Dedicated Server running on a local PC? If so, what are the available commands for functions such as: logging onto the DS (if required so that additional commands to the DS can be entered)? If so, are the available commands the same (or different?) for a Windows-based DS; for a Linux-based DS?; for a Mac-based DS?
(2) Is it possible to add (or change the number of) AI cars, within the DS console window, to a session running on the DS? If so, what is the command to do so? [1]

[1] Regarding question (2), it should be possible to change the number of AI cars (IF the .cfg specified AI cars when launched) by changing the .cfg before the current session finishes and loops to another session. Likewise, you should be able to change the mix (number & specific car models) and the track by editing the .cfg file(s) before the current session finishes and loops to another session.

The method(s) for controlling a DS server may be / are(?) found in this other thread http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API

apophis
07-06-2015, 11:46
I think what he is asking [plz clarify if I got this wrong] is:
(1) Is it possible to enter commands in the console window of a pCARS Dedicated Server running on a local PC? If so, what are the available commands for functions such as: logging onto the DS (if required so that additional commands to the DS can be entered)? If so, are the available commands the same (or different?) for a Windows-based DS; for a Linux-based DS?; for a Mac-based DS?
(2) Is it possible to add (or change the number of) AI cars, within the DS console window, to a session running on the DS? If so, what is the command to do so? [1]

[1] Regarding question (2), it should be possible to change the number of AI cars (IF the .cfg specified AI cars when launched) by changing the .cfg before the current session finishes and loops to another session. Likewise, you should be able to change the mix (number & specific car models) and the track by editing the .cfg file(s) before the current session finishes and loops to another session.

The method(s) for controlling a DS server may be / are(?) found in this other thread http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API


(1) Commands to the DS is possible through the HTTP API you linked. But I have not done much with this API lately, so I don't know what is possible there at the moment.

(2) All settings of the server are done by the player hosting a session. The DS does not have the abillity to control the session at the moment. So everything has to be done ingame by the player hosting the session.
The host has to set the amount of players, when creating the session on the DS.

Alan_Bernardo
07-06-2015, 14:25
You don't need to own the game to setup the dedicated server. You should find it in the in the list under 'Tools' or by following this link (enter it in your browser): steam://rungameid/332670

No, you don't. But you'll need the game to actually create it with a track and some cars. Otherwise it will just sit there, inactive.

I must say this is the goofiest dedicated server I've seen. Fact is, it's not even a dedicated server, but some half-baked thing so that PC can pretend they have such an option.


Alan

Blvd69
07-06-2015, 16:37
awesome

Clawhammer
08-06-2015, 06:36
I think what he is asking [plz clarify if I got this wrong] is:
(1) Is it possible to enter commands in the console window of a pCARS Dedicated Server running on a local PC? If so, what are the available commands for functions such as: logging onto the DS (if required so that additional commands to the DS can be entered)? If so, are the available commands the same (or different?) for a Windows-based DS; for a Linux-based DS?; for a Mac-based DS?
(2) Is it possible to add (or change the number of) AI cars, within the DS console window, to a session running on the DS? If so, what is the command to do so? [1]

[1] Regarding question (2), it should be possible to change the number of AI cars (IF the .cfg specified AI cars when launched) by changing the .cfg before the current session finishes and loops to another session. Likewise, you should be able to change the mix (number & specific car models) and the track by editing the .cfg file(s) before the current session finishes and loops to another session.

The method(s) for controlling a DS server may be / are(?) found in this other thread http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API

What i mean is that i started the server cmd.
Startet pcars and connected with my server.

But iam unable to add bots (I added some, but they dont appear on the server?!) nor iam not able change a session (from training to qualifying for example) The buttons for that are greyed out. So i belived i had to be an admin to be able to press these grey buttons.

apophis
08-06-2015, 07:46
What i mean is that i started the server cmd.
Startet pcars and connected with my server.

But iam unable to add bots (I added some, but they dont appear on the server?!) nor iam not able change a session (from training to qualifying for example) The buttons for that are greyed out. So i belived i had to be an admin to be able to press these grey buttons.


Strange.
A friend of mine also could not change some settings lately with the DS.
Normally you can change the same things you could without DS.

I had not this problem until now ...
I can simply add a training or qualifying session if I want.

Clawhammer
08-06-2015, 10:28
I can simply add a training or qualifying session if I want.

I can add some trainings and qualifyings too, but i cannot skip them during the race session :-(
It is very boring to wait 30min until training 2 is finished.

apophis
08-06-2015, 13:20
I can add some trainings and qualifyings too, but i cannot skip them during the race session :-(
It is very boring to wait 30min until training 2 is finished.

Ah, sorry, I missread your message.
Don't exactly know if this works for me. It did work in MP for me one time, but I don't know if it was with DS or not.

Gimpymoo
08-06-2015, 14:34
Please look at Dirt Rally for how to implement a league system.

shaider_516
10-06-2015, 05:32
installed it on clearOS linux server. Had this error.


[root@gateway pcars]# ./DedicatedServerCmd
./DedicatedServerCmd: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /root/steamcmd/pcars/lib32/libsteam_api.so)

ExiZt3nc3
10-06-2015, 08:35
For anyone having difficulties getting this to connect when you open pcars, I found after doing a network trace that the query port of 27016 on the server requires UDP and not TCP to be forwarded via your NAT rules on the firewall.

L.Mario
12-06-2015, 10:22
After Patch 1.4 server will not boot.

207346

derDumeklemmer
12-06-2015, 10:36
Hi,

after yesterday's update our linux based Dedi-Servers are no longer available in the dedi-browser
(although no errors on server console):

http://cars-stats-steam.wmdportal.com/index.php/servers

So I moved them to a Windows-Machine and they became available in the browser (Malzbierbude 1-4).
But however no sessions can be hosted.

I've noticed that currently not a single player is using dedi servers listed at the dedi-browser.
(All servers showing 0/xx players).

Is there a general problem with the patch/update?

Any clue would be highly appreciated!

cheers,
Uwe

Combant
12-06-2015, 12:32
Waiting for Serverfiles Update... thats all. ASAP but please fast!

Mattias
12-06-2015, 14:06
Same problem here, No suitable dedicated server has been found.
I checked everything I could before coming here.

And on http://cars-stats-steam.wmdportal.com/index.php/servers there is this message:


Database error.

Oops, something serious went wrong. This is not expected to happen even in the usual error conditions and most likely means that either this site or the backend server of the game itself is broken.

Please let us know via the game forum and we'll take a look at it. Please include information about what you did that led to this error, and ideally the URL of this page.

Combant
12-06-2015, 14:16
@Mattias i have no Database error. Wait for SMS Update the Serverfiles... to Version ~1.0.1.17+



207395

t0daY
12-06-2015, 14:17
Same issue here, I think the serverfiles are not updated yet, lets hope for a fast solution :)

p.s.: I updated the serverfiles at steamcmd, so the serverfiles are "up to date" at the moment xD

Mattias
12-06-2015, 14:22
@Mattias i have no Database error. Wait for SMS Update the Serverfiles... to Version ~1.0.1.17+


Yeah, it's back to normal now, it was down a moment ago.

Stepan Vondrak
12-06-2015, 14:27
Sorry about that. the patch 1.4 has new protocol version and I forgot to publish the DS immediately with it. That's now fixed, the correct version of the DS protocol is 1.0.1.18, that will connect.

Mattias
12-06-2015, 14:35
My friend who is trying to create the lobby on my ds (I can't test, on linux currently) still gets the same error.
He had no problems until 1.4.

Server is now running 1.0.1.18.

Will try myself once I get on windows in a few hours.

Anyone else got it working with the update?

Edit:
Ignore this, he forgot to change the name of the server.

Edit2:
Now it works! Thanks!
Now to finish my awesome module for getting live updates from the server on to our groups site!

Stepan Vondrak
12-06-2015, 14:38
It might take a while before everything syncs 100%, I also had to update the build version in Steam settings for the search to work. So maybe that's not propagated to your friend yet. Or you were super fast and tested before I updated the number :) Try it in few minutes, it should hopefully all work!

derDumeklemmer
12-06-2015, 17:14
Hi Stepan,

everything is working againg.
Thank you so much for your efforts!

cheers,
Uwe

bmaytum
12-06-2015, 18:03
I'm getting "Database error" on the Dedicated Servers tab at http://cars-stats-steam.wmdportal.com/index.php/servers
Also, I haven't tried today but recently was also getting the "No suitable Dedicated Server has been found" error when trying to connect pCARS MP > Create to my Windows-based pCARS Ded Server. I'll go try it today and update this post with current results.

Question: In online MP, whenever I chose to Create a lobby, pCARS client always looks for my Ded Server (or so it seems). How can I Create a lobby when my Ded Server I not running?


Update:
I'm getting "Database error" on the Dedicated Servers tab at http://cars-stats-steam.wmdportal.com/index.php/servers
Also, I haven't tried today but recently was also getting the "No suitable Dedicated Server has been found" error when trying to connect pCARS MP > Create to my Windows-based pCARS Ded Server. I'll go try it today and update this post with current results.
The DS tab now IS working, and I now CAN connect to my Windows DS when in-game > Online > Create ;)

Kamel
12-06-2015, 20:14
Remove the launch option from your game?

BillyD
13-06-2015, 23:31
Does the server read the whitelist/blacklist on the fly or only on starup of the server? Basicly what i mean is that, if I add an entry to the blacklist and player is currently playing, will they be kicked from the server? Or would the server need to be restarted for the new list to take effect and they would then be blacklisted?

RomKnight
13-06-2015, 23:32
IIRC no. Everytime you change something you need to restart the DS (for now at least)

BillyD
13-06-2015, 23:41
IIRC no. Everytime you change something you need to restart the DS (for now at least)

If that is the case then it's a real shame. :( It would be very simple to write a php script to modify a blacklist/whitelist so that an admin could ban from a webpage.

I hope that feature will be included someday.

BillyD
13-06-2015, 23:54
IIRC no. Everytime you change something you need to restart the DS (for now at least)

If that is the case then it's a real shame. :( It would be very simple to write a php script to modify a blacklist/whitelist so that an admin could ban from a webpage. :(

RomKnight
14-06-2015, 00:00
Give it time... still being developed and control of the settings from ds are more important.

shaider_516
15-06-2015, 15:27
i setup my DS on linux. My server is available in http://cars-stats-steam.wmdportal.com/index.php/servers as kmph.tk. I opened up ports 8677, 27015 and 27016 on my linux. but when i tried creating online game it said "No Suitable dedicated server has been found". But if i tried other non password protected DS on the server list i can create an online lobby race without a problem.

bmaytum
15-06-2015, 15:40
i setup my DS on linux. My server is available in http://cars-stats-steam.wmdportal.com/index.php/servers as kmph.tk. I opened up ports 8677, 27015 and 27016 on my linux. but when i tried creating online game it said "No Suitable dedicated server has been found". But if i tried other non password protected DS on the server list i can create an online lobby race without a problem.

Shaider,
You may need to Update (i.e., re-download) to the latest DS version 1.0.1.18

(ref: posts #105 & #106 above)

shaider_516
15-06-2015, 15:48
i already have 1.0.1.18 DS. I also reinstalled it and reconfigured. still the same, visible in dedicated server list but can not create using the server.
207895

dohmien
15-06-2015, 17:16
i already have 1.0.1.18 DS. I also reinstalled it and reconfigured. still the same, visible in dedicated server list but can not create using the server.
207895

Same problem for me :(

Clawhammer
16-06-2015, 05:55
http://fs1.directupload.net/images/150613/temp/j5cy5tn8.jpg (http://www.directupload.net/file/d/4017/j5cy5tn8_jpg.htm)

http://fs2.directupload.net/images/150613/temp/gamtlmgs.jpg (http://www.directupload.net/file/d/4017/gamtlmgs_jpg.htm)

Why are all these buttons greyed out if i host a macht over the dedicated server? I dont want votes or wait until sessions are over by time ^^. Or is that normal that i cannot skip?

t0daY
16-06-2015, 17:41
Hey guys, one quick question :D Did not have time to find out myself but is it possible to run 2 DS at the same time on the same linuxserver?

Ph0eNiX
16-06-2015, 17:49
Have you try to copy the DS folder and rename the second DedicatedServerCmd to DedicatedServerCmd2 for exemple and change the ports ?

t0daY
16-06-2015, 17:51
Have you try to copy the DS folder and rename the second DedicatedServerCmd to DedicatedServerCmd2 for exemple and change the ports ?

Well as I said I will have a look tomorrow morning but I just wanted to know if somebody already did something like that :D
But thanks for your answer, will be the first thing I will try out tomorrow morning :)

Ph0eNiX
17-06-2015, 11:26
Let us know the result ;)

Maddox
17-06-2015, 18:20
Hello ,
you may be the Allow a specific port has to WMD Backendservers so that a server in the Dedicated Server list appears ?

CeYa
Maddox


done
After I have the port enabled for the HTTPAPI on my Linux server to the firewall is also now the servers in the list .
I hope it was because
CeYa
Maddox

Clawhammer
19-06-2015, 07:56
http://fs1.directupload.net/images/150613/temp/j5cy5tn8.jpg (http://www.directupload.net/file/d/4017/j5cy5tn8_jpg.htm)

http://fs2.directupload.net/images/150613/temp/gamtlmgs.jpg (http://www.directupload.net/file/d/4017/gamtlmgs_jpg.htm)

Why are all these buttons greyed out if i host a macht over the dedicated server? I dont want votes or wait until sessions are over by time ^^. Or is that normal that i cannot skip?

Still no one knows what to do about that? Oo

ExiZt3nc3
19-06-2015, 18:51
Same problem for me :(

I had this problem and found out it required UDP port 27016 not TCP

Stepan Vondrak
24-06-2015, 15:09
http://fs1.directupload.net/images/150613/temp/j5cy5tn8.jpg (http://www.directupload.net/file/d/4017/j5cy5tn8_jpg.htm)

http://fs2.directupload.net/images/150613/temp/gamtlmgs.jpg (http://www.directupload.net/file/d/4017/gamtlmgs_jpg.htm)

Why are all these buttons greyed out if i host a macht over the dedicated server? I dont want votes or wait until sessions are over by time ^^. Or is that normal that i cannot skip?

In the current standard hosted mode, it should not be any different from peer to peer gameplay - the session's host can control the options, anyone else can not, regardless of who is actually runnign the server. What exactly gets disabled and when, compared to p2p? Does that require host migration, or always? It should not, and for the game being hosted on DS is completely transparent.

Edit: Ah actually, I think these are just always disabled in multiplayer, it would be confusing for other players if the host could just force everyone to skip to the next session, without any communication beforehand. You can vote to skip to the next session in the lobby, accessible from the pits. Which imo is less than ideal, it's not communicated to other members very well and most won't know how to vote on that.

In the controlling-DS mode this will be easier and entirely up to the DS API. How it's controlled from within the game won't most likely change.

t0daY
25-06-2015, 00:54
I have a question about the system requirements... I experienced the last few times using the DS with 20player+ some massive lagspikes which affected almost everyboday in the session.
Mostly UK clients got a decent problem with my DS... It shouldnt be a bandwith problem at all, because I did a speedtest, just have a look:

root@v***************:/home/speedtest# ./speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from netcup GmbH (*.**.***.***)...
Selecting best server based on latency...
Hosted by Freshworx GmbH & Co. KG (Pfaffenhofen an der Ilm) [33.00 km]: 2.989 ms
Testing download speed........................................
Download: 878.85 Mbit/s
Testing upload speed..................................................
Upload: 291.22 Mbit/s

Am I missing something crucial?! :D Help me :D :D

Clawhammer
25-06-2015, 06:16
In the current standard hosted mode, it should not be any different from peer to peer gameplay - the session's host can control the options, anyone else can not, regardless of who is actually runnign the server. What exactly gets disabled and when, compared to p2p? Does that require host migration, or always? It should not, and for the game being hosted on DS is completely transparent.

Edit: Ah actually, I think these are just always disabled in multiplayer, it would be confusing for other players if the host could just force everyone to skip to the next session, without any communication beforehand. You can vote to skip to the next session in the lobby, accessible from the pits. Which imo is less than ideal, it's not communicated to other members very well and most won't know how to vote on that.

In the controlling-DS mode this will be easier and entirely up to the DS API. How it's controlled from within the game won't most likely change.

The problem with the vote is, if i play with my friends, ok no problem. If i say please vote next session they will do it. But if i have random online people on the server they dont react to my offers. So please please please, add these feature! Iam the host of the match, so i want to have hostingpowers!

Thanks for your information! :)

SavageWS6
27-06-2015, 21:25
I have a question about the system requirements... I experienced the last few times using the DS with 20player+ some massive lagspikes which affected almost everyboday in the session.
Mostly UK clients got a decent problem with my DS... It shouldnt be a bandwith problem at all, because I did a speedtest, just have a look:

root@v***************:/home/speedtest# ./speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from netcup GmbH (*.**.***.***)...
Selecting best server based on latency...
Hosted by Freshworx GmbH & Co. KG (Pfaffenhofen an der Ilm) [33.00 km]: 2.989 ms
Testing download speed........................................
Download: 878.85 Mbit/s
Testing upload speed..................................................
Upload: 291.22 Mbit/s

Am I missing something crucial?! :D Help me :D :D

Are you running it on the PC you are playing pCars on or a spare computer? When running dedicated servers for games that require more resources, using a spare computer is always better. Unlike Minecraft for example you can run a server on the computer you play on for example. Could be a bug in the software, you could have packet loss, there could be any variety of network variables happening causing lag spikes, or a hardware issue

Question regarding this application, I understand that you said this regarding your question:

"If I want to set-up a dedicated server, shall I own the game? Or the dedicated server app is free?
- You do not need to own the game. But you need the game to play on it"

So let's say that we the player wanna host a dedicated server in a datacenter of our choice, and the hoster say asks if there is any licensing requirements if any. Is it 100% okay to have it deployed running on the datacenter without the Studio or WMD say anything since the written server application is based off there own API? I don't really see this being a big issue, but I know some datacenters just want confirmation regarding it because some specially game server hosting companies are willing to host/run game servers that aren't listed.

Darren O'Brien
28-06-2015, 23:01
Any Idea when a "Standalone" DS will be available. By standalone i mean Set the Track, Car, Time of day, Laps then start it and away I go.
Like RRRE, rFactor DS etc.

t0daY
29-06-2015, 00:38
Are you running it on the PC you are playing pCars on or a spare computer? When running dedicated servers for games that require more resources, using a spare computer is always better. Unlike Minecraft for example you can run a server on the computer you play on for example. Could be a bug in the software, you could have packet loss, there could be any variety of network variables happening causing lag spikes, or a hardware issue

Question regarding this application, I understand that you said this regarding your question:

"If I want to set-up a dedicated server, shall I own the game? Or the dedicated server app is free?
- You do not need to own the game. But you need the game to play on it"

So let's say that we the player wanna host a dedicated server in a datacenter of our choice, and the hoster say asks if there is any licensing requirements if any. Is it 100% okay to have it deployed running on the datacenter without the Studio or WMD say anything since the written server application is based off there own API? I don't really see this being a big issue, but I know some datacenters just want confirmation regarding it because some specially game server hosting companies are willing to host/run game servers that aren't listed.

My root server is standing in a data center. And yes I own the game xD But my question is still unanswered :D Several clients got lags on my hosted ds... Cant be the download/upload from the ds...

So the "fault" is at the client side or my root server has too low system requirements to run a ds... thats why I am asking about the system requirements :D

SavageWS6
30-06-2015, 00:00
My root server is standing in a data center. And yes I own the game xD But my question is still unanswered :D Several clients got lags on my hosted ds... Cant be the download/upload from the ds...

So the "fault" is at the client side or my root server has too low system requirements to run a ds... thats why I am asking about the system requirements :D

Ah okay gotcha. Do you know the specs of your Slot/VPS/Dedi you have the server application running on? I believe that with the live timing tables and keeping track of that will cause a bit of CPU load, but not much.

david42fr
30-06-2015, 11:58
Is there a changelog somewhere for the DS versions?

t0daY
30-06-2015, 13:07
Ah okay gotcha. Do you know the specs of your Slot/VPS/Dedi you have the server application running on? I believe that with the live timing tables and keeping track of that will cause a bit of CPU load, but not much.

IntelŪ Dual-Core
6 GB DDR3 RAM (ECC)
2 vCores
240GB SATA / 120GB
RAID Level: RAID 10
Network: 1 GBit/s
CPU Kernel: 2 virtual
SSD Remote-Konsole

DS uses at all nearly nothing memory, cpu and so on... I have no idea why I got laggs at all :/

Snoopy
30-06-2015, 13:43
Is there a changelog somewhere for the DS versions?
Hi,

maybe you can have a look on this: http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API

david42fr
01-07-2015, 09:50
Thanks but this is the cangelog for the API, no?

Stepan Vondrak
01-07-2015, 10:21
Thanks but this is the cangelog for the API, no?

It's overall DS changelog. It's mostly related to the API because that's really the only thing that's in development/changing now, the base DS functionality is there already and won't change much. The API will open it for more cool stuff, and also finally make it joinable from the browser even when empty. So it's really both, API and any other changes.

david42fr
01-07-2015, 12:41
OK, thansk for answer :02.47-tranquillity:

SavageWS6
01-07-2015, 16:24
IntelŪ Dual-Core
6 GB DDR3 RAM (ECC)
2 vCores
240GB SATA / 120GB
RAID Level: RAID 10
Network: 1 GBit/s
CPU Kernel: 2 virtual
SSD Remote-Konsole

DS uses at all nearly nothing memory, cpu and so on... I have no idea why I got laggs at all :/

Alright yup, It shouldn't be lagging at all. It's most likely the code of the Dedicated server itself. It's still WIP. Wish you didn't get the lag, but well we can't always have nice things :D


I have a slot hosted in NYC - USA that I can test running the server on if anyone is interested.

moe
10-07-2015, 12:59
Hey guys,

I just set it up on an AWS instance, all ports are reachable from the outside; I even went that far that now all TCP or UDP connections are allowed. The server is booting fine apart from the [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. message and the API is reachable. I checked the other ports with netcat, a connection can be made for the the ports 8766 and 27016. I cannot establish a connection to port 27015, the host port. Is this the cause of error or does the service behind this port only come available once a session host has connected?

When I add the IP manually to the Steam Server Browser, the server running under that IP is found and shows correct name and available slots, but still it does not show up in the WMD Portal's DS list. Does anybody have any idea, what I am missing?

Nevermind, it's working now. The server still does not show up in the list, but once I added the server's IP manually to the Steam server browser, the game finds the server without problems.

For any one who is interested in hosting his own DS, I created a Docker image for the DS to be more easily and quicker deployed. You can find it here: https://registry.hub.docker.com/u/lawitschka/project-cars-ds/

surtic86
17-07-2015, 19:23
Hey guys,

I just set it up on an AWS instance, all ports are reachable from the outside; I even went that far that now all TCP or UDP connections are allowed. The server is booting fine apart from the [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. message and the API is reachable. I checked the other ports with netcat, a connection can be made for the the ports 8766 and 27016. I cannot establish a connection to port 27015, the host port. Is this the cause of error or does the service behind this port only come available once a session host has connected?

When I add the IP manually to the Steam Server Browser, the server running under that IP is found and shows correct name and available slots, but still it does not show up in the WMD Portal's DS list. Does anybody have any idea, what I am missing?

Nevermind, it's working now. The server still does not show up in the list, but once I added the server's IP manually to the Steam server browser, the game finds the server without problems.

For any one who is interested in hosting his own DS, I created a Docker image for the DS to be more easily and quicker deployed. You can find it here: https://registry.hub.docker.com/u/lawitschka/project-cars-ds/

In the list are only random 50 Servers or so :)

F1_Racer68
20-07-2015, 19:56
Tried installing on a Linux box, but can't seem to get it to work.

- I successfully installed SteamCMD
- Successfully Downloaded the pCARS dedicated server
- Successfully created a server.cfg file
- Attempted to launch server but got the following error:

"./DedicatedServerCmd: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory"

The file is there in the default location that it was installed in /home/steam/steamcmd/linux32/ but for some reason the system can't see it.

I'm trying to run it on the same system as my web/mumble server which is built on Turnkey Linux LAMP stack.

Any thoughts?

Kinsman
21-07-2015, 00:43
Really can't see what I'm doing wrong here.

I have a dedicated server, and I installed the PCars dedicated server application on it. I've set it up in accordance with the instructions, named it something unique and run it. I ensured it was cleared both in and out in the firewall, and disabled my personal firewall to test.

No matter what I do, it says "No suitable servers found" - not sure what it means by 'suitable', or why it's failing at all.

Any clues on this? Any help would be greatly appreciated!

F1_Racer68
21-07-2015, 01:23
Really can't see what I'm doing wrong here.

I have a dedicated server, and I installed the PCars dedicated server application on it. I've set it up in accordance with the instructions, named it something unique and run it. I ensured it was cleared both in and out in the firewall, and disabled my personal firewall to test.

No matter what I do, it says "No suitable servers found" - not sure what it means by 'suitable', or why it's failing at all.

Any clues on this? Any help would be greatly appreciated!

Did you add the -searchds <servername> argument to your game launch properties? You need that in order for it to look for the dedicated server.

Pavletto
21-07-2015, 11:20
Tried installing on a Linux box, but can't seem to get it to work.

- I successfully installed SteamCMD
- Successfully Downloaded the pCARS dedicated server
- Successfully created a server.cfg file
- Attempted to launch server but got the following error:

"./DedicatedServerCmd: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory"

The file is there in the default location that it was installed in /home/steam/steamcmd/linux32/ but for some reason the system can't see it.

I'm trying to run it on the same system as my web/mumble server which is built on Turnkey Linux LAMP stack.

Any thoughts?

apt-get install lib32stdc++6

and copy all files from /home/steam/steamcmd/linux32/ to /home/steam/steamcmd/pcars_ds/lib32/

F1_Racer68
21-07-2015, 23:27
apt-get install lib32stdc++6

and copy all files from /home/steam/steamcmd/linux32/ to /home/steam/steamcmd/pcars_ds/lib32/ :yes::yes:

Thank you!! That solved it.

Kinsman
22-07-2015, 00:59
F1 Race68 - I did indeed add the -searchds tag complete with server name. Still no result... :(

Kinsman
22-07-2015, 01:26
212841

I notice my server is listed, but for the life of me I can't connect to it...

Snoopy
22-07-2015, 12:58
I notice my server is listed, but for the life of me I can't connect to it...Try to Update the Server...
It is on Version 1.0.1.20, actual Version is 1.0.1.21.

I see so many old servers in this list....yo Admins, wake up!

Jiflemon
22-07-2015, 13:24
Hi All,

just a quick note that might help other, After installing our DS on centos 6.5 64bit we could not find the server although it was listed on the pcars DS server list. a bit of research + trial/error I found that changing queryPort 27016 from TCP to UDP in the firewall and all is now good.

Please do correct me if I am incorrect but this was the only thing that enabled us to searchds.
Maybe needs updating in the OP, detailing TCP/UDP as would have saved a lot of time.

cheers
Jif

MABlosfeld
22-07-2015, 14:57
I am looking to create a dedicated server and I wonder if you can set the clutch to be used manually by all participants?

hophans
23-07-2015, 10:25
Hi All,

just a quick note that might help other, After installing our DS on centos 6.5 64bit we could not find the server although it was listed on the pcars DS server list. a bit of research + trial/error I found that changing queryPort 27016 from TCP to UDP in the firewall and all is now good.

Please do correct me if I am incorrect but this was the only thing that enabled us to searchds.
Maybe needs updating in the OP, detailing TCP/UDP as would have saved a lot of time.

cheers
Jif

I have had the same issue where i could only connect 1 of 10 times. I also had issues where it would drop all connections during a session and afterwards would not let me create a new session.
I have now moved it to a Centos 7 server (fully dedicated to the DS atm.) and will test it later today when time permits.
My setup runs without firewall enabled and on dedicated servers, mostly located in northen france.

Kinsman
24-07-2015, 00:25
Tried updating - no change :(

moe
24-07-2015, 11:17
Tried updating - no change :(

Try adding your server to the Steam server browser by IP. Project CARS could not find my server first, as well, but after I checked everything was working from Steam side, it suddenly started working in CARS also.

Little Bastard
26-07-2015, 22:56
You can download "Project CARS - Dedicated Server" from Steam in the Library-Tools category, or via SteamCMD. Infos about SteamCMD here (http://https://developer.valvesoftware.com/wiki/SteamCMD).


the link is broken. It should be "https://developer.valvesoftware.com/wiki/SteamCMD"

right now it points to :

http://https//developer.valvesoftware.com/wiki/SteamCMD

Stepan Vondrak
29-07-2015, 10:16
Patch 3.0 will come with a big DS update, with few new config variables. These are already documented in the changlog in the API thread: http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API&p=925930&viewfull=1#post925930
The update is not live yet, it will still take few weeks. Can you please update the first post with the config options when it's out?

apophis
29-07-2015, 11:18
Patch 3.0 will come with a big DS update, with few new config variables. These are already documented in the changlog in the API thread: http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API&p=925930&viewfull=1#post925930
The update is not live yet, it will still take few weeks. Can you please update the first post with the config options when it's out?

Will do this :)

Jan Studenski
29-07-2015, 12:35
Patch 3.0 will come with a big DS update, with few new config variables. These are already documented in the changlog in the API thread: http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API&p=925930&viewfull=1#post925930
The update is not live yet, it will still take few weeks. Can you please update the first post with the config options when it's out?

<3 you for that :D

jcarrest
29-07-2015, 18:10
Hello,
I'm stuck.
I created a linux server and appears in the server list. It seems all right but you can not enter.

The log does not mark any server error. what can I do?

[2015-07-29 19:33:14] INFO: Starting up the Dedicated Server Library.
[2015-07-29 19:33:14] INFO: Server configuration loaded:
- protocol version: 121 (1.0.1.21)
- server name: RINCON DE SIMULACION
- max session size: 32
- details: secure, bind IP xxxxxxx, Steam port 8766, host port 27015, query port 27016, password protected no
- whitelist size: 1
- blacklist size: 1
- http api: disabled

[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Setting breakpad minidump AppID = 234630
[2015-07-29 19:33:14] INFO: HttpApi disabled
[2015-07-29 19:33:14] INFO: Dedicated server is starting...
[2015-07-29 19:33:15] INFO: Connection to Steam established
[2015-07-29 19:33:15] INFO: Received public IP xx.xx.xx.xxx
[2015-07-29 19:33:15] INFO: Server logged in with Steam id xxxxxxxxx ; server is secure
[2015-07-29 19:33:15] INFO: Server startup finished: AppId 234630, public IP xxxxxxx, Steam id xxxxxxxxx ; switching to running state

Help me pls :(

cogent
30-07-2015, 08:34
Hi jcarrest.

You have the Blacklist and Whitelist activated at the same time?
Blacklist.....ok, but be carefull with the Whitelist.
Did you do that on purpose and did you have yourself added to the whitelist?
If Whitelist is activated only people in that list can enter your Server, if you hace activated it but are not in the Whitelist then this could be the reason why you and others are not able to join.

jcarrest
30-07-2015, 15:32
Thanks cogent I've rebooted without whitelist, without blacklist. The result is the same...

I do not know what to do.It not displayed error and can not connect anyone.

any other ideas?

cogent
31-07-2015, 12:12
Thanks cogent I've rebooted without whitelist, without blacklist. The result is the same...

I do not know what to do.It not displayed error and can not connect anyone.

any other ideas?

One more thing.
If I disable the API as you have done then I get not this line as you do.

[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.

Maybe this is the reason, I don't know....maybe someone else knows that message.

kjay
04-08-2015, 18:50
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.


This line is normal. The following lines show that a connection to steam was established and the server started properly.
Have you ensured that the correct ports have been opened in your firewall?

Darren O'Brien
10-08-2015, 02:06
Any Idea when a Stable DS for CARS will be available.
When i mean DS... I mean one i can launch and leave for our league to run on. Not a Host like the current.

When you look at other DS around for Sims, there basic and do what they want.

gandaDK
10-08-2015, 10:32
Any Idea when a Stable DS for CARS will be available.
When i mean DS... I mean one i can launch and leave for our league to run on. Not a Host like the current.

When you look at other DS around for Sims, there basic and do what they want.

read the changelog for the DS, its in the next patch -> http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API&p=925930&viewfull=1#post925930

erickgoldner
18-08-2015, 03:13
Well, gonna need some help here.

Just noticed that my server, despite de fact that it shows on the http://cars-stats-steam.wmdportal.com/index.php/servers list and i Can see it on the game lobby (emptyJoin = true), nobody else can see it.
But when i enter the server, it shows to everyone on the lobby to enter it.

Iīm pretty sure it's a router configuration, but canīt seem to figure it out.

My router has a Virtual Server page and a Port Forwarding one.

Which rules should i add on the virtual server (on this one i point to the IP from my localhost) and which ones i add to the port forwarding, 8766, 27015 and 27016, all TCP ?

kevinnn
18-08-2015, 10:51
27015 - 27016 are UDP
8766 I have set as both (TCP/UDP)

Dalhil
19-08-2015, 12:57
i have 3 dedicated up and running on a debian 7 x64 server. Each dedicated has his different ports set in server.cfg.

on putty i check open ports with:


netstat -tulpn


SteamPorts and QueryPorts are in the list.
HostPorts are missing, is this normal?

Dalhil
19-08-2015, 16:41
i have 3 dedicated up and running, two of them have configuration locked by the option "controlGameSetup : true" in server.cfg, one is running Formula C and one the whole GT3 class, the third is All Classes and is completely open to clients configuration.

Launching the game and trying to join the Formula C server when empty always causes unhandled exception crash. The only way to join the Formula C server without crash when empty was to join the GT3 or the All Classes server first, then leave and then join the Formula C server :confused:. So... no issues when joining directly GT3 server or All Classes server after launching the game.

Comparing the two locked-config servers cfg files (both with "controlGameSetup : true"), they only differ in ports and those lines:

Formula C server:


"Flags" : 908554,
"VehicleClassId" : 1646832695,
"VehicleModelId" : -1041674971,


GT3 server:


"Flags" : 908712,
"VehicleClassId" : -112887377,
"VehicleModelId" : 274862187,


Crashes did happen even after local files steam check or after deleting profile:

http://i.imgur.com/gXiNC7i.png


then i found a workaround that in my case solved crashes, it seems that the cause where FORCE_IDENTICAL_VEHICLES and FORCE_SAME_VEHICLE_CLASS both enabled when Formula C is set with:

"VehicleClassId" : 1646832695,
"VehicleModelId" : -1041674971,

enabling only FORCE_SAME_VEHICLE_CLASS solved.

MatthiasB
19-08-2015, 16:47
i had problems with unhandled exception too. it seems to be solved when i set "fill grid with ai" to false.

RomKnight
19-08-2015, 18:57
then i found a workaround that in my case solved crashes, it seems that the cause where FORCE_IDENTICAL_VEHICLES and FORCE_SAME_VEHICLE_CLASS both enabled when Formula C is set with:

"VehicleClassId" : 1646832695,
"VehicleModelId" : -1041674971,

enabling only FORCE_SAME_VEHICLE_CLASS solved.

Tested. It works. But I have to say it is not only with FC. happens with Ariel and Road B or GT4 and Aston Martin Hydrogen

I think the problem is having both flags enabled at the same time.

FINALLY I can have my server testing. THANK YOU

Darren O'Brien
20-08-2015, 07:13
read the changelog for the DS, its in the next patch -> http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API&p=925930&viewfull=1#post925930


Where is the Actual Link for the New DS ?? I seem to be going around in Circles

Like i click on the "How to" and there the API info there BUT.. nothing that says-
1-Do this
2-Do that
3.. etc.

I click 1 link and take me elsewhere and seem to be going round and round. Normally i get the " check Changelog" which has no info ?

RomKnight
20-08-2015, 09:32
Here (http://forum.projectcarsgame.com/showthread.php?22370-Dedicated-Server-HowTo-(Work-in-Progress))you can read "Infos about SteamCMD here (https://developer.valvesoftware.com/wiki/SteamCMD#Windows)." BTW, the link for steamcmd does not work anymore in that thread but i've corrected it in this post so just click it.

After installing steamcmd go to where steamcmd.exe is and run " steamcmd +login anonymous +force_install_dir <path to where you want it installed> +app_update 332670 validate +exit" without the quotes. make a .bat of of this so you can easily update to the next version.

Copy the server.cfg from the config_sample dir to pCARS_DS directory you've set above, edit it and run DedicatedServerCmd.exe

PS: instead of downloading steamcmd you can install pCARS DS from the "Tools" menu if you installed Steam on your server.

FastnFurious
20-08-2015, 11:27
ok got my server back up running... it's been awhile since I have had my server up..so I read up on how to, and got it working my question is how can I turn off auto shifting,abs,tc,stable control in server control? this is what I have.



allowEmptyJoin : true
controlGameSetup : true
sessionAttributes : {
"ServerControlsTrack" : -1,
"ServerControlsVehicle" : -1,
"GridSize" : 24,
"MaxPlayers" : 24,
"Practice1Length" : 60,
"Practice2Length" : 0,
"QualifyLength" : 30,
"Race1Length" : 6,
"Flags" : 656616,
"DamageType" : 1,
"TireWearType" : 6,
"FuelUsageType" : 0,
"PenaltiesType" : 1,
"AllowedViews" : 3,
"TrackId" : 904625875,
"VehicleClassId" : -112887377,
"VehicleModelId" : 1694837381,
"DateYear" : 2015,
"DateMonth" : 7,
"DateDay" : 6,
"DateHour" : 11,
"DateMinute" : 0,
"DateProgression" : 1,
"ForecastProgression" : 1,
"WeatherSlots" : 1,
"WeatherSlot1" : -934211870,
"WeatherSlot2" : -934211870,
"WeatherSlot3" : -934211870,
"WeatherSlot4" : -934211870,

Do I need to add a few lines ? am I doing something wrong?

RomKnight
20-08-2015, 12:02
Use this (http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API&p=1084948&viewfull=1#post1084948).

FastnFurious
20-08-2015, 13:14
Thank you :) works great only issue I have is that even though I have "Allowedviews" : 3, I still get all views.. I want only cockpit. any idea why?
Thanks

RomKnight
20-08-2015, 15:21
I can't make it work either... :|

Darren O'Brien
20-08-2015, 21:48
Here (http://forum.projectcarsgame.com/showthread.php?22370-Dedicated-Server-HowTo-(Work-in-Progress))you can read "Infos about SteamCMD here (https://developer.valvesoftware.com/wiki/SteamCMD#Windows)." BTW, the link for steamcmd does not work anymore in that thread but i've corrected it in this post so just click it.

After installing steamcmd go to where steamcmd.exe is and run " steamcmd +login anonymous +force_install_dir <path to where you want it installed> +app_update 332670 validate +exit" without the quotes. make a .bat of of this so you can easily update to the next version.

Copy the server.cfg from the config_sample dir to pCARS_DS directory you've set above, edit it and run DedicatedServerCmd.exe

PS: instead of downloading steamcmd you can install pCARS DS from the "Tools" menu if you installed Steam on your server.



Yeah have the pCARS DS from Steam and thats running Fine.. Can go ingame and "Host" a Session.

erickgoldner
20-08-2015, 22:07
Thank you :) works great only issue I have is that even though I have "Allowedviews" : 3, I still get all views.. I want only cockpit. any idea why?
Thanks

As written in the attibute: "Only Any (0) and CockpitHelmet (2) are supported by the game, writes of other values will be ignored"

RomKnight
21-08-2015, 09:42
Still, sometimes, somehow, the 2 does not work as I can cycle all views.

I think DS MIGHT use the "admin" (1st guy enter) settings. I say this because yesterday we were doing some tests and when I was the admin it was locked to cockpit/helmet but one of the times someone get to the DS first and when he commented on TS he was able to use the hood view i was also able to cycle all cams. All the other times I had only the cockpit/helmet cams.

SO... some values are taken from the "admin" when he connects.

Anyway, still, for league racing is nothing impeditive.

BTW, we need a precedence "order". Like which attributes take precedence, a.e., "force real driving aids" vs "TC and/or ABS and/or SC" in the flags.

Also, track id MUST be set every time or the server won't even show.

I'd also like to know/see bugs corrected (if/when possible);
- how to force only 2 car classes (ATM is just one OR all cars depending on the flags set)
- how to choose JUST a couple of cars inside a class (if possible ATM)
- how to enable "force same car" even for the first person to enter (ATM it always crashes when enabled)
- how to setup real weather

fresquito
24-08-2015, 09:17
Hi, are there any minimun specs for the DS (meaning CPU, etc.)?

Dalhil
24-08-2015, 12:19
i have 3 dedicated up and running on a debian 7 x64 server. Each dedicated has his different ports set in server.cfg.

on putty i check open ports with:


netstat -tulpn


SteamPorts and QueryPorts are in the list.
HostPorts are missing, is this normal?



can someone do this little test on linux server please?

Snoopy
24-08-2015, 13:06
can someone do this little test on linux server please?
Hi,

sorted by PIDs
#> netstat -tulpen
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1000 1279182 5606/DedicatedServe
udp 0 0 0.0.0.0:8766 0.0.0.0:* 1000 1279180 5606/DedicatedServe
udp 0 0 0.0.0.0:27016 0.0.0.0:* 1000 1279179 5606/DedicatedServe

tcp 0 0 127.0.0.1:9100 0.0.0.0:* LISTEN 1002 1917662 26901/DedicatedServ
udp 0 0 0.0.0.0:8866 0.0.0.0:* 1002 1917664 26901/DedicatedServ
udp 0 0 0.0.0.0:28016 0.0.0.0:* 1002 1917660 26901/DedicatedServ

tcp 0 0 127.0.0.1:9200 0.0.0.0:* LISTEN 1003 1495096 11577/DedicatedServ
udp 0 0 0.0.0.0:8966 0.0.0.0:* 1003 1495098 11577/DedicatedServ
udp 0 0 0.0.0.0:29016 0.0.0.0:* 1003 1495094 11577/DedicatedServ

Dalhil
24-08-2015, 14:12
Hi,

sorted by PIDs
#> netstat -tulpen
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1000 1279182 5606/DedicatedServe
udp 0 0 0.0.0.0:8766 0.0.0.0:* 1000 1279180 5606/DedicatedServe
udp 0 0 0.0.0.0:27016 0.0.0.0:* 1000 1279179 5606/DedicatedServe

tcp 0 0 127.0.0.1:9100 0.0.0.0:* LISTEN 1002 1917662 26901/DedicatedServ
udp 0 0 0.0.0.0:8866 0.0.0.0:* 1002 1917664 26901/DedicatedServ
udp 0 0 0.0.0.0:28016 0.0.0.0:* 1002 1917660 26901/DedicatedServ

tcp 0 0 127.0.0.1:9200 0.0.0.0:* LISTEN 1003 1495096 11577/DedicatedServ
udp 0 0 0.0.0.0:8966 0.0.0.0:* 1003 1495098 11577/DedicatedServ
udp 0 0 0.0.0.0:29016 0.0.0.0:* 1003 1495094 11577/DedicatedServ

thank you Andreas, i don't see HostPorts in your list too

Woodshock
25-08-2015, 15:22
I wanna force Car class to GT3 Only; How do i do this with the API enabled?

http://127.0.0.1:9000/api/session/set_attributes?copy_to_next&session_FORCE_SAME_VEHICLE_GROUP + class id

http://127.0.0.1:9000/api/session/set_attributes?copy_to_next&session_FORCE_SAME_VEHICLE_CLASS + class id

I tried that but it's not working

WRONG WAY!

You set an calculated flag number to the server which enables/disables the features that are into calculated flag number.

See:
Great . so many new features.

here a simple XLS Flags Calculator

https://onedrive.live.com/redir?resid=EB00C7C2F8FD51E4!8461&authkey=!ALBw65wRRGMmrlM&ithint=file%2crar

DeBuG
25-08-2015, 18:40
Ok I have come across an issue, on my DS whenever the host leaves, it destroys the server and all players are disconnected.... Why does it DC everyone and not just pass the host to someone else?

Any ideas?

LiveWire
26-08-2015, 18:04
I think I just don't know the right terms to search, but I am looking for a list of all the IDs used in the server config file, such as the codes for car class (LMP1, GT3, etc), car model and weather conditions. Does anyone know where I might find this? I find an ID here and there, but no "master list" type posts.

silicijevadolina
26-08-2015, 19:23
This http://harm.io/misc/pcars/

LiveWire
27-08-2015, 01:53
This http://harm.io/misc/pcars/

Awesome, thanks!

olliraa
28-08-2015, 05:17
Having a weid problem with the dedi server (latest version): When ever a player tries to connect his game hangs :/ Server log says "timeout". This feels like a port/firewall problem, but I've opened all the listed ports the same way as for AC, RR3, LFS, TS3 etc. I've opened (and forwarded) the following ports (udp):

steamPort : 8766
hostPort : 27015
queryPort : 27016

There were older threads where many ports were instructed to be opened, but it seems there's no exact guide what are the required ports (for example if the requirements is the port number +1/player or something like that)

Please, any help highly appreciated :)

LiveWire
28-08-2015, 08:30
Can someone spot what is wrong with my config? I get "WARNING: Failed to parse data from file 'server.cfg' with error -3" when I try to launch it. Here is my server.cfg.


"//" : "You can use dummy entries like this to write comments into the config. 'rem' and '#' are also supported as comment entries."

"//" : "--- Basic server options ---"
"//" : "- logLevel: logging level of the server. Messages of this severity and more important will be logged. Can be any of debug/info/warning/error."
"//" : "- eventsLogSize : number of gameplay events stored on the server. Oldest ones will be discarded once the game logs more."
"//" : "- name: the server's name, this will appear in server browser (when implemented) and will be also the default name of sessions hosted on the server."
"//" : "- secure: authenticate users with Steam to check VAC ban when set to true."
"//" : "- password: password required to create sessions on the server as well as to join the sessions, password set in Create options is ignored on DS."
"//" : "- maxPlayerCount: maximum size of sessions that can be created on this server."
"//" : "- bindIP: IP address where the server's sockets should be bound. Leave empty for 'all interfaces'."
"//" : "- steamPost, hostPort, quaryPort: ports used to communicate with Steam and game, they must all be accessible on the public IP of the server."
"//" : "- sleepWaiting, sleepActive: delay between ticks in milliseconds, when not hosting and when hosting a game, respectively."

logLevel : "info"
eventsLogSize : 10000
name : "Generic Name"
secure : true
password : ""
maxPlayerCount : 32
bindIP : ""
steamPort : 8766
hostPort : 27015
queryPort : 27016
sleepWaiting : 250
sleepActive : 10

"//" : "--- Black list ---"
"//" : "Anyone in this list will not be allowed into the server."
"//" : "You can use array or map/object. If object, the keys are ignored, but you can used the strings as comments with name or reason for being in the list."
"//" : "Also instead of listing the ids directly in the config you can list the file names to load those lists from, and combine the two in any order."

blackList : [ "blacklist.cfg" ]

"//" : "--- White list ---"
"//" : "If this is not empty only whitelisted members will be allowed into the server."
"//" : "Usually you don't want to have this set at all and use passwords instead, but if you prefer to control server access by whitelisting instead, keep this in and enter the right IDs."
"//" : "Using the whitelist effectively deactivates the blacklist, as anyone whitelisted will be allowed regardless of the blacklist's contents."
"//" : "You can use array or map/object. If object, the keys are ignored, but you can used the strings as comments with name or reason for being in the list."

whiteList : [ "whitelist.cfg" ]

"//" : "--- HttpApi configuration ---"
"//" : "This provides http-based API and basic web-based controls using a built-in http server."
"//" : "HttpApi is disabled by default, and if you enable it with everything else left to default it will listen only locally on 127.0.0.1:9000"
"//" : "- enableHttpApi: master enable/disable toggle."
"//" : "- httpApiLogLevel: similar to logLevel above but only for libwebsockets output. Note that all logging still goes through the main filter, so you won't be able to use more verbose logging here than the main level."
"//" : "- httpApiInterface: interface name or IP where to bind the local http server providing the API and web-based controls.."
"//" : "- httpApiPort: port where the local http server listens."
"//" : "- httpApiExtraHeaders: map with extra HTTP headers to add to HTTP API responses. The keys are the conditions for adding the headers, the values are the headers to add. There are no conditions supported yet."

enableHttpApi : false
httpApiLogLevel : "warning"
httpApiInterface : "127.0.0.1"
httpApiPort : 9000
httpApiExtraHeaders : {
"*" : "Access-Control-Allow-Origin: *"
}

"//" : "--- Game setup control options ---"
"//" : "- allowEmptyJoin: set to true to make this server show up in the browser even if it's empty."
"//" : "- controlGameSetup: set to true to enable API that allows the server to control the game's setup. The host will not be able to control the setup if this is set."
"//" : "- sessionAttributes: initial attribute values, see /api/list/attributes/session for the full list."
"//" : " These attributes will be used when joining an empty server via the borwser (if allowEmptyJoin is true) and as the intial attributes for the set_attributes and set_next_attributes APIs (if controlGameSetup is true)"
"//" : " The defaults set these values:"
"//" : " * track and vehicle selections is in player control (note vehicle selection button disable not implemented yet, track will look like 'vote' on all if disabled"
"//" : " * 32 slots, all players so no AI (note: this will disallow 32-bit clients from joining, those are limited to 16-player session"
"//" : " * no practice/qualify, 3 laps"
"//" : " * damage type visual only, tire wear off, fuel usage off, penalties on, any allowed views,"
"//" : " * track Brands Hatch Indy, vehicle group Road A, vehicle Renault Megane (not forced),"
"//" : " * standard date and weather progression, clear weather"
"//" : " * flags set as follows:"
"//" : " ALLOW_CUSTOM_VEHICLE_SETUP (8) + ABS_ALLOWED (32) + SC_ALLOWED (64) + TCS_ALLOWED (128) + "
"//" : " FORCE_SAME_VEHICLE_GROUP (1024) + FILL_SESSION_WITH_AI (131072) + AUTO_START_ENGINE (524288) = 656616"

allowEmptyJoin : true
controlGameSetup : false
sessionAttributes : {
"ServerControlsTrack" : 1,
"ServerControlsVehicle" : 1,
"GridSize" : 32,
"MaxPlayers" : 32,
"Practice1Length" : 10,
"Practice2Length" : 0,
"QualifyLength" : 15,
"Race1Length" : 30,
"Flags" : 787472,
"DamageType" : 3,
"TireWearType" : 5,
"FuelUsageType" : 0,
"PenaltiesType" : 1,
"AllowedViews" : 0,
"TrackId" : 1641471184,
"VehicleClassId" : -1289517523,
"//" : " "DateYear" : 2015,"
"//" : " "DateMonth" : 7,"
"//" : " "DateDay" : 6,"
"//" : " "DateHour" : 11,"
"//" : " "DateMinute" : 0,"
"//" : " "DateProgression" : 1,"
"//" : " "ForecastProgression" : 1,"
"//" : " "WeatherSlots" : 1,"
"//" : " "WeatherSlot1" : -934211870,"
"//" : " "WeatherSlot2" : -934211870,"
"//" : " "WeatherSlot3" : -934211870,"
"//" : " "WeatherSlot4" : -934211870,"
}


It is supposed to be LMP1 ("VehicleClassId" : -1289517523) at Silverstone GP ("TrackId" : 1641471184). I am trying to force real aids (16), force same vehicle class(1024), mechanical failures(262144) and auto engine restart(524288). This should equal "Flags" : 787472, unless I messed up my math...

LiveWire
28-08-2015, 09:45
I got it working, not really sure what it was though. I cut and pasted the above config in to the sample, line by line, and it worked.

fresquito
31-08-2015, 21:50
I have a problem with my DS. There're some tracks missing. Laguna Seca, Oulton, Snetterton, Cadwell and maybe some other I don't remember are nowhere to be found. Default settings. Is there anything I need to do to make them appear?

t0daY
01-09-2015, 18:09
I have a problem with my DS. There're some tracks missing. Laguna Seca, Oulton, Snetterton, Cadwell and maybe some other I don't remember are nowhere to be found. Default settings. Is there anything I need to do to make them appear?

For example Laguna Seca has a maximum grid size from 24 drivers. If you are setting your DS on 32 players the track wont appear in your list.

Dalhil
02-09-2015, 11:22
For example Laguna Seca has a maximum grid size from 24 drivers. If you are setting your DS on 32 players the track wont appear in your list.

I hope this will be fixed, we need the option to set a maximum number for players and then the game handling lower maximum numbers for those tracks

satco1066
02-09-2015, 23:36
For example Laguna Seca has a maximum grid size from 24 drivers. If you are setting your DS on 32 players the track wont appear in your list.

If a track has only 24 pit boxes, you can't go with more cars on that track. Simple.

paradoxguy
03-09-2015, 00:04
HELP! I paid for a 16 slot DS, which seems to work fine as it is listed in the available servers list at this link here:
http://cars-stats-steam.wmdportal.com/index.php/servers

However, when I go in-game to create the session like I'm suppose to, it tries to connect to it then after a few moments I get "cannot find suitable server". What am I missing? I did use -searchds "WR Test" in the launch options in Steam.

Alan_Bernardo
03-09-2015, 00:24
HELP! I paid for a 16 slot DS, which seems to work fine as it is listed in the available servers list at this link here:
http://cars-stats-steam.wmdportal.com/index.php/servers

However, when I go in-game to create the session like I'm suppose to, it tries to connect to it then after a few moments I get "cannot find suitable server". What am I missing? I did use -searchds "WR Test" in the launch options in Steam.

What service are you using?

There is a switch in the server file that allows the server to always stay open, so that you can connect via the in-game browser. But you still should be able to connect the old way.

cogent
03-09-2015, 10:21
If the server.cfg is already set to stay open "allow empty join" then -searchds "WR Test" does not work anymore......you have to join using ingame browser.

cho
10-09-2015, 07:35
I have two question

1. Can I create online session using DS that opened another PC?
"Create session" and "Make DS" are different PC.
If I can't create online session (by "no suitable dedicated server has been found"), what can I do for create online session with DS that opened at another PC?
(For example, port forwarding or etc.)

2. If I create online session with DS, is the online session stable even if steam server isn't stable?
Or, even though I use DS, isn't the online session stable when steam server isn't stable?
(steam server or sms server, I don't kwow well, in spite of)

vbabiy
14-09-2015, 17:33
Hey guys,

If the DS looses connection to steam, what will it do the clients already



[2015-09-13 13:24:08] INFO: Server logged in with Steam id 90097189455342593 ; server is secure
[2015-09-13 14:46:20] WARNING: Disconnected from Steam
[2015-09-13 14:46:25] WARNING: Failed to reconnect to Steam, trying again...
[2015-09-13 14:46:52] WARNING: Failed to reconnect to Steam, trying again...
[2015-09-13 14:47:50] WARNING: Failed to reconnect to Steam, trying again...
[2015-09-13 14:49:29] WARNING: Failed to reconnect to Steam, trying again...
[2015-09-13 14:50:23] WARNING: Failed to reconnect to Steam, trying again...


I am seeing this in my log.

Snoopy
14-09-2015, 20:46
Hey guys,
If the DS looses connection to steam, what will it do the clients already
I am seeing this in my log.Hi,

you are not alone, my Servers do it all...

vbabiy
14-09-2015, 21:22
Hi,

you are not alone, my Servers do it all...

Do you know if users get disconnected when that happens?

Snoopy
15-09-2015, 05:48
Do you know if users get disconnected when that happens?
Hi vbabiy, i'm hunting for this Problem.

Today i want to test with (i hope so) many Users as possible, to see if someone is getting disconnected and looking at the Logs.
With this Information i want to go to Stepan (in this Thread).

I also try a little bit with the sleepActive Time, see my Thread here:
http://forum.projectcarsgame.com/showthread.php?39100-Option-in-Config-quot-sleepActive-quot-what-do-you-set-in-your-Servers&p=1117329&viewfull=1#post1117329

Which kind of machine do you use? Linux?

vbabiy
15-09-2015, 11:15
Yea I am running on a Linux server.

satco1066
15-09-2015, 20:24
Are there any real advantages running DS on Linux, behind any fanboy or philosophy statements.

hophans
15-09-2015, 20:27
Yes, but that comes down to running a Linux server vs. a Windows server.

Othervice you can just run it from you home desktop computer
Knowledge is your friend ;)

vbabiy
15-09-2015, 20:29
Not sure if there is, I use linux because it's what I know. (I only use windows for sim racing)

Also for $5 I get a awesome DS server for PCARs on digital ocean (https://www.digitalocean.com/pricing/), no windows option.

satco1066
17-09-2015, 13:19
Yes, but that comes down to running a Linux server vs. a Windows server.

Othervice you can just run it from you home desktop computer
Knowledge is your friend ;)

Ok, the standard advantage of linux (slim, easy, total cost of ownership )

What OS is "home desktop computer"?
My knowlede covers only linux, windows and OSX. ;)

hophans
17-09-2015, 13:30
Ok, the standard advantage of linux (slim, easy, total cost of ownership )

What OS is "home desktop computer"?
My knowledge covers only linux, windows and OSX. ;)

Well the advantages of linux goes away with a lag of knowledge. It can work well for basic tasks such as browsing the internet, office tasks and general file management.
Any more advanced tasks on linux does require a "nerd" gen. If you are not willing to understand the motor behind the system i will not recommend linux, being a "home desktop computer" or server.

And just for the sheer "nerd gen" i think that Windows covers a rather large percentage of "home desktop computers" (with out knowing the exact number) ;)

Snoopy
18-09-2015, 16:54
Deleted...does not work... :grumpy:

Snoopy
18-09-2015, 19:05
Hi,

the dedicated server crashes with this (old) Config:
logLevel : "info"
eventsLogSize : 100000
name : "THE SERVER NAME"
secure : true
password : "THE PWD"
maxPlayerCount : 32
steamPort : 8766
hostPort : 27015
queryPort : 27016
sleepWaiting : 100
sleepActive : 15
enableHttpApi : true
httpApiLogLevel : "info"
httpApiInterface : "127.0.0.1"
httpApiPort : 9000
The Server has Problems if the Host leaves the Session.
The Dedi tries to make a Handshake to the new Host, but it crashes completely, no Processes activ for this Server on the Machine.

Giving him more Options works again
logLevel : "info"
eventsLogSize : 100000
name : "pCARS-Forum.de ARL - Rookie League GT4"
secure : true
password : "RLGT42015"
maxPlayerCount : 32
steamPort : 8766
hostPort : 27015
queryPort : 27016
sleepWaiting : 100
sleepActive : 15
enableHttpApi : true
httpApiLogLevel : "info"
httpApiInterface : "127.0.0.1"
httpApiPort : 9000

enableLuaApi : true
luaAddonRoot: "lua"
luaConfigRoot: "lua_config"
luaOutputRoot: "lua_output"
luaApiAddons : [
"sms_base",
"sms_rotate",
"sms_motd",
]

Snoopy
18-09-2015, 19:22
Hi,

next Problem...

The dedicated Server disconnects from Steam also in Patch 4.

At this case some Users crash and were disconnected from Server.
[2015-09-18 21:15:03] WARNING: Disconnected from Steam
[2015-09-18 21:15:04] INFO: Received request from NUMBER: leave user NUMBER, index 0, refid 0, reason 1
[2015-09-18 21:15:04] INFO: Removing user NUMBER (USER) at index 5, refId 53829, admin 0 - with reason 1
[2015-09-18 21:15:04] WARNING: User NUMBER sent game datagram targeted to recipient with refId 53829, but there is no such member in the session
[2015-09-18 21:15:04] WARNING: User NUMBER sent game datagram targeted to recipient with refId 53829, but there is no such member in the session
[2015-09-18 21:15:04] WARNING: Failed to reconnect to Steam, trying again...
[2015-09-18 21:15:10] WARNING: Failed to reconnect to Steam, trying again...
[2015-09-18 21:15:17] INFO: Received request from NUMBER: leave user NUMBER, index 0, refid 0, reason 1
[2015-09-18 21:15:17] INFO: Removing user NUMBER (USER) at index 0, refId 14144, admin 0 - with reason 1
[2015-09-18 21:15:17] WARNING: User NUMBER sent game datagram targeted to recipient with refId 14144, but there is no such member in the session
[2015-09-18 21:15:19] WARNING: Failed to reconnect to Steam, trying again...
[2015-09-18 21:15:31] WARNING: Failed to reconnect to Steam, trying again...
[2015-09-18 21:15:39] INFO: Connection to Steam established
[2015-09-18 21:15:39] INFO: Server logged in with Steam id 90097286939537409 ; server is secure

Also the Problem still exists where Users (with absolute fine Ping-Rate) were disconnected...

Mattias
19-09-2015, 19:06
2 out of 5 servers got Segmentation fault after less than 12 hours running on the new DS version.
They use the same config file which came with the last patch. Therefore lua scripting is disabled right now.

But that shouldn't cause a segmentation fault.

Can I turn on debug mode for the dedicated servers?

satco1066
19-09-2015, 21:06
Well the advantages of linux goes away with a lag of knowledge. It can work well for basic tasks such as browsing the internet, office tasks and general file management.
Any more advanced tasks on linux does require a "nerd" gen. If you are not willing to understand the motor behind the system i will not recommend linux, being a "home desktop computer" or server.

And just for the sheer "nerd gen" i think that Windows covers a rather large percentage of "home desktop computers" (with out knowing the exact number) ;)

nah, hophans.
I'm sysadmin for big companies for more than 30 years, no nerd.

If your'e answering some question , please read the question carefully before you let hang out your big knowledge about something that was not asked.

i asked for for advantage of linux (DS) server over windows (DS) server.
Here is the DS section, not the OS section!

Your answer was useless. First you compared two OSes and then your talking about homed desktop computers, that is NO OS.

and the next answer was useless times 2. Here you're talking about OS philosophy and nerd generation, that i also excluded in the original question .

SO, my question is definitively NOT answered.

Mattias
20-09-2015, 20:03
Most likely pretty much the same source code for both just compiled for different systems.
Which means you shouldn't gain any advantage running it on a linux server over a windows server.

SteamCMD (which I use to run the DS's with) also works on both windows and linux, so no real advantage there either.

Use whatever suits you ;)


As for the DS crashes, it seems it happens on host migration, that's the last message always seen on all servers before they segfault.
Seems this crash bug got in with the latest patch.

satco1066
20-09-2015, 22:02
Most likely pretty much the same source code for both just compiled for different systems.
Which means you shouldn't gain any advantage running it on a linux server over a windows server.

SteamCMD (which I use to run the DS's with) also works on both windows and linux, so no real advantage there either.

Use whatever suits you ;)


As for the DS crashes, it seems it happens on host migration, that's the last message always seen on all servers before they segfault.
Seems this crash bug got in with the latest patch.

Thank you, this was the answer i wanted to hear.

satco1066
20-09-2015, 22:12
Another question:
Is there an option to use the DS with steam client in offline mode?

We had to stop 2 longruns ( 1h30 ) after continuous steam connection problems this weekend.
Many users complaint about steam problems this days.

I put our DS as favorite in steam server browser, PCars is starting but does not connect to the DS. Neither in Steam online mode nor in offline mode.
Didn't that work in patch 3.0?

Alan_Bernardo
20-09-2015, 22:49
Another question:
Is there an option to use the DS with steam client in offline mode?

We had to stop 2 longruns ( 1h30 ) after continuous steam connection problems this weekend.
Many users complaint about steam problems this days.

I put our DS as favorite in steam server browser, PCars is starting but does not connect to the DS. Neither in Steam online mode nor in offline mode.
Didn't that work in patch 3.0?

I'm trying to get straight what you're trying to say here so that I can figure whether we're having the same problem.

First, some unrelated things, mentioned in your post.

What do you mean by offline mode? Offline in the Friends' list? I've done that before, at least I've played the game in offline mode (Friends see me as offline, that is).

How do you mean, "I put our DS as favorite in steam server browser"? I see nowhere where that can be done. What browser? The in-game one?

Now, to a related issue. When you say "PCars is starting but does not connect to the DS", do you mean that you start the game but cannot see your server? Or that you see your server and cannot connect to it from the in-game browser?

My problem is that when I start the server and check this site,

http://cars-stats-steam.wmdportal.com/index.php/servers

I can see my server. But once I get in the game and browse the in-game list, I cannot see my server. I've tried this dozens of times (more like a couple of dozens) and it's the same thing, except for ONE time, where I actually saw two instances of the same server and was able to enter one of them. That happened once and once only.

It's almost as if the server is there but Steam is restricting the region it's in. But then that probably is not the case, since others haven't been able to see the server for days and the API is not showing anyone connecting from anywhere else.

Fact is, I can't even access the API from the web (/status) any more, UNLESS I use a configuration from 3.0, in which case I still cannot see the server in the in-game browser though I can see it from the link listed above.

This all started happening with the release of 4.0. Everything was fine with 3.0, except that it took me a couple of restarts of the game in order to see the server in-game and then race on it.

On a somewhat related note, I'm truly disappointed in not only the lack of any kind of dev support for this game, but also from the lack of any consistent community support. The lack of dev support is not that surprising, but this lack of community support is rather disappointing.

I only wish that someone who is running a DS-- whether from home or from a remote server-- would pipe up here and let me know what their configurations look like. Everyone is concerned with all this API stuff, most of which is buggy and doesn't work. We're not going to get any help from the game developers, who invariably add new things to the server config and give us little or no information about what it does.

I've been trouble-shooting this problem I'm having all day, trying different configurations. The most constant is that the game server appears in the outside web site but does not appear in the game (except for once).

My only conclusion here is that the DS system is completely bugged. It was poorly implemented from the start and with each new release becomes even more of a mystery about how it actually works than what came before.

satco1066
20-09-2015, 23:06
I'm trying to get straight what you're trying to say here so that I can figure whether we're having the same problem.

First, some unrelated things, mentioned in your post.

What do you mean by offline mode? Offline in the Friends' list? I've done that before, at least I've played the game in offline mode (Friends see me as offline, that is).

How do you mean, "I put our DS as favorite in steam server browser"? I see nowhere where that can be done. What browser? The in-game one?

Now, to a related issue. When you say "PCars is starting but does not connect to the DS", do you mean that you start the game but cannot see your server? Or that you see your server and cannot connect to it from the in-game browser?
.

You can start steam in online and in offline mode. Klick in steam client "STEAM" tab and select "go offline"
In offline mode you can only see your local things as you are not connected to steam servers.



The server browser is a tool of steam.

klick on the second tap in steam client ( View / german "Anzeige" ) and select server.

Then the server browser is started.

218610

Here you can see many running active servers in internet, favorites , lan game servers, Friends servers et.
In favorites you can enter a new server by ip/port , then you can quick connect to this server.
This once worked for pcars, somebody inside this forum wrote a note about that.
But now, when you select a DS in the server browser you are asked for the password ( if there is one),
then, if not allready startet, PCars will be, and then nothing.

Before you were directly connected to the session on this server.

satco1066
20-09-2015, 23:29
I can see my server. But once I get in the game and browse the in-game list, I cannot see my server. I've tried this dozens of times (more like a couple of dozens) and it's the same thing, except for ONE time, where I actually saw two instances of the same server and was able to enter one of them. That happened once and once only.

It's almost as if the server is there but Steam is restricting the region it's in. But then that probably is not the case, since others haven't been able to see the server for days and the API is not showing anyone connecting from anywhere else.

Fact is, I can't even access the API from the web (/status) any more, UNLESS I use a configuration from 3.0, in which case I still cannot see the server in the in-game browser though I can see it from the link listed above.

This all started happening with the release of 4.0. Everything was fine with 3.0, except that it took me a couple of restarts of the game in order to see the server in-game and then race on it.



If you see your server 2 times, you left the bind iP field empty. So the DS binds to every ip on your PC, the internal AND the external ip address.
That's why you see it double. From the internet only the external ip can be seen, so only one.

To get http: connection for HttoApi, you should enter your external IP address in httpApiInterface : " ".
127.0.0.1 only works on your local Pc. Not on any device in your network or from internet.
As DS seems to have no upnp functionality, you have to assign all ports and redirections in you router.

If that worked before and doesn't now, i suggest to check the cfg again or create it new from sample config. Maybe you deleted a semnicolon or a slash
and the cfg is useless.

Note, i'm just a user, not developer of SMS.

satco1066
20-09-2015, 23:42
hey Alan, maybe you edited in the wrong line.

just a sample. :cool:

218613

Alan_Bernardo
22-09-2015, 00:29
If you see your server 2 times, you left the bind iP field empty. So the DS binds to every ip on your PC, the internal AND the external ip address.
That's why you see it double. From the internet only the external ip can be seen, so only one.

To get http: connection for HttoApi, you should enter your external IP address in httpApiInterface : " ".
127.0.0.1 only works on your local Pc. Not on any device in your network or from internet.
As DS seems to have no upnp functionality, you have to assign all ports and redirections in you router.

If that worked before and doesn't now, i suggest to check the cfg again or create it new from sample config. Maybe you deleted a semnicolon or a slash
and the cfg is useless.

Note, i'm just a user, not developer of SMS.

Thanks for the info!

Things worked yesterday with my home server. Today, same configuration, and it doesn't show in the in-game browser.

It shows on the website list. But not in game. Same exact configuration.

Snoopy
22-09-2015, 08:48
Thanks for the info!

Things worked yesterday with my home server. Today, same configuration, and it doesn't show in the in-game browser.

It shows on the website list. But not in game. Same exact configuration.Hi,

which WebSite List do you mean?
This one here? http://cars-stats-steam.wmdportal.com/index.php/servers
This List is limited to a "maximum Amount Server" of 100.
Is is a fluke to see his own Server in this List.
Don't interprete this List...
Some Server are there listed, others not, next time it can be completely different.

Is your InGame Browser setted in all possible Filters to "all"?
Since 4.0 the Car Filter is modified, which everybody has to adjust once.

Have you adjusted your Team Ping Rate to Server?
http://ccm.net/faq/40659-steam-how-to-set-the-maximum-allowed-ping-for-game-servers
You should set it to "Automatic".

Stepan Vondrak
22-09-2015, 10:40
2 out of 5 servers got Segmentation fault after less than 12 hours running on the new DS version.
They use the same config file which came with the last patch. Therefore lua scripting is disabled right now.

But that shouldn't cause a segmentation fault.

Can I turn on debug mode for the dedicated servers?

Thanks for the report, I'll have a look at the migration crash, I have not seen that here before (feel free to PM me directly about crashes if I don't answer within few days, I sometimes miss these)

Stepan Vondrak
22-09-2015, 10:43
Another question:
Is there an option to use the DS with steam client in offline mode?

We had to stop 2 longruns ( 1h30 ) after continuous steam connection problems this weekend.
Many users complaint about steam problems this days.

I put our DS as favorite in steam server browser, PCars is starting but does not connect to the DS. Neither in Steam online mode nor in offline mode.
Didn't that work in patch 3.0?

No that is not possible, the DS uses Steamworks networking APIs and Steam lobbies, so it needs to have Steam running and online for any networking. That's probably something we'll have to revisit for any major rewrites for pCARS2, and use our own socket-based networking for DS without Steam lobbies instead to improve the stability. Steam is not always super stable.

Also we currently do not support joining a DS via the builtin server browser in Steam, which is why we also did not ask Valve to appear in the game list chooser there. It's something we might support in the future, but it does not work now.

Alan_Bernardo
22-09-2015, 11:32
Hi,

which WebSite List do you mean?
This one here? http://cars-stats-steam.wmdportal.com/index.php/servers
This List is limited to a "maximum Amount Server" of 100.
Is is a fluke to see his own Server in this List.
Don't interprete this List...
Some Server are there listed, others not, next time it can be completely different.

So you're saying it's a fluke to see my server on this list? It may be limited to 100, but I always see it when I start the DS. When I shut down the server, it disappears from the list. Open it up, it's there. So it's not completely different, at least not when my server is concerned. Are you saying that a server can appear on this list without it having been started on the user end? That seems improbable.

Still, that does not account for the server working with the same configuration only a day ago and always working prior to 4.0.


Is your InGame Browser setted in all possible Filters to "all"?
Since 4.0 the Car Filter is modified, which everybody has to adjust once.

The filter has been changed. I checked that right off.


Have you adjusted your Team Ping Rate to Server?
http://ccm.net/faq/40659-steam-how-to-set-the-maximum-allowed-ping-for-game-servers
You should set it to "Automatic".

I've never touched this setting and it has always been on "automatic". Again, other DS (e.g., assetto corsa) work just fine and the PC DS worked before.

Have you totally discounted this post,

http://forum.projectcarsgame.com/sho...-API&p=1122377

and whether that has something to do with it?

Snoopy
22-09-2015, 11:51
Hi


So you're saying it's a fluke to see my server on this list? It may be limited to 100, but I always see it when I start the DS.Yes it is.
I have 6 Servers online, all 6 are working and not one of those Servers are listed there.
Sometimes one Server is there.
Maybe 2 but after a while none of those Server are listed (but they work, in the Online Session Browser (inGame) they are view/joinable).

Surely a "not startet Server" will not be listed there, but you can't be sure that a startet Server is listed there.


Have you totally discounted this post,

http://forum.projectcarsgame.com/sho...-API&p=1122377

and whether that has something to do with it? The Link doesn't work, can you send the Thread-Link again?

Stepan Vondrak
22-09-2015, 13:04
As for the DS crashes, it seems it happens on host migration, that's the last message always seen on all servers before they segfault.
Seems this crash bug got in with the latest patch.

Hi Mattias. Unfortunately I can't reproduce this issue on our servers. I'll try to triple check the code to see what might be going wrong, but meanwhile could you run your servers with core dump enabled? I assume you are running them on Linux since you use the term "segfault". Run "ulimit -c unlimited" before the DS to enable core dumps, and check that it's enabled with "ulimit -a". Thanks!

Mattias
22-09-2015, 18:05
Hi Mattias. Unfortunately I can't reproduce this issue on our servers. I'll try to triple check the code to see what might be going wrong, but meanwhile could you run your servers with core dump enabled? I assume you are running them on Linux since you use the term "segfault". Run "ulimit -c unlimited" before the DS to enable core dumps, and check that it's enabled with "ulimit -a". Thanks!

Yeah, this is under linux. Ubunutu 15.04 to be exact.
I've done ulimit -c unlimited and verified that it was set, and now running the servers like usual. (Had to run this in all tmux windows, 5x of them)
Just waiting for someone to cause a host migration now :) Or I'll force one later tonight.

Edit: I've now pm'd the core dump. Also got more core dumps now from the other servers, but gdb says the same thing for all of them. Lua is causing this error but lua is supposed to be disabled in my configuration.

Alan_Bernardo
22-09-2015, 20:24
Hi

Yes it is.
I have 6 Servers online, all 6 are working and not one of those Servers are listed there.
Sometimes one Server is there.
Maybe 2 but after a while none of those Server are listed (but they work, in the Online Session Browser (inGame) they are view/joinable).

Surely a "not startet Server" will not be listed there, but you can't be sure that a startet Server is listed there.

The Link doesn't work, can you send the Thread-Link again?

But the real question is whether any of your servers do appear in the web browser and then do NOT appear in the in-game browser.

That's a whole different situation than one not appearing in the web browser and then appearing in game.

Here's the post, the first one on page 26:

http://forum.projectcarsgame.com/showthread.php?26520-Dedicated-Server-API/page26

Stepan Vondrak
23-09-2015, 08:03
Yeah, this is under linux. Ubunutu 15.04 to be exact.
I've done ulimit -c unlimited and verified that it was set, and now running the servers like usual. (Had to run this in all tmux windows, 5x of them)
Just waiting for someone to cause a host migration now :) Or I'll force one later tonight.

Edit: I've now pm'd the core dump. Also got more core dumps now from the other servers, but gdb says the same thing for all of them. Lua is causing this error but lua is supposed to be disabled in my configuration.

Thanks, I see what's wrong now, it should be fixed and released in an hour or two. If you want to fix it on the servers meanwhile, enable the Lua API, and then just comment out all Lua addons - that way the API will be initialized but won't do anything. The crash was a stupid bug calling uninitialized Lua API interface.

Edit: Build with this fixed has been released.

MrPouet
27-09-2015, 17:36
Hi,
I have mounted a dedicated server but, with the sunday evening overload Steam Traffic, my friends and Me diconnect from the Server . the server is always started everything looks like OK
is it normal ?

Stepan Vondrak
28-09-2015, 16:47
Unfortunately various Steam issues are not helping too much with the server stability, so we plan to improve two things on it:

1. We'll stop using Steam's "send to Steam ID" networking functions when communicating with the server, and instead use sockets directly. This API is mostly intended for peer-to-peer communication and NAT punchthrough and probably implements several features that are no needed (and maybe detrimental) to communication with open servers. Also using sockets directly will not need Steam to be connected and online. But this code will not be able to communicate with servers behind NAT or strict firewalls, the DS will need to be hosted on public IP, or with all ports properly forwarded.

2. We'll stop using Steam lobbies for dedicated server sessions. This is code currently shared with peer to peer code path, and handles players searching for and joining/leaving sessions. The DS already handles most of it on its own, it just still uses lobbies as well for things like host migration and discovery of non-empty sessions in the browser.

Doing both should completely remove issues where if Steam goes down or has hiccups, the server also has problems. It should be possible to even join a server if it fails to connect to Steam's master server list, via its IP.

But this is all very long-term plans, do not expect it to be included in the game anytime soon.

Dmitry Afanasyev
28-09-2015, 16:58
Even if it is long-term plans it is still great news!

t0daY
28-09-2015, 17:04
Hello guys,

I have got 2 quick questions about the DS. First one is, is it normal that a dedicated server can only use one cpu kernel at the same time? I had this issue last week hosted 2 DS at the same time with each 20 players. My taskmanager showed me some "weird" datas. One DS was on 80-90% CPU usage the other one around 40-50%. This leads me to the question if one DS is only capable of using one cpu kernel or is it just something which I totally miss? :D

Second one. It seems that the DS is crashing when the "host" of the DS is leaving the session before it returns to the lobby after a race. Is this problem known?

Anyway big thanks for your work Mr. Vondrak, the progress of the DS since the last couple weeks was quite amazing :) Looking forward to new updates, new features and so on :) Hopefully someone can help me here :D

Cheers!

Hondo
29-09-2015, 08:41
Hi Guys,

I also run couple of dedicated servers and I can confirm if the host leaves the session the whole thing crashes. I can see the in the log that it says admin us migrated to another user and then the server client crashes making it really had
to run league races now. Can this be looked in to.

Thanks,
Hondo

t0daY
29-09-2015, 14:26
Hi Guys,

I also run couple of dedicated servers and I can confirm if the host leaves the session the whole thing crashes. I can see the in the log that it says admin us migrated to another user and then the server client crashes making it really had
to run league races now. Can this be looked in to.

Thanks,
Hondo

"nice" to hear it isnt only my problem. That indicate I am not too stupid :D :D You also got the "problem" that 1x DS is running just on 1x kernel instead of multiple?

Snoopy
29-09-2015, 14:42
Hi Guys,

I also run couple of dedicated servers and I can confirm if the host leaves the session the whole thing crashes. I can see the in the log that it says admin us migrated to another user and then the server client crashes making it really had
to run league races now. Can this be looked in to.

Thanks,
Hondo
Hi,

did you load Lua in your Config?
See this one: http://forum.projectcarsgame.com/showthread.php?22370-Dedicated-Server-HowTo-%28Work-in-Progress%29&p=1122849&viewfull=1#post1122849

Hondo
29-09-2015, 23:04
Hi,

did you load Lua in your Config?
See this one: http://forum.projectcarsgame.com/showthread.php?22370-Dedicated-Server-HowTo-%28Work-in-Progress%29&p=1122849&viewfull=1#post1122849

Hey Snoopy,

Lua Api was disabled. Are you saying enable it. I'll give it a go. This what I had at the moment in my config.

enableLuaApi : false
luaAddonRoot: "lua"
luaConfigRoot: "lua_config"
luaOutputRoot: "lua_output"

M. -VIPER- Morgan
30-09-2015, 05:59
Hi,

I don't know if it is DS related, but if I use the "Fill with AI" option on a DS the game crashes on client side.
It is reproducible. "Fill with AI" on -> crash, "Fill with AI" off -> no crash. All other settings are the same.

Additional info:
Server and Client are 64 Bit systems.
Server is a Ubuntu OS.
server.cfg: maxPlayerCount : 64 and "MaxPlayers" : 32
I join on an empty server via game browser.
Tested on Sonoma GP with GT3. 2nd practice 5 min, quali 15 min, 5 lap race.
Game Lobby says 32 possible slots. Interesting: in the upper right you can see the number of human player + number of AI and the number of AI is extremely high, maybe 8 digits, I don't know exactly.
If I then start the session alone without any other human player the game crashes.

219361

cogent
30-09-2015, 10:23
Hi,

I don't know if it is DS related, but if I use the "Fill with AI" option on a DS the game crashes on client side.
It is reproducible. "Fill with AI" on -> crash, "Fill with AI" off -> no crash. All other settings are the same.

Additional info:
Server and Client are 64 Bit systems.
Server is a Ubuntu OS.
server.cfg: maxPlayerCount : 64 and "MaxPlayers" : 32
I join on an empty server via game browser.
Tested on Sonoma GP with GT3. 2nd practice 5 min, quali 15 min, 5 lap race.
Game Lobby says 32 possible slots. Interesting: in the upper right you can see the number of human player + number of AI and the number of AI is extremely high, maybe 8 digits, I don't know exactly.
If I then start the session alone without any other human player the game crashes.

219361

I can confirm that.
I got this crashes too until I noticed that "Fill with AI is on in the game settings.
It hangs during "Synchronization" and after some seconds it crashes.

satco1066
30-09-2015, 12:56
I can confirm that.
I got this crashes too until I noticed that "Fill with AI is on in the game settings.
It hangs during "Synchronization" and after some seconds it crashes.

also confirmed and announced that tip to disable AI some weeks ago.

What i've seen once was following: 1/32 players + 49746 AI.
Not reproducable.

Maybe here is an uninitialised variable in your code, Stephan

t0daY
30-09-2015, 21:15
Hello guys,

I have got 2 quick questions about the DS. First one is, is it normal that a dedicated server can only use one cpu kernel at the same time? I had this issue last week hosted 2 DS at the same time with each 20 players. My taskmanager showed me some "weird" datas. One DS was on 80-90% CPU usage the other one around 40-50%. This leads me to the question if one DS is only capable of using one cpu kernel or is it just something which I totally miss? :D

Second one. It seems that the DS is crashing when the "host" of the DS is leaving the session before it returns to the lobby after a race. Is this problem known?

Anyway big thanks for your work Mr. Vondrak, the progress of the DS since the last couple weeks was quite amazing :) Looking forward to new updates, new features and so on :) Hopefully someone can help me here :D

Cheers!

*push* :D :D

I really need to know if it is running only on 1 cpu kernel or more!! :D :D :p

DFAlex
01-10-2015, 22:27
also confirmed and announced that tip to disable AI some weeks ago.

What i've seen once was following: 1/32 players + 49746 AI.
Not reproducable.

Maybe here is an uninitialised variable in your code, Stephan

Hello,
same problem here...at Malzbierbude.de Servers...
It tries to add 4mio. AI Drivers...at the end the Game crash...
After i disabled the AI, every thing works fine now...

regards
Alex

Mattias
02-10-2015, 07:32
I pm'ed Stepan about this a while back with a screenshot and what I think might have caused it.
Hopefully it'll get fixed in the next patch, but the easy fix is just to disable the AI stuff in the flags.

It's 100% reproduceable.

I think it is when you have FILL_SESSION_WITH_AI on but AI_ALLOWED off.

Which kind of makes no sense any ways.

M. -VIPER- Morgan
02-10-2015, 08:10
Good hint.

Has anyone tested it to set both flags on. Unfortunatley I have no time at the moment.
In the default server.cfg AI_ALLOWED is off and FILL_SESSION_WITH_AI on



// Race flags - bitfield consisting of many flags, the default is set like this:
// ALLOW_CUSTOM_VEHICLE_SETUP (8) + ABS_ALLOWED (32) + SC_ALLOWED (64) + TCS_ALLOWED (128) + "
// FORCE_SAME_VEHICLE_CLASS (1024) + FILL_SESSION_WITH_AI (131072) + AUTO_START_ENGINE (524288) = 656616"
// See /api/list/flags/session in HTTP API, or globals "lists.flags.session" or "SessionFlags" in Lua API for the full list.
"Flags" : 656616,


AI_ALLOWED=on means adding 1 to the flag value. In result it should be 656617.

Stepan Vondrak
05-10-2015, 08:17
Hey Snoopy,

Lua Api was disabled. Are you saying enable it. I'll give it a go. This what I had at the moment in my config.

enableLuaApi : false
luaAddonRoot: "lua"
luaConfigRoot: "lua_config"
luaOutputRoot: "lua_output"

Did you try it with Lua enabled, did it change anything? I fixed a host migration crash with Lua disabled, it's weird it's still happening to some people. On which OS are you running the servers? If on Linux, could you please run "ulimit -c unlimited" before starting the server, and then if it crashes send me the coredump?

Stepan Vondrak
05-10-2015, 08:21
*push* :D :D

I really need to know if it is running only on 1 cpu kernel or more!! :D :D :p

And why would it matter whether the server uses one core or not? No it does not, it's strictly singlethreaded apart from maybe some bits inside Steam out of my control. There is no point in making it multithreaded, it should consume very little CPU and multithreading would not help it at all. Your numbers look weird, the CPU usage should be much lower. One what OS and processor are you running the server, how many players were on the server when you measured those numbers? Do you have Lua or HTTP API enabled, do you have anything making queries to the server via the HTTP API (spamming it with queries could make the CPU usage go higher than usual)? Did you tweak the configuration to make the server tick more often?

Stepan Vondrak
05-10-2015, 08:23
Good hint.

Has anyone tested it to set both flags on. Unfortunatley I have no time at the moment.
In the default server.cfg AI_ALLOWED is off and FILL_SESSION_WITH_AI on



// Race flags - bitfield consisting of many flags, the default is set like this:
// ALLOW_CUSTOM_VEHICLE_SETUP (8) + ABS_ALLOWED (32) + SC_ALLOWED (64) + TCS_ALLOWED (128) + "
// FORCE_SAME_VEHICLE_CLASS (1024) + FILL_SESSION_WITH_AI (131072) + AUTO_START_ENGINE (524288) = 656616"
// See /api/list/flags/session in HTTP API, or globals "lists.flags.session" or "SessionFlags" in Lua API for the full list.
"Flags" : 656616,


AI_ALLOWED=on means adding 1 to the flag value. In result it should be 656617.

I'll have a look again, I was not able to reproduce this problem when I tried last time. The game generates the AI vehicles, not the server, so it might be a bug there. I'll might have to hack how the server sets the flags if the game can't cope with this combination.

Btw you should use the sms_rotate Lua addon to tweak the setup, even if you do not want to rotate setups it's much more convenient because it lets you set tracks/cars/flags/etc by their name instead of fiddling with these numbers.