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
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.
Offline
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
Offline
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
Sometimes projects don't work online, don't ask me why, but loads of them need to be downloaded to work.
Offline
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.
Offline