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

#76 2010-04-04 21:38:18

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Altering the source code: Questions Welcome!

please reply how do I get to 'block specs' in the 1.4 source code?


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#77 2010-04-04 22:29:11

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Altering the source code: Questions Welcome!

ScratchObjects>>ScratchSpriteMorph>>Block Specs>>Class>>Block Specs.


Hai.

Offline

 

#78 2010-04-05 07:30:52

rocket101
Scratcher
Registered: 2009-08-21
Posts: 500+

Re: Altering the source code: Questions Welcome!

How can you make [eraser down], [eraser up], <if broadcasting>, (pi), and [show dialog box titled ________ with text ___________]?

Offline

 

#79 2010-04-06 16:04:46

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Altering the source code: Questions Welcome!

Update: I made the (last received) block. It involved making a new variable, editing an existing block, and the normal stuff.

Last edited by Billybob-Mario (2010-05-01 10:34:56)

Offline

 

#80 2010-04-07 20:01:20

Fiat500
Scratcher
Registered: 2009-11-28
Posts: 100+

Re: Altering the source code: Questions Welcome!

billyedward wrote:

If I am correct, you use Jens' method:
Find a bug, type Preferences enableProgrammerFacilities into the walkback, etc.
And, the problem in 1.4 is, you can't find any bugs, right!
Well, here's what I use:
In the default cat sprite, make another costume to be a single pixel (the colour doesn't matter).
Then, set the sprite to be 54000% in size.
Now, just switch to the cat costume...
You will see a red walkback window entitled 'space is low'
Be sure to delete that offending cat sprite and then set it to 100% soon; those errors are there for a reason.

If by chance it causes a squeak memory dump (denounced by an unflattering text-filled white rectangle in the top left corner) then try it again with a smaller size. (ie: 2000%, etc. 54000 is the largest it will allow for a single pixel)

Please do not advertise this method outside this forum, because if the scratch team gets wind of it, they will be sure to fix it. And we all know how precious these bugs can be.

Or you can shift+click in the loop of the R in the Scratch logo.


http://picomol.de/ubuntu-oneiric-counter/234.png]
http://s09.flagcounter.com/count/eK/bg_244AB3/txt_FFFFFF/border_000000/columns_4/maxflags_8/viewers_Comet+Programming/labels_1/pageviews_1/

Offline

 

#81 2010-04-23 21:52:52

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

Re: Altering the source code: Questions Welcome!

Fiat500 wrote:

... Or you can shift+click in the loop of the R in the Scratch logo.

SHHH!! Don't tell the Scratch Team!!


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

Offline

 

#82 2010-04-26 16:40:01

Zorbak42
Scratcher
Registered: 2009-01-27
Posts: 100+

Re: Altering the source code: Questions Welcome!

Lol... I guess I'm a nerd.  tongue  Do you know how to add another category (like control, motion, looks, sensing, sound, operators, pen, and variables)? If so, can you tell me how please? Thanks!

Offline

 

#83 2010-04-26 16:48:18

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

Re: Altering the source code: Questions Welcome!

Zorbak42 wrote:

Lol... I guess I'm a nerd.  tongue  Do you know how to add another category (like control, motion, looks, sensing, sound, operators, pen, and variables)? If so, can you tell me how please? Thanks!

You edit the 'rebuildCategorySelectors' message in ScratchViewerMorph. Just add something to the 'catList' temporary variable, but remember that it floors the length for the extent, meaning you need an even number of categories.

Last edited by nXIII (2010-04-26 16:48:36)


nXIII

Offline

 

#84 2010-04-26 18:37:06

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Altering the source code: Questions Welcome!

here's a question. if you edit names of folders and things like that, does the source need to call a specific name of folder or would it still work? like could I change the name of a file to ILikePie.dll?


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#85 2010-04-26 20:19:52

Zorbak42
Scratcher
Registered: 2009-01-27
Posts: 100+

Re: Altering the source code: Questions Welcome!

nXIII wrote:

Zorbak42 wrote:

Lol... I guess I'm a nerd.  tongue  Do you know how to add another category (like control, motion, looks, sensing, sound, operators, pen, and variables)? If so, can you tell me how please? Thanks!

You edit the 'rebuildCategorySelectors' message in ScratchViewerMorph. Just add something to the 'catList' temporary variable, but remember that it floors the length for the extent, meaning you need an even number of categories.

OK. I'm in rebuildCategorySelectors. Where do I find the catList? Is it the list near the top with all the category names? I tried adding something there, but it didn't show up, I tried adding 2 things, they didn't show up, I tried added blocks to them in blockSpecs, still nothing. Do I have to design a picture for them before they show up or something? If so, how? Thanks.  wink

Offline

 

#86 2010-04-29 15:51:05

Zorbak42
Scratcher
Registered: 2009-01-27
Posts: 100+

Re: Altering the source code: Questions Welcome!

Zorbak42 wrote:

nXIII wrote:

Zorbak42 wrote:

Lol... I guess I'm a nerd.  tongue  Do you know how to add another category (like control, motion, looks, sensing, sound, operators, pen, and variables)? If so, can you tell me how please? Thanks!

You edit the 'rebuildCategorySelectors' message in ScratchViewerMorph. Just add something to the 'catList' temporary variable, but remember that it floors the length for the extent, meaning you need an even number of categories.

OK. I'm in rebuildCategorySelectors. Where do I find the catList? Is it the list near the top with all the category names? I tried adding something there, but it didn't show up, I tried adding 2 things, they didn't show up, I tried added blocks to them in blockSpecs, still nothing. Do I have to design a picture for them before they show up or something? If so, how? Thanks.  wink

Never mind, I got it.  smile

Offline

 

#87 2010-04-29 20:41:19

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Altering the source code: Questions Welcome!

hi billyedward, I have now officially created a mod. I have to ask to questions:

1. How do I compile it into an exe

2. How can I make an <i recive []> block?


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#88 2010-05-09 21:21:48

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

Re: Altering the source code: Questions Welcome!

I am working on Peck 1.2 and I want to know how to make new categories using the ACTUAL source code that they let you download. All of the other ways to make new categories just don't seem to work for me.


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

Offline

 

#89 2010-09-13 18:43:22

Rich_Goyette
Scratcher
Registered: 2009-06-24
Posts: 9

Re: Altering the source code: Questions Welcome!

Hi All:

I have done a fair amount of work hacking the source to suit my needs.  I started from scratch (no pun intended) and learned SmallTalk on the way.  As I went, I documented everything I did as best I could here:

http://www.richardgoyette.com/ItchBotsHardDesignDetails.html
http://www.richardgoyette.com/ItchBotsSoftMain.html

If you are interested in modifying Scratch, you might find something interesting there.

Rich goyette

Offline

 

#90 2012-04-30 15:07:41

williambl
Scratcher
Registered: 2011-04-08
Posts: 100+

Re: Altering the source code: Questions Welcome!

How do you change the title at the top of the scratch window?


http://internetometer.com/imagesmall/34650.png
http://www.danasoft.com/sig/Epicnesssign.jpg

Offline

 

#91 2012-05-02 07:09:57

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Altering the source code: Questions Welcome!

Would a hide list block work like finding the ScratchListMorph to hide and then deleting the morph?

Offline

 

#92 2012-05-04 02:02:24

williambl
Scratcher
Registered: 2011-04-08
Posts: 100+

Re: Altering the source code: Questions Welcome!

williambl wrote:

How do you change the title at the top of the scratch window?

oops... necropost.


http://internetometer.com/imagesmall/34650.png
http://www.danasoft.com/sig/Epicnesssign.jpg

Offline

 

Board footer