Invalid robot or team - Adding Robots to RobotEngine

Tom Plum <[email protected]> Fri, 23 Mar 2018 04:27:32 -0700 (PDT)
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
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

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.