bad battles for DrussGT

Fragment of a discussion from User talk:Pa3k
Jump to navigation Jump to search

Try running the roborumble.sh in each of your client folders and manually run a battle against DrussGT. If it gets banned or doesn't run it should be fairly obvious, and you can test which one it is before deleting and re-downloading. It will also help confirm what the problem is.

Skilgannon09:35, 28 June 2012

How do I force roborumble to execute DrussGT battles?

Pa3k14:13, 28 June 2012
 

I think he means robocode.sh, as in just run Robocode from your RoboRumble directory and run a battle with DrussGT, maybe against one of the bots we saw a zero score for. With any luck, you'll see the problem in action and get an idea what's going on.

Voidious15:22, 28 June 2012
 

doh... yeah, what Voidious said. Run Robocode from the rumble directory and see if DrussGT gives errors.

I'm going to be without internet for the next few days so if someone could re-release 2.4.10 as 2.4.10a once this is sorted out I'd be much obliged :-) (2.4.10 is just some minor bugfixes, I'll add details when I'm back)

Skilgannon18:54, 28 June 2012
 

You could also add jk.mega.DrussGT* to the EXCLUDE field in your roborumble.txt, if that's the only bot you're having problems with. But it would also be good to try some manual battles and see what's going on. After that I can repost DrussGT 2.4.10.

Voidious18:02, 29 June 2012

jk.mega.DrussGT* was excluded for now, I'll post a reply when I find out why Druss was having issues.

Pa3k21:41, 29 June 2012
 

Thanks for the repost while I was away =)

Skilgannon21:14, 4 July 2012
 

Hmm sorry mates.. looks like something is wrong with my client .. Druss get allways 0 battles ... maybe i can check what it is going on :(. Maybe you should rerelease the last version too. Sorry for the inconvenience.

Take Care

Wompi22:13, 4 July 2012
 

Well it turns out that the same is happening on my mac client. No errors or anything it just drops the battles while all other battles are fine. Not sure how but looks like an issue with unix/linux? Maybe i can find out more - and will have a look at your bot in the visual client.

Wompi22:31, 4 July 2012
 

Hmm very strange ... this is the output:

Round 1 of 35
=========================
My hitrate: NaN
Actual hits: 0
DC gun score: 0
DCAS gun score: 0
gun: DC
SYSTEM: DrussGT 2.4.11 skipped turn 3
SYSTEM: DrussGT 2.4.11 skipped turn 4
...
...
SYSTEM: DrussGT 2.4.11 skipped turn 33
SYSTEM: DrussGT 2.4.11 has not performed any actions in a reasonable amount of time.
SYSTEM: No score will be generated.
=========================
Round 2 of 35
=========================
SYSTEM: This robot has been stopped.  No score will be generated.
Enemy damage: 0.0
My damage:    0.0
Accumulated, weighted enemy hitrate % : NaN
Flattener enabled: false
My hitrate: NaN
Actual hits: 0
DC gun score: 0
DCAS gun score: 0
gun: DC

If i start the match with "paused" game and make a single step, everything is ok and he finishes the match like he should. But as far as i start the match just normal it gets instantly disabled. Do you have some heavy object loading at the start or something?

Wompi22:35, 4 July 2012
 

I figured it out. I was also getting 4-6 skipped turns on start, but not enough to disable the bot. My FastTrig class wasn't being initialized until the first call to it. This might be somehow related to Java's lazy class loading. I've uncommented the hard initializing the FastTrig now in the main DrussGT class and I'm not getting any more skipped turns. Could you try with the old 2.4.8 to confirm that the problem doesn't happen? Thanks

Skilgannon09:27, 5 July 2012
 

Hi mate. 2.4.12 works fine for me.

Hmm looks like your bot give me a hart time :) ....

Fighting battle 2 ... jk.mega.DrussGT 2.4.12,et.Predator 1.8
Robot jk.mega.DrussGT 2.4.12 is not stopping.  Forcing a stop.
java.lang.ThreadDeath
        at java.lang.Thread.stop(Thread.java:758)
        at net.sf.robocode.host.security.RobotThreadManager.stop(RobotThreadManager.java:205)
        at net.sf.robocode.host.security.RobotThreadManager.stopSteps(RobotThreadManager.java:187)
        at net.sf.robocode.host.security.RobotThreadManager.forceStop(RobotThreadManager.java:158)
        at net.sf.robocode.host.security.RobotThreadManager.waitForStop(RobotThreadManager.java:143)
        at net.sf.robocode.host.proxies.HostingRobotProxy.waitForStopThread(HostingRobotProxy.java:148)
        at net.sf.robocode.battle.peer.RobotPeer.waitForStop(RobotPeer.java:1577)
        at net.sf.robocode.battle.Battle.finalizeRound(Battle.java:476)
        at net.sf.robocode.battle.BaseBattle.run(BaseBattle.java:217)
        at java.lang.Thread.run(Thread.java:662)
RESULT = et.Predator 1.8 wins 2220 to 0
Fighting battle 3 ... jk.mega.DrussGT 2.4.12,zch.David 0.21
Can't load jk.mega.DrussGT 2.4.12, because it is invalid robot or team.
Skipping battle because can't load robots: jk.mega.DrussGT 2.4.12,zch.David 0.21

Maybe you can find the issue with this little error snippet. Before this break i had a couple of fights where DrussGT did well, so it looks the original issue is solved.

Wompi12:03, 5 July 2012

Every time I get the "invalid robot or team" error, I do the following:

  1. run RoboCode in my rumble directory. (That opening splash screen will take forever with so many bots. be patient.)
  2. do Options -> Clean robot cache (this one takes a while too.. watch the terminal screen and wait for "cleaning done")
  3. close

That clears up lots of weird rumble issues for me.

Tkiesel17:33, 5 July 2012
 

I guess you can just remove the "robot.database" file in the robots/ directory and the next time you start your client it will be rebuild. At least this is what i do from time to time.

Wompi19:21, 5 July 2012
 

I'm not sure what that is, however I did add some things to the static initialization, maybe it's too much now? I've gone back to 2.4.10 with just the FastTrig fix, let's see what happens.

Skilgannon15:37, 5 July 2012