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.
Offline
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
Does BYOB add to the ScratchSkin? If so, where can I download a BYOBSkin?
Offline
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?
Offline
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
Last edited by Jens (2010-07-31 09:57:24)
Offline
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
Offline
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
But Slash modufies the ScratchSkin and it needs to have a BYOB-ized skin to work.
Offline
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
It's fun to find these things out for yourself!
Offline
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
It's fun to find these things out for yourself!
Thank you. I don't think that there will be any more problems.
Offline
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!
Offline
sweet!
Offline
BYOB works great Too bad you can't share projects made with it with people without the program.
Offline
antimonyarsenide wrote:
BYOB works great 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.
Offline
hey i wanted to make a <key[backspace]pressed?> block but i dont know how can anyone tell me
Offline
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.
Offline
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.
Offline
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
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
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.
Offline
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
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
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:
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?
Offline
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