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

#1 2009-08-11 06:03:02

rduque
Scratcher
Registered: 2009-07-16
Posts: 10

Online version don´t work same manner

Hi.

I developed my first scratch project and works fine in scratch ide but when I publish it, not all functions work in same manner. Why? Some tips?

I'm working with Scratch 1.4 on Windows Vista.

It's very strange because the block which doesn´t work is the "else" from an "if" and this block doesn´t have any special funcion moreover is very similar to the first part of the "then" of the same "if".

My project is published on http://scratch.mit.edu/projects/rduque/640955 ... When I write a wrong verb, It must sound and clear a list.

Any suggestions?

Offline

 

#2 2009-08-11 06:16:54

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Online version don´t work same manner

its a javascript error ! it happens alot .scratch converts 2 java and sometimes it gets an error when this happens and it dosent work!

Offline

 

#3 2009-08-11 17:27:17

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

Re: Online version don´t work same manner

I've got a FAQ article that trys to address this problem...

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


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

Offline

 

#4 2009-08-11 21:09:06

Epixxware
Scratcher
Registered: 2009-08-07
Posts: 1

Re: Online version don´t work same manner

I found that the random number generator for floating point numbers doesn't work as expected online which could highlight a much more serious compatibility issue, and I think this just has to be fixed in the web player.  See my project remix http://scratch.mit.edu/projects/Epixxware/643914 for an example.

Offline

 

#5 2009-08-12 05:32:50

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

Re: Online version don´t work same manner

I see what you are saying.  You have Pick Random -1.0 to 1.0 and in Scratch it returns decimal values in tenths such as -.8, .3 and so on.  In the Java Player I'm guessing it only is returning integers -1, 0, 1.  That is a problem.

There is a work around...you could use

                        (Pick Random -10 to 10) / 10

instead.  So it would return integers but then divide them by 10 to give you the decimal values you are looking for.


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

Offline

 

#6 2009-08-12 16:27:29

rduque
Scratcher
Registered: 2009-07-16
Posts: 10

Re: Online version don´t work same manner

Thank to everybody for your suggestions but my problem It's not a random or visualization problem ... the script (program) is executing in a wrong way. I've published a screen of the script for you look it!!!

Look at red box, the "else" of the main "if" doesn´t execute at all, the list is not cleared and the sound is not played.

This the link to the script:
http://aitana.freehosting.net/Scratch/error.png

Any suggestion will be welcome.

Thanks.

Offline

 

#7 2009-08-12 16:50:46

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

Re: Online version don´t work same manner

rduque wrote:

Thank to everybody for your suggestions but my problem It's not a random or visualization problem ... the script (program) is executing in a wrong way. I've published a screen of the script for you look it!!!

Look at red box, the "else" of the main "if" doesn´t execute at all, the list is not cleared and the sound is not played.

This the link to the script:
http://aitana.freehosting.net/Scratch/error.png

Any suggestion will be welcome.

Thanks.

Hey rduque, freeservers seems to have a system against remote linking for images. Could you host the picture on an image sharing website such as Photobucket or Imageshack so that we may see your problem?  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

 

#8 2009-08-12 17:06:13

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Online version don´t work same manner

The image loads if you just put the url in the url bar and press enter  smile


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#9 2009-08-12 18:17:06

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

Re: Online version don´t work same manner

archmage wrote:

The image loads if you just put the url in the url bar and press enter  smile

Huh, it looks like it's working now, even when clicking on it. I wonder why it didn't work before.


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

 

#10 2009-08-12 20:39:42

rduque
Scratcher
Registered: 2009-07-16
Posts: 10

Re: Online version don´t work same manner

I'm sorry ...  if you can´t see the image use:

http://aitana.freehosting.net/Scratch/Scratch.htm

Regards.

Offline

 

#11 2009-08-15 10:45:37

rduque
Scratcher
Registered: 2009-07-16
Posts: 10

Re: Online version don´t work same manner

any suggestion over the script?

Offline

 

Board footer