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

Plutonium

  1. Home
  2. BO2 Server Hosting Support
  3. setdvar function no longer working for sv_maxclients being changed mid game???

setdvar function no longer working for sv_maxclients being changed mid game???

Scheduled Pinned Locked Moved BO2 Server Hosting Support
4 Posts 3 Posters 122 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.
  • MrMrEundefined Offline
    MrMrEundefined Offline
    MrMrE
    wrote on last edited by
    #1

    when the game passes a certain round i had a function call

    setdvar("sv_maxclients",getplayers().size);
    

    which did work till a recent update
    what changed to now make this function call a 0x00000005 access violation?

    MrMrEundefined 1 Reply Last reply
    0
    • MrMrEundefined Offline
      MrMrEundefined Offline
      MrMrE
      replied to MrMrE on last edited by
      #2

      MrMrE sorry it was a 0xc000005 violation which is undefined variable which I had been using. My bad and sorry but this does all still work fine

      1 Reply Last reply
      0
      • RektInatorundefined Offline
        RektInatorundefined Offline
        RektInator Plutonium Admin
        wrote on last edited by
        #3

        Hello, I do not recommend changing sv_maxclients mid-game. Why do you need this?

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

          He wants to disallow new players to join mid-game (and then leave again because they struggle) which increases the difficulty and round length a lot for the players already playing. Thats rather common practice on ZM servers. IMHO a better approach is to set a password instead of changing the player count.

          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