alright i'm using the scratch 1.4 source code to make my own mod, there are a couple things i want to figure out how to do.
1. how can i make my own categories (like looks, motion, etc) btw i tried the tutorial in advanced topics but i think it's made for a previous version of the source code because it didn't work.
2. how can i change the green flag? i can change other things but it refuses to change.
and that's it, thanks! i hope i can at least figure out a couple of these.
Last edited by PlayWithFire (2010-08-06 15:36:22)
Offline
If you save the icon that you want as Scratch.icon, it should replace the cat head. I don't know anything about Modifications though.
Offline
it hasn't worked...
Offline
Ask on the Panther Development thread, those guys should know.
Offline
perhaps
Offline
Jwosty wrote:
Ace-of-Spades wrote:
Ask on the Panther Development thread, those guys should know.
Good idea!
Uh.. Thanks
Offline
you are an absolute genius, i wish i was as smart as you, and i'm not just saying that, in fact, i'm not saying anything, i'm typing. with my fingers. using my keyboard. on my computer. so yah.
what was i saying?
oh yah thanks for the advice seriously, i asked them and am awaiting a reply XD
Last edited by PlayWithFire (2010-08-05 02:12:48)
Offline
bump
i still don't have ANY answers...
Offline
i'll answer you all in a sec. hold on..
edit ok didn't want to be outposted
original post wrote:
1. how can i change the default sprite from the random cat to something of my choice.
2. how can i make my own categories (like looks, motion, etc) btw i tried the tutorial in advanced topics but i think it's made for a previous version of the source code because it didn't work.
3. how can i change the layout of my mod. i want to change the coloring and maybe change the green flag into a play button, any ideas on how i could accomplish that?
4. lastly do you know of any tutorials or can you tell me how to change the symbol for my scratch mod (from the scratch cat's head into my logo)
first of all take ALL the DLLs from your Scratch 1.4 folder and copy them to your mod's folder. now let's begin.
1 and 2 and 3
these three problems are all due to the scratch skin.
first, download the current one here.
then load it into the source code by typing the code below into a workspace (world - open - workspace), highlit it, right-click and click do it.
ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')
here you can add as many elements as you want and change the existing ones. always remember to load them into scratch though!
1. delete the 'defaultSprite' that you added (it's useless) and change in the skin the image called defaultSprite. load skin.
2. copy control, controlOver and controlPressed in the skin folder and rename them to yourcategory, yourcategoryOver etc. do this for all of your categories. load skin. now change those names in rebuildCategorySelectors and add whatever categories you need. it should work.
3. change in the skin the picture called flag, or greenFlag. (cant remember) load skin.
--
4. for this one you need another program called ResourceHacker (at least i found it's the simplest way). look it up on google. open the Scratch.exe or whatever you called it in resourcehacker, and change all the cat head icons to your mod's. save the result. done.
Last edited by LS97 (2010-08-06 03:40:48)
Offline
Lol awesome! Thanks!
Offline
done!
Offline
Thanks!
Wow that's awesome! Um I feel bad for asking so much, but do you know how to add colors to the paint pallette or how to add fonts there, or bring back old fonts?
Offline
you don't need to add colors, every single possible color in a 200@150 palette is there. i can add sizes, not fonts. the fonts there are simply the ones found in the operating system. add them to your OS if you want more
Offline
aw that's too bad, i was really hoping to get some old fonts back. i've already added some more sizes though
as for colors, i know it technically has all of the colors, but i meant adding more to the default ones (meaning the colors in the squares) which is probably not called a palette lol my bad
anyway thanks a million, you're a lifesaver!
Offline
adding more 'default' colors would simply mean making the color square similar to the palette. the current colors are taken with precision from the palette. anyway, i wouldn't have any clue on how to add more. i'd have to explore the ScratchPaint more
Offline
okay thanks anyway though!
um btw it's not changing the green flag, but with further investigation i found that the when green flag clicked block has changed to my play button
any ideas as to why it wouldn't be changing?
Offline
i have not been able to
1. change the green flag
2. add categories (it still won't work for me)
i have been able to change the default sprite though (thanks!)
and i'm guessing that i can change the image to swipes image but i won't be doing that for a while so i'll know for sure later.
Offline
i still can't seem to create a category, so my mod is now at a standstill because nothing works for me! is there something wrong with my source code or something because i've done everything everyone has told me to do with no result.
Offline
can't help you with the categories anymore, my instructions are perfect.
as for the green flag, it has six 'costumes' -
both normal and pressed, for blank, gray and black.
change all of them with their backgrounds respectively.
Offline
Yep, I did but it didn't work
I'm not sure what to do now
Offline
here is my rebuildCategorySelectors code
rebuildCategorySelectors
| catList maxExtent buttons label offForm onForm overForm b pad leftColumnX rightColumnX x y |
catList _ #(
motion control
looks sensing
sound operators
pen variables
online).
"First, delete the old category buttons"
submorphs do: [:m | (m isKindOf: ResizableToggleButton2) ifTrue: [m delete]].
"Create new buttons, keeping track of the maximum extent."
maxExtent _ 75@0.
buttons _ catList collect: [:cat |
label _ (ScratchTranslator translationFor: cat asString) capitalized.
offForm _ (ScratchFrameMorph skinAt: cat).
onForm _ (ScratchFrameMorph skinAt: (cat, 'Pressed')).
overForm _ (ScratchFrameMorph skinAt: (cat, 'Over')).
ScratchTranslator isRTL
ifTrue:[
b _ ResizableToggleButton2 new
offForm: (offForm flipBy: #horizontal centerAt: offForm center)
onForm: (onForm flipBy: #horizontal centerAt: onForm center)
overForm: (overForm flipBy: #horizontal centerAt: overForm center)]
ifFalse:[
b _ ResizableToggleButton2 new
offForm: offForm
onForm: onForm
overForm: overForm].
b
label: label font: (ScratchFrameMorph getFont: #Category);
setLabelColor: Color white;
target: self;
actionSelector: #currentCategory:;
arguments: (Array with: cat);
toggleButtonMode: true;
toggleMode: false.
ScratchTranslator isRTL
ifTrue:[b rightJustifyInset: 10]
ifFalse:[b leftJustifyInset: 10].
maxExtent _ maxExtent max: (b extent + (3 @ -6)).
b].
"calculate catButtonsExtent"
pad _ 15. "padding on left, right, and betwen the button columns"
catButtonsExtent _ ((2 * maxExtent x) + (3 * pad)) @ (((catList size // 2) * (maxExtent y + 6)) + 25).
"place the buttons"
leftColumnX _ self left + 12 + pad.
rightColumnX _ leftColumnX + maxExtent x + pad.
x _ leftColumnX.
y _ self top + 17.
1 to: buttons size do: [:i |
b _ buttons at: i.
b extent: maxExtent.
self addMorph: (b position: x@y).
i even
ifTrue: [x _ leftColumnX. y _ y + b height + 6]
ifFalse: [x _ rightColumnX]].
self width: catButtonsExtent x.
pageViewer position: self position + (0@catButtonsExtent y).
topSectionHeight _ catButtonsExtent y - 4.Offline
just get rid of one / and it'll fix it?
Offline