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

#26 2011-10-17 12:42:16

sjmhrp
New Scratcher
Registered: 2011-05-24
Posts: 27

Re: need help with mod

I have decided on a name for the open source version: OOPS. the thread is here: http://scratch.mit.edu/forums/viewtopic.php?id=78046

Offline

 

#27 2011-10-17 17:33:12

csn
New Scratcher
Registered: 2011-10-17
Posts: 27

Re: need help with mod

sjmhrp wrote:

i know how to change and i have changed it to the title of my mod

That's really good because I don't know how to change the title bar including a mod name. Can you please give me some advice?

Offline

 

#28 2011-10-18 08:30:31

sjmhrp
New Scratcher
Registered: 2011-05-24
Posts: 27

Re: need help with mod

open-browser-ScratchUIPanes-ScratchFrameMorph-private and replace the coding of update project name with:
updateProjectName
    | t1 |
    projectName ifNil: [projectName _ ''].
    projectTitleMorph contents: (self nameFromFileName: projectName).
    projectTitleMorph contents size > 0
        ifTrue: [t1 _ projectTitleMorph contents , '- (name of mod)']
        ifFalse: [t1 _ '(Whatever you want the title bar to be)'].
    ScratchPlugin primSetWindowTitle: t1.
    self fixLayout

Offline

 

#29 2011-10-18 08:57:20

csn
New Scratcher
Registered: 2011-10-17
Posts: 27

Re: need help with mod

Many thanks.
But I didn't work. The bold face "Based on Scratch" is still there filling all the free space left of the menu. Perhaps I have to make the font for "Based on Scratch" smaller to have the modname displaed?
csn

Offline

 

#30 2011-10-18 12:26:23

sjmhrp
New Scratcher
Registered: 2011-05-24
Posts: 27

Re: need help with mod

Oh i thought you meant the title bar at the very top that on regular Scratch says: Scratch 1.4 of (date). I think you have to do something with the scratch skin for the 'based on scratch' title.

Offline

 

#31 2011-10-18 12:28:15

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: need help with mod

the bit that says based on scratch is a picture, just do the funny just right click on it 3 times in dev mode, and click the painty thing


http://i.imgur.com/zeIZW.png

Offline

 

#32 2011-10-18 14:00:47

csn
New Scratcher
Registered: 2011-10-17
Posts: 27

Re: need help with mod

Ah, I see I inserted another Sketch. Now the mod has a visible name.

Thank you!

csn

Offline

 

#33 2011-10-19 14:13:19

sjmhrp
New Scratcher
Registered: 2011-05-24
Posts: 27

Re: need help with mod

Thanks as well i thought you had to change the image in the in the scratch skin but your way is much easier. Does anyone know how to change the default sprite without using the scratch skin?

Offline

 

#34 2011-10-19 14:17:45

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: need help with mod

your welcome guys  smile  one of the few scratch mod related things I know about.


http://i.imgur.com/zeIZW.png

Offline

 

#35 2011-10-20 01:40:16

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: need help with mod

sjmhrp wrote:

Thanks as well i thought you had to change the image in the in the scratch skin but your way is much easier. Does anyone know how to change the default sprite without using the scratch skin?

u can make a sprite and name it defaultsprite or something but it is not permanent... to make it permanently stay there (unless someone edits the skin) change the skin


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#36 2011-10-20 03:47:30

sjmhrp
New Scratcher
Registered: 2011-05-24
Posts: 27

Re: need help with mod

Ok thanks

Offline

 

#37 2011-10-20 03:50:17

csn
New Scratcher
Registered: 2011-10-17
Posts: 27

Re: need help with mod

A really interesting thread. I have the same problem changing the default sprite. But I do not understand exactly:

nathanprocks wrote:

name it defaultsprite or something but it is not permanent

What is ment with permanent?  Isn't the defaultsprite loaded every time the mod is started?
By the way which directory I have to save the defaultsprite?

How do I

nathanprocks wrote:

change the skin

?

Change the skin like I did with the "based on scratch" sketch does not work. But cetainly I misunderstood your words.

Perhaps it is better to tell what is my problem:
I'd like to have a default sprite named "NXT" that is loaded as the first sprite when the mod is started. Furthermore it would be great if this first sprite is undeletable.

Offline

 

#38 2011-10-20 05:02:08

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: need help with mod

nathanprocks wrote:

csn wrote:

A really interesting thread. I have the same problem changing the default sprite. But I do not understand exactly:

nathanprocks wrote:

name it defaultsprite or something but it is not permanent

What is ment with permanent?  Isn't the defaultsprite loaded every time the mod is started?
By the way which directory I have to save the defaultsprite?

How do I

nathanprocks wrote:

change the skin

?

Change the skin like I did with the "based on scratch" sketch does not work. But cetainly I misunderstood your words.

Perhaps it is better to tell what is my problem:
I'd like to have a default sprite named "NXT" that is loaded as the first sprite when the mod is started. Furthermore it would be great if this first sprite is undeletable.

LS97 wrote:

Too many people are asking, on different forum threads, questions like how do i load my skin? This post aims at keeping this forum clean and answering all those FAQs that annoy experienced modders. just link the users to

Code:

[url]http://tiny.cc/vfaq[/url]

Contents:
1. Loading the skin
2. Adding categories

--------------------------------
1. Loading the skin
IMPORTANT: always use the source code not scratch 1.4!
- download the skin here
- place it in the scratch source code folder and name it ScratchSkin.
- shift-click-r and open a workspace (world menu -> open -> workspace)
- type this code into it:
ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')
- select that text, right-click and click 'do it'.
- repeat these steps each time you need to load the skin for some reason.

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 color of the buttons (optional)
- load the skin (see chapter 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 (add 2 or 4).

before u open the workspace, edit anything you want in the ScratchSkin folder...


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#39 2011-10-20 06:31:28

csn
New Scratcher
Registered: 2011-10-17
Posts: 27

Re: need help with mod

Thank you nathanprocks!
Defaultsprite is changed now. Hope noone gets annoyed answering the always repeating questions from newbies like me.

One thing is left. Teh defaultssprite name is still Sprite1 and it is deletable. Perhaps someone can help me.

By the way: Is there a place those newbie questions are answered like in a wiki? I know the faq but couldn't find the topic you have posted.

csn

Offline

 

#40 2011-10-20 06:44:52

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: need help with mod

csn wrote:

Thank you nathanprocks!
Defaultsprite is changed now. Hope noone gets annoyed answering the always repeating questions from newbies like me.

One thing is left. Teh defaultssprite name is still Sprite1 and it is deletable. Perhaps someone can help me.

By the way: Is there a place those newbie questions are answered like in a wiki? I know the faq but couldn't find the topic you have posted.

csn

did u change the scratch skin? if you did then u do not need a defaultsprite file... and after u have loaded the skin u do not need the ScratchSkin folder unless u want to edit other parts of the skin


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#41 2011-10-20 06:56:36

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

Re: need help with mod

Epicc05 wrote:

hey everybody! I'm just posting this comment to look smart...ish? I really have no idea what this is or what you guys are talking about. Although, I think mods means modifacations, moderators, and something else. I didn't even read anthing you guys typed! I don't even remember what the topic was.
smile   smile   smile

-_-

If you are obviously posting something just to look smart, then saying how you don’t understand anything doesn’t contribute the the topic at all.

Not to mention that it really doesn’t make you look that smart.


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

Offline

 

#42 2011-10-20 07:28:17

csn
New Scratcher
Registered: 2011-10-17
Posts: 27

Re: need help with mod

nathanprocks wrote:

did u change the scratch skin? if you did then u do not need a defaultsprite file... and after u have loaded the skin u do not need the ScratchSkin folder unless u want to edit other parts of the skin

Sorry my post wasn't clear enough. I changed the skin and the sprite loaded as default is now changed. Everything oK about that.

But the name of this (new) default sprite is set by scratch as "Sprite1". As you load a second sprite this is named automatically "Sprite2". I'd like to have another name for the first sprite: "NXT" instead of "Sprite1".
In addition the first sprite should not be deletable from within the usermode of the mod. If a user right-clicks on the "NXT"-sprite he shall not find the entry "delete" in the little pop-up menu. There should always be a sprite named "NXT" in the mod.

Hope that's makes my point visible.

csn

Offline

 

#43 2011-10-20 11:50:51

csn
New Scratcher
Registered: 2011-10-17
Posts: 27

Re: need help with mod

Got it on my own!

The sprites name is set in Scratch-Objects | ScriptableScratchMorph | private | nextInstanceName .

I changed a row to :
    (stage _ self ownerThatIsA: ScratchStageMorph) ifNil: [^ 'NXT'].
and the sprite presented when starting is named NXT!

To prevent deleting I edited  Scratch-Objects | ScriptableScratchMorph | private | undoableDeleteSprite.

    ('NXT' compare: objName)=2
    ifTrue: [self say: 'The NXT-sprite is not deletable!'.]
    ifFalse: [
        ScratchFrameMorph putInClipboard: self.
        self deleteSprite.
    ].
Not really elegant but it works. Didn't find the method that creates the dialog.

csn

P.S. If anybody knows how to call the say:duration:... method I would like to hear. Or better: How to make a pop-up-message-window. That the sprite says that it is not deletable is somehow strange.

Offline

 

#44 2011-10-21 15:52:48

csn
New Scratcher
Registered: 2011-10-17
Posts: 27

Re: need help with mod

csn wrote:

P.S. If anybody knows how to call the say:duration:... method I would like to hear. Or better: How to make a pop-up-message-window. That the sprite says that it is not deletable is somehow strange.

Found this:

[DialogBoxMorph warn: 'Test this'.] fork.

gives a pop-up messagebox and the execution of the script is not interrupted.
csn

Offline

 

#45 2011-10-22 13:49:38

sjmhrp
New Scratcher
Registered: 2011-05-24
Posts: 27

Re: need help with mod

by the way how do you change your signature

Offline

 

#46 2011-10-22 14:03:35

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: need help with mod

sjmhrp wrote:

by the way how do you change your signature

In profile, but you need to be a Scratcher  sad


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#47 2011-10-23 12:10:44

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: need help with mod

sjmhrp wrote:

At long last: http://www.mediafire.com/?z2y4p6u5c6da4fc. tell me if ive made amistake and there is an error.

Your mod has the same problem as mine except with white.


http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#48 2011-10-23 14:29:25

sjmhrp
New Scratcher
Registered: 2011-05-24
Posts: 27

Re: need help with mod

WindowsExplorer wrote:

In profile, but you need to be a Scratcher

How to you change from new scratcher to a scratcher?

Offline

 

#49 2011-10-30 20:57:53

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: need help with mod

sjmhrp wrote:

WindowsExplorer wrote:

In profile, but you need to be a Scratcher

How to you change from new scratcher to a scratcher?

According to the message I got when I tried to change my sig, you need to keep posting and uploading.


http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#50 2011-11-16 19:31:59

Epicc05
Scratcher
Registered: 2011-01-26
Posts: 100+

Re: need help with mod

veggieman001 wrote:

Epicc05 wrote:

hey everybody! I'm just posting this comment to look smart...ish? I really have no idea what this is or what you guys are talking about. Although, I think mods means modifacations, moderators, and something else. I didn't even read anthing you guys typed! I don't even remember what the topic was.
smile   smile   smile

why did you post this

Didn't I mention this in my other post? I wanted to look smart!


http://i43.tinypic.com/21cctpv.jpg EPICC05 WAS HERE! http://i44.tinypic.com/2qltwg1.gif

Offline

 

Board footer