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

#1 2011-07-16 05:22:53

Sonickyle
Scratcher
Registered: 2010-10-16
Posts: 100

Script Output

In The "Help" Menu, There Shoud Be Some Mode Called: "Output". This Would Tell You If Something Is Wrong With Any Of Your Scripts. It Would Appear At The Bottom Of The Screen. eg:
Script#1 In Sprite: Obsolote block detected. Please remove then click the green flag.
--
Don't Bother Reading This, Because You Just Did...


http://i1270.photobucket.com/albums/jj616/Sonickyle27/BannerV1.png
My Online Status on Scratch: http://blocks.scratchr.org/API.php?user=Sonickyle&action=onlineStatus

Offline

 

#2 2011-07-16 07:59:30

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Script Output

When something impractical happens in a script (ie. division by 0, a costume block in the Stage), a red border appears around it - is this sort of like what you mean?


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2011-07-16 10:53:47

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Script Output

Scripts already turn red when you run them and there is an error - such as dividing by zero, as Jon mentioned. You can also go into single stepping mode, which runs through your scripts at an extremely reduced speed so you can diagnose any problems with your scripting.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2011-07-17 15:10:46

Mcsugarface
Scratcher
Registered: 2009-11-16
Posts: 100+

Re: Script Output

I think this is a great idea! It can be hard to find which script isn't functioning correctly in a program with lots of sprites and scripts. Maybe it could even have a button which takes you to the script. XD


Hi! I'm http://blocks.scratchr.org/API.php?user=USERNAMEHERE&action=onlineStatus&type=text!
http://internetometer.com/imagesmall/11070.png

Offline

 

#5 2011-07-17 17:23:40

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Script Output

I went to help though in Scratch and it didn't show any thing about wrong scripting inside my current game that was opened.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#6 2011-07-17 18:45:54

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Script Output

Thescratch3 wrote:

I went to help though in Scratch and it didn't show any thing about wrong scripting inside my current game that was opened.

There is nothing in the help menu that does that. However, if you run a project or script and it runs into any errors (such as 0/0), it turns the block red and gives the script it's in a red border.

http://i.imgur.com/Jyy3z.png

Last edited by Harakou (2011-07-17 18:47:48)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#7 2011-07-17 19:56:40

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Script Output

Harakou wrote:

Thescratch3 wrote:

I went to help though in Scratch and it didn't show any thing about wrong scripting inside my current game that was opened.

There is nothing in the help menu that does that. However, if you run a project or script and it runs into any errors (such as 0/0), it turns the block red and gives the script it's in a red border.

http://i.imgur.com/Jyy3z.png

Oh that, yea I know that.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#8 2011-07-20 13:04:03

Sonickyle
Scratcher
Registered: 2010-10-16
Posts: 100

Re: Script Output

"I went to help though in Scratch and it didn't show any thing about wrong scripting inside my current game that was opened.There is nothing in the help menu that does that. However, if you run a project or script and it runs into any errors (such as 0/0), it turns the block red and gives the script it's in a red border.

Image Blocked Because Of Status Of Poster"
The Error Could Appear In The Output Window

This May Come In Handy For The: "Games That Have Alot Of Scripts" Type Of Projects.


http://i1270.photobucket.com/albums/jj616/Sonickyle27/BannerV1.png
My Online Status on Scratch: http://blocks.scratchr.org/API.php?user=Sonickyle&action=onlineStatus

Offline

 

#9 2012-03-30 15:09:10

Sonickyle
Scratcher
Registered: 2010-10-16
Posts: 100

Re: Script Output

Bump.
smile


http://i1270.photobucket.com/albums/jj616/Sonickyle27/BannerV1.png
My Online Status on Scratch: http://blocks.scratchr.org/API.php?user=Sonickyle&action=onlineStatus

Offline

 

Board footer