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

2012/5/4

BUG REPORT

Gazzzah Gazzzah

2012/5/4

#
So, we're all very excited about the new userInfo functionality in greenfoot 2.2.0. I just finished implementing it into a project I'm working on. When I exported it as a .jar... it just didn't work. The first reference to userInfo is right at the start of the world so it can't start up. It just opens the Greenfoot window squashed into a little thing with just the 'run' and 'reset' buttons. I tried exporting a backup of the scenario from before userInfo and it worked fine. Is anyone else having this problem? Greenfoot team, you did test that before implementation right?
davmac davmac

2012/5/4

#
Greenfoot team, you did test that before implementation right?
Yes (I assume you mean after implementation...) You realise that UserInfo doesn't provide any functionality when you export to a Jar file? Methods such as getTop() will return null in that case. You did read the class documentation, right? :p
SPower SPower

2012/5/4

#
If you use methods that return info from UserInfo, you first need to check that's available, doing something like this:
if (UserInfo.isStorageAvailable()) {
   //do your things here...
}
Gazzzah Gazzzah

2012/5/4

#
Sorry wrong word, *publication. (Implementation to the I'll be honest I'm a bit disappointed about that :/ I love being able to export it as a jar and send it off to my friends. It sort of sucks that they wont be able to get the full functionality. Don't get me wrong, I really appreciate greenfoot and all that the dev team has put into it. But I guess I just was expecting it to work with .jar aswell. I DID read some of the documentation, but not thoroughly :P
You need to login to post a reply.