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

#1 2008-11-30 10:40:03

wordMan
Scratcher
Registered: 2007-12-02
Posts: 82

what is the byob source code?

i want to know what the byob source code is. if you know please tell me or give me a link to some where that will tell me <{ HELP! }>

Last edited by wordMan (2008-12-03 16:11:01)


http://www.danasoft.com/sig/1024tim.jpg

Offline

 

#2 2008-12-06 11:24:45

wordMan
Scratcher
Registered: 2007-12-02
Posts: 82

Re: what is the byob source code?

Please tell me!!!


http://www.danasoft.com/sig/1024tim.jpg

Offline

 

#3 2008-12-08 17:25:17

MartinWollenweber
Scratcher
Registered: 2007-04-10
Posts: 100+

Re: what is the byob source code?

look here: http://www.chirp.scratchr.org/blog
BYOB it's a prototype of a possible future of Scratch, made by Jens Mönig, where you can build own blocks that contain sub-programs. The source code of BYOB it is based on Squeak-Smalltalk, the development environment Scratch is built on.


Martin
...mitmachen beim  DACH-Scratch-Wiki und Scratch-Wiki-Autor werden!

Offline

 

#4 2008-12-09 05:03:21

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

Re: what is the byob source code?

Hi wordMan,

I didn't publish the BYOB changeset yet, because BYOB is still very much in prototype stadium. Is there anything particular that you're interested in? I'll be glad to help out and share...


Jens Mönig

Offline

 

#5 2008-12-09 14:48:42

wordMan
Scratcher
Registered: 2007-12-02
Posts: 82

Re: what is the byob source code?

Jens wrote:

Hi wordMan,

I didn't publish the BYOB changeset yet, because BYOB is still very much in prototype stadium. Is there anything particular that you're interested in? I'll be glad to help out and share...

yeah i want to know how you made it able to create blocks in usermode.


http://www.danasoft.com/sig/1024tim.jpg

Offline

 

#6 2008-12-10 02:13:20

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

Re: what is the byob source code?

Hi wordMan,

thanks for your interest in BYOB. It's great that you're trying to understand how Scratch is made. So, how did I do BYOB:

I created new subclasses of CommandBlockMorph and ReporterBlockMorph for customizable blocks, some other new classes (CustomBlockDefinition, BlockEditorMorph, NewCustomBlockDialog, ...), added some instance variables (for the block definitions) to classes ScriptableScratchMorph, ScratchFrameMorph and ScratchProcess and did a *lot* off fiddling with ScratchProcess, enhancing it to execute custom blocks atomically and recursively, which involves - among other things - allocating a separate memory space for each execution instance of each custom block.

This probably doesn't answer you question in a way which lets you implement something similar yourself without further explanation, but you have to understand that BYOB is actually one of my more complex programming  projects. That's why I'm afraid that the Squeak changeset for BYOB itself won't be of much help.

If you'd like to learn Smalltalk programming I'd recommend the http://www.squeak.org/ website. Another very cool programming environment built on top of Squeak is Etoys, which you can download here: http://www.squeakland.org/ . Etoys and Scratch have similar roots, so you might enjoy Etoys, too.

Of course, I'm also very interested in your impressions and experiences of BYOB. So if there's anything you'd like to comment on, please let me know.

Thanks!


Jens Mönig

Offline

 

#7 2009-06-27 19:49:46

sccar3
Scratcher
Registered: 2008-09-04
Posts: 100+

Re: what is the byob source code?

Bring your own bombs.


http://1.bp.blogspot.com/-WInb2DZ2LBM/UQaLETx3VII/AAAAAAAAAmQ/ZOpSwEPggiE/s1600/The%2BElder%2BScrolls%2BOnline%2BSignup%2BBeta.jpg

Offline

 

#8 2009-08-03 10:26:42

butheadrecoverdwpa
Scratcher
Registered: 2009-01-25
Posts: 25

Re: what is the byob source code?

Jens wrote:

Hi wordMan,

I didn't publish the BYOB changeset yet, because BYOB is still very much in prototype stadium. Is there anything particular that you're interested in? I'll be glad to help out and share...

can you make lists in b.y.o.b.?
that would help me out a lot I'm making  a BYOB project that requires lists  smile

Offline

 

#9 2009-08-03 10:29:37

butheadrecoverdwpa
Scratcher
Registered: 2009-01-25
Posts: 25

Re: what is the byob source code?

Jens wrote:

Hi wordMan,

thanks for your interest in BYOB. It's great that you're trying to understand how Scratch is made. So, how did I do BYOB:

I created new subclasses of CommandBlockMorph and ReporterBlockMorph for customizable blocks, some other new classes (CustomBlockDefinition, BlockEditorMorph, NewCustomBlockDialog, ...), added some instance variables (for the block definitions) to classes ScriptableScratchMorph, ScratchFrameMorph and ScratchProcess and did a *lot* off fiddling with ScratchProcess, enhancing it to execute custom blocks atomically and recursively, which involves - among other things - allocating a separate memory space for each execution instance of each custom block.

This probably doesn't answer you question in a way which lets you implement something similar yourself without further explanation, but you have to understand that BYOB is actually one of my more complex programming  projects. That's why I'm afraid that the Squeak changeset for BYOB itself won't be of much help.

If you'd like to learn Smalltalk programming I'd recommend the http://www.squeak.org/ website. Another very cool programming environment built on top of Squeak is Etoys, which you can download here: http://www.squeakland.org/ . Etoys and Scratch have similar roots, so you might enjoy Etoys, too.

Of course, I'm also very interested in your impressions and experiences of BYOB. So if there's anything you'd like to comment on, please let me know.

Thanks!

I like etoys too and we have several computers but my computer is too slow  sad

Offline

 

#10 2009-08-03 10:33:47

butheadrecoverdwpa
Scratcher
Registered: 2009-01-25
Posts: 25

Re: what is the byob source code?

butheadrecoverdwpa wrote:

Jens wrote:

Hi wordMan,

I didn't publish the BYOB changeset yet, because BYOB is still very much in prototype stadium. Is there anything particular that you're interested in? I'll be glad to help out and share...

can you make lists in b.y.o.b.?
that would help me out a lot I'm making  a BYOB project that requires lists  smile

well actually it already has lists but i want lists inside the blocks you make  neutral

Last edited by butheadrecoverdwpa (2009-08-03 10:34:43)

Offline

 

#11 2009-08-03 10:35:00

Blade-Edge
Scratcher
Registered: 2009-06-13
Posts: 1000+

Re: what is the byob source code?

Burn your own bacon!


http://img29.imageshack.us/img29/5145/scratchycat.gif CLASSY

Offline

 

#12 2009-08-03 11:53:48

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: what is the byob source code?

sccar3 wrote:

Bring your own bombs.

Or Bring your own Bag. Or Beer. XD

This one however, means "Build your Own Block".


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#13 2009-08-12 16:14:35

sccar3
Scratcher
Registered: 2008-09-04
Posts: 100+

Re: what is the byob source code?

technoguyx wrote:

sccar3 wrote:

Bring your own bombs.

Or Bring your own Bag. Or Beer. XD

This one however, means "Build your Own Block".

I like bring your own bombs better


http://1.bp.blogspot.com/-WInb2DZ2LBM/UQaLETx3VII/AAAAAAAAAmQ/ZOpSwEPggiE/s1600/The%2BElder%2BScrolls%2BOnline%2BSignup%2BBeta.jpg

Offline

 

#14 2009-09-13 16:54:52

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: what is the byob source code?

The new version of BYOB is now very easy to hack.
All you have to to is this:

1. Right click on any non-starting and non-custom block and select 'edit elements'

2. Make random changes. DONT SAVE THE CHANGES!!!!!

3. Although I just said don't save the changes, press the save button.

4. When it asks you to enter in your initials, type in

Code:

 Preferences enableProgrammerFacilities

and press alt+a folowed by alt+d.

5. Now, alt+click or middle-click on the 'please type in your initials' box and x out of it.

You should now be able to easily get into the BYOB source code by alt-clicking or middle-clicking and pressing the yellow button.

There are other ways to do it, but this is the simplest.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#15 2009-09-13 17:42:51

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

Re: what is the byob source code?

Haha, great! You can also edit *everything* using the elements editor...


Jens Mönig

Offline

 

#16 2009-09-18 15:59:10

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: what is the byob source code?

Yeah, but sometimes you can't find a certain elements block, so having access to the direct source code might sometimes be handy.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#17 2009-12-26 04:39:40

Darksonn
Scratcher
Registered: 2009-04-11
Posts: 5

Re: what is the byob source code?

What whit <%Diamond_Box1 that gives acees to making a place for diamond blocks

Offline

 

#18 2009-12-26 10:53:17

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: what is the byob source code?

Elements has so many blocks to look through, I can't understand anything. xD I need an Elements tutorial.  wink

Offline

 

#19 2010-05-03 20:38:58

Lucyroxy1212
Scratcher
Registered: 2010-01-15
Posts: 12

Re: what is the byob source code?

So can we use it to make our own program?

Offline

 

#20 2010-08-16 15:27:43

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

Re: what is the byob source code?

Darksonn wrote:

What whit <%Diamond_Box1 that gives acees to making a place for diamond blocks

BYOB 2.99 has that, you enter it as normal, with normal input name, e.g. %example, you then click the input variable, you click the arrow pointing right, and you can edit the type of input.

Offline

 

#21 2010-08-16 15:38:39

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

Re: what is the byob source code?

rubiks_cube_guy238 wrote:

The new version of BYOB is now very easy to hack.
All you have to to is this:

1. Right click on any non-starting and non-custom block and select 'edit elements'

2. Make random changes. DONT SAVE THE CHANGES!!!!!

3. Although I just said don't save the changes, press the save button.

4. When it asks you to enter in your initials, type in

Code:

 Preferences enableProgrammerFacilities

and press alt+a folowed by alt+d.

5. Now, alt+click or middle-click on the 'please type in your initials' box and x out of it.

You should now be able to easily get into the BYOB source code by alt-clicking or middle-clicking and pressing the yellow button.

There are other ways to do it, but this is the simplest.

That's not the only way to do it...


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

Offline

 

#22 2010-08-16 17:10:57

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

Re: what is the byob source code?

There's a weird application along with BYOB. If you run it, it opens BYPB with the dev menu (shift-click edit)

Offline

 

Board footer