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

#576 2010-04-07 15:37:19

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

Re: ITopic: Build Your Own Blocks (BYOB)

Kingdaro wrote:

http://img243.imageshack.us/img243/148/scripts1.gif

That kinda stuff. I was able to make the broadcasts drop-down menu, for some reason, on accident. Is it a hidden feature or what?

And don't tell me it's impossible, because if I did it, then it's possible. I'm trying to replicate it for proof, but no luck since I don't know what exactly I typed in. BUT...

Since I know it's actually possible, how would I do it?

Ahhh... ok.
The code for the block in squeak (The recive broadcast block in scratch) looks like this:

Code:

('when I receive %e' #E #-)

Does that help?


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

 

#577 2010-04-07 15:40:51

Kingdaro
Scratcher
Registered: 2008-06-08
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

That ' symbol might be the answer to my problems. I'll look a bit more at the code. Thanks!

Edit: AH BULL. It didn't work. T.T

EDIT: The ' has nothing to do with it. Time to start experimenting again. T.T

Last edited by Kingdaro (2010-04-07 15:45:07)

Offline

 

#578 2010-04-07 16:22:46

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

if BYOB causes a Squeak error in user mode it won't let you enter a debugger. Instead a read-only message box pops up informing you about the stack that caused the error, that's why you cannot alter the source code at the moment (shift-clicking anywhere also won't help). Again, I'm planning to change this with the next version.

I know that, but it wasn't the same type of error! It was a... No, wait. You will correct it if I tell you... Do you want to know?  tongue  Sorry I'm being difficult.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#579 2010-04-08 03:13:29

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

Re: ITopic: Build Your Own Blocks (BYOB)

Hi Kingdaro,

in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs  smile

In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.

Hi MathWhizz,

nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window  big_smile  (and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)


Jens Mönig

Offline

 

#580 2010-04-08 06:29:03

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

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

Hi Kingdaro,

in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs  smile

In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.

Hi MathWhizz,

nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window  big_smile  (and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)

So it all comes with practice with Squeak!


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

 

#581 2010-04-08 12:50:54

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

Hi Kingdaro,

in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs  smile

In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.

Hi MathWhizz,

nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window  big_smile  (and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)

No, no, no... It was a syntax error... Anyway, I found a better way of doing it!
Open Elements and type "Preferences enableProgrammerFacilities" into the blue block.
http://img413.imageshack.us/img413/9441/byobhacking.png
Now select it and press alt + d. Alt click and you get the halo!  big_smile


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#582 2010-04-08 13:43:50

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

Re: ITopic: Build Your Own Blocks (BYOB)

MathWizz wrote:

Jens wrote:

Hi Kingdaro,

in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs  smile

In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.

Hi MathWhizz,

nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window  big_smile  (and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)

No, no, no... It was a syntax error... Anyway, I found a better way of doing it!
Open Elements and type "Preferences enableProgrammerFacilities" into the blue block.
http://img413.imageshack.us/img413/9441/byobhacking.png
Now select it and press alt + d. Alt click and you get the halo!  big_smile

How'd you work that one out? I dont know anyone who would type that into the block by accident.


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

 

#583 2010-04-08 13:55:20

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

markyparky56 wrote:

MathWizz wrote:

Jens wrote:

Hi Kingdaro,

in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs  smile

In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.

Hi MathWhizz,

nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window  big_smile  (and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)

No, no, no... It was a syntax error... Anyway, I found a better way of doing it!
Open Elements and type "Preferences enableProgrammerFacilities" into the blue block.
http://img413.imageshack.us/img413/9441/byobhacking.png
Now select it and press alt + d. Alt click and you get the halo!  big_smile

How'd you work that one out? I dont know anyone who would type that into the block by accident.

I was looking in the blockSpec trying to find something but it was so long that I thought I would see if control + f would bring up a find menu. That didn't work so I tried alt + f. It worked! Then I thought ", if that worked, maybe alt + d will too!" And it did!


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#584 2010-04-08 15:19:16

Kingdaro
Scratcher
Registered: 2008-06-08
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

MathWizz wrote:

Jens wrote:

Hi Kingdaro,

in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs  smile

In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.

Hi MathWhizz,

nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window  big_smile  (and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)

No, no, no... It was a syntax error... Anyway, I found a better way of doing it!
Open Elements and type "Preferences enableProgrammerFacilities" into the blue block.
http://img413.imageshack.us/img413/9441/byobhacking.png
Now select it and press alt + d. Alt click and you get the halo!  big_smile

Open elements in which block?

Oh, and I found a * annoying bug. When you single click on a custom made block, IT FREEZES. You can't click anywhere, move anything, it just freezes. I have to Ctrl+Alt+Delete-Task-Manager-End-Task it every time I accidentally click. Please, PLEASE, fix it.  smile

Last edited by Kingdaro (2010-04-08 15:22:17)

Offline

 

#585 2010-04-08 15:29:19

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Kingdaro wrote:

MathWizz wrote:

Jens wrote:

Hi Kingdaro,

in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs  smile

In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.

Hi MathWhizz,

nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window  big_smile  (and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)

No, no, no... It was a syntax error... Anyway, I found a better way of doing it!
Open Elements and type "Preferences enableProgrammerFacilities" into the blue block.
http://img413.imageshack.us/img413/9441/byobhacking.png
Now select it and press alt + d. Alt click and you get the halo!  big_smile

Open elements in which block?

Oh, and I found a * annoying bug. When you single click on a custom made block, IT FREEZES. You can't click anywhere, move anything, it just freezes. I have to Ctrl+Alt+Delete-Task-Manager-End-Task it every time I accidentally click. Please, PLEASE, fix it.  smile

Any block. Just open it and type it into the block, highlight and press alt + d.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#586 2010-04-08 18:22:10

Kingdaro
Scratcher
Registered: 2008-06-08
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

Alright, new problem.

It lags so much. I press the K key like 10 times and out of ten, it only registered three times when answering a question. When used as a command, it's fine.

Last edited by Kingdaro (2010-04-09 15:42:00)

Offline

 

#587 2010-04-09 16:00:40

Kingdaro
Scratcher
Registered: 2008-06-08
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

I am in DESPERATE need for a converter to Scratch. VERY, VERY, DESPERATE. I'm working on an OS for a collab, so I REALLY could use it so I can publish it. O.o

Offline

 

#588 2010-04-10 08:08:45

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

Hi MathWhizz,

nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window  big_smile  (and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)

Actually Jens, You Can Hack Into The BYOB Source Code. I've Done It And I Have Editied The Source Code So I Can Upload Projects In BYOB. I Even Have The Project Uploaded, So If You Don't Believe Me, Go Check Out My Project Called 'I Hacked BYOB'  big_smile

Offline

 

#589 2010-04-11 18:40:23

ElectricSparx
Scratcher
Registered: 2008-02-16
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

So, you want to define your own procedures and functions in Scratch? Build your own blocks (BYOB  smile  )?

You might as well try this new experimental prototype I have been developing over the last weeks. You can download and read through an overview (pdf), or download the whole application (including the overview) and start playing with it right away.

This prototype lets you build your own custom blocks in Scratch using the standard Scratch blocks, as well as other blocks you defined elsewhere. You can create your own command blocks (procedures) and reporter blocks (functions), both regular ("round") and boolean ("diamond"). You can specify for each block to be atomic (run at the speed of a single block) or interleafed. Your custom blocks are defined for each sprite and can be shared among projects together with the sprite they were created for. Oh, and you can even use a block within itself (recursion).

This prototype is very, very, experimental, so be prepared to encounter lots of bugs. I'd be very interested in feedback about your experiences and insights.

Enjoy!
-Jens

Can you make it for Linux and Mac, too? I have Linux, and when I drag the image onto Scratch, it just opens Scratch 1.4. Please, only Scratchers who have Windows can use this, I guess the only other way to make your own blocks is to get the Source Code and hack it...  sad


Lead Developer for Scratch Adventure

Offline

 

#590 2010-04-12 04:25:44

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

Re: ITopic: Build Your Own Blocks (BYOB)

Hi, ElectricSparx.

The BYOB image also works on Macs and presumably on Linux, too. Copy the .image file into the *Scratch* folder, then drop it onto Scratch.app.


Jens Mönig

Offline

 

#591 2010-04-12 12:13:16

Dab1998
Scratcher
Registered: 2010-01-03
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

I don't understand. What do I do when I've downloaded the files? Please tell me!

Last edited by Dab1998 (2010-04-12 12:32:32)


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

Offline

 

#592 2010-04-12 15:10:54

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

Re: ITopic: Build Your Own Blocks (BYOB)

Dab1998 wrote:

I don't understand. What do I do when I've downloaded the files? Please tell me!

Click on the file saying: Byob.exe and it should open BYOB, and then you program just like in scratch.


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

 

#593 2010-04-12 16:17:54

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Well if byob3 is coming around August... or you hope it is, you should get the publics opinion on blocks. I hope its even more amazing than byob2!  smile

Offline

 

#594 2010-04-12 16:23:56

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

Re: ITopic: Build Your Own Blocks (BYOB)

dav09 wrote:

Well if byob3 is coming around August... or you hope it is, you should get the publics opinion on blocks. I hope its even more amazing than byob2!  smile

Well it couldn't really be less amazing could it? Unless it was covered with bunny rabbits and flowers, that would just be wierd.


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

 

#595 2010-04-12 22:20:59

ElectricSparx
Scratcher
Registered: 2008-02-16
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

Hi, ElectricSparx.

The BYOB image also works on Macs and presumably on Linux, too. Copy the .image file into the *Scratch* folder, then drop it onto Scratch.app.

Thanks, Jens. My dad helped me with that.


Lead Developer for Scratch Adventure

Offline

 

#596 2010-04-12 22:24:17

ElectricSparx
Scratcher
Registered: 2008-02-16
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

MathWizz wrote:

Jens wrote:

Hi Kingdaro,

in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs  smile

In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.

Hi MathWhizz,

nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window  big_smile  (and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)

No, no, no... It was a syntax error... Anyway, I found a better way of doing it!
Open Elements and type "Preferences enableProgrammerFacilities" into the blue block.
http://img413.imageshack.us/img413/9441/byobhacking.png
Now select it and press alt + d. Alt click and you get the halo!  big_smile

So THAT'S how you get that. I wondered.


Lead Developer for Scratch Adventure

Offline

 

#597 2010-04-14 04:21:48

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: ITopic: Build Your Own Blocks (BYOB)

I have a question about the excellent possibility of creating new blocks in BYOB: why not having a flag (like for variables) saying that a block is global or local? That would allow a tremendous saving in updating the same code in several sprites.

Last edited by s_federici (2010-04-14 04:22:04)

Offline

 

#598 2010-04-14 04:31:23

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

You can drag the block to the thumbnail picture of the other sprite under the stage. This will make the block available on the other sprite  smile


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#599 2010-04-14 06:06:12

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

Re: ITopic: Build Your Own Blocks (BYOB)

s_federici wrote:

I have a question about the excellent possibility of creating new blocks in BYOB: why not having a flag (like for variables) saying that a block is global or local? That would allow a tremendous saving in updating the same code in several sprites.

Hi Stefano,

excellent suggestion! In fact, we have this already implemented in the current BYOB alpha version. BTW I sent you an e-mail a while ago inviting you to our BYOB alpha mailing list at Berkeley, but did not get any response from you. Perhaps I had the wrong address. If you're interested in checking out our new extensions just send me an e-mail and I'll add you to our list so you'll get the (frequent) new BYOB versions.


Jens Mönig

Offline

 

#600 2010-04-14 08:08:51

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Jens, do we have permission to add your BYOB engine to a future version of Panther (pantherprogramming.weebly.com)? The development topic is that ever-popular 'Four new blocks and block updates Scratch needs'.


http://i46.tinypic.com/dw7zft.png

Offline

 

Board footer