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

2012/5/5

Bug report... legitimately this time...

Gazzzah Gazzzah

2012/5/5

#
I updated a scenario of mine. It altered the way that userData is read and used (which variables go where and so on). Since there still was playerdata from the previous version, it caused a null point error on the site. (This happened because one or two of the 'int's are used to determine what image to use. So there was obviously a bad value because of the re-arrangement.) I would advise there be a way for publishers to reset userInfo or something, but in the mean time, I just deleted it and re-published.
davmac davmac

2012/5/5

#
But if you change the way you use the data, and that causes your scenario to crash, it's a bug in your scenario, not in Greenfoot. If you've changed the way that data is used, it would be a good idea to make your code robust so that it can handle the old format as well (at least, not crash with it!). We will at some point give some way to reset the data. In the meantime, if you really need to reset it, you can rename your scenario (so that it's a 'new' scenario); or, delete the scenario and then re-upload it. (You will lose comments and upvotes).
Gazzzah Gazzzah

2012/5/5

#
Makes sense I guess. My apologies for being a difficult customer.
You need to login to post a reply.