Support for team battles

Jump to navigation Jump to search
Revision as of 30 September 2012 at 19:29.
The highlighted comment was created in this revision.

Support for team battles

Does RoboRunner support team battles (1200x1200 battlefield)? Or does it support custom battlefield sizes?

Trying RoboResearch I noticed battlefield sizes are hard-coded at 800x600 or 1000x1000, and there is no place to configure battlefield sizes in .rrc files.

    MN18:59, 30 September 2012

    Yep, both work fine. To modify battle field size, just add width and height on their own lines after the "num rounds" line in the challenge file. And if your team JARs are in the bots/ dir, just specify them like you would a bot in the challenge file. So e.g.:

    My Teams Test Bed
    PERCENT_SCORE
    35
    1200
    1200
    
    abc.ShadowTeam 3.83
    gimp.GimpTeam 0.1
    
      Voidious19:10, 30 September 2012
       

      Ouch, I may have spoken too soon. I'm seeing an exception when I try to run a team battle right now. I'll try and see if I can figure that out, I don't think I needed to do anything special originally to support teams.

        Voidious19:29, 30 September 2012
         

        Ok, figured it out. Turns out Robocode is a bit confused between getRobotNameAndVersion() vs getTeamLeaderName() in results of a team battle. So I need to use getTeamLeaderName() instead (and for non-teams they return the same). I'll post a fix now.

          Voidious19:59, 30 September 2012
           

          Ok, posted 1.2.3 with a fix.

            Voidious20:29, 30 September 2012