[Home]RobocodeGLV014/FeatureRequests

Robo Home | RobocodeGLV014 | Changes | Preferences | AllPages

I added an option to show the score for each bot while the battle is running. Any other features you'd like to see? Keep in mind that I can only change how it looks, I can't change the physics or anything. --David Alves
Maybe im not very good with Eclipse, but in order to program a GL bot, I had to include the Robocode GL files. And they needed the Robocode files. So i've had to import loadsa files into the workspace. Any chance of making it & the RC source a seperate jar for ease of use? -wolfman

You should be able to just include the robocode.jar file and the RobocodeGLV014 classes, but you're right, it does need to be packaged better. I'll look into packaging it as a jar. --David Alves

I thought taht, but when I tried it, no luck. I cant remember exactly what the problem was tho. Helpfull I know. :) -wolfman

Try this: From the command-line, create your jar (all one line -- broken for readability)

 jar cvf robocodeGL.jar robocode\robocodeGL\*.class robocode\robocodeGL\system\*.class 
 robocode\battleview\BattleViewRenderer?.class
Include the .java files to include the source.

Then have Eclipse point to robocodeGL.jar. --JPrideaux


What about having a separate window with a Canvas we can draw inside. It would be good for watching variable values and whatever. -- PEZ
The options window maybe should wait for a right-click before opening? -- PEZ
I figured out how to make it show the score as it accumulates, instead of only updating between rounds. In robocode.peer.robot.RobotStatistics, just change this method:
public double getTotalScore()
{
    return totalScore;
}
to this:
public double getTotalScore()
{
    return totalScore + bulletDamageScore + rammingDamageScore + survivalScore + winnerScore + killedEnemyRammingScore + killedEnemyBulletScore;
}
Then add this to the end of the generateTotals method:
bulletDamageScore = rammingDamageScore = survivalScore = winnerScore = killedEnemyRammingScore = killedEnemyBulletScore;
This seems to not change any other values used or displayed in the game. -- Kawigi
One more thing - I've been toying with threading the Results dialog box (the one that shows the table breaking down the score) so that it updates itself. Is there any place I could reasonably create the dialog? The battle would basically have to already be initialized (I.E. having robots in it already) I think, and this line of code:
battle.getManager().getWindowManager().showResultsDialog(battle);
...would have to go somewhere that a Battle object exists that has security permissions to create frames and start threads. What do you think? You could actually see leader changes and hits with scores in nearly real time ;-) (of course, a few more quick tweaks would have to be made in the RobotStatistics? class, and the ResultsDialog? class would either have to be threaded or it would need an additional update method and the thread could be somewhere else. -- Kawigi

You can turn on "show scores" in 0.1.4 to see total scores. As for your suggestion, I'd rather not modify any more of Robocode than is absolutely necessary until the source code is released. Once that happens, I think this is a great idea! :-) --David Alves


Robo Home | RobocodeGLV014 | Changes | Preferences | AllPages
Edit text of this page | View other revisions
Last edited August 17, 2006 10:20 EST by 195.131.197.234 (diff)
Search: