Difference between revisions of "RoboRumble/Contributing to RoboRumble"

From Robowiki
Jump to navigation Jump to search
(→‎Setting up: 3 references)
(Add "Roborumble Superpack")
Line 2: Line 2:
 
== Setting up ==
 
== Setting up ==
 
If you entered a bot into the competition, you could consider to collaborate running the competition by using your computer to execute battles and upload results (similar to SETI@Home project). The process is fully automated, so there is no pain on doing it.
 
If you entered a bot into the competition, you could consider to collaborate running the competition by using your computer to execute battles and upload results (similar to SETI@Home project). The process is fully automated, so there is no pain on doing it.
 +
 +
Run it as much as you can! The more you run it, the faster everybody's bots will be ranked. If you find problems, refer to the RoboRumble related pages, or post your issue and we will try to solve it.
 +
 +
=== With the ''Roborumble Superpack'' ===
 +
The ''Roborumble Superpack'' is a zip file containing a fully patched Robocode 1.6.1.4 install, optionally with all bots (as of 2009/08/05) downloaded already.
 +
 +
# Download and unzip the ''Roborumble Superpack'', either [http://homepages.ucalgary.ca/~agschult/robocode/roborumble-superpack-nobots-20090805.zip with bots] (24MB, strongly recommended), or [http://homepages.ucalgary.ca/~agschult/robocode/roborumble-superpack-nobots-20090805.zip without bots] (2.3MB).
 +
# Edit "roborumble/roborumble.txt", "roborumble/meleerumble.txt", and "roborumble/teamrumble.txt" file and change the Put_Your_Name_Here to your nick or your handler.
 +
# There you go! You can start you client using roborumble.bat or roborumble.sh (depending on the OS)! Note, the first time it can take some time for robocode to examine the jar files.
 +
 +
=== From standard Robocode ===
 +
If you don't wish to use the ''Roborumble Superpack'', you may run a standard Robocode 1.6.1.4 (no newer) installation if you patch roborumble.jar and fix URLs in the config files.
  
 
# Make a new, clean installation of '''Robocode 1.6.1.4''' ([http://sourceforge.net/projects/robocode/files/robocode/1.6.1.4/robocode-setup-1.6.1.4.jar/download download link]).
 
# Make a new, clean installation of '''Robocode 1.6.1.4''' ([http://sourceforge.net/projects/robocode/files/robocode/1.6.1.4/robocode-setup-1.6.1.4.jar/download download link]).
# Download the [[Darkcanuck/RRServer/Updates|patched robocode.jar]] ([http://darkcanuck.net/rumble/patches/1.6.1.4/roborumble.jar download link]) and place in <code>/libs</code> directory under your installation.
+
# Download the [[Darkcanuck/RRServer/Updates|patched roborumble.jar]] ([http://darkcanuck.net/rumble/patches/1.6.1.4/roborumble.jar download link]) and place in <code>/libs</code> directory under your installation.
# Edit "roborumble/roborumble.txt" file and change the Put_Your_Name_Here to your nick or your handler. Also change all the  http://rumble.fervir.com/ references (there are 3) to http://darkcanuck.net/
+
# Edit "roborumble/roborumble.txt", "roborumble/meleerumble.txt", and "roborumble/teamrumble.txt" file and change the Put_Your_Name_Here to your nick or your handler. Also change all the  http://rumble.fervir.com/ references (there are 3) to http://darkcanuck.net/
# Extract all the zip-files below into the "robots" directory
+
# Extract all the zip-files below into the "robots" directory.
# There you go! You can start you client using roborumble.bat or roborumble.sh (depending on the OS) The first time it can take more than 15 minutes before all jar-files are examined!
+
# There you go! You can start you client using roborumble.bat or roborumble.sh (depending on the OS)! Note, the first time it can take some time for robocode to examine the jar files.
 
 
Run it as much time as you can. The more you run it, the more you contribute. It is fully automated, so you don't have to care at all. If you find problems, refer to RoboRumble related pages, or post your issue and we will try to solve it.
 
  
 
=== Get robot database ===
 
=== Get robot database ===
To get a reasonably up-to-date set of robots for the rumble to start with, grab the following zip file and extract the .jar file to your RR@H robots directory:
+
'''If you did not get the bots in the ''Roborumble Superpack''''', it is recommended that you get a reasonably up-to-date set of robots. Grab the following zip file and extract the .jar file to your RR@H robots directory:
  
 
==== 1vs1 database ====
 
==== 1vs1 database ====

Revision as of 03:02, 6 August 2009

Setting up

If you entered a bot into the competition, you could consider to collaborate running the competition by using your computer to execute battles and upload results (similar to SETI@Home project). The process is fully automated, so there is no pain on doing it.

Run it as much as you can! The more you run it, the faster everybody's bots will be ranked. If you find problems, refer to the RoboRumble related pages, or post your issue and we will try to solve it.

With the Roborumble Superpack

The Roborumble Superpack is a zip file containing a fully patched Robocode 1.6.1.4 install, optionally with all bots (as of 2009/08/05) downloaded already.

  1. Download and unzip the Roborumble Superpack, either with bots (24MB, strongly recommended), or without bots (2.3MB).
  2. Edit "roborumble/roborumble.txt", "roborumble/meleerumble.txt", and "roborumble/teamrumble.txt" file and change the Put_Your_Name_Here to your nick or your handler.
  3. There you go! You can start you client using roborumble.bat or roborumble.sh (depending on the OS)! Note, the first time it can take some time for robocode to examine the jar files.

From standard Robocode

If you don't wish to use the Roborumble Superpack, you may run a standard Robocode 1.6.1.4 (no newer) installation if you patch roborumble.jar and fix URLs in the config files.

  1. Make a new, clean installation of Robocode 1.6.1.4 (download link).
  2. Download the patched roborumble.jar (download link) and place in /libs directory under your installation.
  3. Edit "roborumble/roborumble.txt", "roborumble/meleerumble.txt", and "roborumble/teamrumble.txt" file and change the Put_Your_Name_Here to your nick or your handler. Also change all the http://rumble.fervir.com/ references (there are 3) to http://darkcanuck.net/
  4. Extract all the zip-files below into the "robots" directory.
  5. There you go! You can start you client using roborumble.bat or roborumble.sh (depending on the OS)! Note, the first time it can take some time for robocode to examine the jar files.

Get robot database

If you did not get the bots in the Roborumble Superpack, it is recommended that you get a reasonably up-to-date set of robots. Grab the following zip file and extract the .jar file to your RR@H robots directory:

1vs1 database

get the 300 updates since ? till 20041017:

And get the 308 updates since 20041017 till 20070929:

And get the 166 updates since 20070929 till 20090301:

And get the 121 updates since 20090301 till 20090719

Melee database

Team database

Problem reporting

Issues on starting off with RoboRumble can be discussed on the talk page.
Old issues are archived at RoboRumble/StartingWithRoboRumbleOld.

Useful options in roborumble.txt

  • "USER": Your name/handle, used for identification of your roborumble client.
  • "BATTLESPERBOT" is the minimum number of battles a bot needs before it stops getting priority.
  • "NUMBATTLES", the number of battles fought on each run of roborumble.
  • "UPLOAD", can be used to disable uploading. Use this to disable uploading when testing a version of robocode NOT listed above. Note, the current server will reject results from incorrect versions anyway.
  • "ITERATE", whether to run battles indefinitely. Do not enable ITERATE in versions prior to 1.6.1.4, use the scripts below instead.

Script

Those scripts will be good for roborumbler. They run battles forever, catching standard and error stream and put it to a file in the directory ./log/tempNUMBER_OF_BATTLE.txt (the script have to be in the roborumble directory), the scripts will not work without the "log" directory

Note: For robocode version 1.6.1.4 and up, there is no need of the script anymore. Instead, set ITERATE=YES in your setting file.

Batch script for Windows users

Save this script to a file in the roborumble directory in a file with ".bat" extension, create a directory called "log", then run the script with double click:

@echo off
title RoboRumble@Home Client
set count=1
:run
echo "Iteration number: %count%"
java -Xmx512M  -Dsun.io.useCanonCaches=false -cp libs/robocode.jar;libs/codesize.jar;libs/roborumble.jar roborumble.RoboRumbleAtHome ./roborumble/roborumble.txt >> ./log/temp%count%.txt
echo ---
set /a count+=1
goto run

Bash script for *nix users

Save this script to a file in the roborumble directory, right click and set the file executable, create a directory called "log", then run the script from shell:

#!/bin/bash

echo #  new line
count=0
while [ "$var1" != "fine" ]     #  forever
do
  let "count=count+1"
  echo "battle n: " $count
  sh roborumble.sh &> ./log/temp$count.txt
  echo
done  

exit 0

See Also