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
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!!!
Offline
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
Offline
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!
Last edited by comp500 (2010-05-26 11:01:36)
Offline
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)
Offline
TheSuccessor wrote:
LS97 wrote:
Joeman592 wrote:
please?PLEASE TOO!
nXIII, you're the best one in squeakI'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?
Offline
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)
Offline
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 typeScratchFrameMorph 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
Offline
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 typeScratchFrameMorph 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?
That's all of it. I don't know what it means, and it pops up everytime I try. What am I doing wrong?
Offline
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 typeScratchFrameMorph 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. What am I doing wrong?
AHAHAHAHAHAHA...
I forgot to say you're supposed to press Alt+D after you type in the ScratchFrameMorph thing.
Offline
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 typeScratchFrameMorph 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. 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!
Offline
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 typeScratchFrameMorph 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?
That's all of it. I don't know what it means, and it pops up everytime I try. 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
Message when I try to open a new Peck window.
Offline
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. 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.
So you have the three new images IN THE SCRATCHSKIN FOLDER?
Offline
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
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.So you have the three new images IN THE SCRATCHSKIN FOLDER?
Six, and yes.
Offline
henley wrote:
TheSuccessor wrote:
LS97 wrote:
PLEASE TOO!
nXIII, you're the best one in squeakI'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.
Offline
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
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?
Offline
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.
Offline
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
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
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....
Offline