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

#1 2009-08-04 17:25:43

Adamman715
Scratcher
Registered: 2009-06-13
Posts: 49

Source Code?

Hi all,

I recently obtained a copy of the Scratch Source Code, and successfully the obsolete block "say nothing" without any error. One question: How do I run it?????

Jens, your help would really be appreciated here, feel free to come by.

P.S.: A few various things:

The source code can be found at: http://info.scratch.mit.edu/Source_Code . They have the 1.2.1 code, also.

And for those who are curious:  wink
Path for COMMENT BLOCK: (instance selected)
Scratch-Blocks>>CommentBlockMorph

and....
HOW TO RESTORE OBSOLETE BLOCK SPECS USING THE SCRATCH 1.3.1 SOURCE CODE:
1. Open the System Browser.
2. Follow this path with class button selected:
Scratch-Objects>>ScriptableScratchMorph>>scratch>>obsoleteBlockSpecs
3. Copy the specs for the block you want
4-1. Follow this path (class selected):
For Motion, Looks, Pen and Sensing Categories:
Scratch-Objects>>ScratchSpriteMorph>>scratch>>blockSpecs
4-1b. Paste the code to the corresponding category.
4-2. Follow this path with class button selected:
For Control, Numbers, Sound and Variables categories:
Scratch-Objects>>ScriptableScratchMorph>>scratch>>blockSpecs
4-2b. Paste the code and delete the code:
,self obsoleteBlockSpecs
leaving just:
^t1

Tell me if my "Curious" section info is all correct please!

Adamman715


http://gickr.com/results2/anim_be55add9-67f8-bed4-8ddd-85ad04acb8a5.gif ----------The many faces of Windows! -----------------
http://img215.imageshack.us/img215/5564/ubd2448.png

Offline

 

#2 2009-08-04 18:02:13

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Source Code?

Hi Adamman715,

I just answered your question in a project comment. In short: If you create a new block in the source code, you will need to evaluate 'ScriptableScratchMorph buildBlockSpecDictionary' before saving the image.

Apart from unearthing buried obsolete blocks, which have been your favorite new ones? Among my favorite experimental blocks are the following:

"note" - reports the midi note value of the pitch currently sensed by the microphone.
"send_to_" - send a message to a specific sprite, to all or to self
"warp" - a C-shaped block executing its nested stack at the speed of a single block
"last received" - reports the message last received


Jens Mönig

Offline

 

#3 2009-08-04 19:59:25

Adamman715
Scratcher
Registered: 2009-06-13
Posts: 49

Re: Source Code?

Thanks for replying! I will do that.

My favorites are:

obsolete! - no clue what it does, I just like it because it's rare. You can get it by downloading a 1.4 project with 1.3.
even though this is old: comment - no clue either, just know it comments on something.
point away from edge - obviously it tells the sprite to point away from the edge.
change water ripple by [number] - changes the value of a water ripple by a certain amount.

P.S. : Please forgive me if some of these are old, I'm kinda new to the obsolete block aspect of Scratch. I'm also determined to find all of these and take screenshots, then put them into a Scratch project and let everyone see them! I'm also making a book about them.


http://gickr.com/results2/anim_be55add9-67f8-bed4-8ddd-85ad04acb8a5.gif ----------The many faces of Windows! -----------------
http://img215.imageshack.us/img215/5564/ubd2448.png

Offline

 

#4 2009-08-16 10:00:36

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

Re: Source Code?

Adamman715 wrote:

Paste the code


Adamman715

when ou say paste the code what code?

Offline

 

#5 2009-08-16 12:33:09

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Source Code?

WARP SPEED? How...? Well, I MUST try this out!


Converting my Scratch projects to Python!

Offline

 

#6 2009-08-16 21:27:50

songhead95
Scratcher
Registered: 2008-03-19
Posts: 100+

Re: Source Code?

How do I access said experimental blocks

Offline

 

#7 2009-08-18 07:48:51

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: Source Code?

nice, you reminded me to enable obselete blocks in my version of scratch, thanks.


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#8 2009-08-18 07:51:18

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: Source Code?

And jens, how do you get the experimental blocks in 1.4? because I NEED THEM


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#9 2009-08-23 08:51:09

Adamman715
Scratcher
Registered: 2009-06-13
Posts: 49

Re: Source Code?

dav09 wrote:

Adamman715 wrote:

Paste the code


Adamman715

when ou say paste the code what code?

The code for the block you want. ALSO: DO NOT PASTE THE CODE. It will just say <b>obsoleteBlockSpecs</b>. Type the code, for example, if you wanted say nothing, you would type #- ('say nothing' #- #sayNothing) or edit it by doing this: #- ('say nothing' #- #sayNothing:duration:elaspsedFrom: '5') (if you use that last one give me credit). Sorry for late responce.


http://gickr.com/results2/anim_be55add9-67f8-bed4-8ddd-85ad04acb8a5.gif ----------The many faces of Windows! -----------------
http://img215.imageshack.us/img215/5564/ubd2448.png

Offline

 

#10 2009-08-23 09:09:05

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

Re: Source Code?

thanks !

Offline

 

Board footer