Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Server Hosting Support
  3. Variable config server dicated.cfg

Variable config server dicated.cfg

Scheduled Pinned Locked Moved BO2 Server Hosting Support
6 Posts 2 Posters 115 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • lola0undefined Offline
    lola0undefined Offline
    lola0
    wrote on last edited by
    #1

    hello, I would like to deport the result of the number of players in a txt file.

    basically rather than manually configuring the number of players directly in the 'dicated_zm.cfg' file I would like it to look like this :

    -->> party_maxplayers NomberPlayer.txt <<--

    //////////////////////////////////////////////////
    // GENERAL SETTINGS //
    //////////////////////////////////////////////////
    //g_password "" // Password protected Game Server
    party_maxplayers 4 // Maximum players that are allowed in your server.

    do you have any idea how i could do it ?

    1 Reply Last reply
    0
    • Resxtundefined Offline
      Resxtundefined Offline
      Resxt Plutonium Staff
      wrote on last edited by
      #2

      I'm not sure you can override a CFG file with GSC.
      If it's possible then it's probably with t6-gsc-utils

      Why don't you dynamically set the party_maxplayers dvar on your server with a GSC script?

      1 Reply Last reply
      0
      • lola0undefined Offline
        lola0undefined Offline
        lola0
        wrote on last edited by
        #3

        your idea is interesting. but I don't know how to do it your way

        1 Reply Last reply
        0
        • Resxtundefined Offline
          Resxtundefined Offline
          Resxt Plutonium Staff
          wrote on last edited by
          #4

          It depends on what you want to do but basically this somewhere in a GSC script should work

          SetDvar("party_maxplayers", 2);
          1 Reply Last reply
          0
          • lola0undefined Offline
            lola0undefined Offline
            lola0
            wrote on last edited by
            #5

            I work on linux. the easiest for me would therefore have been to create a .sh file that will replace the number of players. that's why I wanted to go through a txt file. it's easier for me to change the text power inside

            Resxtundefined 1 Reply Last reply
            0
            • Resxtundefined Offline
              Resxtundefined Offline
              Resxt Plutonium Staff
              replied to lola0 on last edited by
              #6

              lola0 but why do you want to change the CFG file? The CFG file is only read when you start the server.
              If you want to change the configuration for next restarts then yes simply use Linux command lines, it then has nothing to do with Plutonium.

              If you want to change the dvar while the server is running then GSC is the way and it's really easy to do, doesn't matter if you're on Linux

              1 Reply Last reply
              0

              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Donate