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

#1 2008-05-01 18:49:21

Kronk
Scratcher
Registered: 2008-04-22
Posts: 14

project doesn't works on the web site

Hi ,

I've just uploaded this project :
http://scratch.mit.edu/projects/Kronk/154736
A "guitar trainer"

My project works perfectly on my computer but does'nt work on scratch site.
I tried to upload it three times and it's always the same problem !

I've just reinstalled java 6 and all the others projects work perfectly ...

I don't understand ...

Charles, Bordeaux, France
Pour les éventuels francophones : on a créé une liste de discussion sur scratch.
Envoyez un mail   :     scratch_group-subscribe@yahoogroupes.fr

Offline

 

#2 2008-05-01 20:08:14

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

Re: project doesn't works on the web site

Well, that is quite a complex project!  Since I don't know how to play guitar (other than basic chords) I don't know how to test it properly.  What is the behavior that is not occuring?

It is not uncommon to run into problems with projects once they are uploaded to the website.  Common sources of these problems are:

1. Timing issues.  This most often causes problems when events depend on a certain sequence of closely-timed prior events.  The project may work fine in Scratch but act differently in the Java player online due to differences in execution time of the two environments.  Check your project to make sure you are not making assumptions about the sequence of events.

2. Color differences.  The color pallets in the two environments differ a bit so projects that depend on a lot of color testing sometimes have problems.

3. Touching the Mouse Pointer.  Online, the Touching Mouse Pointer event will be triggered for sprites even if they are under other sprites.

There's a couple of other areas that I can't recall right now.  My recommendation would be to review your project with these problem areas in mind.  Then, make a small test project that uses all the basic techniques in your project and see if you can isolate the problem area.  Good luck.


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

Offline

 

#3 2008-05-01 20:24:01

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: project doesn't works on the web site

I tried it. It didn't work. I wish it did, my guitar teacher would love it and probably incorporate it into his lesson plans


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#4 2008-05-02 07:02:28

Kronk
Scratcher
Registered: 2008-04-22
Posts: 14

Re: project doesn't works on the web site

Thanks for your interest and your advises and time !

Paddle2See, could you explain please : "making assumptions about the sequence of events."

- What append when I send a broadcast at several sprite at the same time ?

- If you want to place or initialize your private variable, you are forced to execute several sprite at the right same moment, no ?

- in this idea, what is forbidden on scratch, is there rules ?

Thanks for your Help !

Charles, Bordeaux, France
PS : I'm looking for a document talking about these things, if you know one ... even in english ;-), but it would be easier in french for me !

Offline

 

#5 2008-05-02 09:47:01

geckofreak
Scratcher
Registered: 2007-12-20
Posts: 100+

Re: project doesn't works on the web site

Sometimes projects don't work online, don't ask me why, but loads of them need to be downloaded to work.


http://img361.imageshack.us/img361/645/supersmashbroscharacterzg7.gif
cool  My Wii Friend Code 5069-3634-2461  cool

Offline

 

#6 2008-05-02 14:59:35

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

Re: project doesn't works on the web site

Kronk wrote:

Thanks for your interest and your advises and time !

Paddle2See, could you explain please : "making assumptions about the sequence of events."

- What append when I send a broadcast at several sprite at the same time ?

- If you want to place or initialize your private variable, you are forced to execute several sprite at the right same moment, no ?

- in this idea, what is forbidden on scratch, is there rules ?

Thanks for your Help !

Charles, Bordeaux, France
PS : I'm looking for a document talking about these things, if you know one ... even in english ;-), but it would be easier in french for me !

Sorry, there is no document that I am aware of.

Yes, when you send a broadcast you can start several sprites executing at once.  If one depends on the state of another, this can cause problems, since the state may not have been reached when it is required.  You can attempt to correct this sort of problem by using Broadcast and Wait (forces all the processes to complete before moving on to the next block) or using variables as flags to block execution until a certain state is reached.  A more primitive (and less certain) approach is to insert Wait blocks in areas to try to tune the application so it works properly. 

Do you suspect you have one of these "race condition" problems?  They are called this because it is a race between two or more processes to see which one finishes first.


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

Offline

 

Board footer