Problems following the "getting started" guide

70 views
Skip to first unread message

ChrisRichards

unread,
Aug 14, 2009, 12:58:24 PM8/14/09
to Mario Competition
I've followed http://julian.togelius.com/mariocompetition2009/gettingstarted.php
verbatim and im getting errors :

1. When i run "java ch.idsia.scenarios.Evolve" i get the error :

New Evolve phase with difficulty = 0 started.
Exception in thread "main" java.lang.NullPointerException
at ch.idsia.ai.agents.RegisterableAgent.getAgentByName
(RegisterableAgent.java:68)
at ch.idsia.utils.ParameterContainer.s(ParameterContainer.java:152)
at ch.idsia.mario.simulation.SimulationOptions.setAgent
(SimulationOptions.java:62)
at ch.idsia.scenarios.Evolve.main(Evolve.java:44)

2. When i run "java ch.idsia.scenarios.Evolve" and "java
ch.idsia.scenarios.Stats evolved.xml 0" i get the error

evolved.xml is not a class name; trying to load a wox definition with
that name.
java.io.FileNotFoundException: evolved.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at java.io.FileInputStream.<init>(FileInputStream.java:96)
at wox.serial.Easy.load(Easy.java:37)
at ch.idsia.ai.agents.RegisterableAgent.load(RegisterableAgent.java:
48)
at ch.idsia.scenarios.Play.main(Play.java:22)
Exception in thread "main" java.lang.NullPointerException
at ch.idsia.ai.agents.RegisterableAgent.registerAgent
(RegisterableAgent.java:29)
at ch.idsia.scenarios.Play.main(Play.java:23)

3. Running "java ch.idsia.tools.ToolsConfigurator" just gives me the
normal mario game to play with no "graphical user interface with a
number of options for running different agents".

"java ch.idsia.scenarios.Play" and "ava ch.idsia.scenarios.Play
ch.idsia.ai.agents.ai.ForwardAgent" work fine

Whats wrong?

Cheers
Chris

Sergey Karakovskiy

unread,
Aug 14, 2009, 1:07:55 PM8/14/09
to mariocom...@googlegroups.com
Hi, Chris

Glad to see you here;)




3.  Running "java ch.idsia.tools.ToolsConfigurator" just gives me the
normal mario game to play with no "graphical user interface with a
number of options for running different agents".

toolsConfigurator is mainly to see how do the observation methods work. 
You may consider it as a third party tool. I've opened it and resurrected since it helped me to test many things while developing them long ago.
So, this is just a tool and has nothing to do with actual competition tasks; 
If you follow our svn, you might find some updates for toolsConfigurator runs regularly.


"java ch.idsia.scenarios.Play" and  "ava ch.idsia.scenarios.Play
ch.idsia.ai.agents.ai.ForwardAgent" work fine

Whats wrong?

Cheers
Chris

--
Kind Regards
Sergey



ChrisRichards

unread,
Aug 14, 2009, 1:12:35 PM8/14/09
to Mario Competition
I was just wondering why the commands on the getting started page
throw errors. They are not really getting me started!

Thanks
Chris

On Aug 14, 6:07 pm, Sergey Karakovskiy <sergey.karakovs...@gmail.com>
wrote:

TSE GUAN TAN

unread,
Aug 14, 2009, 1:23:24 PM8/14/09
to mariocom...@googlegroups.com
Dear Friends,

I also face the same problems like below:



1.  When i run "java ch.idsia.scenarios.Evolve" i get the error :

New Evolve phase with difficulty = 0 started.
Exception in thread "main" java.lang.NullPointerException
       at ch.idsia.ai.agents.
RegisterableAgent.getAgentByName
(RegisterableAgent.java:68)
       at ch.idsia.utils.
ParameterContainer.s(ParameterContainer.java:152)
       at ch.idsia.mario.simulation.
SimulationOptions.setAgent
(SimulationOptions.java:62)
       at ch.idsia.scenarios.Evolve.
main(Evolve.java:44)


2.  When i run "java ch.idsia.scenarios.Evolve" and "java
ch.idsia.scenarios.Stats evolved.xml 0" i get the error

evolved.xml is not a class name; trying to load a wox definition with
that name.
java.io.FileNotFoundException: evolved.xml (No such file or directory)
       at java.io.FileInputStream.open( Native Method)
       at java.io.FileInputStream.<init>
(FileInputStream.java:137)
       at java.io.FileInputStream.<init>
(FileInputStream.java:96)
       at wox.serial.Easy.load(Easy.
java:37)
       at ch.idsia.ai.agents.
RegisterableAgent.load(RegisterableAgent.java:
48)
       at ch.idsia.scenarios.Play.main(
Play.java:22)

Exception in thread "main" java.lang.NullPointerException
       at ch.idsia.ai.agents.
RegisterableAgent.registerAgent
(RegisterableAgent.java:29)
       at ch.idsia.scenarios.Play.main(
Play.java:23)

How can I fix it?
Anything wrong with this codes?
Can anyone teach me how to start from the beginning?

Thank you.

 

Sergey Karakovskiy

unread,
Aug 14, 2009, 1:44:18 PM8/14/09
to mariocom...@googlegroups.com
Hi, 

This looks weird, but here is the fix;

If this is an issue for a long time, . Probably it was created by bad luck yesterday; don't know sorry, the reason.
But this should prevent from crash:

put the string
     private String name = "SimpleMLPAgent";

into SimpleMLPAgent.java

or update from SVN.

Cheers,
Sergey
--
Kind Regards
Sergey



Dave

unread,
Aug 15, 2009, 2:06:31 AM8/15/09
to Mario Competition
Thanks Sergey, I was having the same problem but the updated SVN fixed
it. Question tho, when I now run "java ch.idsia.scenarios.Evolve" it
opens a game window where the agent does nothing but hold down+right,
not actually moving at all, until eventually time runs out, and then
the window dumps this (not opening any more windows):

New Evolve phase with difficulty = 0 started.
Generation 0 best 299.0
Saved object to evolved.xml
Generation 1 best 299.0
Saved object to evolved.xml
Generation 2 best 299.0
Saved object to evolved.xml
Generation 3 best 299.0
Saved object to evolved.xml
Generation 4 best 299.0

Is that supposed to be happening? Because it wouldn't appear it's
actually doing anything at all...

Thanks,
Dave

Saved object to evolved.xmlOn Aug 14, 1:44 pm, Sergey Karakovskiy
<sergey.karakovs...@gmail.com> wrote:
> Hi,
>
> Sergey- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages