[Home]History of ModdedBot/Chat

Robo Home | Changes | Preferences | AllPages


Revision 11 . . December 6, 2003 3:18 EST by Vuen [infinite recursivity fixed]
Revision 10 . . November 11, 2003 3:06 EST by Vuen
  

Difference (from prior major revision) (no other diffs)

Changed: 51c51,74
Yup, that's right. -- Vuen
Yup, that's right. -- Vuen




Okay guys, ModdedBot 1.1 released. The infinite recursivity bug is now fixed. This means that my patented state-of-the-art StackOverflowBot? now runs properly with version 1.1:
package sample;
import robocode.*;

public class StackOverflowBot extends mod.ModdedBot {

public void run() {
setTurnRadarRight(Double.POSITIVE_INFINITY);
}

public void onScannedRobot(ScannedRobotEvent e) {
setInterruptible(true);
setFire(0.1);
turnRadarLeft(getRadarTurnRemaining());
}

}

This no longer produces a stack overflow. Furthermore, all prioritization functions now work properly. In version 1.0, all events could simply interrupt all other events. With 1.1, prioritization and event interruption is handled the same way as Robocode, now making pretty much all robots compatible with ModdedBot. Robots that depend on event interruption now function properly. It also makes the event dumping code a lot harder to understand; it was difficult to build, and I'm quite sick of trying to be the JVM. It looks a lot like what you would find in robocode's EventManager?, except it's commented, so you can understand what's going on. If you have created a mod with ModdedBot, please update it to this version of ModdedBot to allow prioritization-dependant robots to use your mod. And if something goes horribly wrong and it doesn't work, please let me know!

-- Vuen

Robo Home | Changes | Preferences | AllPages
Search: