Discussion:
Adding robots .jar file to /robocode/robots does not add robot to list
q***@gmail.com
2016-11-19 00:54:24 UTC
Permalink
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 robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
fnl
2016-11-20 20:42:40 UTC
Permalink
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
Post by q***@gmail.com
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 robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Fu Yong Quah
2016-11-23 09:32:55 UTC
Permalink
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?
Post by fnl
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
Post by q***@gmail.com
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 robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Flemming N. Larsen
2016-11-24 22:51:17 UTC
Permalink
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
Post by Fu Yong Quah
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?
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 robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Fu Yong Quah
2016-11-29 00:31:48 UTC
Permalink
The package naming solved the problem. Thanks!

On Thu, Nov 24, 2016 at 10:51 PM Flemming N. Larsen <
Post by Flemming N. Larsen
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
-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
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?
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 robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
fnl
2016-11-29 20:53:55 UTC
Permalink
You are welcome. I am happy that you got it solved. :-)

Best regards,
- Flemming
--
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 robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...