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

#776 2010-07-30 01:41:38

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Billybob-Mario wrote:

It always causes an error when I open an existing method.

Yeah, that's what happens when the .changes doesn't match the .image; download today's version 004 which provides both.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#777 2010-07-30 14:34:12

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

Re: ITopic: Build Your Own Blocks (BYOB)

coolstuff wrote:

It has to be boolean. a <[] recieved> block isn't.

It is a boolean. It is not a command, not a reporter either.

Offline

 

#778 2010-07-30 15:44:00

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

Re: ITopic: Build Your Own Blocks (BYOB)

Does BYOB add to the ScratchSkin? If so, where can I download a BYOBSkin?

Offline

 

#779 2010-07-31 06:18:36

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Billybob-Mario wrote:

Does BYOB add to the ScratchSkin? If so, where can I download a BYOBSkin?

There is a class method ScratchFrameMorph>byob>addSlotShapesToSkin so apparently there isn't a BYOBSkin but rather just incremental changes to the ScratchSkin.  Jens, can we package those up for distribution?


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#780 2010-07-31 09:56:42

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Well, we are already distributing what few pictures we've been adding to BYOB (pause resume icons, slot shapes, the Alonzo mascot, the logo) - they're all in the image, and can be modified at will  smile

Last edited by Jens (2010-07-31 09:57:24)


Jens Mönig

Offline

 

#781 2010-08-03 21:41:59

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

rdococ wrote:

coolstuff wrote:

It has to be boolean. a <[] recieved> block isn't.

It is a boolean. It is not a command, not a reporter either.

Ah - what I meant was that <[] recieved> doesn't work so well - whereas <[] has been recieved> or <[] is being recieved> works just fine  smile

Offline

 

#782 2010-08-04 18:06:59

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

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

Well, we are already distributing what few pictures we've been adding to BYOB (pause resume icons, slot shapes, the Alonzo mascot, the logo) - they're all in the image, and can be modified at will  smile

But Slash modufies the ScratchSkin and it needs to have a BYOB-ized skin to work.

Offline

 

#783 2010-08-06 05:19:23

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Hi Billybob-Mario,

I'm getting a little weary of writing up Squeak How-To's, because it's all in there for you to discover for yourself. And it's fun, too, sort of like hunting down whodunnit in a mystery novel. Here's what Sherlock would do:

Browse the class side of ScratchFrame. There's a class variable named ScratchSkin inthere. Inspect it: It's a Dictionary (a kind of Collection). Inspect any key, and what you get is a ColoredForm, a kind of Form. Browse the Form class to find out that it's a
bitmap, and that there's a method category called "fileIn/Out". browse those methods, and check out #writeBMPFileNamed:  #writeGIFFileNamed: etc. try any of these in the Form inspector's evaluation panes and see what they do. Now check out how you can iterate over a Collection (#do: aBlock is a great start). Try this in the Dictionary's evaluation pane.

Case solved, now hand over the villain to Scottland Yard  smile
It's fun to find these things out for yourself!


Jens Mönig

Offline

 

#784 2010-08-06 10:54:07

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

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

Hi Billybob-Mario,

I'm getting a little weary of writing up Squeak How-To's, because it's all in there for you to discover for yourself. And it's fun, too, sort of like hunting down whodunnit in a mystery novel. Here's what Sherlock would do:

Browse the class side of ScratchFrame. There's a class variable named ScratchSkin inthere. Inspect it: It's a Dictionary (a kind of Collection). Inspect any key, and what you get is a ColoredForm, a kind of Form. Browse the Form class to find out that it's a
bitmap, and that there's a method category called "fileIn/Out". browse those methods, and check out #writeBMPFileNamed:  #writeGIFFileNamed: etc. try any of these in the Form inspector's evaluation panes and see what they do. Now check out how you can iterate over a Collection (#do: aBlock is a great start). Try this in the Dictionary's evaluation pane.

Case solved, now hand over the villain to Scottland Yard  smile
It's fun to find these things out for yourself!

Thank you. I don't think that there will be any more problems.

Offline

 

#785 2010-08-06 15:29:24

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Jens and I are pleased (more than pleased, delighted, relieved) to announce BYOB 3.0 now available at http://byob.berkeley.edu.  It's only slightly changed from 2.995.008 but you should probably download the whole package complete with sample projects etc.

So don't find any more bugs!  big_smile


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#786 2010-08-06 15:34:42

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

sweet!


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#787 2010-08-07 16:35:13

antimonyarsenide
Scratcher
Registered: 2010-02-03
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

BYOB works great  smile  Too bad you can't share projects made with it with people without the program.


http://myfastcounter.com/count.php?c_style=75&amp;id=1284314427
No, I'm not back (yet  tongue ), so pretend this is invisible.

Offline

 

#788 2010-08-08 02:24:33

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

antimonyarsenide wrote:

BYOB works great  smile  Too bad you can't share projects made with it with people without the program.

But you can!  In the SHARE menu, click "Compile this project."  It'll make a standalone executable that contains the project and BYOB, and when run it'll run the project in presentation mode.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#789 2010-08-08 02:32:12

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

Re: ITopic: Build Your Own Blocks (BYOB)

W00t! imma try it out tomorrow. It's late here.  tongue


Hai.

Offline

 

#790 2010-08-09 04:39:22

DarkBlaze2
Scratcher
Registered: 2010-05-14
Posts: 8

Re: ITopic: Build Your Own Blocks (BYOB)

hey i wanted to make a <key[backspace]pressed?> block but i dont know how can anyone tell me


god created the world and on the seventh day rested then chuck Norris took over file:///C:/Documents%20and%20Settings/Dylan/Desktop/Master_Chief_Chuck_Norris_by_GreyOfPTA.jpg

Offline

 

#791 2010-08-09 07:02:49

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

DarkBlaze2 wrote:

hey i wanted to make a <key[backspace]pressed?> block but i dont know how can anyone tell me

You can't make it in BYOB, but maybe you can in Panther.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#792 2010-08-09 12:13:24

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: ITopic: Build Your Own Blocks (BYOB)

80007th to view


Marzipan11 must learn to not spoil

Offline

 

#793 2010-08-09 14:56:53

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

ScratchReallyROCKS wrote:

DarkBlaze2 wrote:

hey i wanted to make a <key[backspace]pressed?> block but i dont know how can anyone tell me

You can't make it in BYOB, but maybe you can in Panther.

You can, aslong as you know the Ascii code, but you can't make lists (Yet) so it would just be a single block.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#794 2010-08-10 12:02:08

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

Re: ITopic: Build Your Own Blocks (BYOB)

Billybob-Mario wrote:

Jens wrote:

Hi Billybob-Mario,

I'm getting a little weary of writing up Squeak How-To's, because it's all in there for you to discover for yourself. And it's fun, too, sort of like hunting down whodunnit in a mystery novel. Here's what Sherlock would do:

Browse the class side of ScratchFrame. There's a class variable named ScratchSkin inthere. Inspect it: It's a Dictionary (a kind of Collection). Inspect any key, and what you get is a ColoredForm, a kind of Form. Browse the Form class to find out that it's a
bitmap, and that there's a method category called "fileIn/Out". browse those methods, and check out #writeBMPFileNamed:  #writeGIFFileNamed: etc. try any of these in the Form inspector's evaluation panes and see what they do. Now check out how you can iterate over a Collection (#do: aBlock is a great start). Try this in the Dictionary's evaluation pane.

Case solved, now hand over the villain to Scottland Yard  smile
It's fun to find these things out for yourself!

Thank you. I don't think that there will be any more problems.

Now there is. I found the dictionary and I have the, but now it seems a bit vague. How do I make the images into files?

Offline

 

#795 2010-08-10 20:17:21

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Billybob-Mario wrote:

Jens wrote:

check out #writeBMPFileNamed:  #writeGIFFileNamed: etc.

I found the dictionary and I have the, but now it seems a bit vague. How do I make the images into files?

See above.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#796 2010-08-10 20:28:29

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

Re: ITopic: Build Your Own Blocks (BYOB)

bharvey wrote:

Billybob-Mario wrote:

Jens wrote:

check out #writeBMPFileNamed:  #writeGIFFileNamed: etc.

I found the dictionary and I have the, but now it seems a bit vague. How do I make the images into files?

See above.

I looked at them. Now what?

Offline

 

#797 2010-08-11 08:39:38

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Billybob-Mario wrote:

I looked at them. Now what?

What did you learn by looking at them?


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#798 2010-08-11 09:07:10

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

Re: ITopic: Build Your Own Blocks (BYOB)

bharvey wrote:

Billybob-Mario wrote:

I looked at them. Now what?

What did you learn by looking at them?

I tried running it on one of the parts of the ScratchSkin, and it said that it was out of the 30-bit something or something.

Last edited by Billybob-Mario (2010-08-11 09:13:53)

Offline

 

#799 2010-08-11 14:49:49

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

strange, isn't it. But it doesn't seem to happen if you just file out everything as GIF. here's what works for me: Inspect ScratchFrame class variable ScratchSkin, and evaluate the following code in the inspector's bottom pane:

Code:

self keysDo: [:key | 
    (self at: key) writeGIFFileNamed: key asString, '.gif']

afterwards (it takes some time to write all of these 273 files) check your BOYB installation folder.

Any luck?


Jens Mönig

Offline

 

#800 2010-08-11 18:52:13

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

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

strange, isn't it. But it doesn't seem to happen if you just file out everything as GIF. here's what works for me: Inspect ScratchFrame class variable ScratchSkin, and evaluate the following code in the inspector's bottom pane:

Code:

self keysDo: [:key | 
    (self at: key) writeGIFFileNamed: key asString, '.gif']

afterwards (it takes some time to write all of these 273 files) check your BOYB installation folder.

Any luck?

I think the problem was that I used BMP instead of GIF. Also, thanks for this, because I would have had to do all 273 separately!

Also, what's BOYB? (Bob, Own Your Blocks?)

Offline

 

Board footer