Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Help!!!
- Walrus227
- Scratcher
54 posts
Help!!!
I have the source code and I'm trying to kind of make a scratch mod that adds an Obsolete category to scratch, and I loaded the Scratch Skin on and I get this:
key not found
I have added the category in rebuildCategorySelectors and it still won't work. Can somebody tell me how to fix this?
key not found
I have added the category in rebuildCategorySelectors and it still won't work. Can somebody tell me how to fix this?
- Walrus227
- Scratcher
54 posts
Help!!!
Write instructions please? Or I could do it for you if you want.
- plasma26
- Scratcher
62 posts
Help!!!
Okay.Write instructions please? Or I could do it for you if you want.
1. Load the Skin
- First, make sure you have the skin and it's in the scratch source code folder with the name ScratchSkin.
- turn fill screen off and open a workspace (world menu -> open -> workspace)
- type this code into it:
ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: ‘ScratchSkin’)
- select that text, right-click (on a mac alt-click) and click ‘do it’.
2. Adding categories
- edit the skin first: copy the files called control, controlPressed, controlOver and paste them with the names yourcategory, yourcategoryOver, yourcategoryPressed.
- use any graphics editing software to change the colour of the buttons (optional)
- reload the skin (see step 1)
- in the scratch browser (see shift-click-r in wiki), go to Scratch-UI-Panes, ScratchViewerMorph, –all–, rebuildCategorySelectors.
- you'll see a list with all of the existing category names. add yours.
Voila!
- Walrus227
- Scratcher
54 posts
Help!!!
I know this! I got an error that says key not found ! How do I fix the key not found ?Okay.Write instructions please? Or I could do it for you if you want.
1. Load the Skin
- First, make sure you have the skin and it's in the scratch source code folder with the name ScratchSkin.
- turn fill screen off and open a workspace (world menu -> open -> workspace)
- type this code into it:
ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: ‘ScratchSkin’)
- select that text, right-click (on a mac alt-click) and click ‘do it’.
2. Adding categories
- edit the skin first: copy the files called control, controlPressed, controlOver and paste them with the names yourcategory, yourcategoryOver, yourcategoryPressed.
- use any graphics editing software to change the colour of the buttons (optional)
- reload the skin (see step 1)
- in the scratch browser (see shift-click-r in wiki), go to Scratch-UI-Panes, ScratchViewerMorph, –all–, rebuildCategorySelectors.
- you'll see a list with all of the existing category names. add yours.
Voila!
- nathanprocks
- Scratcher
1000+ posts
Help!!!
Did you change ‘yourcategory’ in the skin to the same name as the new category?I know this! I got an error that says key not found ! How do I fix the key not found ?Okay.Write instructions please? Or I could do it for you if you want.
1. Load the Skin
- First, make sure you have the skin and it's in the scratch source code folder with the name ScratchSkin.
- turn fill screen off and open a workspace (world menu -> open -> workspace)
- type this code into it:
ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: ‘ScratchSkin’)
- select that text, right-click (on a mac alt-click) and click ‘do it’.
2. Adding categories
- edit the skin first: copy the files called control, controlPressed, controlOver and paste them with the names yourcategory, yourcategoryOver, yourcategoryPressed.
- use any graphics editing software to change the colour of the buttons (optional)
- reload the skin (see step 1)
- in the scratch browser (see shift-click-r in wiki), go to Scratch-UI-Panes, ScratchViewerMorph, –all–, rebuildCategorySelectors.
- you'll see a list with all of the existing category names. add yours.
Voila!
- Walrus227
- Scratcher
54 posts
Help!!!
Yes. I have obsolete, obsoleteOver, and obsoletePressed as gifs in the skin.Did you change ‘yourcategory’ in the skin to the same name as the new category?I know this! I got an error that says key not found ! How do I fix the key not found ?Okay.Write instructions please? Or I could do it for you if you want.
1. Load the Skin
- First, make sure you have the skin and it's in the scratch source code folder with the name ScratchSkin.
- turn fill screen off and open a workspace (world menu -> open -> workspace)
- type this code into it:
ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: ‘ScratchSkin’)
- select that text, right-click (on a mac alt-click) and click ‘do it’.
2. Adding categories
- edit the skin first: copy the files called control, controlPressed, controlOver and paste them with the names yourcategory, yourcategoryOver, yourcategoryPressed.
- use any graphics editing software to change the colour of the buttons (optional)
- reload the skin (see step 1)
- in the scratch browser (see shift-click-r in wiki), go to Scratch-UI-Panes, ScratchViewerMorph, –all–, rebuildCategorySelectors.
- you'll see a list with all of the existing category names. add yours.
Voila!
- Walrus227
- Scratcher
54 posts
Help!!!
wait… I never did get why it says:
(add an even number or the layout will look weird!)
- Walrus227
- Scratcher
54 posts
Help!!!
Good New! I got past the key not found (I did a couple things (added the blocks and color)) but I've got another problem now:
message not understood: extent
So… can I get some help with that?
message not understood: extent
So… can I get some help with that?
- nathanprocks
- Scratcher
1000+ posts
Help!!!
If you have an odd number of categories you will have to go to rebuildCategorySelectors and change “(catList size // 2)” to “(catList size / 2) rounded”. wait… I never did get why it says:(add an even number or the layout will look weird!)
Also the instructions for adding categories posted before is copied from Modding Scratch VFAQ.
- Walrus227
- Scratcher
54 posts
Help!!!
Thanks for the tip! And I read the vfaq.If you have an odd number of categories you will have to go to rebuildCategorySelectors and change “(catList size // 2)” to “(catList size / 2) rounded”. wait… I never did get why it says:(add an even number or the layout will look weird!)
Also the instructions for adding categories posted before is copied from Modding Scratch VFAQ.
- Discussion Forums
- » Advanced Topics
- » Help!!!