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

#51 2009-05-31 09:40:20

bendad
Scratcher
Registered: 2008-06-14
Posts: 100+

Re: Scratch Source Code

Jens wrote:

Hi Simon,

the MIT-Squeak version running under a current Squeak VM (3.9) works fine for me (I did get an error using a 3.10 version). You can also open the dev-image using a copy of the Scratch.exe (which I personally prefer). Which error did you get?

Besides the Squeak vm (or the Scratch.exe) you also need a v2 Squeak sources file. Download that from: http://ftp.squeak.org/2.0/SqueakV2.sources.gz , uncompress it and put it into the same directory as your vm.

BTW, you can unzip the .gz from within Squeak (or Scratch for that matter). Just open Squeak, open a file list, select the .gz file and choose 'decompress to file'. Now you should be all set to go!

Hi Jens,
I tryed this and it did not work. I am using the scratch 1.3.1 source code. Do I need to use a different file?

- Bendad


Hi!  big_smile
Good to see you. (Even if I don't know you  wink  )

Offline

 

#52 2009-06-24 17:42:52

bennyallee
Scratcher
Registered: 2008-11-26
Posts: 2

Re: Scratch Source Code

I can't get to make my own blocks! It is very confusing! I tried to look at a tutorial, but I didn't get it.  sad

Last edited by bennyallee (2009-06-24 17:43:29)

Offline

 

#53 2009-06-24 19:57:22

Rich_Goyette
Scratcher
Registered: 2009-06-24
Posts: 9

Re: Scratch Source Code

Hi all:

I'm busy learning smalltalk so that I can play inside the Scratch source on the sensor board interfaces.  However, I'm somewhat stuck at this point and here's the problem.  In Scratch, the sensor and sensor value blocks each have drop down menus on them (slider, light, sound, etc).  I can't seem to find where these menu items are defined and how they are used.  This may be a bit complex, but if I could just find out where the items are defined, I can figure out the rest.

Can anyone help?

Rich

Offline

 

#54 2009-07-27 13:15:41

scratchycat625625
Scratcher
Registered: 2009-06-05
Posts: 17

Re: Scratch Source Code

johnadmin wrote:

For those wondering how to open the Scratch source code image in Squeak:

Note: You'll need to know or learn at least a little bit about Squeak and Smalltalk-80 to make any sense out of the Scratch source code. Most Scratch programmers probably won't care to learn Squeak--and that's totally fine! We created Scratch so people could learn to program without becoming professional programmers. But some professional programmers asked about the Scratch source code, so we made it available.

But, to answer the question...

First, download and unpack the Scratch source code--a folder containing Squeak .image and .changes files. Second, download Scratch if you don't already have it. Put a copy of the Scratch application (Scratch.exe or Scratch.app) in your Scratch source code folder. Next, download:

  http://ftp.squeak.org/2.0/SqueakV2.sources.gz

Uncompress SqueakV2.sources and put that, too, in your Scratch source code folder. Finally, drop the file ScratchSourceCode1.2.1.image onto the Scratch application in your Scratch source code folder. The Squeak programming environment will start up and you'll be able to start exploring the Scratch source code.

You might also look at the excellent tutorial Jens created:

  http://scratch.mit.edu/projects/Jens/75626

  -- John

Won't start up. Is there another way to open the Scratch Class Browser?
EDIT: Fixed, don't panic.

Last edited by scratchycat625625 (2010-07-10 11:28:44)


Plug 'n' play... How do they know my street name?

Offline

 

#55 2009-07-27 19:31:17

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Scratch Source Code

I have also created a forum thread where you can post questions about altering the squeak source code. It is here:
http://scratch.mit.edu/forums/viewtopic.php?id=18971.
It focuses mostly on the actual code, rather than getting it installed and working.

Last edited by billyedward (2009-07-27 19:33:00)


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#56 2009-12-20 14:00:20

Pc_Freak
Scratcher
Registered: 2009-06-01
Posts: 19

Re: Scratch Source Code

well I have experimented a little bit with the scratch source code (adding new blocks,...)
but now I have one problem:
I want to create a 3D Scratch, and I know how to calculate the 2d x and y position, thats not my problem... i have also created a block ('goto x:%n y:%n z:%n') but I want to create global variables just like 'x position' , 'y position'  and 'z position' (motion blocks)... and there is my problem:
I don't know how i can create global variables...
just like x and y (^ self referencePosition x || referencePosition y)
i want this:
^ self referencePosition z

Hope you understand what i want to know, if not, feel free to ask ;-)

PS: I'm from Germany and my english is not good, so pls don't tell me how bad my grammer is, thx ;-)

Offline

 

#57 2009-12-20 18:16:34

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

Re: Scratch Source Code

how many tutorials have you gone through, er how much smalltalk do you know?


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

Offline

 

#58 2010-03-31 22:17:46

electrified123
Scratcher
Registered: 2009-11-22
Posts: 100+

Re: Scratch Source Code

can you please give us the code you used for z position please i have searched for weeks to find it, unfortunately i couldnt find it until now so what did you type in the browser for z position


http://i47.tinypic.com/5nrzmp.jpg check out my stuff ~ If You Really Thought i would think what you thought, than you must think i think what you thought i would think at the time you thought i was thinking what you thought

Offline

 

#59 2010-04-02 04:08:03

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Scratch Source Code

SimpleScratch wrote:

Thanks you very much indeed :-)

The only problem now is that we'll have to really really get to grips with Squeak and the way it works !

If anyone (don't want to bother the Scratch team with requests like this but feel free to answer :-) ) can give us an idiots guide on how to get going...

I got as far as seeing the source code in Squeak but I got an error and my Squeak is 3.9xxxx - do I need to get a particular old version???.

And then the big one - how do we make our own blocks?  :-)

regards

Simon

Try here:
http://scratch.mit.edu/forums/viewtopic.php?id=31200


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#60 2010-04-02 20:49:23

AnonymousTom
Scratcher
Registered: 2010-03-19
Posts: 100+

Re: Scratch Source Code

I'm going to start to learn Small-Talk 80 to eventually, try to add new features too scratch. So, until then I cannot do so.

Offline

 

#61 2010-05-11 20:56:43

mrak
Scratcher
Registered: 2009-11-22
Posts: 30

Re: Scratch Source Code

Jens wrote:

Hi Simon,

the MIT-Squeak version running under a current Squeak VM (3.9) works fine for me (I did get an error using a 3.10 version). You can also open the dev-image using a copy of the Scratch.exe (which I personally prefer). Which error did you get?

Besides the Squeak vm (or the Scratch.exe) you also need a v2 Squeak sources file. Download that from: http://ftp.squeak.org/2.0/SqueakV2.sources.gz , uncompress it and put it into the same directory as your vm.

BTW, you can unzip the .gz from within Squeak (or Scratch for that matter). Just open Squeak, open a file list, select the .gz file and choose 'decompress to file'. Now you should be all set to go!

can you please help me do some thing with squeak

Offline

 

#62 2010-07-18 19:08:55

qwertyperson
Scratcher
Registered: 2009-10-13
Posts: 11

Re: Scratch Source Code

johnadmin wrote:

A few people have asked about getting access to the Scratch source code. Here it is:

   http://scratch.mit.edu/pages/source

Important note: The Scratch source code is intended only for technically-advanced users who want to experiment with developing new features. To understand and modify the source code, you need expertise in the programming language Squeak (Smalltalk-80).

If you have any questions, please feel free to post messages here, or contact scratch-developers at media.mit.edu.

  -- John (for the MIT Scratch Team)

can i tell them about the way with "r"?

Offline

 

#63 2010-07-18 19:17:24

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Scratch Source Code

qwertyperson wrote:

johnadmin wrote:

A few people have asked about getting access to the Scratch source code. Here it is:

   http://scratch.mit.edu/pages/source

Important note: The Scratch source code is intended only for technically-advanced users who want to experiment with developing new features. To understand and modify the source code, you need expertise in the programming language Squeak (Smalltalk-80).

If you have any questions, please feel free to post messages here, or contact scratch-developers at media.mit.edu.

  -- John (for the MIT Scratch Team)

can i tell them about the way with "r"?

They are the ones who put it in, so why would you need to tell them about it?


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#64 2010-07-28 18:57:05

Bobberpi
Scratcher
Registered: 2010-02-12
Posts: 13

Re: Scratch Source Code

I can't get the source code open! I downloaded it, but I can't get it to start! Can someone help?


http://internetometer.com/image/15714.png

Offline

 

#65 2010-09-13 18:39:20

Rich_Goyette
Scratcher
Registered: 2009-06-24
Posts: 9

Re: Scratch Source Code

Hi All:

I have done a fair amount of work hacking the source to suit my needs.  I started from scratch (no pun intended) and learned SmallTalk on the way.  As I went, I documented everything I did as best I could here:

http://www.richardgoyette.com/ItchBotsHardDesignDetails.html
http://www.richardgoyette.com/ItchBotsSoftMain.html

If you are interested in modifying Scratch, you might find something interesting there.

Rich goyette

Offline

 

#66 2011-03-19 17:45:32

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: Scratch Source Code

How do I add my logo? And How do I change about Scratch?

Offline

 

#67 2013-04-25 20:50:58

omc1223
Scratcher
Registered: 2012-04-29
Posts: 12

Re: Scratch Source Code

Share your projects on modshare.org.


If you like to Scratch... Well Scratch  cool 
If you don't  yikes  you should  roll .. Scratch anyway  wink 

Offline

 

Board footer