Before you say anything, read this!
Okay, so I'm thinking about making a mod. It's definitely not going to be one of those "i'll add a few blox and ppl will liek it" mods. I'm going to (try) completely change how Scratch is used. The problem is, I'm really new to Squeak and I need some help with a few things.
1. How does Squeak turn visual blocks into something it can process?
2. Is there a place where I can find all the primitive classes and methods?
3. When you have something like this: specs do: [:s | s = #- ifTrue: [menu addLine] ifFalse: [menu add: s asString action: s asString asSymbol]. (Taken directly from nXIII's Squeak tutorial), what exactly does the s variable do? I'm assuming that it counts through the array, but I don't see any Smalltalk equivalent of '(item (s) of [])' or 'change [s] by [1]', so, what does that?
I'm going to try to make this with as little help as possible, but, like I said, I'm really new to Squeak.
Thanks in advance!
Last edited by ScratchReallyROCKS (2010-11-12 15:53:07)
Offline
well classes and instances are really diferent some of the choises have no choises in them in class section im new to squeak too but i know a few things
heres what you need to know about squeak
1:class and instances are not alike
2:some blocks you insert might wreck the category placed in
3:you have to get EVERY single word in right or your mod will turn into a bust
4:some things are most important for the mod to work if anything really important is changed the mod wont work and all you will see when you insert a block into the editor is "message not understood"window.
hope my advice works
Offline
stickdude123 wrote:
well classes and instances are really diferent some of the choises have no choises in them in class section im new to squeak too but i know a few things
heres what you need to know about squeak
1:class and instances are not alike
2:some blocks you insert might wreck the category placed in
3:you have to get EVERY single word in right or your mod will turn into a bust
4:some things are most important for the mod to work if anything really important is changed the mod wont work and all you will see when you insert a block into the editor is "message not understood"window.
hope my advice works
Thanks, but I already knew this.
Offline
I think you'd be good at it.
Offline
no one's been answering his question...
i cant because im in a hurry. but i would. sorry
Offline
LS97 wrote:
no one's been answering his question...
i cant because im in a hurry. but i would. sorry![]()
I have absolutely no deadline for this, but I would like to get some answers.
Offline
XplodingEggs wrote:
Does this have anything to do with timecraft?
Not at all. In the long run....maybe, but it's not intended to be related at all.
Offline
Harakou wrote:
Just how much (or little) do you know? Are you familiar with say, adding blockspecs and methods in the Squeak browser in order to add new blocks?
I've known how to add blocks for almost a year. (I thought you already knew that.
) I just want to know some of the more advanced things, not really how to do them, (I know the syntax pretty well) but mor like how things work, such as that last question.
Offline
If you program in Java, class methods are like the static ones and instance methods are the others. In specs do: [:s | s = #- ifTrue: [menu addLine] ifFalse: [menu add: s asString action: s asString asSymbol]., specs is an array of values and the command do: loops through them, storing them one-by-one into s to be processed. Squeak doesn't actually turn the visual blocks into code, but rather each block has a piece of code associated with it that is stored in an instance variable in the block. As the script runs, Squeak asks each block in turn to provide its piece of code and runs it. There's a lot more to it than that but that is the basics for blocks. Most of the primitive classes and methods are in the Kernel-Objects and Morphic-Kernel sections in the browser.
Offline
TheSuccessor wrote:
Most of the primitive classes and methods are in the Kernel-Objects and Morphic-Kernel sections in the browser.
THANK YOU!! This is what I've been looking for!
Offline
So, can we consider this topic closeable?
Offline
LS97 wrote:
So, can we consider this topic closeable?
![]()
Not even close!
Offline
What do you want to know? This keeps getting bumped for no apparent reason.
Offline
TheSuccessor wrote:
What do you want to know? This keeps getting bumped for no apparent reason.
I just need to know the basics. I'm still pretty clueless.
Offline
Its hard....
Offline
bbbeb wrote:
Primitives = Er, um , Kernel?
![]()
Processing = ScratchScriptFrameMorph I believe
3. Uhhh....
Processing is actually in ScratchProcess, found in Scratch-Execution Engine
Offline