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

2012/3/27

Greenfoot 2.2.0 beta

1
2
3
4
davmac davmac

2012/3/27

#
Hi everyone, There have been a few people clamouring for Greenfoot 2.2.0 to be released. We've been working hard to get it ready, and have some good news for those eager souls who really want to get their hands on the next version of Greenfoot a bit early (and don't mind if there are still one or two kinks to iron out): a Greenfoot beta release! As this is a beta, we have done some internal testing and there aren't any major problems that we're aware of - however, there have been some significant changes and as a result we expect we might see some problems once the software is "in the wild". That's where you come in... What we're asking is for people to try out the beta, and report their experiences - positive or negative - back to this discussion. If bugs are found, we can then try to fix them before the official Greenfoot 2.2.0 final release. New features in the beta include persistent high scores / save games (see the documentation for the new PlayerData class) and the ability to import classes (such as SmoothMover) from a pre-existing library. A 'turnTowards(...)' method has been added to Actor. Greenfoot.getMouseInfo() now only returns null if the mouse is no longer in the world. Finally, many bugs have been squashed! The download links follow: Windows Mac OS X Debian / Ubuntu Other systems (generic installer) Have fun testing, and don't forget to report back here!
kiarocks kiarocks

2012/3/27

#
YAY! IT'S HERE!!!!!
Builderboy2005 Builderboy2005

2012/3/27

#
I remember nccb mentioned in This thread that there was going to be some sort of functionality to test the scoring functionality within the Greenfoot IDE itself, is this included in this version?
davmac davmac

2012/3/27

#
Yes, in the preferences you can set a player name - then you can use the scoring functionality and will store data to disk locally.
nccb nccb

2012/3/27

#
As Davin says, it's stored locally: in a file called storage.csv. I wouldn't advise editing the file too much in case you break the syntax, but you can at least read it to see what's getting stored. I've also made a couple of score changes on the gallery. I've implemented an internal change on our server that has wiped out previous scores: but this only affects the testing scenarios that mik and I uploaded. I've also published the source code for my helicopter game so you can have a look at that. If you want a scoreboard at the end of your scenario (and I imagine most of you will), use the new Import Class feature in the Edit menu and import the ScoreBoard class, which is pretty much exactly the same as my score-board in the helicopter game.
kiarocks kiarocks

2012/3/27

#
This could be useful for player based bonuses!
PlayerData p = PlayerData.getMyData();
if(p.getMyName().equals("kiarocks")
    infinitehealth = true;
Builderboy2005 Builderboy2005

2012/3/27

#
Where is storage.csv stored? I can't seem to find it. EDIT: Nevermind, didn't realize you needed to store() in order to save changes! Silly me XD
thegreencoolerman thegreencoolerman

2012/3/30

#
Hi dave yes i will try the new beta version thanks
davmac davmac

2012/3/30

#
Thankyou, but I am not dave.
thegreencoolerman thegreencoolerman

2012/3/30

#
Hi exporting as a webpage is not working properly has bugs in system.
Busch2207 Busch2207

2012/3/30

#
I tried to add a Highscore to my scenario: http://www.greenfoot.org/scenarios/4578 In Greenfoot it works fine, but always, when I want to open the Highscore in the Internet, the simulation stops... I think the problem is somewhere in the methods PlayerData.getTop(int); and PlayerData.getNearby(int); because the simulation stops, when this methods are called... (If you're interested. It works fine till line 520 in the 'world'-class, but then it fails...)
Busch2207 Busch2207

2012/3/30

#
And another point! The java file don't open, when I try to open an exported one on the desktop. It even don't create anything...
davmac davmac

2012/3/30

#
Busch2207,
I think the problem is somewhere in the methods PlayerData.getTop(int);
There is at least one bug in your code - you don't check for a null return from the getTop(int) method. See the documentation for the method. However, it is clearly returning null in a case when it is not meant to, so we'll look into that.
The java file don't open, when I try to open an exported one on the desktop. It even don't create anything...
I don't understand - what java file? How are you trying to open it? Davin
Busch2207 Busch2207

2012/3/30

#
Class PlayerData: getTop(int maxAmount) wrote...
Gets a sorted list of the PlayerData items for this scenario, starting at the top.
I haven't read something about a null return... Well... I fixed it... Now it don't stop... But a HighScore isn't shown at all... But I think, the reason is, that there is no available storage, yet, isn't it?
davmac wrote...
I don't understand - what java file? How are you trying to open it?
I mean the file, you get, when you export the game on your desktop... I try to open it, by clicking on it. x)
davmac davmac

2012/3/30

#
But I think, the reason is, that there is no available storage, yet, isn't it?
No, as I said above: is clearly returning null in a case when it is not meant to, so we'll look into that. The storage is available - see the helicopter game example.
I mean the file, you get, when you export the game on your desktop...
Ah, the jar file, got it. We will look into that too.
There are more replies on the next page.
1
2
3
4