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

2012/9/9

Difference between on-site and USB version w/Windows 7

1
2
danpost danpost

2012/9/9

#
I tried calling a new world from the constructor of the start-up world when certain conditions were present. On my laptop the new world showed like I expected; but, on the Greenfoot site, the new world did not show (just a blank white window) but the program stopped like it was supposed to. Is this a bug? and if so, is it in the USB version or something elsewhere (which I suspect)? Please respond Greenfoot team. Thanks.
mjrb4 mjrb4

2012/9/9

#
Were there any error messages in the Java Console with the version on greenfoot.org?
danpost danpost

2012/9/9

#
No error messages. It was pogrammed to stop execution in the new world (but I do not know if it stopped because of the code or because of a possible error).
davmac davmac

2012/9/9

#
Is the scenario still on the site?
danpost danpost

2012/9/9

#
Yes, and no! I was trying to have my Private Messaging scenario display that you had to log in, if you were not already logged in, before the user started the program. The main world constructor would set the new world 'NoGoWorld' to display the message. It worked fine on my laptop (if no user was logged in, the new world displaying that you needed to log in showed). However, when I uploaded it onto the site, I just got a blank screen. If you want, I can upload a simple example for you to look at.
danpost danpost

2012/9/9

#
danpost wrote...
No error messages. It was pogrammed to stop execution in the new world (but I do not know if it stopped because of the code or because of a possible error).
This was said in haste. Still, there were no error messages. But, the program could not have 'stopped' execution because it was not actually started yet. Only compiling and world construcing (possibly) were done.
davmac davmac

2012/9/10

#
Yes, uploading an example would be helpful.
danpost danpost

2012/9/10

#
OK, I will upload it, see if I get the same results and post back.
danpost danpost

2012/9/10

#
I am not quite getting the same results, but still they are different. The scenario is here. It is supposed to show a gray screen with the message "Welcome to my world" if you are logged in; and a red screen with the message "Please log in to continue" if you are not. On my laptop, if I compile or reset, the appropriate screen displays; however, on the site, only the gray screen displays, whether logged in or not.
davmac davmac

2012/9/10

#
It shows the "Welcome to my world" message when I view the scenario online. So, I'm not seeing the same problem as you - it must be something to do with your browser / Java plugin version. Perhaps try clearing your Java plugin cache.
danpost danpost

2012/9/10

#
Yes, that is what it should display (if you are logged in). If you are NOT, it should display something else; but, it is not doing so.
davmac davmac

2012/9/10

#
Ah, sorry, I misunderstood. You are no longer getting the white screen at all? Regarding it showing the wrong result, that was a bug on the Greenfoot side; it should be fixed now, but you may need to clear your Java plugin cache (see link above) before you notice the effect.
danpost danpost

2012/9/10

#
Thanks, davmac. Will upload new version of scenario later.
danpost danpost

2012/9/10

#
New version uploaded. Now it displays BannedWorld and NoGoWorld during compilation/reset (instead of after clicking 'Run').
davmac davmac

2012/9/11

#
It seems the scenario is gone? I'm not sure I understand what the problem is now.
There are more replies on the next page.
1
2