including external packages

AI discussion, ideas, and SDK help.
Post Reply
fellowfreak
Lux Newbie
Posts: 4
Joined: Tue Oct 13, 2009 6:09 pm
Location: Austin

including external packages

Post by fellowfreak » Thu Nov 19, 2009 4:26 pm

I'm trying to implement an AI that requires a substantial amount of external code to run.

I've included all this code in LuxSDK/build/jes/ , and in my agent file, I have the following lines:

Code: Select all

import jes.jneat.Genome;
import jes.jNeatCommon.*;
However, when I run the game with my agent, the following error prints out to the log (Neurosis is the name of my agent):
<com>: There was an error setting prefs by Neurosis:
java.lang.NoClassDefFoundError: jes/jneat/Genome
at com.sillysoft.lux.agent.Neurosis.setPrefs(Neurosis.java:76)
at com.sillysoft.lux.B.O(Unknown Source)
at com.sillysoft.lux.gui.F.run(Unknown Source)
at java.lang.Thread.run(Thread.java:613)
I'm not sure what I've left out here...Genome.class is in the LuxSDK directory where I specified it in my code, and I've pointed to it from my agent's file. How can the Genome class not be defined?

User avatar
dustin
Lux Creator
Lux Creator
Posts: 10998
Joined: Thu May 15, 2003 2:01 am
Location: Cascadia
Contact:

Post by dustin » Thu Nov 19, 2009 6:33 pm

When you're running an agent inside of Lux, it's using the compiled code inside the Agents folder inside the lux support folder. You'll need to put your extra files in there also, in the proper package tree.

Post Reply

Who is online

Users browsing this forum: No registered users and 49 guests