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

#401 2010-05-21 11:19:44

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

comp500 wrote:

It's actually with the spec. It returns an error when i type it in and press accept.

oh. then try this spec for the block: ('sprite name' #r #spriteName)

Offline

 

#402 2010-05-21 11:52:08

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Cool custom blocks in Scratch

LS97 wrote:

comp500 wrote:

It's actually with the spec. It returns an error when i type it in and press accept.

oh. then try this spec for the block: ('sprite name' #r #spriteName)

Yay! it works!!!


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#403 2010-05-21 20:03:45

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

comp500 wrote:

LS97 wrote:

comp500 wrote:

It's actually with the spec. It returns an error when i type it in and press accept.

oh. then try this spec for the block: ('sprite name' #r #spriteName)

Yay! it works!!!

EASIER WAY WITHOUT METHOD ('sprite name' #r #objName). Anything with a method of just self blank that blank can just be the last part in the spec


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#404 2010-05-23 04:22:15

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Cool custom blocks in Scratch

Joeman592 wrote:

comp500 wrote:

LS97 wrote:

oh. then try this spec for the block: ('sprite name' #r #spriteName)

Yay! it works!!!

EASIER WAY WITHOUT METHOD ('sprite name' #r #objName). Anything with a method of just self blank that blank can just be the last part in the spec

Don't worry. I got the spec anyway!

http://gifup.com/data/gifs/2/7/f/27f4c77efb.gif

Last edited by comp500 (2010-05-26 11:01:36)


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#405 2010-05-23 07:41:36

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

LS97 wrote:

Joeman592 wrote:

Joeman592 wrote:

Can SOMEONE please tell me how to make another catagory, with a more detailed description?

please?

PLEASE TOO!
nXIII, you're the best one in squeak

I've been messing around with scratch and panther source code and I think you have to add some extra keys to the ScratchSkinXO dictionary with the names #(yournewcategory), #(yournewcategory)Over and #(yournewcategory)Pressed. These should have the value ColorForm(13x17x8) (There is a 70% chance this will throw an error. About 30% of the time squeak puts it in for you. In the remaining 21% do it my way). Then you go into ScratchUIPanes, ScratchViewerMorph, initialization, rebuildCategorySelectors and add your blocks at the top. Set language to English, and your categories should be there. I presume you know how to add blocks to these. REMEMBER TO SAVE IMAGE FOR END USER!!!

(Works sometimes)

Last edited by TheSuccessor (2010-05-23 08:20:22)


/* No comment */

Offline

 

#406 2010-05-23 08:28:27

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Cool custom blocks in Scratch

TheSuccessor wrote:

LS97 wrote:

Joeman592 wrote:


please?

PLEASE TOO!
nXIII, you're the best one in squeak

I've been messing around with scratch and panther source code and I think you have to add some extra keys to the ScratchSkinXO dictionary with the names #(yournewcategory), #(yournewcategory)Over and #(yournewcategory)Pressed. These should have the value ColorForm(13x17x8) (There is a 70% chance this will throw an error. About 30% of the time squeak puts it in for you. In the remaining 21% do it my way). Then you go into ScratchUIPanes, ScratchViewerMorph, initialization, rebuildCategorySelectors and add your blocks at the top. Set language to English, and your categories should be there. I presume you know how to add blocks to these. REMEMBER TO SAVE IMAGE FOR END USER!!!

(Works sometimes)

When I tried that with "world" and "sqeak" I got an error that said

key not found

Proceed | Abandon | Debug |

Dictionary(Object)>>error:
Dictionary>>errorKeyNotFound
[] in ScratchFrameMorph class>>skinAt:
Dictionary>>at:ifAbsent:
ScratchFrameMorph class>>skinAt:ifAbsent:
ScratchFrameMorph class>>skinAt:
[] in ScratchViewerMorph>>rebuildCategorySelectors
Array(SequenceableCollection)>>collect:
ScratchViewerMorph>>rebuildCategorySelectors
ScratchFrameMorph>>createBasicPanes


What am I doing wrong? How can I fix it?


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#407 2010-05-23 11:35:37

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

how do i make a new catagory?????????plz tell me!


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#408 2010-05-23 11:42:06

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Cool custom blocks in Scratch

OK, fine, here is the entire tutorial:
[replace (something) with your category name throughout this entire tutorial]
1. Add (something).gif, (something)Over.gif, and (something)Pressed.gif to the ScratchSkin folder IN THE ROOT DIRECTORY (wherever the VM is).
2. In the VM, open a new workspace (World menu -> open... -> workspace) and type

ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

(if this doesn't work your ScratchSkin directory isn't in the right place or isn't named ScratchSkin)
3. Go to ScratchViewerMorph's rebuildCategorySelectors method and add (something) to the end of the small array definition (which looks like this:)

catList _ #(
        motion        control
        looks                sensing
        sound        operators
        pen            variables
        (something)).

Note: In order for the extent (size) of the category buttons to be correctly calculated, I have slightly modified the line that assigns to catButtonsExtent (the ugly arithmetic-looking one):

catButtonsExtent _ ((2 * maxExtent x) + (3 * pad)) @ ((((catList size / 2) rounded) * (maxExtent y + 6)) + 25).

Last edited by nXIII (2010-05-23 11:42:11)


nXIII

Offline

 

#409 2010-05-23 13:48:35

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

nXIII wrote:

OK, fine, here is the entire tutorial:
[replace (something) with your category name throughout this entire tutorial]
1. Add (something).gif, (something)Over.gif, and (something)Pressed.gif to the ScratchSkin folder IN THE ROOT DIRECTORY (wherever the VM is).
2. In the VM, open a new workspace (World menu -> open... -> workspace) and type

ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

(if this doesn't work your ScratchSkin directory isn't in the right place or isn't named ScratchSkin)
3. Go to ScratchViewerMorph's rebuildCategorySelectors method and add (something) to the end of the small array definition (which looks like this:)

catList _ #(
        motion        control
        looks                sensing
        sound        operators
        pen            variables
        (something)).

Note: In order for the extent (size) of the category buttons to be correctly calculated, I have slightly modified the line that assigns to catButtonsExtent (the ugly arithmetic-looking one):

catButtonsExtent _ ((2 * maxExtent x) + (3 * pad)) @ ((((catList size / 2) rounded) * (maxExtent y + 6)) + 25).

explain a little more please. like where everything is located, what stuff like VM(i think veiwer morph)is and just please go slower


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#410 2010-05-23 15:06:41

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Cool custom blocks in Scratch

nXIII wrote:

OK, fine, here is the entire tutorial:
[replace (something) with your category name throughout this entire tutorial]
1. Add (something).gif, (something)Over.gif, and (something)Pressed.gif to the ScratchSkin folder IN THE ROOT DIRECTORY (wherever the VM is).
2. In the VM, open a new workspace (World menu -> open... -> workspace) and type

ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

(if this doesn't work your ScratchSkin directory isn't in the right place or isn't named ScratchSkin)
3. Go to ScratchViewerMorph's rebuildCategorySelectors method and add (something) to the end of the small array definition (which looks like this:)

catList _ #(
        motion        control
        looks                sensing
        sound        operators
        pen            variables
        (something)).

Note: In order for the extent (size) of the category buttons to be correctly calculated, I have slightly modified the line that assigns to catButtonsExtent (the ugly arithmetic-looking one):

catButtonsExtent _ ((2 * maxExtent x) + (3 * pad)) @ ((((catList size / 2) rounded) * (maxExtent y + 6)) + 25).

It still didn't work.  I did everything you said, and I got the same old message. Can you make sense of what it means?

http://i50.tinypic.com/2cr67pl.png

That's all of it. I don't know what it means, and it pops up everytime I try.  sad  What am I doing wrong?


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#411 2010-05-23 17:55:05

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Cool custom blocks in Scratch

henley wrote:

nXIII wrote:

OK, fine, here is the entire tutorial:
[replace (something) with your category name throughout this entire tutorial]
1. Add (something).gif, (something)Over.gif, and (something)Pressed.gif to the ScratchSkin folder IN THE ROOT DIRECTORY (wherever the VM is).
2. In the VM, open a new workspace (World menu -> open... -> workspace) and type

ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

(if this doesn't work your ScratchSkin directory isn't in the right place or isn't named ScratchSkin)
3. Go to ScratchViewerMorph's rebuildCategorySelectors method and add (something) to the end of the small array definition (which looks like this:)

catList _ #(
        motion        control
        looks                sensing
        sound        operators
        pen            variables
        (something)).

Note: In order for the extent (size) of the category buttons to be correctly calculated, I have slightly modified the line that assigns to catButtonsExtent (the ugly arithmetic-looking one):

catButtonsExtent _ ((2 * maxExtent x) + (3 * pad)) @ ((((catList size / 2) rounded) * (maxExtent y + 6)) + 25).

It still didn't work.  I did everything you said, and I got the same old message. Can you make sense of what it means?

http://i50.tinypic.com/2cr67pl.png

That's all of it. I don't know what it means, and it pops up everytime I try.  sad  What am I doing wrong?

AHAHAHAHAHAHA...
I forgot to say you're supposed to press Alt+D after you type in the ScratchFrameMorph thing.


nXIII

Offline

 

#412 2010-05-23 18:00:19

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

nXIII wrote:

henley wrote:

nXIII wrote:

OK, fine, here is the entire tutorial:
[replace (something) with your category name throughout this entire tutorial]
1. Add (something).gif, (something)Over.gif, and (something)Pressed.gif to the ScratchSkin folder IN THE ROOT DIRECTORY (wherever the VM is).
2. In the VM, open a new workspace (World menu -> open... -> workspace) and type

ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

(if this doesn't work your ScratchSkin directory isn't in the right place or isn't named ScratchSkin)
3. Go to ScratchViewerMorph's rebuildCategorySelectors method and add (something) to the end of the small array definition (which looks like this:)

catList _ #(
        motion        control
        looks                sensing
        sound        operators
        pen            variables
        (something)).

Note: In order for the extent (size) of the category buttons to be correctly calculated, I have slightly modified the line that assigns to catButtonsExtent (the ugly arithmetic-looking one):

It still didn't work.  I did everything you said, and I got the same old message. Can you make sense of what it means?

http://i50.tinypic.com/2cr67pl.png

That's all of it. I don't know what it means, and it pops up everytime I try.  sad  What am I doing wrong?

AHAHAHAHAHAHA...
I forgot to say you're supposed to press Alt+D after you type in the ScratchFrameMorph thing.

PLEASE give an easier lesson!


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#413 2010-05-23 18:00:45

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Cool custom blocks in Scratch

nXIII wrote:

henley wrote:

nXIII wrote:

OK, fine, here is the entire tutorial:
[replace (something) with your category name throughout this entire tutorial]
1. Add (something).gif, (something)Over.gif, and (something)Pressed.gif to the ScratchSkin folder IN THE ROOT DIRECTORY (wherever the VM is).
2. In the VM, open a new workspace (World menu -> open... -> workspace) and type

ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

(if this doesn't work your ScratchSkin directory isn't in the right place or isn't named ScratchSkin)
3. Go to ScratchViewerMorph's rebuildCategorySelectors method and add (something) to the end of the small array definition (which looks like this:)

catList _ #(
        motion        control
        looks                sensing
        sound        operators
        pen            variables
        (something)).

Note: In order for the extent (size) of the category buttons to be correctly calculated, I have slightly modified the line that assigns to catButtonsExtent (the ugly arithmetic-looking one):

It still didn't work.  I did everything you said, and I got the same old message. Can you make sense of what it means?

http://i50.tinypic.com/2cr67pl.png

That's all of it. I don't know what it means, and it pops up everytime I try.  sad  What am I doing wrong?

AHAHAHAHAHAHA...
I forgot to say you're supposed to press Alt+D after you type in the ScratchFrameMorph thing.

I figured that out myself. It worked. But it still gives me the

http://i50.tinypic.com/2cr67pl.png

Message when I try to open a new Peck window.  hmm


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#414 2010-05-23 18:14:48

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

N-e-e-d-a-c-a-t-a-g-o-r-y-l-e-s-s-o-n


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#415 2010-05-23 20:15:38

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Cool custom blocks in Scratch

henley wrote:

nXIII wrote:

henley wrote:


It still didn't work.  I did everything you said, and I got the same old message. Can you make sense of what it means?

http://i50.tinypic.com/2cr67pl.png

That's all of it. I don't know what it means, and it pops up everytime I try.  sad  What am I doing wrong?

AHAHAHAHAHAHA...
I forgot to say you're supposed to press Alt+D after you type in the ScratchFrameMorph thing.

I figured that out myself. It worked. But it still gives me the

http://i50.tinypic.com/2cr67pl.png

Message when I try to open a new Peck window.  hmm

So you have the three new images IN THE SCRATCHSKIN FOLDER?


nXIII

Offline

 

#416 2010-05-24 04:41:12

LS97-Test
Scratcher
Registered: 2010-05-24
Posts: 4

Re: Cool custom blocks in Scratch

nXIII wrote:

[
So you have the three new images IN THE SCRATCHSKIN FOLDER?

YES

oops i logged in with the wrong account. never mind...

ok this is getting worse. i cant open the image file even with only the default selectors. could you please make this more accurate and a step-by-step guide?

Last edited by LS97-Test (2010-05-24 04:46:05)

Offline

 

#417 2010-05-24 06:13:08

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Cool custom blocks in Scratch

nXIII wrote:

henley wrote:

nXIII wrote:


AHAHAHAHAHAHA...
I forgot to say you're supposed to press Alt+D after you type in the ScratchFrameMorph thing.

I figured that out myself. It worked. But it still gives me the

http://i50.tinypic.com/2cr67pl.png

Message when I try to open a new Peck window.  hmm

So you have the three new images IN THE SCRATCHSKIN FOLDER?

Six, and yes.  hmm


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#418 2010-05-24 11:27:50

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

henley wrote:

TheSuccessor wrote:

LS97 wrote:


PLEASE TOO!
nXIII, you're the best one in squeak

I've been messing around with scratch and panther source code and I think you have to add some extra keys to the ScratchSkinXO dictionary with the names #(yournewcategory), #(yournewcategory)Over and #(yournewcategory)Pressed. These should have the value ColorForm(13x17x8) (There is a 70% chance this will throw an error. About 30% of the time squeak puts it in for you. In the remaining 21% do it my way). Then you go into ScratchUIPanes, ScratchViewerMorph, initialization, rebuildCategorySelectors and add your blocks at the top. Set language to English, and your categories should be there. I presume you know how to add blocks to these. REMEMBER TO SAVE IMAGE FOR END USER!!!

(Works sometimes)

When I tried that with "world" and "sqeak" I got an error that said

key not found

Proceed | Abandon | Debug |

Dictionary(Object)>>error:
Dictionary>>errorKeyNotFound
[] in ScratchFrameMorph class>>skinAt:
Dictionary>>at:ifAbsent:
ScratchFrameMorph class>>skinAt:ifAbsent:
ScratchFrameMorph class>>skinAt:
[] in ScratchViewerMorph>>rebuildCategorySelectors
Array(SequenceableCollection)>>collect:
ScratchViewerMorph>>rebuildCategorySelectors
ScratchFrameMorph>>createBasicPanes


What am I doing wrong? How can I fix it?

It isn't your fault, I got this as well. Squeak doesn't let you enter the ColorForm directly, I've discovered you have to right click on the dictionary entry for another block category, click Copy Name and right click paste in the target entry.


/* No comment */

Offline

 

#419 2010-05-24 11:39:37

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

TheSuccessor wrote:

It isn't your fault, I got this as well. Squeak doesn't let you enter the ColorForm directly, I've discovered you have to right click on the dictionary entry for another block category, click Copy Name and right click paste in the target entry.

could you explain yourself better please?

Offline

 

#420 2010-05-24 22:24:02

randalpik
Scratcher
Registered: 2008-07-27
Posts: 82

Re: Cool custom blocks in Scratch

LS97-Test wrote:

nXIII wrote:

[
So you have the three new images IN THE SCRATCHSKIN FOLDER?

YES

oops i logged in with the wrong account. never mind...

ok this is getting worse. i cant open the image file even with only the default selectors. could you please make this more accurate and a step-by-step guide?

...wait, so you're losing all progress on Bingo if you don't fix this?


My stuff: http://scratch.mit.edu/users/randalpik
Your face: Look at a gopher

Offline

 

#421 2010-05-25 06:23:47

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Cool custom blocks in Scratch

randalpik wrote:

LS97-Test wrote:

nXIII wrote:

[
So you have the three new images IN THE SCRATCHSKIN FOLDER?

YES

oops i logged in with the wrong account. never mind...

ok this is getting worse. i cant open the image file even with only the default selectors. could you please make this more accurate and a step-by-step guide?

...wait, so you're losing all progress on Bingo if you don't fix this?

Same with me and my mod.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#422 2010-05-25 10:49:30

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

Just eplain how to get to the place where you make a catagory and what to do tere. PLEASE


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#423 2010-05-25 11:54:22

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

randalpik wrote:

LS97-Test wrote:

nXIII wrote:

[
So you have the three new images IN THE SCRATCHSKIN FOLDER?

YES

oops i logged in with the wrong account. never mind...

ok this is getting worse. i cant open the image file even with only the default selectors. could you please make this more accurate and a step-by-step guide?

...wait, so you're losing all progress on Bingo if you don't fix this?

no, i just didnt save the image file and it was fine. i always check if scratch opens fine before i save the image, so that i dont accidentally loose data. but i still need help for the categories.

Offline

 

#424 2010-05-25 11:55:28

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

Joeman592 wrote:

Just eplain how to get to the place where you make a catagory and what to do tere. PLEASE

well, i can get there fine and do all of the stuff nXIII says to do, but if i try to open a new scratch window it says key not found

Offline

 

#425 2010-05-25 14:02:41

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Cool custom blocks in Scratch

LS97 wrote:

Joeman592 wrote:

Just eplain how to get to the place where you make a catagory and what to do tere. PLEASE

well, i can get there fine and do all of the stuff nXIII says to do, but if i try to open a new scratch window it says key not found

then you didn't add the items to the ScratchSkin....


nXIII

Offline

 

Board footer