Re: Adding robots .jar file to /robocode/robots does not add robot to list
Fu Yong Quah <[email protected]> Tue, 29 Nov 2016 00:31:48 +0000
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <CA++qu_HdL_D2qfQMdnDEGjxyEraFT+Y4yN7GzG=xpA=Ss9v+3w@mail.gmail.com> |
The package naming solved the problem. Thanks! On Thu, Nov 24, 2016 at 10:51 PM Flemming N. Larsen < [email protected]> wrote: > Hi Fu, > > I am not sure I understand the problem, you are struggling with. > First of all, Robocode will look out for robots (jar files) in the default > robot directory. You can change this directory by setting the ROBOTPATH > environment property, e.g. by adding: > -DROBOTPATH=<your file path> to the java command-line options. See more > information here: http://robowiki.net/wiki/Robocode/Console_Usage > > Secondly, your robot does not have to be under the sample package, just > because the sample robots use this package. > You can chose what ever package you want. But typically, the Robot > Packager of Robocode will make a package name for you based on your > initials/handle and Robot/Team name + version. > > You should be able to specify which robots to participate in a battle by > using their fully qualified name, e.g. fnl.Rampage_1.0 > ( > http://robocode.sourceforge.net/docs/robocode/robocode/control/package-summary.html > ) > > Best regards, > - Flemming > > ons. 23. nov. 2016 kl. 10.32 skrev Fu Yong Quah <[email protected]>: > > That solves the problem - I can now access the robot if I use it from the > robocode interface. However, I still can't access it programmatically using > robocodeengine, unless I put my class file in the robots/sample directory > (which means my robot has to fall under the sample package). Is there > anyway to get around this? > > On Nov 20, 2016 8:42 PM, "fnl" <[email protected]> wrote: > > Did you use the robot packager in Robocode or create the package on your > own? You need to package your robot with Robocode (Robot -> Package robot > or team), as it will create various .properties files inside the .jar > archive. > > If you did package your robot using Robocode, then try the clean the robot > cache using Options -> Clean robot cache. > > Cheers, > - Flemming > > I have created a robot and packaged it as a .jar file. I moved the .jar > file into /robocode/robots , but on running robocode, my robot doens't show > up in the list of robots. How would I make it work? > > I am on Ubuntu Linux LTS 14.04 > > -- You received this message because you are subscribed to the Google Groups "robocode" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.