Noran I'm trying to use this engine in the first bot I'm making. I'm new to robocode, but I'm an expert java programmer. I understand how it works and I'm using a goTo movement function to move to the point I need to go to, but I can't add any gravity points to the AGravEngine? becuase I get a null pointer exception in my onScannedRobot() method everytime. I initialize it at the top of run(), and add a center GravPoint?, and that doesn't mess up at all, but when I even try to call agEngine.reset() at the top of onScannedRobot() I get a null pointer exception. In battle my bot just swings the radar around, but it never moves anywhere, due to the NPE. Any help? -xLittleP |
Noran |