Forum Index > Projects > LED Pegboard and Matrix Projects
 Super Monkey Kong, exception when opening sketch
 |  Printable Version
By: martingd (offline) on Sunday, January 02 2011 @ 10:02 PM PST (Read 1895 times)  
martingd

If you have problems loading Super Monkey Kong for Meggy Jr into Arduino, please read on.

I am using Arduino 0022 for Macintosh. When trying to open Super Monkey Kong in Arduino, I get an ArrayIndexOutOfBounds-Exception.

PHP Formatted Code

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBounds-Exception: 0
   at processing.app.Sketch.setCurrentCode(Sketch.java:1106)
   at processing.app.Sketch.load(Sketch.java:218)
   ...
 


I found out that the problem was in the folder and file names of the sketch.

The folder and files are named

  • MeggyJr_SuperMonkeyKong_1.1
  • MeggyJr_SuperMonkeyKong_1.1.pde

but my Arduino does not seem to be happy about "."s in sketch names.

Renaming the folder and files to

  • MeggyJr_SuperMonkeyKong_1_1
  • MeggyJr_SuperMonkeyKong_1_1.pde

fixed my problem.

Now, the game loads in Arduino and I can compile and upload to Meggy Jr.

/Martin


Forum Apprentice
Apprentice

Status: offline

Registered: 12/28/10
Posts: 4
Sorgenfri, Denmark

Profile Email    
   



 All times are PDT. The time is now 06:49 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Evil Mad Scientist Forum Archives — Read only!

Please visit our new forums for new discussions.


DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

My Account






Lost your password?