Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
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 456 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
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 MrMrE

      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 Offline
      MrMrEundefined Offline
      MrMrE
      wrote 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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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