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

#1 2008-11-09 09:18:28

lclarkberg
Scratcher
Registered: 2008-11-09
Posts: 2

doesn't run online

My project at
http://scratch.mit.edu/projects/lclarkberg/315923
runs fine in the desktop application but not on the Scratch website. What are some things I should try to fix this?

Offline

 

#2 2008-11-09 21:52:34

lclarkberg
Scratcher
Registered: 2008-11-09
Posts: 2

Re: doesn't run online

Okay Digimath found the problem. Thanks Digimath. In my stage script I had a loop variable try to access item 0 of a list (but all lists start with item 1). For some reason this didn't bother the Scratch app but prevented the online version from working.

I know Scratch doesn't produce error messages, but maybe there could be some sort of flashing indicator when someone tries to access a list item that doesn't exist. Or maybe there is one already but I didn't know what to look for.

Offline

 

#3 2008-11-10 05:28:29

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

Re: doesn't run online

lclarkberg wrote:

Okay Digimath found the problem. Thanks Digimath. In my stage script I had a loop variable try to access item 0 of a list (but all lists start with item 1). For some reason this didn't bother the Scratch app but prevented the online version from working.

I know Scratch doesn't produce error messages, but maybe there could be some sort of flashing indicator when someone tries to access a list item that doesn't exist. Or maybe there is one already but I didn't know what to look for.

I find that when I try to access element zero or negative elements, the List Watcher will flash red for about a half a second.  Of course, if you aren't displaying the List Watcher...you see nothing!  It probably should put a red border around the script too.


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

Offline

 

Board footer