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).
Offline
thx
Offline
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
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).
Offline
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! 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
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
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
Cool! I love complicated matters
Offline
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
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)
Offline
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!
Offline
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?
Offline
:-/ 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?
Offline
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!
Offline
okay, ill remember to extract it first.
how much space does BYOB use?
Last edited by NXTGeek (2009-02-27 10:30:35)
Offline
ah, okay. thanks. The documentations...what format is it in? (im just curious) .PDF .txt .doc?
Offline
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