PDA

View Full Version : Cannot see Project Cars 2 Dedicated Server in the mp server list



Marc Wieneke
23-09-2017, 08:45
Installation via Steam GUI:
The installation works, it is possible to grab the files and copy them to a dedicated Windows server. But the server is not visible in the multiplayer server list. Switching the parameter controlGameSetup in server.cfg and using -searchds does not work either. It seems that it does not search for the given server name at all.

Installation via steamcmd on linux:
At the moment you have to login to steam with steamcmd to execute: ./steamcmd.sh +login STEAM_USERNAME +force_install_dir ./pcars2 +app_update
413770 validate +quit

But there are no files transfered, not on windows and not on linux. It says "progress: 0,00 (0 / 0)....fully installed!"


./steamcmd.sh +login ****** +force_install_dir /home/pcars2/serverfiles +app_update 413770 validate +quit
Redirecting stderr to '/home/pcars2/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.

Logging in user '******' to Steam Public...
Using cached credentials. . .
Logged in OK
Waiting for user info...OK
Update state (0x5) validating, progress: 0,00 (0 / 0)
Success! App '413770' fully installed.
But there are no game files afterwards.

Installation via steamcmd on Windows yesterday does not worked either but today it works.


Is it possible to host and connect a dedicated server at the moment? Does somebody managed it to get it working?

erickgoldner
23-09-2017, 12:56
Installation via Steam GUI:
The installation works, it is possible to grab the files and copy them to a dedicated Windows server. But the server is not visible in the multiplayer server list. Switching the parameter controlGameSetup in server.cfg and using -searchds does not work either. It seems that it does not search for the given server name at all.

Installation via steamcmd on linux:
At the moment you have to login to steam with steamcmd to execute: ./steamcmd.sh +login STEAM_USERNAME +force_install_dir ./pcars2 +app_update
413770 validate +quit

But there are no files transfered, not on windows and not on linux. It says "progress: 0,00 (0 / 0)....fully installed!"


./steamcmd.sh +login ****** +force_install_dir /home/pcars2/serverfiles +app_update 413770 validate +quit
Redirecting stderr to '/home/pcars2/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.

Logging in user '******' to Steam Public...
Using cached credentials. . .
Logged in OK
Waiting for user info...OK
Update state (0x5) validating, progress: 0,00 (0 / 0)
Success! App '413770' fully installed.
But there are no game files afterwards.

Installation via steamcmd on Windows yesterday does not worked either but today it works.


Is it possible to host and connect a dedicated server at the moment? Does somebody managed it to get it working?

Like i mentioned on this post: http://forum.projectcarsgame.com/showthread.php?51750-Dedicated-Server-GUI/page2

Try to change the MP Browser filters to Dedicated only and apply!

My server was showing only after doing this!
Probably has something to do with yesterdays patch for fixing the MP !

Marc Wieneke
23-09-2017, 13:04
Thanks. But unfortunately this does not help. I am running game servers for 15 years now but cannot get this thing running. Running pcars1 servers was not a problem either. This is disappointing for me.

I cannot see the server but in the DOS console window I can see that others are joining the server but failing to connect. Probably because they do not know the password.

The parameter -searchds does not work too.

Marc Wieneke
23-09-2017, 19:30
My server "Winnies Test" is in the server list too:
http://cars2-stats-steam.wmdportal.com/index.php/servers
In this list are many servers listet but ingame are only 16 dedicated servers listed for me. So it seems that not everybody can see every server...

Their are linux based servers too but I cannot download the server via steamcmd on linux.

Bavarian Turbo
24-09-2017, 05:56
here i see a lot of dedicated Servers
http://cars2-stats-steam.wmdportal.com/index.php/servers

but inGame it shows just 16 dedicates Servers, sometimes 30, but never all

Blackrat
24-09-2017, 08:40
I found the refresh list is not very good in game and had to exit out of the game and back in to see my server.

Visceral_Syn
24-09-2017, 15:54
I found the refresh list is not very good in game and had to exit out of the game and back in to see my server.

Opinion on good or bad, but if I joined my test server, then came back out the list would not refresh, and restarting pCarsē corrected this. The sheer amount of time it takes to update the server list is mind boggling too...

m00lean
25-09-2017, 16:24
Any news on the Linux DS yet?

Ross Hawkey
30-09-2017, 13:08
Is there any update on this? I see the RaceConnect server on the dedi list linked above, but as yet, despite many many refreshes in game, I've never seen the RaceConnect dedi shown (and I have filtered to Dedicated servers only).

whip
30-09-2017, 14:15
the server browser is terrible, hopefully it gets an overhaul

Ross Hawkey
01-10-2017, 11:43
Is there a thread anywhere to suggest that the Developers are aware of this issue? I'm sure they are.

For me, I'd have preferred WMD to have put in a bit more effort in getting the community sim-racing sorted, than having a dramatic operatic sound score playing in the background.

I guess my priorities are different, but I was really hoping for a decent bullet proof Dedi server setup tool to be included in pCars2. Instead, we have a manually edited config tool and json files to deal with. Even the likes of GTR2 (and other sims) over a decade ago had a simple (but very decent and effective) dedi manager program built in with the sim.

Ross Hawkey
01-10-2017, 13:39
I read this at BSimRacing earlier in the year

PCars2 Dedi Server Options (http://www.bsimracing.com/project-cars-2-a-look-at-the-dedicated-server-options/)

That's what I had been hoping for, yet at release, there seems to be no sign of it. Or have I missed something?

surtic86
02-10-2017, 09:03
..

Enable the HttpAPI and you have Access to this GUI.

Visceral_Syn
02-10-2017, 11:22
I read this at BSimRacing earlier in the year

PCars2 Dedi Server Options (http://www.bsimracing.com/project-cars-2-a-look-at-the-dedicated-server-options/)

That's what I had been hoping for, yet at release, there seems to be no sign of it. Or have I missed something?

Enable and configure the http api, its there.

Ross Hawkey
02-10-2017, 14:29
Thanks surtic86, and Visceral Syn.

Is there a guide on how to do this somewhere? It's not a straight .exe to run the Dedi control panel I guess.

If there's a link on the forums here to 'step by step' setting this up, then that'd be great. Sorry if I've missed it, but I've been in and out of forums here trying to sort this, but am getting nowhere.

surtic86
02-10-2017, 14:41
///////////////////////////
// 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

// Master enable/disable toggle.
enableHttpApi : false


Turn it on by change the Value of enableHttpApi: true




// Interface name or IP where to bind the local http server providing the API and web-based controls.
// This is the textual name of the interface as assigned by your OS, or IP address of the interface.
// The default value is "127.0.0.1", change it to an empty string to bind the listen socket to all available interfaces.
httpApiInterface : "127.0.0.1"


With this Setting you can define from where you have Access on the API. With this 127.0.0.1 you can just Access it from your Localhost. When you want to open it for the WORLD change it to 0.0.0.0



// Port where the local http server listens.
httpApiPort : 9000


The Port on which you need to Access it URL http://localhost:9000




// 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, so just use "*" for a generic wildard for now, that will match everything in the future too.
httpApiExtraHeaders : {
"*" : "Access-Control-Allow-Origin: *"
}

// Http API access level overrides.
// Each HTTP API endpoint defines its default access level, usually one of "public", "private" or "admin".
// This map can override these levels to anything else. The keys are wildcard endpoint paths, and the values are the
// access levels to use. The first path that matches will be used, processing them in the order as written here.
// The wildcard patterns are case-sensitive and can contain:
// - '*': matches 0 or more characters
// - '%': matches 0 or more characters except for forward slash
// - '?': matches 1 character
httpApiAccessLevels : {
// The default is empty, using defaults as defined by the endpoints themselves.

// But you could for example use this to change all access levels to public (not recommended!)
// "*" : "public"

// Or this to hide the status from public
// "" : "private"
// "status" : "private"

// And similar to hide the help and lists from public
// "api/help" : "private"
// "api/list*" : "private"

// As you can see from the example above, the paths should be written with no initial or trailing slashes.
}

// Filtering rules for the access levels.
// The default access levels are "public", "private" and "admin", but the httpAccessLevels above can define any additional levels.
// This map then tells the server who has access to which level. It's a map from level names to filtering rules.
//
// Filtering rules are then specified as a list of structures, processed in the order as written in the config.
// Each rule structure contains a type" and then type-specific fields. The supported types are:
// - "accept": Accept this request, no additional checks.
// - "reject": Reject this request, no additional checks.
// - "reject-password": Reject this request and let the client know that a password is required, no additional checks.
// - "ip-accept": Accept this request if it matches the "ip" mask in CIDR notation (for example, "192.168.1.0/24")
// - "ip-reject": Reject this request if it matches the "ip" mask in CIDR notation (for example, "192.168.1.0/24")
// - "user": Accept this request if it authenticates as given "user".
// - "group" : Accept this request if it authenticates as given "group".
//
// User/group authentication is done using the standard HTTP basic access authentication (https://en.wikipedia.org/wiki/Basic_access_authentication).
httpApiAccessFilters : {

// Public rules. The default is to accept everything.
"public" : [
{ "type" : "accept" }
],

// Private rules. The default is to accept queries from localhost, queries authenticated as users in the "private" group
// and to reject anything else.
"private" : [
{ "type" : "ip-accept", "ip" : "127.0.0.1/32" },
{ "type" : "group", "group" : "private" },
{ "type" : "reject-password" }
],

// Admin rules. The default is to accept queries from localhost, queries authenticated as users in the "admin" group
// and to reject anything else.
"admin" : [
{ "type" : "ip-accept", "ip" : "127.0.0.1/32" },
{ "type" : "group", "group" : "admin" },
{ "type" : "reject-password" }
],

}


Complex stuff which you can Ignore right now for the first Setup.




// User list. Map from user names to passwords, in plain text.
httpApiUsers : {
"USERNAME" : "PASSWORD"
}


Here you can define Users with the Password




// User groups. Map from group names to lists of users in said groups.
httpApiGroups : {
"admin" : [ "USERNAME" ],
}


Here you can add more Groups and add Users to this.


You can find also some other Settings Talking here http://forum.projectcarsgame.com/showthread.php?51949-Dedicated-Server-configuration&p=1380139#post1380139

Ross Hawkey
02-10-2017, 22:16
Sorry, to be not understanding. I see the server.cfg file that I can edit, but how to I go from editing bits of code to actually seeing the dedi server setup options as shown in the link:

PCars2 Dedi Server Options (http://www.bsimracing.com/project-cars-2-a-look-at-the-dedicated-server-options/)

All that happens when I start the pCars2 dedi server is a dos box which confirms the dedi is running without errors, and I can see it in the list HERE (http://cars2-stats-steam.wmdportal.com/index.php/servers), but never in the PCars Lobby in-game.

Is it on the webaddress: http://localhost:9000 using a browser on the dedi?

surtic86
03-10-2017, 05:32
Yes its a WebAdmin GUI "The Port on which you need to Access it URL http://localhost:9000"

Dealman
03-10-2017, 10:02
In order for me to see my own dedicated server at all, I HAVE to use the -autods launch parameter for PCARS 2. -searchds "ServerName" seems to be doing absolutely nothing and have never gotten it to work.

Make sure the allowEmptyJoin(or whatever it's called, at work atm) option is set to true or it won't show up regardless.

surtic86
03-10-2017, 11:29
In order for me to see my own dedicated server at all, I HAVE to use the -autods launch parameter for PCARS 2. -searchds "ServerName" seems to be doing absolutely nothing and have never gotten it to work.

Make sure the allowEmptyJoin(or whatever it's called, at work atm) option is set to true or it won't show up regardless.

You donīt need this Parameter to See your Server. This Parameters are for Creating a Server. So when you have set one of this Params you can create Directly a new Lobby on --autods (a random Dedicated Server) or --searchds="SEARCHSTRING" (a specific Dedicated Server).

Dealman
03-10-2017, 18:25
You donīt need this Parameter to See your Server. This Parameters are for Creating a Server. So when you have set one of this Params you can create Directly a new Lobby on --autods (a random Dedicated Server) or --searchds="SEARCHSTRING" (a specific Dedicated Server).

Well I don't know what to tell you, unless I have that launch parameter it is seemingly impossible for me to join my empty server for it to actually be "created".

If I see my server using this parameter and then close the game, remove the parameter and restart the game and then look at the server browser I can no longer see my server. So as far as I can tell, I need this parameter in order to see my server at all if it's empty.

surtic86
03-10-2017, 19:42
Strange behavior... i can have or not have this Param and always see my Dedicated Servers and can Join them.

But when you have this Parameter you don't need to Join it Normaly you can just go create a New Lobby over the Game and it will host it on the Dedicated Server.