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

#726 2010-07-04 21:30:37

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

Re: ITopic: Build Your Own Blocks (BYOB)

colabcalub wrote:

How do acturly make blocks with the make a block function? I can't work it out.

You enter the name of you new block and then drag blocks from the palette into the block editor. Check out the examples and tutorials, too. There are lots of them  smile


Jens Mönig

Offline

 

#727 2010-07-05 10:02:10

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

Re: ITopic: Build Your Own Blocks (BYOB)

Can you make new blocks that can be used in the BYOB area, with elements? And if so, how?


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

 

#728 2010-07-05 15:25:55

BlackMarket
Scratcher
Registered: 2010-06-05
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

Build Your Own Blocks -- With other blocks  wink

It's quite complicated, but I love it  smile


http://img844.imageshack.us/img844/3924/blackmarketlogo.png
                                      I'm (your) Back.

Offline

 

#729 2010-07-05 15:36:21

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

Re: ITopic: Build Your Own Blocks (BYOB)

BlackMarket wrote:

Build Your Own Blocks -- With other blocks  wink

It's quite complicated, but I love it  smile

Build your own blocks using blocks you built using blocks?


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

 

#730 2010-07-06 00:01:49

ironmannn
Scratcher
Registered: 2010-02-20
Posts: 42

Re: ITopic: Build Your Own Blocks (BYOB)

ive made a login block with the v2.29 version of byob
but the offical block will be out on my site soon.

Offline

 

#731 2010-07-06 07:13:33

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

Re: ITopic: Build Your Own Blocks (BYOB)

ironmannn wrote:

ive made a login block with the v2.29 version of byob
but the offical block will be out on my site soon.

Login block? What does it look like?

I just has a go at it, it seems to work:
The script
http://img59.imageshack.us/img59/7313/loginscript.gif
The block
http://img149.imageshack.us/img149/1963/loginblock.gif

Last edited by markyparky56 (2010-07-06 07:15:03)


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

 

#732 2010-07-06 14:22:55

colabcalub
Scratcher
Registered: 2010-04-22
Posts: 64

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

colabcalub wrote:

How do acturly make blocks with the make a block function? I can't work it out.

You enter the name of you new block and then drag blocks from the palette into the block editor. Check out the examples and tutorials, too. There are lots of them  smile

But for somereason the examples don't work.  hmm


http://i50.tinypic.com/x45f9j.png
Are you?

Offline

 

#733 2010-07-06 23:15:18

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

Re: ITopic: Build Your Own Blocks (BYOB)

colabcalub wrote:

But for somereason the examples don't work.  hmm

Please give us a specific example that doesn't work, and what response you get when you try it.

Or you can report bugs directly at http://byobugs.com.


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

Offline

 

#734 2010-07-06 23:17:44

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

Re: ITopic: Build Your Own Blocks (BYOB)

One little programming detail:  There's no need to say

LAUNCH ...
STOP BLOCK

That combination is exactly equivalent to RUN ... .

Oh, P.S., real security mavens say that you shouldn't tell people which of username and password didn't work; instead collect both of them and either accept or deny them as a unit.  smile

EDIT:  I'm sorry, not "exactly equivalent," but exactly equivalent as you've used them, where the block is going to stop anyway because there's nothing left to do after the IF/ELSE.  I should have said that LAUNCH+STOP is the same as RUN+STOP.

Last edited by bharvey (2010-07-06 23:21:39)


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

Offline

 

#735 2010-07-07 06:54:22

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

Re: ITopic: Build Your Own Blocks (BYOB)

markyparky56 wrote:

Can you make new blocks that can be used in the BYOB area, with elements? And if so, how?

Here, look at my post in this thread: http://scratch.mit.edu/forums/viewtopic.php?id=39080


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

Offline

 

#736 2010-07-08 20:56:45

BlueFlame
Scratcher
Registered: 2008-08-17
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

Can you export your blocks into normal Scratch, or save them so that you can use them with any project?


Scape - The mindbending puzzle by coolstuff  big_smile

Offline

 

#737 2010-07-08 23:09:50

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

Re: ITopic: Build Your Own Blocks (BYOB)

BlueFlame wrote:

Can you export your blocks into normal Scratch, or save them so that you can use them with any project?

No, sorry.  Not until we talk the Scratch Team into incorporating BYOB into Scratch 2.0.  smile


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

Offline

 

#738 2010-07-09 08:13:51

Grin1
Scratcher
Registered: 2010-06-10
Posts: 31

Re: ITopic: Build Your Own Blocks (BYOB)

how to you get byob blocks into scratch


http://scratch.mit.edu/projects/Grin1/1870603
http://scratch.mit.edu/static/projects/Grin1/1870603_med.png

Offline

 

#739 2010-07-09 12:45:01

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

Re: ITopic: Build Your Own Blocks (BYOB)

Grin1 wrote:

how to you get byob blocks into scratch

You shouldn't, and can't. The point of a Scratch modification is so that it is different than Scratch. It is illegal to post Scratch modification projects because it is against the Scratch Terms of Use. If you make/import the given block into Scratch without it turing into an

[obsolete!]

block, then it would be illegal to share it. Kind of. Even if it is legal, it is rude and frowned upon. If you do want to share your project with people, you can ask your family, friends etc. Or you could edit the player that Scratch already has and share it on a separate website.


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

Offline

 

#740 2010-07-10 06:24:21

colabcalub
Scratcher
Registered: 2010-04-22
Posts: 64

Re: ITopic: Build Your Own Blocks (BYOB)

bharvey wrote:

colabcalub wrote:

But for somereason the examples don't work.  hmm

Please give us a specific example that doesn't work, and what response you get when you try it.

Or you can report bugs directly at http://byobugs.com.

It's ALL the examples, and there is no scripts.


http://i50.tinypic.com/x45f9j.png
Are you?

Offline

 

#741 2010-07-13 19:53:30

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Is there any simple squeak/smalltalk I could use to implement new block names for existing blocks through the 1.4 source code?


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#742 2010-07-13 20:21:22

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

Re: ITopic: Build Your Own Blocks (BYOB)

bobbybee wrote:

Is there any simple squeak/smalltalk I could use to implement new block names for existing blocks through the 1.4 source code?

yeah there is.

Turn fill screen off, open a browser, and go to Scratch-Objects>ScriptableScratchMorph (make sure you have 'class' selected)>block specs>blockSpecs, and change block names there. Here is how to do that:

you will see a lot of things that look like: ('bla bla bla' #- #blaBlaBla). let's take the |wait (1) secs| block for example. Find this: ('wait %n secs' #- #duration:elapsed:from: 1) change the 'wait %n secs' to whatever you want, just keep the %n. For example change it to 'delay %n' and the block will now look like |delay (1)|. If you need additional information (call this toll free number ......... just joking) click this smiley: big_smile

Last edited by ScratchReallyROCKS (2010-07-13 20:21:39)


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

Offline

 

#743 2010-07-14 16:11:51

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

it's not working  sad


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#744 2010-07-14 16:15:59

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

Re: ITopic: Build Your Own Blocks (BYOB)

bobbybee wrote:

it's not working  sad

Oh. Sorry, I was in a hurry, here's a better tutorial:

http://scratch.mit.edu/forums/viewtopic.php?id=31200


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

Offline

 

#745 2010-07-20 11:48:43

mememe1234
Scratcher
Registered: 2009-10-09
Posts: 61

Re: ITopic: Build Your Own Blocks (BYOB)

How do you make a block like the one in "Polygons" in BYOB?

Offline

 

#746 2010-07-23 12:18:18

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

Re: ITopic: Build Your Own Blocks (BYOB)

Jens and I are extremely pleased to announce (finally!) the release of BYOB 2.995 beta.  You can download the Macintosh and Windows files-only version (just put it in /Applications on a Mac) or the Windows installer.  You should download the complete package even if you already have BYOB, because of changes to the manual, the help files, the compiler, the dev access, etc.

Jens wrote:

Windows installer: It's best not to select the default folder offered by the installer (C:\program files\BYOB) but to select some other folder that is not a subfolder of Vista's paranoid UAC system. BYOB will run fine from C:\program files\BYOB, but editing the source code and trying to open Elements may lead to strange, Vista-related error messages. These don't happen if you select another folder.

One major change since the last alpha:  By popular demand, BYOB now has special forms.  This means that you can declare a block input slot to be of type "Any (unevaluated)" or "Boolean (unevaluated)"; these inputs look to the block's caller like Any or Boolean, but actually behave like Reporter or Predicate respectively -- the expression you drag onto that input isn't shown with a grey border, but in fact BYOB puts an invisible THE BLOCK around it.  The first and most important application is in tools.ypr 1.6, in which the reporter IF/THEN/ELSE block is intuitively usable by someone who doesn't know anything about procedures as data.  This also means we can explain the behavior of the Scratch looping and conditional blocks' hexagonal input slots with the truth: They are of type Boolean (unevaluated), not of type Predicate.  (You'll remember that this was a point of confusion for several alpha users!)  The shapes and colors of the input slot types have been changed to reflect this new story.

http://byob.berkeley.edu/factorial.gif

Also new in this release: the "compile" option works on the Macintosh as well as on Windows.

Finally, in the folder are files named "BYOB development.sh" (Mac) and "BYOB development.bat" (Win) that can be double-clicked to open BYOB in developer mode.  Shift-click the Edit menu to get access to the Smalltalk browser and the full source, comments and all.

Many. many thanks to all of you who've helped us get this far.  There are still bugs and missing features, but it's in so much better shape than 2.99.000 because of your contributions!


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

Offline

 

#747 2010-07-23 12:24:07

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

cool


You can now reach me on Twitter @johnnydean1_

Offline

 

#748 2010-07-24 18:33:46

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

Re: ITopic: Build Your Own Blocks (BYOB)

I'm trying to use the .changes file to add BYOB to Slash, but I can't. Can anyone help?

Note: if you try, download the .image as of now, I just updated it.

Update: I've made a bit of progress, but it's hard. Does anyone have advice?

Last edited by Billybob-Mario (2010-07-24 19:01:13)

Offline

 

#749 2010-07-25 10:33:15

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

Re: ITopic: Build Your Own Blocks (BYOB)

Many comments in the changeset cause errors, making it unusable. Could you make a comment-free changeset or something?

All of the problems are from the "I am the...
"I represent...
and similar things above many methods.

So far I've had to type in the classes myself and delete lots of comments, but it's near impossible.

Last edited by Billybob-Mario (2010-07-25 10:34:29)

Offline

 

#750 2010-07-25 17:17:35

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

Re: ITopic: Build Your Own Blocks (BYOB)

Hi Billybob-Mario,

it's great that you're trying to incorporate BYOB in your Scratch mod! That's exactly why we made it easy to switch into development mode. Unfortunately, it's not just importing a file (like the .changes file) that will make it work. Also, the comments shouldn't be the problem. What you need is the changesets in their correct order. But these aren't really  well kept in BYOB, because mostly I've been hacking away under great time pressure, often switching back and forth between changesets, and sometimes not creating new ones when I should have. Also, BYOB fundamentally changes almost everything internal in Scratch, even the most simply code like moving a Sprite forward by 10 steps, because of the nested sprites feature. Therefore my advice would be to do it the other way round: Why not file out your changes file them into BYOB and make the adjustments you need. I'm pretty sure that this would be way easier and might just work.

Good luck!

Last edited by Jens (2010-07-25 17:18:51)


Jens Mönig

Offline

 

Board footer