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

2016/6/17

Exported Greenfoot Project not Running Properly

Nintendoge Nintendoge

2016/6/17

#
As evidenced by this published project, my greenfoot project won't work properly when exporting it to any format. The same sort of gray screen appears if you export it into a jar. Is this a known, fixable bug or something weird happening?
davmac davmac

2016/6/17

#
It runs for me. Slowly, but it does work.
Nintendoge Nintendoge

2016/6/17

#
It doesn't run for me at all. Anyone know what's up? EDIT: It works perfectly in Greenfoot, but it shows up blank when exported for both me and my friend.
davmac davmac

2016/6/17

#
Just to be clear: do other scenarios display correctly? Do you see any errors in the Java console?
Nintendoge Nintendoge

2016/6/17

#
Other scenarios are working. I made a quick test one with a single actor and that displayed fine when exported to the jar. No errors are popping up.
Nintendoge Nintendoge

2016/6/17

#
Okay, so I resolved this problem by getting rid of all lines of code that utilized the UserInfo class. I was previously using the getScore and setScore methods to make a highscore system, but after I commented out all of these lines it suddenly began to work. Are there any known reasons why these lines of code would cause the Greenfoot project to not work?
davmac davmac

2016/6/17

#
Ah. UserInfo isn't very usable right now, I'm afraid. See this old discussion. We really need to do something about it.
Nintendoge Nintendoge

2016/6/17

#
Ok, that makes a lot of sense. Shame I didn't find that discussion earlier! Thanks for helping me out.
You need to login to post a reply.