PDA

View Full Version : Dedicated server, how to enforce certain cars?



whip
23-09-2017, 17:50
ive rented a server and when i go to it in game i can change track/ rules/ weather etc but there is no way to enforce certain car classes like when you create a p2p game? am i just being thick?

if anyone could let me know how i'd be thankful

Charger
23-09-2017, 17:58
We found this last night on our dedi, it's single car only, we can't select a class, must be a dedi config setting somewhere?

whip
23-09-2017, 18:00
im looking through the config, its a bit alien, i only see options for host and player to select their own vehicles but nothing about resticting it to classes, you could prob restrict players selecting classes in the config but what a ball ache to change a config file all the time to change races

whip
23-09-2017, 18:25
is that admin console available to use that was shown?

https://www.teamvvv.com/assets/js/ckeditor/kcfinder/upload/images/PCARS%202%20Realism.jpg

Visceral_Syn
23-09-2017, 18:27
It is if the http API is configured

whip
23-09-2017, 18:29
It is if the http API is configured

im going to be really annoying and ask if you could possibly show me how, pretty please

ive put the server cgf in the steam pcars 2 dedicated server folder but it just closes straight away when i start it

Charger
23-09-2017, 18:38
We have the admin console running but the server is set to allow the host to do the settings, you can set classes for the next session but it doesn't stick or work?

whip
23-09-2017, 18:48
is your local to you or rented like mine is?

Charger
23-09-2017, 18:50
It's hosted by one of our members so not local to me but I have access to it.

whip
23-09-2017, 18:51
how do you set up the admin console for it?

ive tried putting the servers ip and port into the httpapi and set that true, im prob doing it all wrong but im new to this

Visceral_Syn
23-09-2017, 19:32
Set http to true, bind to a port, configure users, and then most importantly, uncomment the lines that have the admins commented out

satco1066
24-09-2017, 01:45
ive rented a server and when i go to it in game i can change track/ rules/ weather etc but there is no way to enforce certain car classes like when you create a p2p game? am i just being thick?

if anyone could let me know how i'd be thankful

you get only one car when you select your server in the online browser .

To have full Online creation acces to your server like in p2p sessions, go in steam, right click Project CARS 2 in the list and select Properties.
in launch options enter
-searchDS "servername"
Back in PC2 again go to CREATE ONLINE EVENT and create a session like P2P, dont forget to set your password in hostsettings like defined in your DS and now config your opponents settings.
On pressing START, pCARS2 tries to find your DS and will connect.
After Session is connected, you'll se the wellcome text of your DS in the chat window and you and all clients can select cars of the classes you setup before.

Attention. If your DS is allready hostet by another person or not found, then a P2P session will be created. You can check that, as you'll see NO the welcome message of your DS in the chat window.

Devs will add a serverbrowser in the CREATE ONLINE SESSIONS menu in the future.

patycy
24-09-2017, 08:52
Check for this parameter in server.cfg (I don't know how to make sms_rotate addon to work yet).

"VehicleClassId" : -112887377,

Full class list : 127.0.0.1:9000/api/list/vehicle_classes