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
Offline
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.
Last edited by bennyallee (2009-06-24 17:43:29)
Offline
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
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)
Offline
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)
Offline
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
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
Offline
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
Offline
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
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
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
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?
Offline
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
How do I add my logo? And How do I change about Scratch?
Offline