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

#326 2009-09-22 01:58:31

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

Re: ITopic: Build Your Own Blocks (BYOB)

Hi Sophie,

others have been reporting this problem, too. Turns out I only packed BYOB for Windows (because I don't have a Mac). Someone told me that copying BYOB.image to the Scratch app (1.4) folder and opening the image with Scratch.app works for them.

You should be able to create you own BYOB/Squeak installation by making sure that the VM has access to all the plugins coming with Scratch 1.4. Actually, I'd love somebody with a Mac to help me with this. So if you come up with an easy solution, please do tell me.

Oh, and please do not hesitate to email me directly!


Jens Mönig

Offline

 

#327 2009-09-22 08:55:51

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

Re: ITopic: Build Your Own Blocks (BYOB)

Hey Jens! I made this in BYOB 2.0 ! (I love the Mesh feature btw I haven't found anything wrong with it.  wink  ) The project requires 2 BYOB Windows opened each with the Client and the other with the host. (Yep uses the Mesh. But no block creations, maybe I'll just create a block for each item of some sort, shorten things out. ) Project: http://scratchconnections.wik.is/User:Magnie/Chat Tell me what you think!

Offline

 

#328 2009-09-24 01:21:40

itsme213
Scratcher
Registered: 2007-07-08
Posts: 38

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

Someone told me that copying BYOB.image to the Scratch app (1.4) folder and opening the image with Scratch.app works for them.

Ah, thanks. I just dragged the BYOB image onto Scratch.app in my 1.4 folder and it works fine.

You should be able to create you own BYOB/Squeak installation by making sure that the VM has access to all the plugins coming with Scratch 1.4. Actually, I'd love somebody with a Mac to help me with this.

If this does not require using developer tools like Apple's XCode, perhaps I can try. Let me know a bit more, drop a note to itsme213 at hotmail.

- Sophie

Offline

 

#329 2009-09-24 13:46:41

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

Re: ITopic: Build Your Own Blocks (BYOB)

Jens, do you think there is a quick way of changing how block specifications specify their parameters? I would like to be able to change the % sign in front of variable names to double quotes around variable names (as a side-effect, even variable names containing spaces would be allowed).

For example, instead of the following block specification

%base raised to %power

the specification would be

"base" raised to "power"

I know this is a request that overlaps with my previous proposal for defining parameters in new blocks, but it would help my students in using BYOB without having to understand why a % sign is necessary to identify a parameter in the block specification string.

Last edited by s_federici (2009-09-25 07:02:13)

Offline

 

#330 2009-09-25 11:02:59

LIFEComputerz
Scratcher
Registered: 2009-09-12
Posts: 7

Re: ITopic: Build Your Own Blocks (BYOB)

Hi Jens,
I've created a Mac version of BYOB. Here's a screenshot.

http://www.lifecomputerz.com/byobmac.png

And here it is.

Download

You don't have to, but you could put it on your site.

EDIT: For Leopard users, it might only look right under Snow Leopard. And now the link works.

Last edited by LIFEComputerz (2009-09-26 10:53:05)

Offline

 

#331 2009-09-25 13:31:09

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

Re: ITopic: Build Your Own Blocks (BYOB)

LIFEComputerz wrote:

And here it is.

Download

The download link doesn't work.

Last edited by s_federici (2009-09-27 08:54:53)

Offline

 

#332 2009-09-25 13:47:09

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

Re: ITopic: Build Your Own Blocks (BYOB)

LIFEComputerz wrote:

Hi Jens,
I've created a Mac version of BYOB. Here's a screenshot.

http://www.lifecomputerz.com/byobmac.png

And here it is.

Download

You don't have to, but you could put it on your site.

EDIT: For Leopard users, it might only look right under Snow Leopard.

cool if the link worked

Offline

 

#333 2009-09-25 14:18:24

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

Re: ITopic: Build Your Own Blocks (BYOB)

I noticed that if I put a "stop script" block at the end of the definition of a new block, the "stop script" block will stop the execution of the calling script, that is the remaining blocks of the script that contains the new block won't be executed. Is this what was intended?

Offline

 

#334 2009-09-25 15:59:06

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

Re: ITopic: Build Your Own Blocks (BYOB)

If I use a number in the block specification string (for example "draw a square whose side is 10") I get en error message (BYOB 2.0.1).

If the correction is a simple one (and there is no plan for an immediate release of an updated version of BYOB) would you mind Jens publishing directions on how to correct the problem? Thanks in advance (Sorry for the pressure, but I would like my students to use BYOB for this year's course, so that I can replace the pseudo-procedure declaration done by means of Scratch's messages with BYOB's block definition. And they are used to put numbers in Scratch's message names)

Last edited by s_federici (2009-09-25 16:29:54)

Offline

 

#335 2009-09-25 16:36:23

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

Re: ITopic: Build Your Own Blocks (BYOB)

I realized that I can actually put numbers in block specifications. I have just to put them inside double quotes. And the double quotes magically disappear from the block specification. Everything works very well.

I realize now that this behaviour is going to contrast with my request for using double quotes around arguments instead of the % sign.

Offline

 

#336 2009-09-26 10:50:12

cannon
Scratcher
Registered: 2008-09-13
Posts: 8

Re: ITopic: Build Your Own Blocks (BYOB)

alomost there for lego nxt

Offline

 

#337 2009-09-26 10:53:34

LIFEComputerz
Scratcher
Registered: 2009-09-12
Posts: 7

Re: ITopic: Build Your Own Blocks (BYOB)

s_federici wrote:

LIFEComputerz wrote:

And here it is.

Download

The download link doesn't work.

Now it does

EDIT: Now it ACTUALLY does.

Last edited by LIFEComputerz (2009-09-27 14:48:20)

Offline

 

#338 2009-09-26 21:47:26

scratch_yoshi
Scratcher
Registered: 2009-06-12
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Paddle2See wrote:

Jens, this is simply amazing!  Astounding!  Incredible!  The first routine I made was "Previous Costume" - it felt so good to be able to hide that ugly equation neatly away in a routine where it belongs!  From my first baby steps, I will now stride forth confidently.  Thank you!

Well then we both had the same "previous costume" idea!


Retired from Scratch, but just the language itself. Not the forums.

Offline

 

#339 2009-09-27 08:54:33

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

Re: ITopic: Build Your Own Blocks (BYOB)

LIFEComputerz wrote:

Now it does

Yes, but please change the link in your reply as it still is the wrong one.

Offline

 

#340 2009-09-27 13:55:24

itsme213
Scratcher
Registered: 2007-07-08
Posts: 38

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

Oh, and please do not hesitate to email me directly!

Just did this, please check inbox & spam box :-)

- Sophie

Offline

 

#341 2009-09-28 17:32:19

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

Re: ITopic: Build Your Own Blocks (BYOB)

update: bug fixes

Hi all. I just fixed another round of bugs in BYOB and pushed the release number to BYOB 2.0.2. Be sure to empty your browser's cache before you download the zip file again, and to check if your downloaded version shows this number.

The following bugs have been fixed:

(1) dragging a sprite in quarter-stage mode made it "pop" to full size
(2) showing the value of custom reporter blocks defined for the stage by double clicking it raised an error notification. Thank you, Sophie, for cathing this bug!
(3) numbers in a block spec raised an error. Thank you, Stefano, for reporting this bug!

These were all rather nasty bugs, so I'd definitely recommend updating BYOB to the current version.

Thanks again, for the thoughtful testing and precise bug reports!

Also, thanks LIFEComputerz, for supplying a BYOB installer for Mac. You guys are wonderful!


Jens Mönig

Offline

 

#342 2009-09-28 19:53:40

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

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

Also, thanks LIFEComputerz, for supplying a BYOB installer for Mac...

I downloaded the "Non Mac Version" and had no problems running it -and all of the bugs you mentioned did not happen with me...  hmm   I guess this is a good thing... Because the one I have is plain old BYOB 2 it is puzzling that I have no bugs.


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

Offline

 

#343 2009-10-01 07:13:00

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

Re: ITopic: Build Your Own Blocks (BYOB)

[sorry for quoting myself, just to avoid retyping the message]

s_federici wrote:

Jens, do you think there is a quick way of changing how block specifications specify their parameters? I would like to be able to change the % sign in front of variable names to double quotes around variable names (as a side-effect, even variable names containing spaces would be allowed).

If the correction is a simple one, I would love to try to make the change myself if you could publish (or send to my private email) some directions on how this could be achieved. Thanks in advance. (The "problems" is always the same: I'm moving my students from Scratch to BYOB and they are used to define variables by using spaces inside them)

Last edited by s_federici (2009-10-01 08:42:31)

Offline

 

#344 2009-10-01 09:48:18

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

Re: ITopic: Build Your Own Blocks (BYOB)

Hmmm. I love multi-worded variable names in Scratch myself. The problem is that I wanted to avoid writing a new parsing method (and having to catch all kinds of possible error constellations) and therefore just used an existing one. Can't your students use underscores instead?


Jens Mönig

Offline

 

#345 2009-10-01 10:09:12

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

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

Can't your students use underscores instead?

Sure, they can  smile  But I originally moved from Logo to Scratch mainly due to the more freedom Scratch allowed in defining command names and variables names (I used to ask them to define very meaningful variable names by using Camel Case, e.g. theMeasureOfTheSideOfTheSquare, numberOfSteps and then, moving to Scratch, when they discovered they could almost exactly rephrase their natural language algorithms into Scratch blocks, they loved it; no more "forward 10", but "move 10 steps"!). So I'll be really happy when a drag-n-drop mechanism to define block specifications will be in place (by allowing them to directly type inside the "and" blocks -the one we discussed a few weeks ago- the full and multi-worded names of their arguments). in the meantime I would love to allow them at least to write a block specification in which multi-worded variables are still there (so they don't loose much in naturalness abandoning Scratch messages and moving to BYOB's block definition).

If you don't have much time to implement or test it, please allow me to "put my hands" in the right place and (my students and) I will be happy of thoroughly testing it.

Offline

 

#346 2009-10-01 19:58:08

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

Re: ITopic: Build Your Own Blocks (BYOB)

Okay, Stefano, let me put something together for you over the weekend...


Jens Mönig

Offline

 

#347 2009-10-01 20:20:04

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Amazing work Jens, just wondering though, could you make a guide of blocks that you can create, or link to one if one already exists? Thanks  smile


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#348 2009-10-02 05:34:28

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

Re: ITopic: Build Your Own Blocks (BYOB)

Hi demosthenes,

thanks for checking out BYOB. Instead of a written guide I included a short PDF and a couple of sample projects in the download archive demoing various custom blocks. I'm sorry if this is less than you expect, but you'll hopefully be able to find out how to use the block editor by just playing around with it.


Jens Mönig

Offline

 

#349 2009-10-02 05:36:28

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

Re: ITopic: Build Your Own Blocks (BYOB)

demosthenes wrote:

Amazing work Jens, just wondering though, could you make a guide of blocks that you can create, or link to one if one already exists? Thanks  smile

In BYOB's distribution you can find the ""BYOB.pdf" guide. If this is not enough, please explain which part you would like to see detailed in more depth.

Offline

 

#350 2009-10-02 06:46:59

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

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

Okay, Stefano, let me put something together for you over the weekend...

Thanks! I assure you a thorough testing.

Offline

 

Board footer