i made it al the unil the end with no problem and then i tried to shift-click the extras button and then...........................................................................................................................................................................................................................................................................................................................................................................................nothing happened.
don't worry, registeel, this is nothing you need to understand to use Scratch to its full limits, it's just a little tutorial how to create a simple custom block for Scratch using its Squeak Source Code and development environment. If you take a look at the download page for the source code and search the forums I'm sure you'll find instructions how to set it all up on your computer. If not, just ask in the 'Advanced Topics' forum section!
I tried using a method where i actually open the sources with programs selected from a list (i selected scratch) and then it popped up, but i didn't see a difference. this is really TRICKY!
I made an experimetn by opeing a image file though scratch again so this popped up, and i tryed to make another flip block, except with a different name, and it said caution, this method has been changed elswhere. And i didn't even get the chance to save my non-working flip block...wat is going on :|?
What happened is probably you didn't save one of the methods you changed for the "flip"-block (the one with the command spec / selector in it), before you changed it again for your other block. When working with Smalltalk-80/Squeak it's always a good practice to frequently save the image (snapshot) and file out your changes, so nothing really gets lost.
You need to copy Scratch.exe (or app if you have a mac) into the directory containing the sources, this will start it. You also need the .sources files which is also linked to on the source code download page.
I was just going to ask when your chirp compiler was going to be finished, but I got a little side tracked with this project (do you work for scratch?)
I don't work for Scratch, I'm just an amateur. My fake compiler is pretty much finished the way it is. I de-glitched it a little more for Vista in my "list and files" prototype: http://www.chirp.scratchr.org/blog/?p=16
you can just save the squeak image by left clicking anywhere on the background ("World") and selecting "save" or "save as". Note: Even better might be saving the image "in user mode" by shift-clicking the "Extras" button and selecting this option from the developer's menu (You can later always switch back to development mode by again shift-clicking on the "Extras" button).
Jens, Before I can contribute I need to digest your tutorial and try something new on my own. I've only walked myself through the tutorial once. A next step would be to reverse-engineer scratch's variable deceleration. But I'm a long way from that. Ideas? I see that squeak works with sockets, and that it has an FFI wrapper for sqlite. My language of choice is Perl so from my point of view, squeak looks a bit foreign. BTW, I only just discovered Scratch two weeks ago. It's simply amazing.
cwebb, If you're new to Smalltalk you might want to check out some tutorials and free books from the squeak.org website first. I'm also currently pondering data persistance and regard my lists-project as a step towards that goal. If you're having any ideas or code to share, I'd be very glad...
Jens, The tutorial is through. I'm new to scratch and squeak. Can you recommend any books. Data persistence is an issue and I was wondering if a block could be used to create a linear array that would behave as a FILO?
Ok thanks
LAST QUESTION (thanks again; you are in the credits...)
How can I change the actual graphics... I can see their filenames, but can't get how to open them in paint...
MasterOfMac: You can't change the acutal icon of the VM-Window, unless you create your own vm or modify the Scratch.exe/.app with a resource editor. But you *can* modify anything else in the image. Hint: The graphical components of the Scratch-window are kept in a *class* variable named ScratchSkin in class ScratchFrameMorph. ScratchSkin is a Dictionary associating various forms (bitmaps) with Symbols representing the elements of the IDE...
I'm going to release a remix with all of them soon...
It shouldn't conflict with any changes in Chirp, either.
One question...
How did you get the scratch source version's icon to change?
I've gone through just about every class and can't find the origBitmap...
thanks again...
great tutorial... ive created TONS of custom blocks!
I made a side-step motion block (horizontal steps)
and ressurected tons of obsolete features...
THX!
dsdude10: You're right. You would have to apply the same changes you did to the source code image to the official Scratch image, which is currently almost impossible to accomplish. It is also *not* endorsed by MIT, because it would actually break your Scratch application and result in incompatible projects. So, please, feel free to experiment with the source code image (and please discuss any ideas you come up with in the "Advanced Topics" forum section) , but *don't ever* save any changes to the official Scratch image!
Comments
You need to be logged in to post comments
Add a Comment
1 | 2
i made it al the unil the end with no problem and then i tried to shift-click the extras button and then...........................................................................................................................................................................................................................................................................................................................................................................................nothing happened.
(view all replies)Comment Reply
you could recreate the comment block!
(view all replies)Comment Reply
there will a commenting mechanism in the next release next month
(view all replies)Comment Reply
what are the camera sensing ops? it doesn't seem to be active...how do you activate one?
(view all replies)Comment Reply
I have no idea, sorry. I have never experimented with these ops myself...
(view all replies)Comment Reply
I can't open it with the appropriate program.
(view all replies)Comment Reply
I don't understand this :(
(view all replies)Comment Reply
don't worry, registeel, this is nothing you need to understand to use Scratch to its full limits, it's just a little tutorial how to create a simple custom block for Scratch using its Squeak Source Code and development environment. If you take a look at the download page for the source code and search the forums I'm sure you'll find instructions how to set it all up on your computer. If not, just ask in the 'Advanced Topics' forum section!
(view all replies)Comment Reply
Hiw do you open soyrce code?
(view all replies)Comment Reply
I tried using a method where i actually open the sources with programs selected from a list (i selected scratch) and then it popped up, but i didn't see a difference. this is really TRICKY!
(view all replies)Comment Reply
Can you make it in to a hexagon block?
(view all replies)Comment Reply
sure, you can specify it to be a boolean reporter block, which will make it hexagonal. Just be sure to make it return true or false.
(view all replies)Comment Reply
How did you come up with that?
(view all replies)Comment Reply
I love it. It really helped me!
(view all replies)Comment Reply
I made an experimetn by opeing a image file though scratch again so this popped up, and i tryed to make another flip block, except with a different name, and it said caution, this method has been changed elswhere. And i didn't even get the chance to save my non-working flip block...wat is going on :|?
(view all replies)Comment Reply
What happened is probably you didn't save one of the methods you changed for the "flip"-block (the one with the command spec / selector in it), before you changed it again for your other block. When working with Smalltalk-80/Squeak it's always a good practice to frequently save the image (snapshot) and file out your changes, so nothing really gets lost.
(view all replies)Comment Reply
you should make a turtorial with siomething in the sound section. Also, I've heard of a 'When Hat', so can we get it, or even better, MAKE it?
(view all replies)Comment Reply
I accidently selected to open a pic file in scratgh, then it took me to the source code automatically! yes!
(view all replies)Comment Reply
I opened the scratch source, and saved it into my fils, and i'm looking though both downloads where to open scratch from there...
(view all replies)Comment Reply
You need to copy Scratch.exe (or app if you have a mac) into the directory containing the sources, this will start it. You also need the .sources files which is also linked to on the source code download page.
(view all replies)Comment Reply
HEELLPPPP! (link to forums)
(view all replies)Comment Reply
I was just going to ask when your chirp compiler was going to be finished, but I got a little side tracked with this project (do you work for scratch?)
(view all replies)Comment Reply
I don't work for Scratch, I'm just an amateur. My fake compiler is pretty much finished the way it is. I de-glitched it a little more for Vista in my "list and files" prototype: http://www.chirp.scratchr.org/blog/?p=16
(view all replies)Comment Reply
oh never mind. But how do I save it so whenever I open scratch I can use it?
(view all replies)Comment Reply
you can just save the squeak image by left clicking anywhere on the background ("World") and selecting "save" or "save as". Note: Even better might be saving the image "in user mode" by shift-clicking the "Extras" button and selecting this option from the developer's menu (You can later always switch back to development mode by again shift-clicking on the "Extras" button).
(view all replies)Comment Reply
what does: 'read the instructions in the comment and edit your command spec' mean?
(view all replies)Comment Reply
Great project, but when I opress shift+extras, I can;t open the menu! How do I get the sorce menu thing up as well?
(view all replies)Comment Reply
You need to open Scratch from within the Source Code to get the developer's menu. Does that make sense to you?
(view all replies)Comment Reply
wow, YOU like source code too!
(view all replies)Comment Reply
0 \|/ / \
(view all replies)Comment Reply
how do you set up the scratch sorce code image!?!?!
(view all replies)Comment Reply
HOW USEFUL!
(view all replies)Comment Reply
Jens, Before I can contribute I need to digest your tutorial and try something new on my own. I've only walked myself through the tutorial once. A next step would be to reverse-engineer scratch's variable deceleration. But I'm a long way from that. Ideas? I see that squeak works with sockets, and that it has an FFI wrapper for sqlite. My language of choice is Perl so from my point of view, squeak looks a bit foreign. BTW, I only just discovered Scratch two weeks ago. It's simply amazing.
(view all replies)Comment Reply
cwebb, If you're new to Smalltalk you might want to check out some tutorials and free books from the squeak.org website first. I'm also currently pondering data persistance and regard my lists-project as a step towards that goal. If you're having any ideas or code to share, I'd be very glad...
(view all replies)Comment Reply
Jens, The tutorial is through. I'm new to scratch and squeak. Can you recommend any books. Data persistence is an issue and I was wondering if a block could be used to create a linear array that would behave as a FILO?
(view all replies)Comment Reply
Hi cord, do we know each other? I'm sorry, but I cannot place you anywhere...
(view all replies)Comment Reply
Hey, Jens! Erinnerst du dich noch an Reden in Schreibensprache? Deine Projekte sind auch nicht schlecht!!!
(view all replies)Comment Reply
how do you open scratch source code thing???????????????????????????????????????????????????????????????????????
(view all replies)Comment Reply
nvm... ahh... the number of opportunities opened up by errors in V1.2.1 is overwhelming... no more scrambled code... yay!
(view all replies)Comment Reply
Ok thanks LAST QUESTION (thanks again; you are in the credits...) How can I change the actual graphics... I can see their filenames, but can't get how to open them in paint...
(view all replies)Comment Reply
MasterOfMac: You can't change the acutal icon of the VM-Window, unless you create your own vm or modify the Scratch.exe/.app with a resource editor. But you *can* modify anything else in the image. Hint: The graphical components of the Scratch-window are kept in a *class* variable named ScratchSkin in class ScratchFrameMorph. ScratchSkin is a Dictionary associating various forms (bitmaps) with Symbols representing the elements of the IDE...
(view all replies)Comment Reply
I'm going to release a remix with all of them soon... It shouldn't conflict with any changes in Chirp, either. One question... How did you get the scratch source version's icon to change? I've gone through just about every class and can't find the origBitmap... thanks again...
(view all replies)Comment Reply
MasterOfMac: That's wonderful! How about sharing the code of some of these new blocks?
(view all replies)Comment Reply
great tutorial... ive created TONS of custom blocks! I made a side-step motion block (horizontal steps) and ressurected tons of obsolete features... THX!
(view all replies)Comment Reply
ON MY SCRATCH I CANT DO THIS
(view all replies)Comment Reply
hm very comlicated. thanks anyway
(view all replies)Comment Reply
Kinda complex. But good. ?.?
(view all replies)Comment Reply
a tad hard
(view all replies)Comment Reply
I love the drawings bravo bravo!!!!!
(view all replies)Comment Reply
i've been wondering what the insdie of scratch looked like... XP
(view all replies)Comment Reply
How do you start up the source code image?
(view all replies)Comment Reply
oh ok thanks
(view all replies)Comment Reply
dsdude10: You're right. You would have to apply the same changes you did to the source code image to the official Scratch image, which is currently almost impossible to accomplish. It is also *not* endorsed by MIT, because it would actually break your Scratch application and result in incompatible projects. So, please, feel free to experiment with the source code image (and please discuss any ideas you come up with in the "Advanced Topics" forum section) , but *don't ever* save any changes to the official Scratch image!
(view all replies)Comment Reply
it worked!! awesome! but, how do you make the blocks appear in scratch? i have to open the image file to do it.
(view all replies)Comment Reply
*sigh* The link is in the project notes.
(view all replies)Comment Reply
how do you get the scratch source code image?
(view all replies)Comment Reply
:) :) :) I made the flip block! And it works!!! I am now going to try to make my own blocks! If I do, I will share it!
(view all replies)Comment Reply
thanks a lot Jens. VERY useful!
(view all replies)Comment Reply
code i meant
(view all replies)Comment Reply
how do i get the scratch cose source?
(view all replies)Comment Reply