This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-05-25 00:25:00

kulakoladja
Scratcher
Registered: 2009-05-19
Posts: 1

Program runs in Scratch environment but doesn't run when uploaded

Wrote a game called ReferenceTools. It runs well in the Scratch environment, but doesn't work when I uploaded it to scratch.mit.edu. I have a 2009 MacBook Pro. Installed the latest version of java. Game didn't play on desktop either.

Offline

 

#2 2009-05-25 00:34:59

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Program runs in Scratch environment but doesn't run when uploaded

Chances are that you may need to increase your Java Heap Memory. This thread (http://scratch.mit.edu/forums/viewtopic.php?id=8366) should help with just that.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#3 2009-05-25 04:38:58

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Program runs in Scratch environment but doesn't run when uploaded

I'm pretty sure your problem here is a bug with the Java Player.  It happens when you try to reference a Play Sound block using the Pick Random function.  That stops the Java Player dead.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2009-05-29 14:28:14

pepepaco1980
Scratcher
Registered: 2009-05-23
Posts: 9

Re: Program runs in Scratch environment but doesn't run when uploaded

hello, is there any other configuration, or coding practice to follow to write a game compatible for both web and local?,
for example: to init all variables to 0, add a wait time to infinite loops, use the lees broadcast as posible, etc...

i have uploaded a small project, that does not have the same behavior when uploaded..."if" block return always true for example and sometimes the variables doesn't take the values assigned, or sometimes one infinite loop does not allow others loops to run.... while im not sure exactly what happened online, i not sure this is really happening, but my game does not run in the same way as in local environment. it loads and run but not as expected.

thank you very much.

Offline

 

#5 2009-05-29 21:17:28

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Program runs in Scratch environment but doesn't run when uploaded

I started a thread to try and help people out with this problem...as we learn new things, it will get more valuable...

http://scratch.mit.edu/forums/viewtopic.php?id=15657


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#6 2009-06-07 17:24:54

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Program runs in Scratch environment but doesn't run when uploaded

The "one forever at a time" is not a problem, it's a thread-based logic error. In Scratch, a script is a thread.


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#7 2009-06-07 18:01:27

fruit
Scratcher
Registered: 2009-04-24
Posts: 1000+

Re: Program runs in Scratch environment but doesn't run when uploaded

scratchisthebest wrote:

The "one forever at a time" is not a problem, it's a thread-based logic error. In Scratch, a script is a thread.

Stop bringing back old threads.


@savi3000 | hcsmp.com

Offline

 

Board footer