Discussion:
How to change RADAR_SCAN_RADIUS to a value lower than 1200 pixels?
NPS
2015-07-01 16:54:47 UTC
Permalink
Hi folks!


I'm trying to find a solution of how to change the radar scan radius
robot's property to a value lower than 1200 pixels. I think one of those
solutions would be change RADAR_SCAN_RADIUS constant from Rules Class. Is
it possible? If yes, how can I proceed?



Thanks!
--
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
2015-07-07 21:13:34 UTC
Permalink
Yes, it should be enough just to change the Rules.RADAR_SCAN_RADIUS to e.g.
500 or some other value.

You'll need to re-compile the Rules.class and put this into the [robocode
directory]/libs/robocode.jar file, inside the /robocode folder of the
robocode.jar file. You can do this with e.g. the 7-zip tool or similar, as
a .jar file is actually an extended .zip file. :-)
You can also build Robocode using the Developers Guide for Building
Robocode and use mvnassembly, and then install robocode from
/robocode.distribution/target/robocode-setup-1.9.4.2.jar.

Cheers,
- Flemming
Post by NPS
Hi folks!
I'm trying to find a solution of how to change the radar scan radius
robot's property to a value lower than 1200 pixels. I think one of those
solutions would be change RADAR_SCAN_RADIUS constant from Rules Class. Is
it possible? If yes, how can I proceed?
Thanks!
--
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...