multi-file robot?

110 views
Skip to first unread message

Moshe Weinstock

unread,
Jun 15, 2015, 2:38:31 PM6/15/15
to robocode-...@googlegroups.com
Hi all, building my first robot here...

I'm trying to make a robot that uses some other code I've written in my research and I can't seem to wrap my head around it. Seems like anything multi-file (not to mention the external DSL files and JARs) just doesn't compile in Robocode.
I'm using IntelliJ and I'm developing the robot as a standard IntelliJ module in the same project as the rest of my research materials. I couldn't find any documentation on how to make my own robots in JAR format, and I simply won't use Eclipse as the integration required will be too burdensome on my students. I've read about the -DNOSECURITY flag, but I can't just run robocode with that flag on - and only that flag. It just fails, silently.

Is there any way to utilize the robocode compiler directly or package my own robots, with whatever resources they need?

Thanks!

/Moshe

Mauro lesto

unread,
Jun 15, 2015, 3:11:00 PM6/15/15
to robocode-...@googlegroups.com
i'm sure multiple file is possible, just do standard java classes.
AFAIK There is no support for internal jar or other kind of packet,
but the limitation can be turned around by adding the full source
instead of the jar.

once you have a working project, you can easily export a jar from your
ide or from the command line, and then is just to drop (or directly
create) the jar in the correct robocode folder.
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "robocode-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to robocode-develo...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages