Results 1 to 9 of 9

Thread: ServerManager-CMDtool // Server starter / Weather randomizer / .ini file configs

  1. #1
    Kart Driver neslane's Avatar
    Join Date
    Sep 2017
    Posts
    38
    Platform
    PC

    Lightbulb ServerManager-CMDtool // Server starter / Weather randomizer / .ini file configs

    ServerManager-CMDtool // Server starter / Weather randomizer / .ini file configs
    Infinite server settings/sessions based on ini files
    Perfect for organize league / community races etc.

    *BETA*

    This is the commandline tool
    For the GUI Version click here:

    http://forum.projectcarsgame.com/sho...ervers-Configs


    http://www.gef-gaming.de

    Click image for larger version. 

Name:	pc2serverimage.jpg 
Views:	6 
Size:	112.8 KB 
ID:	251593

    Server starter / Weather randomizer / Configurable per .ini
    Just install the dedicated server, get the wrapper, make your inis and start the server

    No more editing or copy configs for certain functions on serverupdate / fresh install / steam file verify

    v 1.7
    - first linux build
    builded on 4.13.0-36-generic (Ubuntu 17.10) 64bit
    it is not backward compatible, only forward compatible
    support for older linux versions is coming soon, have to build it on an old linuxsystem for most compatibility

    - basic exit handler (checks if a dedicated server is running from the current directory and kills it on start and end (best is to close the server with str +c ))
    - code cleanup
    - some small fixes

    https://github.com/david-maus/PC2-Se...ive/master.zip



    The Dedicated Server Wrapper is a little tool that allows you to configure your
    Project Cars 2 Server on a per .ini base.
    Instead of edit and configure all the different files for the server
    (server.cfg, rotatefile, motd, statsfile etc.) you can configure a session with
    just one single .ini file.

    You can make infinite .ini files / server configurations. Without edit the server files again and again.

    One of the main features is the weather randomizing. You can set the chance in % for the possible weather states (You can of course deactivate things like snow, storm etc.). The wrapper fills the weatherslots randomly, based on your chance settings after every serverstart (If you activate it).

    For authentic weather you can activate the option "AuthenticWeather". With this option
    the first QualifySlot is the same as the last PracticeSlot and the first RaceSlot is the same as
    the last QualifySlot. No more complete weather change from one session to another.




    Features

    - All Server and Session settings comfortable in one single .ini file
    - Multiple .ini files for infinite server/session setups
    - MaxGrid / MaxPlayers automatic to max possible for a track
    - Helper files for all possible Tracks and Vehicleclasses
    - Implemented Serverrestart after X Minutes if you want
    - Easier Multiclass setup
    - Classmode to deactivate the class restriction (All cars possible, for Trackday / Tourist servers)
    - Racelenght setup in one line (10L for 10 laps or 10M for 10 minutes timed race)
    - Startscript Generator for all your created .ini files / server settings / session. Just create all your league rounds and get the correct startscripts with one click.
    - And many many many more. You can easy setup every possible Value in the ini files

    - Randomized Weather with chance in %
    - AuthenticWeather for plausible sessionchange (Pr to Q to R)
    - Override the weather to 1 Clear Slot for every Session (If the server is bugging with weather changes, its the case at the moment - 10. March 2018) with "Sunshine" Mode


    - PracticeServer Mode (For Practicing the same ini/track under the week, for example in leagues)
    - Overrides the ini configuration to:
    - 24H practice and qualify session, 1 Lap race
    - No license
    - Weatherprogression to realtime
    - Dateprogression to OFF
    - deactivates mandatory Pitstop


    - PracticeServer and Sunshine Mode can be overwritten through startparameters (Just use your correct leage/cup/race ini)


    - Automatic file copy to serverdirectory on start
    - On every serverstart get the correct and fresh server.cfg / rotateFile / motd / baseFile / statsConfig
    - For use with simresults or other services, the current stats data is deleted before every start
    - For use with simresults or other services, the sessionTracking is activated before every start
    - Edited motd (No WeatherSlots Info in Lobbychat)


    - Just install the dedicated server, get the wrapper, make your inis and start the server
    - No more editing or copy configs for certain functions on serverupdate / fresh install / steam file verify




    Thanks to MortICi for the sms_base.lua / sms_motd.lua Files and his work on the dedicated server configs!
    His awesome Thread for the dedicated server configs




    How to install

    1. Download the ServerWrapper here Please read the known issues, its still beta!
    2. Copy / Extract the folder to your Dedicated Server root directory:

    Examplepath:

    Code:
    C:\_GAMES\Steam\steamapps\common\Project CARS 2 - Dedicated Server
    After copy:

    Code:
    C:\_GAMES\Steam\steamapps\common\Project CARS 2 - Dedicated Server\gef-gaming.de_pc2-ds-wrapper



    How to use / Standard

    1. In the configs folder:

    Code:
    C:\_GAMES\Steam\steamapps\common\Project CARS 2 - Dedicated Server\gef-gaming.de_pc2-ds-wrapper\configs
    You find a
    Code:
    basic.ini
    2. Edit this file for your server/session
    3. Start the server under:

    Windows

    Code:
    C:\_GAMES\Steam\steamapps\common\Project CARS 2 - Dedicated Server\gef-gaming.de_pc2-ds-wrapper\bin\win
    with
    Code:
    DedicatedServerWrapper.exe
    or

    Linux

    Code:
    C:\_GAMES\Steam\steamapps\common\Project CARS 2 - Dedicated Server\gef-gaming.de_pc2-ds-wrapper\bin\lnx
    with
    Code:
    DedicatedServerWrapper




    How to use / Multiple Configurations

    1. In the configs folder:

    Code:
    C:\_GAMES\Steam\steamapps\common\Project CARS 2 - Dedicated Server\gef-gaming.de_pc2-ds-wrapper\configs
    You can create multiple *.ini files like the
    Code:
    basic.ini
    For example:

    Code:
    CUP_R01_Zolder.ini
    CUP_R02_LeMans.ini
    CUP_R03_Nrburgring.ini
    Just copy the basic.ini multiple times and edit the names and settings.

    2. Start the server with parameters through commandline:

    Windows

    Code:
    DedicatedServerWrapper.exe CUP_R01_Zolder.ini
    or

    Linux

    Code:
    DedicatedServerWrapper CUP_R01_Zolder.ini




    Additonal Parameters

    Code:
    PracticeServer
    Disabling dateprogression, Mandatory Pitstop, license.

    Sets weatherprogression to realtime,
    practice & quali to 24 hours, race to 1 Lap and password to "".
    Useful if you want the same server (under the week, between cup races) for
    practice the next track. And without edit your ini files.

    Code:
    Sunshine
    Overrides all weatherslots with "Clear" and sets all sessions to 1 slot.
    Useful if the server is bugging with changing weather. Its the case at the moment i think - 10. March 2018


    You can pass these parameters to the wrapper to override some settings without alter your ini files:
    Code:
    DedicatedServerWrapper.exe CUP_R01_Zolder.ini PracticeServer
    
    DedicatedServerWrapper.exe CUP_R01_Zolder.ini Sunshine
    
    DedicatedServerWrapper.exe CUP_R01_Zolder.ini PracticeServer:Sunshine
    Syntax

    Code:
    DedicatedServerWrapper.exe *.ini(optional) Parameter(optional-split by ":")





    Startscript Generator

    Under

    Code:
    C:\_GAMES\Steam\steamapps\common\Project CARS 2 - Dedicated Server\gef-gaming.de_pc2-ds-wrapper\bin\win
    you find the

    Code:
    GenerateStartscripts.exe

    If you execute it, all your ini files in the configs folder are getting a proper startscript under

    Code:
    C:\_GAMES\Steam\steamapps\common\Project CARS 2 - Dedicated Server\gef-gaming.de_pc2-ds-wrapper\bin\win\startscripts

    Example on Windows
    Code:
    CUP_R01_Zolder.bat
    
    CUP_R01_Zolder-Practice.bat
    
    CUP_R01_Zolder-Sun.bat
    
    CUP_R01_Zolder-PracticeSun.bat
    You can then simply start the right .bat file to start the server with the correct .ini file






    Known issues & Infos

    - BACKUP YOUR DEDICATED SERVER FILES if you dont want to loose configs etc.! Im not responsible for maybe a dataloss or something! The tool is only tested by me at the moment. Please use it carefully!
    - There are very little errorchecks, so if you make something wrong there is maybe no errormessage
    - Dont delete or rename the basic.ini
    - Of course it can happen that some things dont work. Please report it and i will fix it.
    - Simple motd config in ini coming soon
    - You must place the tool/folder in the right position like in the tutorial. If you dont make it correct it cant be started and can maybe cause errors or bugs
    - At the moment all variables/values must be in the ini files. If you delete some of them for readability it is not working
    . Maybe there are some values case sensitive in the ini at the moment. Be Careful and read the comments above the settings.
    - Feel free to edit the source, im not a python expert. The code is quite messy and repetetive.

    What is this tool doing on start?
    - It copys and replaces prepared and fresh server config files on start
    - It reads the values from the given .ini file
    - It sets the correct values, lines etc. on the fly in the correct server config files
    - It starts the Dedicated Server (If activated in ini)

    You can simply fresh install the dedicated server, copy the tool folder into the root folder and make all your settings through the inis and start the server with that tool. No need for additonal files or something else. It works right out of the box. But be careful: it replaces configs on each start/execute!

    Repository

    https://github.com/david-maus/PC2-ServerManager-CMDtool
    Last edited by neslane; 27-03-2018 at 18:42. Reason: Update and seperate from GUI
    http://www.gef-gaming.de // Project Cars 2 GT3 League & Multi Gaming Community | ServerManager-GUI // Server starter / Weather randomizer / Multiple Servers/Configs

    A goal is not always meant to be reached, it often serves simply as something to aim at.
    The following 10 users likes this Post: Asturbo, betancomo, bluenoes, Dalhil, eckhchri, leonstone, M. -VIPER- Morgan, MortICi, Raklodder, Reiche


  2. #2
    Kart Driver neslane's Avatar
    Join Date
    Sep 2017
    Posts
    38
    Platform
    PC
    v 1.7
    - first linux build
    builded on 4.13.0-36-generic (Ubuntu 17.10) 64bit
    it is not backward compatible, only forward compatible
    support for older linux versions is coming soon, have to build it on an old linuxsystem for most compatibility

    - basic exit handler (checks if a dedicated server is running from the current directory and kills it on start and end (best is to close the server with str +c ))
    - code cleanup
    - some small fixes

    https://github.com/david-maus/PC2-Se...ive/master.zip
    PREVIEW on upcoming GUI
    Attachment 251835
    Last edited by neslane; 17-03-2018 at 17:05.
    http://www.gef-gaming.de // Project Cars 2 GT3 League & Multi Gaming Community | ServerManager-GUI // Server starter / Weather randomizer / Multiple Servers/Configs

    A goal is not always meant to be reached, it often serves simply as something to aim at.
    The following 4 users likes this Post: Asturbo, Dalhil, MortICi, Raklodder


  3. #3
    WMD Member
    Join Date
    Oct 2011
    Posts
    208
    Epic stuff dude!

    This should make it so much easier for people to prop up DED servers if they don't feel comfortable editing config files!
    Gaming Rig: ASRock z77 Extreme4, Intel Core i5 3570K OC @ 4.6Ghz 1.23v, Samsung 840 PRO 250GB SSD, EVGA GTX 970 SSC ASX 2.0 4GB OC'd like a beast! +156 core, +406 mem +0mv, Corsair H100i, 16GB G.SKill Ripjaws X Series 10-10-10-30-2N DDR3, Lots-O-Fans
    Controller: Logitech G25 Steering Wheel
    Output: 55" LG 3D SmartTV
    Seat: Need to buy one or something....

  4. #4
    Kart Driver neslane's Avatar
    Join Date
    Sep 2017
    Posts
    38
    Platform
    PC
    Thanks

    I hope to finish the GUI today or tomorrow. It will automaticly install gameservers and autodownload the wrappertool (under the hood). All can be setup within the gui.

    If we receive a hotfix/patch for the netcode/server it will be a really nice server manager. hopefully
    http://www.gef-gaming.de // Project Cars 2 GT3 League & Multi Gaming Community | ServerManager-GUI // Server starter / Weather randomizer / Multiple Servers/Configs

    A goal is not always meant to be reached, it often serves simply as something to aim at.
    The following 3 users likes this Post: betancomo, bluenoes, Raklodder


  5. #5
    WMD Member betancomo's Avatar
    Join Date
    Oct 2011
    Location
    Spain
    Posts
    2
    great tool but I cant download the link is broke "https://bitbucket.org/david-maus/gef-gaming.de_pc2-ds-wrapper/downloads/PC2DedicatedServerWrapper_1.7.zip"

    Neslane can you reupload?
    Gigabyte x79 ud5||Intel Core i7-3820 3.6Ghz@3,8Ghz ||16gb ram ddr3 1600 mhz ||asus radeon 4990 water cooling||G27 wheel

  6. #6
    Kart Driver neslane's Avatar
    Join Date
    Sep 2017
    Posts
    38
    Platform
    PC
    Quote Originally Posted by betancomo View Post
    great tool but I cant download the link is broke "https://bitbucket.org/david-maus/gef-gaming.de_pc2-ds-wrapper/downloads/PC2DedicatedServerWrapper_1.7.zip"

    Neslane can you reupload?
    Yeah, sorry. I have updated the rep and seperated the tool and the gui version:

    cmd tool:

    https://github.com/david-maus/PC2-Se...ive/master.zip
    Last edited by neslane; 17-03-2018 at 17:04.
    http://www.gef-gaming.de // Project Cars 2 GT3 League & Multi Gaming Community | ServerManager-GUI // Server starter / Weather randomizer / Multiple Servers/Configs

    A goal is not always meant to be reached, it often serves simply as something to aim at.
    The following user likes this Post: betancomo


  7. #7
    WMD Member betancomo's Avatar
    Join Date
    Oct 2011
    Location
    Spain
    Posts
    2
    very thanks Neslane
    Gigabyte x79 ud5||Intel Core i7-3820 3.6Ghz@3,8Ghz ||16gb ram ddr3 1600 mhz ||asus radeon 4990 water cooling||G27 wheel

  8. #8
    Kart Driver neslane's Avatar
    Join Date
    Sep 2017
    Posts
    38
    Platform
    PC
    Small preview update:

    Click image for larger version. 

Name:	SMEtSEI.jpg 
Views:	6 
Size:	140.4 KB 
ID:	252215

    Takes a little bit longer to finish this.... but im working on it..


    Adding Servers, autodownloading my cmd tool, switching servers & configs is already working
    list all tracks and classes in dropdown menues also implemented

    Reading the config files is almost finished (fill the dropdown menus, values etc.)

    writing / saving edited or new configs and starting the servers is on the todolist
    http://www.gef-gaming.de // Project Cars 2 GT3 League & Multi Gaming Community | ServerManager-GUI // Server starter / Weather randomizer / Multiple Servers/Configs

    A goal is not always meant to be reached, it often serves simply as something to aim at.
    The following user likes this Post: bluenoes


  9. #9
    Kart Driver neslane's Avatar
    Join Date
    Sep 2017
    Posts
    38
    Platform
    PC
    GUI Version here:

    http://forum.projectcarsgame.com/sho...ervers-Configs

    It is downloading the cmd tools (this thread) automaticly in order to work correctly. Use this if you prefer commandlines and ini files editing.

    I have edited the Thread. It is now seperated.
    http://www.gef-gaming.de // Project Cars 2 GT3 League & Multi Gaming Community | ServerManager-GUI // Server starter / Weather randomizer / Multiple Servers/Configs

    A goal is not always meant to be reached, it often serves simply as something to aim at.

Similar Threads

  1. Replies: 5
    Last Post: 31-08-2018, 14:35
  2. Replies: 75
    Last Post: 24-07-2018, 15:41
  3. Random rain in dedicated server.. STILL!!!!
    By bloozmahn in forum Multiplayer
    Replies: 2
    Last Post: 17-02-2018, 14:02
  4. Dedicated server weather progression to slow
    By ChokDK in forum Multiplayer
    Replies: 2
    Last Post: 08-02-2018, 21:29
  5. Replies: 0
    Last Post: 18-09-2015, 17:13

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •