Tom Plum
2018-03-23 11:27:32 UTC
Hi,
I'm trying to add my own Robots to a battle via a RobotEngine.
BattlefieldSpecification battlefield = new BattlefieldSpecification(BATTLEFIELD_W, BATTLEFIELD_H);
RobotSpecification[] selectedRobots = engine.getLocalRepository("sample.TestRobot, sample.TestRobot");
BattleSpecification battleSpec = new BattleSpecification(NO_OF_ROUNDS, battlefield, selectedRobots);
Using sample robots work fine. But with my own, a BattleErrorEvent is
thrown showing "Can't load 'sample.TestRobot' because it is an invalid
robot or team.".
I've even tried copying the source code from a sample bot into my own class
to no avail.
Opening ones of the compiled .class files of a sample robot tells me it was
compiled with JDK 6. I'm currently on 9.0.1, could this be the issue? What
is the latest version that will support this?
Kind Regards,
Tom
I'm trying to add my own Robots to a battle via a RobotEngine.
BattlefieldSpecification battlefield = new BattlefieldSpecification(BATTLEFIELD_W, BATTLEFIELD_H);
RobotSpecification[] selectedRobots = engine.getLocalRepository("sample.TestRobot, sample.TestRobot");
BattleSpecification battleSpec = new BattleSpecification(NO_OF_ROUNDS, battlefield, selectedRobots);
Using sample robots work fine. But with my own, a BattleErrorEvent is
thrown showing "Can't load 'sample.TestRobot' because it is an invalid
robot or team.".
I've even tried copying the source code from a sample bot into my own class
to no avail.
Opening ones of the compiled .class files of a sample robot tells me it was
compiled with JDK 6. I'm currently on 9.0.1, could this be the issue? What
is the latest version that will support this?
Kind Regards,
Tom
--
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.