Team balance and the sad monkey.

Discuss Nexuiz gameplay here.

Moderators: Nexuiz Moderators, Moderators

Sun Sep 07, 2008 12:21 am

  • CTF team balance. Teams are randomly generated. This is OK when all the players are of the same caliber. However, if there is a wide distribution of ability; inevitably, the generated teams will be lop sided, and for five minutes a handful of people are having a bad time - getting spanked like little inept crying monkeys.

    So. This is a hack.
    it's a python script that opens nexuiz as a subprocess and parses the output as the game is played

    Code: Select all
    -V-Benithil's 3 kill spree was ended by SEGABOY900
    SEGABOY900 got the RED flag
    DANGER0 has been vaporized by BLUDWERKS
    BLUDWERKS has 8 frags in a row
    Uncle Tux was riddled full of holes by J.Ker
    dublpaws{X} exploded


    It parses each line and determines basically what happened. It doesn't do anything too fancy, just ranks player based on basic metrics. When the program detects the end of the game - two files are generated - redteam.cfg and blueteam.cfg. Contained within readteam.cfg is a list of commands:

    Code: Select all
    Move <playerFoo> to redteam
    Move <playerBar> to redteam


    likewise for bluetea.cfg, and executes both scripts. (There are probably some timing issues here)

    Not exactly sure on the syntax here, but have heard that whoever executes those .cfgs need root privs on the server, is that true?
    User avatar
    dublpaws
    Advanced member
     
    Posts: 61
    Joined: Mon Apr 23, 2007 4:26 am

Sun Sep 07, 2008 12:28 am

Sun Sep 07, 2008 1:45 am

  • Isn't something like this done on the beginners server?
    User avatar
    Barfly
    Alien
     
    Posts: 131
    Joined: Mon Jun 04, 2007 4:03 am
    Location: Hell, AKA Indiana



Return to Nexuiz - Gameplay




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest