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

2017/1/16

Some small issues with Greenfoot.org

Nosson1459 Nosson1459

2017/1/16

#
Introduction (this introduction is only necessary if you're NOT "davmac", the discussion is probably for davmac to answer unless it's me doing something wrong): The reason that I'm making this whole discussion is because that is what davmac (Davin McCall) who is a "Member of the Greenfoot development team." tells me to do when ever I ask him about such problems elsewhere. Problem 1: Scenarios that use UserInfo used to not work at all but now davmac helped me ('somewhere else') so they should work BUT when those people use getUserImage() which they often do my user image shows as a PLAIN grey box with my name written in two lines. On the top line is "Nosson" and on the bottom line is "1459" instead of the whole thing being my image of a tiger. On those same high score pages are other people WITH their image OR with the Greenfoot image for someone who doesn't have an image , nobody else has this plain grey box from what I saw. Now I've seen other people also have this grey box with their name in it, but I want MY picture as my user image not my name. Problem 2: RECENTLY when I tried using the search box at the top of the Greenfoot site I got an error saying !AAARGH!! We're sorry, but something went wrong. (I used the rant tag for the red letters, and there is no way for me to take the "!AAARGH!! " away), anything I type in gives me the error, but it used to work with these same searches that I'm typing in (I do know that davmac has been changing things in the server for a different problem that I had). Problem 3 (I've mentioned this in another discussion): When I'm finished editing my post and I click "Update" I'm brought to the beginning of the current discussion instead of to the bottom where this post obviously is if I'm editing it. When a post is created you stay there at the bottom so I think it should be same here. Sometimes I'm in middle of editing a post then someone else posts a post under mine so when I click "Update" I'm brought to a different page displaying an error (I have no idea if THIS problem is possible to fix at all but it's still belongs in this discussion). Problem 4: There's a maximum of eight new notifications to be displayed in the star next to my user image at the top of the page but it's possible to actually have more than that. (I didn't elaborate on this because I elaborated enough in this discussion (right where the link brings you to).)
Super_Hippo Super_Hippo

2017/1/16

#
Problem 1: Could you provide a link to a game where you are in the highscore table to check if other people also don't see your image? (Well, maybe you can't search for the game because of problem 2...) Problem 2: This happens to me, too. Problem 3: The updating of a post should really bring one to the end of the discussion (= to the post which was updated). To the second one there, you can't update a post anymore if it isn't the last. My idea would be to show a message like "You can't edit your post anymore" (or something) but without changing the website, so the written text isn't lost. (I am not sure if every browser can get the text back when just clicking on back.) A similar message could also appear when you try to post (not update) a message and someone else also replied already so you maybe don't send a duplicate. Problem 4: This problem could be (somewhat) solved if every discussion would only generate one star. So let's say there were ten new replies in a discussion, the star would show a 1 and should bring you the oldest one which is still new for you. This way you could see "endless" replies in 8 different discussion instead of 8 replies. The other thing you mentioned was that clicking on one notification should not remove the other notifications. I think that this is also a good point.
danpost danpost

2017/1/16

#
@Super_Hippo, I went into my Private Messaging scenario to see what there was. About one in every eight have that same issue with their user image when using UserInfo.
davmac davmac

2017/1/17

#
The issue with search not working should now be fixed; editing a post should successfully should also return you to the last page of the discussion.
Nosson1459 Nosson1459

2017/1/20

#
davmac wrote...
The issue with search not working should now be fixed; editing a post should successfully should also return you to the last page of the discussion.
Thanks, that's 2/4 problems resolved now there is still the other 2 problems (1 and 4, also look at Hippo's problem 4).
Nosson1459 Nosson1459

2017/1/24

#
So there is absolutely no solution to the other two problems, I didn't get any recent replies resolving them?
davmac davmac

2017/1/24

#
Nosson1459 wrote...
So there is absolutely no solution to the other two problems
If you mean "have these issues been fixed or improved" the answer is no. I've just now looked into the problem with the user avatar images and I believe I can see what is happening, so we should be able to fix that shortly. We have no immediate plans to improve the notifications; this isn't a priority for now.
Nosson1459 Nosson1459

2017/1/25

#
OK, thanks.
Nosson1459 Nosson1459

2017/1/25

#
I noticed that today when I tried some UserInfo scenarios my UserImage showed my tiger instead of the grey box.
Nosson1459 Nosson1459

2017/1/25

#
1 problem left.
davmac wrote...
We have no immediate plans to improve the notifications; this isn't a priority for now.
Request 1: Just like a post is editable if it's the last one in the discussion, I think it should be possible to delete a post if it's your post AND if it's the last in the discussion. Because you might have posted when it's unnecessary and you have to edit it to say something like "ignore this post" (I saw that recently in a discussion).
Super_Hippo wrote...
A similar message could also appear when you try to post (not update) a message and someone else also replied already so you maybe don't send a duplicate.
I didn't start a new discussion for this because it was already mentioned in this discussion so I wrote it as a full post, and not just a sentence squished between many others.
Super_Hippo Super_Hippo

2017/1/25

#
Nosson1459 wrote...
Because you might have posted when it's unnecessary and you have to edit it to say something like "ignore this post" (I saw that recently in a discussion).
Yes, that was me. I accidently clicked on 'quote' instead of editing my own post... Well, maybe it would be enough if you could delete your post in the first minute or so.
Nosson1459 Nosson1459

2017/1/26

#
Super_Hippo wrote...
Yes, that was me.
I knew it was you, but I couldn't find where the post was and there was no need in me saying who it was. It won't change anything and just in case you didn't want me to say so I didn't but you did.
Nosson1459 Nosson1459

2017/2/5

#
Super_Hippo wrote...
Hello, I just updated to 3.1.0 and I noticed that the GreenfootImage class doesn't work as it did before although the class didn't change (or at least I don't see any difference in the API). I use this constructor:
public GreenfootImage(java.lang.String string, int size, Color foreground, Color background) //... foreground - the color of the text. Since Greenfoot 3.0.4, passing null will use black. background - the color of the image behind the text. Since Greenfoot 3.0.4, passing null with leave the background transparent.
If 'foreground' and/or 'background' is 'null', it will give a NullPointer Exception. This did not happen before 3.1.0. That's the code:
import greenfoot.*;

public class World1 extends World
{
    public World1()
    {    
        super(600, 400, 1);
        GreenfootImage img = new GreenfootImage("text", 40, null, null);
    }
}
And this is the error:
	java.lang.NullPointerException
	at greenfoot.GreenfootImage.<init>(GreenfootImage.java:171)
	at World1.<init>(World1.java:8)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at greenfoot.core.Simulation.newInstance(Simulation.java:617)
	at greenfoot.platforms.ide.WorldHandlerDelegateIDE.lambda$instantiateNewWorld$7(WorldHandlerDelegateIDE.java:430)
	at greenfoot.core.Simulation.runQueuedTasks(Simulation.java:502)
	at greenfoot.core.Simulation.maybePause(Simulation.java:305)
	at greenfoot.core.Simulation.runContent(Simulation.java:218)
	at greenfoot.core.Simulation.run(Simulation.java:211)
(Quote from here)
davmac davmac

2017/2/14

#
Nosson1459 wrote...
Request 1: Just like a post is editable if it's the last one in the discussion, I think it should be possible to delete a post if it's your post AND if it's the last in the discussion
Now done.
Nosson1459 Nosson1459

2017/2/14

#
Thanks. (I had to find a place that I posted last to see it before I wrote this post)
You need to login to post a reply.