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

#1 2008-02-03 17:48:06

danp357
Scratcher
Registered: 2007-11-11
Posts: 7

Bring back comment block from source code?

I mess around with the scratch 1.2.1 source code sometimes, and have noticed that there is code in there for the comment block. I wonder about bringing it back. My question is, is there a way to add a few lines of code somewhere in the squeak code to bring the comment block "back from the dead" in my custom version? Thanks in advance.


Am I supposed to write something here? I guess I just did....

Offline

 

#2 2008-02-04 01:48:53

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

Re: Bring back comment block from source code?

Hi danp357,

in the current sources you'll find the code for all deprecated blocks (blocks that used to be there in some previous version but have been left out of the current one) for compatibility reasons. There are numerous ways to use such 'old' blocks in new projects. One is, to open an 'old' project and use the copy-tool on an old 'obsolete' block.

I would not, however, do it, because sometimes these old blocks also come with old bugs. Especially the deprecated comment block from the v1.2 Beta had a serious unfixed bug (and still has it) when you try to export / import any sprite using it (it'll bring up a walkback complaining about some key-mapping error).


Jens Mönig

Offline

 

#3 2008-02-04 13:59:00

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Bring back comment block from source code?

how do you get the source code for scratch? and can you then edit it in squeak?


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#4 2008-02-04 15:01:43

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

Re: Bring back comment block from source code?

Hi blob8108,

look here for the source code: http://scratch.mit.edu/pages/source
and here for some hints: http://scratch.mit.edu/forums/viewtopic.php?id=2745


Jens Mönig

Offline

 

Board footer