The current Roborumble server is created and maintained by Darkcanuck. Luckily he shares the RumbleServer sources via subversion. It is implemented in PHP and MySQL.
Because I'm not PHP+MySQL expert, easiest solution for me was to download ready-made LAMP virtual machine and configure it.
I know you are busy ;-), so I published my virtual appliance, you could just start using it. You can download it and run it in VMWare Player. Password is robocode, you should change it as soon. Or you could follow the guide below.
Configure serverOnce you have LAMP stack up and running you need few things:
Install subversion client
Get PHP sources
Turn on URL rewriting mod in Apache
Configure MySQL database and grant permissions
The appliance has could be configured from web admin. You can access it on https://192.168.1.12/ where 192.168.1.12 is the IP address assigned to the virtual machine by your DHCP server. I will use 192.168.1.12 which was assigned to me in rest of the article.
->Configure Apache Modules->rewrite: switch ON
Create database->roborumble Import script schema/schema.sql
Priviledges->add new user->
Database for user->None
On root shell do something like this
apt-get install subversion cd /var/www/ mkdir rumble cd rumble svn co http://darkcanuck.net/svn/rumbleserver/trunk/ . chmod g+w templates_c/ chown :www-data templates_c/ cat > participants.txt [paste participants.txt file and press Ctrl-D] cd config cp config.php-sample config.php
ParticipantsAre defined as list of robots and their .jar files. Big competition is driven by this file. We could simplify our own list like this. We host the file on the appliance in folder /var/www/. So create you own shortlist and update it there. Note there are starting and ending tags.
---- <pre> jk.mega.DrussGT 2.0.4,http://www.minifly.rchomepage.com/robocode/jk.mega.DrussGT_2.0.4.jar voidious.Diamond 1.5.34b,http://www.dijitari.com/void/robocode/voidious.Diamond_1.5.34b.jar </pre> ----
Configure clientDownload and install Robocode 1.7.3
Purge dataIf you need to purge the data from the roborumble database and start from scratch just delete rows using MyPhpAdmin.
delete from battle_results; delete from game_pairings; delete from bot_data; delete from participants; delete from upload_stats; delete from upload_users;
Oh, and once you are done with your local competition, don't forget to redirect back to official RoboRumble server and contribute your CPU power!