This site requires JavaScript, please enable it in your browser!
Greenfoot back
ImFerocious
ImFerocious wrote ...

2011/9/8

.jar file not working correctly...

ImFerocious ImFerocious

2011/9/8

#
I've been working on an old game for awhile, SpawnLings, and i started having a problem when i export it. - When i export it as an application this is what happens: if i hit reset then it actually loads the scenario but doesn't resize the window so all i see is a scroll bar. So i figured out i had to export it as a website but still when i launch it it still just has the small empty square but when i hit reset it loads the applet and then i can play but i don't know why it's doing this in the first place...any help?
davmac davmac

2011/9/8

#
There are some bugs in Greenfoot 2.1.0 which can cause this problem. However, we just released Greenfoot 2.1.1 which fixes these bugs and several others. Could you try with the new version?
ImFerocious ImFerocious

2011/9/8

#
I have tried re-exporting the game and the new Greenfoot has fixed the problem. Thank you.
LegoDiego LegoDiego

2012/1/9

#
Hello, I had the same problem as ImFerocious. After reading this thread I updated my Greenfoot install from 2.1.0 to 2.1.2 and then instead of a small square I got a small rectangle that spanned the width of the scenario controls. I also tried updating my JDK to 7u2 as per the download link on the greenfoot site. Our scenario works fine in the IDE. We just can't get any exported version to run. Any help would be greatly appreciated. My 8-year-old has been working for months on his project (I borrowed his account to make this post). Thanks!
LegoDiego LegoDiego

2012/1/9

#
I found that the problem is that we are calling GamePad.getNumGamePads() in the constructor of the world. Moving that call fixed our issues. I might go wake my son up to tell him the good news. He went to bed a bit sad earlier. :)
You need to login to post a reply.