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

#101 2009-01-10 04:32:20

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

Re: ITopic: Build Your Own Blocks (BYOB)

NXTGeek, I think what you're looking for is the "atomic" checkbox in the BYOB block editor. If this checkbox is marked, then the block's script is processed at maximum (Scratch) speed. If it is turned off it is executed at regular speed.

terminator355, you can use BYOB on a mac: Just drag the file named BYOB.image and drop it onto a copy of the file "scratch.app", which should be copied into the same directory as the image file. Alternatively you can also copy the file "BYOB.image" into your Scratch directory (this way all the plugins - like unicode and presentation mode will work flawlessly, the same as in Scratch).


Jens Mönig

Offline

 

#102 2009-01-10 09:57:39

terminator355
Scratcher
Registered: 2008-07-31
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

thx


No new stuff for now guys  wink  join me for some Black Ops on xbox: termhn or for some rock band on PS3: rocket232

Offline

 

#103 2009-01-11 12:52:11

onedudeuk
Scratcher
Registered: 2009-01-11
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

Looks nice. Please look at my project http://scratch.mit.edu/projects/onedudeuk/377688 .
I have added this to all my posts


http://i.imgur.com/1FaX3.gif
http://i.imgur.com/yu0s1.gif

Offline

 

#104 2009-01-29 15:44:46

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

Re: ITopic: Build Your Own Blocks (BYOB)

Jens, I started translating your incredible BYOB but I got stuck for two translations, "atomic" and "report". I tried with:

msgid "atomic"
msgstr "atomico"

msgid " atomic"
msgstr " atomico"

msgid "%b atomic"
msgstr "%b atomico"

msgid "%s atomic"
msgstr "%s atomico"

msgid "report"
msgstr "risultato"

msgid "report "
msgstr "risultato "

msgid "report %s"
msgstr "risultato %s"

msgid "report %b"
msgstr "risultato %b"

msgid "report %x"
msgstr "risultato %x"

msgid "report %y"
msgstr "risultato %y"

but I wasn't lucky. Which is the correct "signature"?

BTW, this is a wonderful evolution for Scratch. Thanks for having created this.

Best

Stefano

Offline

 

#105 2009-01-29 16:03:17

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

Re: ITopic: Build Your Own Blocks (BYOB)

Hi Stefano,

it's great that you're translating BYOB! I'm not sure, however, if editing the .po file will translate the new strings I introduced in the prototype's block editor (or rather I am quite certain that I did not localize each and every string, but I will look into it now that you're requesting it).

I'm not sure how to translate "atomic" correctly, either. Frankly, I never thought much about concurrency models before I started playing with BYOB. The difference between "atomic" and non-atomic script execution in BYOB is, that atomic executes a custom block "as a single command", i.e. it will not yield to any other (Scratch-) process and not refresh the screen until termination of the block's script. Non-atomic (or "interleafed") execution, on the other hand, will work like any other Scratch script (yielding during every "timed" block and after each innermost loop, as well as refreshing the screen). So, "atomic" in BYOB is less of a speed issue and more a "scheduling" control.

I think "atomico" is the best you can come up with, and "risultato" sounds right to me (another valid way to look at would be "answer" or "return", but "result" really describes it best).


Jens Mönig

Offline

 

#106 2009-01-30 08:48:58

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

Re: ITopic: Build Your Own Blocks (BYOB)

Thanks for the prompt reply, Jens. And sorry for having badly explained what I meant. I already translated the po file and it really works fine!  smile  Except for the strings I mentioned. So I need to know which are the original strings inside BYOB.

For example I successfully translated

msgid "Close open block editor?"
msgstr "Chiudere l'editor di blocchi aperto"

but I'm unable to translate the strings that (I guess) do contain some parameters, e.g. in the original po file something like

msgid "item %i of %L"
msgstr "elemento %i di %L"

Which %'s should I use (and where)?

Thanks for your help and, again, congratulations for your wonderful job.

Offline

 

#107 2009-01-30 16:57:37

DarthPickley
Scratcher
Registered: 2008-06-13
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

would you really need to translate the programming and variables, the unseen aspects? couldn't you just make the visible part, where it displays "atomic" and "reporter", translated to the other languages? or do I not understand what you are talking about?

Offline

 

#108 2009-01-31 03:47:48

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

Re: ITopic: Build Your Own Blocks (BYOB)

I tried translating as follows in the po file

msgid "atomic"
msgstr "atomico"

msgid "report"
msgstr "risultato"

but it doesn't work. The translations don't show up in the  interface when I switch to Italian. So I suspect that the two strings have a different pattern in the code (maybe they have parameters...?). Or (but I don't know exactly which is the internal translation mechanism of Scratch) it could be that those strings are hardcoded and are not affected by the translation mechanism. That is why I'm asking Jens for clarifications about what could "surround" the two strings in BYOB's code: parameters? spaces?... something else?

Last edited by s_federici (2009-01-31 06:09:08)

Offline

 

#109 2009-02-04 09:09:53

ChainzzDB
Scratcher
Registered: 2008-08-11
Posts: 58

Re: ITopic: Build Your Own Blocks (BYOB)

BYOB is awesome. I made a "previous costume" block. Now i'm working on some other blocks. When they will become sharable?


http://scratch.mit.edu/users/ChainzzDB

Offline

 

#110 2009-02-05 05:29:50

karx
Scratcher
Registered: 2008-04-28
Posts: 80

Re: ITopic: Build Your Own Blocks (BYOB)

Cool! I love complicated matters

Offline

 

#111 2009-02-05 17:21:42

4dragontester
Scratcher
Registered: 2009-02-03
Posts: 3

Re: ITopic: Build Your Own Blocks (BYOB)

Can you share blocks? Can you import it into Scratch somehow? It's not very nice to be able to make something and then not have it be compatible at all with other projects.

Offline

 

#112 2009-02-19 22:28:07

Nate3D
Scratcher
Registered: 2009-01-03
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

This is Incredible!!!!
<set{Amazing}to (100%)>

Last edited by Nate3D (2009-02-22 20:28:21)


Want a cool custom logo? Click the picture below!
http://img26.imageshack.us/img26/6698/nate3d.png

Offline

 

#113 2009-02-22 11:31:21

jeffy24
Scratcher
Registered: 2008-12-23
Posts: 61

Re: ITopic: Build Your Own Blocks (BYOB)

Something I don't get: I make a "previous costume" block, and I share it with the stage. It works fine. Then I make a "previous background" block. I share it with a sprite. It doesn't work. Can somebody help me?

Last edited by jeffy24 (2009-02-22 14:21:12)


I'M A CREEPER http://4.bp.blogspot.com/-Fj1t1TmbPtc/UAp3ludvGCI/AAAAAAAAAlI/RXSkO96QN20/s1600/creeper.png

Offline

 

#114 2009-02-22 18:57:03

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

Re: ITopic: Build Your Own Blocks (BYOB)

Hi jeffy24, thanks for noticing this and pointing this out!

Scratch lets you copy blocks addressing backgrounds from the stage to a sprite simply by dragging and dropping them (and the other way round). In the version of Scratch from which I built BYOB (Scratch 1.3) a "costume" block dragged from a sprite to the stage will work correctly, but a "background" block dragged from the stage to a sprite will produce a red outline indicating an error. This looks like a Scratch-bug to me, and I'm adding this to our list. Thanks again!


Jens Mönig

Offline

 

#115 2009-02-22 23:28:39

moocow4
Scratcher
Registered: 2008-09-23
Posts: 29

Re: ITopic: Build Your Own Blocks (BYOB)

i drop the byob file in scratch and it just opens normal scratch... and i double clicked byob and all that came up was scratch with a ton of funny windows... they were scratch source windows i think... if byob relies on scratch source then i dont think it would work on my comp bc scratch source doesnt... any advice?


http://scratch.mit.edu/projects/moocow4/327337 moo productions rules!

Offline

 

#116 2009-02-22 23:29:54

moocow4
Scratcher
Registered: 2008-09-23
Posts: 29

Re: ITopic: Build Your Own Blocks (BYOB)

does it only work on 1.3!!??


http://scratch.mit.edu/projects/moocow4/327337 moo productions rules!

Offline

 

#117 2009-02-23 02:31:15

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

Re: ITopic: Build Your Own Blocks (BYOB)

on windows, you open BYOB by double clicking on BYOB.EXE. On a Mac you drop the file named BYOB.image onto a copy of SCRATCH.APP in the BYOB folder


Jens Mönig

Offline

 

#118 2009-02-23 21:29:16

moocow4
Scratcher
Registered: 2008-09-23
Posts: 29

Re: ITopic: Build Your Own Blocks (BYOB)

:-/ doesnt work for me, instead it just comes up with a bunch of windows that say things like 'debug' or 'workspace' and a bunch of other things.  they look kinda like scratch source menus... I think one of them might've been a scratch source menu.  When i exit out of the menus it comes up with just a gray screen and he header for the page is
quit? !' and then a bunch of stuff about my account and where the file is located then it comes up with '\source code 1.3.1.image)'  any help?


http://scratch.mit.edu/projects/moocow4/327337 moo productions rules!

Offline

 

#119 2009-02-24 04:33:57

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

Re: ITopic: Build Your Own Blocks (BYOB)

Hi moocow4, I'm sorry you're having difficulties with the BYOB prototype. I just verified the BYOB download, extracted the files and double clicked on BYOB.exe. Everything worked hassle-free, so I'm afraid I cannot help you, although it sounds like you're trying to combine different files from different downloads. Remember: Everything you need for BYOB (under Windows) is included in a single download.

Oh, one other thing: You need to really EXTRACT the zip-file (!) If you try to run the .exe from the compressed folder, you will be getting the errors you report.

Good luck!


Jens Mönig

Offline

 

#120 2009-02-27 10:30:19

NXTGeek
Scratcher
Registered: 2008-03-27
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

okay, ill remember to extract it first.

how much space does BYOB use?

Last edited by NXTGeek (2009-02-27 10:30:35)

Offline

 

#121 2009-03-02 12:49:08

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

Re: ITopic: Build Your Own Blocks (BYOB)

BYOB currently uses about 10.3 MB of disk space, including sample projects, documentation and .exe-compiler.


Jens Mönig

Offline

 

#122 2009-03-03 11:04:16

NXTGeek
Scratcher
Registered: 2008-03-27
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

ah, okay. thanks. The documentations...what format is it in? (im just curious) .PDF .txt .doc?

Offline

 

#123 2009-03-09 14:30:08

amarelli
Scratcher
Registered: 2009-02-18
Posts: 2

Re: ITopic: Build Your Own Blocks (BYOB)

I'm trying to use BYOB 1.0.3 and it looks great. I have a problem I can't cope with: when I try to drop a reporter block into the block editor's report field I can't do it no way! The reporter block stay over the editor window without "fall" into the "hole". Indeed the "hole" edge highlights, but the block doesn't fall in it. I use BYOB with a Mac.
Any suggestion?

Thank you
Andrea

Offline

 

#124 2009-03-09 14:49:22

amarelli
Scratcher
Registered: 2009-02-18
Posts: 2

Re: ITopic: Build Your Own Blocks (BYOB)

Well, I read the reference guide better and, approaching the "hole" from the left, at least I succeded.
Thank you Jens

Andrea

Offline

 

#125 2009-03-10 21:18:31

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

Re: ITopic: Build Your Own Blocks (BYOB)

Hi Jens,

Along with your amazing work on Elements (!), did you by chance get any further with making custom reporters accessible by other objects?

Thanks!

Offline

 

Board footer