Broken Bot

Jump to navigation Jump to search
Revision as of 23 July 2012 at 21:30.
The highlighted comment was created in this revision.

Broken Bot

Hi, your bot pac.acb is broken. To package it properly open Robocode and use Robot --> Package Robot for Upload. Also, make sure you are using Java 6 compatibility in your compilation.

    Skilgannon14:03, 23 July 2012

    hi,

    Thank you by the information! I had packaged it in the right way but I notice that my compiler is setted to -source 1.5, and I changed it (1.6). I hope at this time everything is right!

    Best regards, Rogério Costa

      R063R23:17, 23 July 2012
       

      You also need to use the correct package for the robot. So for you the source should be placed in a folder called "pac" (in the robots directory) and "package pac;" should be at the top of your ABC.java. Then when robocode asks where to save the file you should use the file name robocode provides. This is important, as the file name must match the name of the robot and package.

      I hope this helps.

        Skilgannon23:30, 23 July 2012