Re: Can't find my robot to test it out in battle

Ian Tatters <[email protected]> Sat, 20 Oct 2018 19:37:53 +0200
Newsgroups gmane.comp.java.robocode
Message-ID <CAOG1zyhuanp48d7O7dSgBsmfvDLw-Q9K_AWu02MB+5eMPH9qzg@mail.gmail.com>
Hey, I corrected the error and compiled it. I got this message.

Compiling...
Eclipse Compiler for Java(TM) v20180305-0940, 3.14.0, Copyright IBM Corp
2000, 2015. All rights reserved.
Compiled successfully.


---- Codesize ----
Codesize: 0 bytes
Robot weight class: NanoBot  (codesize < 250 bytes)

But it still doesn't show up. Something I noticed is when I look in the map
of the sample bots they all have three files per robot. A .class, a .java
and a .properties if I look in the map where my robot is in I only see a
.java file. Maybe it has something to do with that?
Ps. I really appreciate your help.

On Sat, Oct 20, 2018 at 12:30 AM fnl <[email protected]> wrote:

> Hi Ian,
>
> I tried to compile your robot in Robocode, and soon found the issue. You
> have a misplaced curly bracket between the comment and declaration of your
> run method. Hence, I cannot compile your robot.
> So I guess the issue is due to a tiny issue. :-)
>
> /**
> * run: Hey's default behavior
> */
> * }*
> public void run() {
>
> Compiling...
> [parsing started RegularFileObject[C:\robocode\robots\irtatters\Hey.java]]
> C:\robocode\robots\irtatters\Hey.java:16: error: class, interface, or enum
> expected
> public void run() {
>        ^
> C:\robocode\robots\irtatters\Hey.java:28: error: class, interface, or enum
> expected
> turnRight(45);
> ^
> C:\robocode\robots\irtatters\Hey.java:29: error: class, interface, or enum
> expected
> }
> ^
> C:\robocode\robots\irtatters\Hey.java:35: error: class, interface, or enum
> expected
> public void onScannedRobot(ScannedRobotEvent e) {
>        ^
> C:\robocode\robots\irtatters\Hey.java:39: error: class, interface, or enum
> expected
> } else if (e.getEnergy() > 10) {
> ^
> C:\robocode\robots\irtatters\Hey.java:41: error: class, interface, or enum
> expected
> }
> ^
> C:\robocode\robots\irtatters\Hey.java:48: error: class, interface, or enum
> expected
> public void onHitWall(HitWallEvent e) {
>        ^
> C:\robocode\robots\irtatters\Hey.java:51: error: class, interface, or enum
> expected
> }
> ^
> [parsing completed 51ms]
> [total 87ms]
> 8 errors
> Compile Failed (1)
>
>
> torsdag den 18. oktober 2018 kl. 23.06.33 UTC+2 skrev ian.r.tatters:
>>
>> So I made some tweaks to the template to see how the robot would behave.
>> Unfortunately I can't find it to select for a battle. It's in the robot map
>> in the map irtatters (that's what I called the package). Now if I want to
>> start a new battle I see all the packages like sample, team, ect. but not
>> irtatters. I tried control r and clean robot cache. Can someone help me?
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "robocode" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/robocode/PPPqVcb6Mvs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.