Kingdaro wrote:
http://img243.imageshack.us/img243/148/scripts1.gif
That kinda stuff. I was able to make the broadcasts drop-down menu, for some reason, on accident. Is it a hidden feature or what?
And don't tell me it's impossible, because if I did it, then it's possible. I'm trying to replicate it for proof, but no luck since I don't know what exactly I typed in. BUT...
Since I know it's actually possible, how would I do it?
Ahhh... ok.
The code for the block in squeak (The recive broadcast block in scratch) looks like this:
('when I receive %e' #E #-)Does that help?
Offline
That ' symbol might be the answer to my problems. I'll look a bit more at the code. Thanks!
Edit: AH BULL. It didn't work. T.T
EDIT: The ' has nothing to do with it. Time to start experimenting again. T.T
Last edited by Kingdaro (2010-04-07 15:45:07)
Offline
Jens wrote:
if BYOB causes a Squeak error in user mode it won't let you enter a debugger. Instead a read-only message box pops up informing you about the stack that caused the error, that's why you cannot alter the source code at the moment (shift-clicking anywhere also won't help). Again, I'm planning to change this with the next version.
I know that, but it wasn't the same type of error! It was a... No, wait. You will correct it if I tell you... Do you want to know?
Sorry I'm being difficult.
Offline
Hi Kingdaro,
in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs
In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.
Hi MathWhizz,
nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window
(and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)
Offline
Jens wrote:
Hi Kingdaro,
in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs![]()
In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.
Hi MathWhizz,
nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window(and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)
So it all comes with practice with Squeak!
Offline
Jens wrote:
Hi Kingdaro,
in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs![]()
In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.
Hi MathWhizz,
nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window(and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)
No, no, no... It was a syntax error... Anyway, I found a better way of doing it!
Open Elements and type "Preferences enableProgrammerFacilities" into the blue block.
Now select it and press alt + d. Alt click and you get the halo!
Offline
MathWizz wrote:
Jens wrote:
Hi Kingdaro,
in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs![]()
In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.
Hi MathWhizz,
nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window(and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)
No, no, no... It was a syntax error... Anyway, I found a better way of doing it!
Open Elements and type "Preferences enableProgrammerFacilities" into the blue block.
http://img413.imageshack.us/img413/9441/byobhacking.png
Now select it and press alt + d. Alt click and you get the halo!![]()
How'd you work that one out? I dont know anyone who would type that into the block by accident.
Offline
markyparky56 wrote:
MathWizz wrote:
Jens wrote:
Hi Kingdaro,
in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs![]()
In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.
Hi MathWhizz,
nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window(and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)
No, no, no... It was a syntax error... Anyway, I found a better way of doing it!
Open Elements and type "Preferences enableProgrammerFacilities" into the blue block.
http://img413.imageshack.us/img413/9441/byobhacking.png
Now select it and press alt + d. Alt click and you get the halo!![]()
How'd you work that one out? I dont know anyone who would type that into the block by accident.
I was looking in the blockSpec trying to find something but it was so long that I thought I would see if control + f would bring up a find menu. That didn't work so I tried alt + f. It worked! Then I thought ", if that worked, maybe alt + d will too!" And it did!
Offline
MathWizz wrote:
Jens wrote:
Hi Kingdaro,
in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs![]()
In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.
Hi MathWhizz,
nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window(and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)
No, no, no... It was a syntax error... Anyway, I found a better way of doing it!
Open Elements and type "Preferences enableProgrammerFacilities" into the blue block.
http://img413.imageshack.us/img413/9441/byobhacking.png
Now select it and press alt + d. Alt click and you get the halo!![]()
Open elements in which block?
Oh, and I found a * annoying bug. When you single click on a custom made block, IT FREEZES. You can't click anywhere, move anything, it just freezes. I have to Ctrl+Alt+Delete-Task-Manager-End-Task it every time I accidentally click. Please, PLEASE, fix it.
Last edited by Kingdaro (2010-04-08 15:22:17)
Offline
Kingdaro wrote:
MathWizz wrote:
Jens wrote:
Hi Kingdaro,
in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs![]()
In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.
Hi MathWhizz,
nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window(and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)
No, no, no... It was a syntax error... Anyway, I found a better way of doing it!
Open Elements and type "Preferences enableProgrammerFacilities" into the blue block.
http://img413.imageshack.us/img413/9441/byobhacking.png
Now select it and press alt + d. Alt click and you get the halo!![]()
Open elements in which block?
Oh, and I found a * annoying bug. When you single click on a custom made block, IT FREEZES. You can't click anywhere, move anything, it just freezes. I have to Ctrl+Alt+Delete-Task-Manager-End-Task it every time I accidentally click. Please, PLEASE, fix it.![]()
Any block. Just open it and type it into the block, highlight and press alt + d.
Offline
Alright, new problem.
It lags so much. I press the K key like 10 times and out of ten, it only registered three times when answering a question. When used as a command, it's fine.
Last edited by Kingdaro (2010-04-09 15:42:00)
Offline
Jens wrote:
Hi MathWhizz,
nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window(and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)
Actually Jens, You Can Hack Into The BYOB Source Code. I've Done It And I Have Editied The Source Code So I Can Upload Projects In BYOB. I Even Have The Project Uploaded, So If You Don't Believe Me, Go Check Out My Project Called 'I Hacked BYOB'
Offline
Jens wrote:
So, you want to define your own procedures and functions in Scratch? Build your own blocks (BYOB
)?
You might as well try this new experimental prototype I have been developing over the last weeks. You can download and read through an overview (pdf), or download the whole application (including the overview) and start playing with it right away.
This prototype lets you build your own custom blocks in Scratch using the standard Scratch blocks, as well as other blocks you defined elsewhere. You can create your own command blocks (procedures) and reporter blocks (functions), both regular ("round") and boolean ("diamond"). You can specify for each block to be atomic (run at the speed of a single block) or interleafed. Your custom blocks are defined for each sprite and can be shared among projects together with the sprite they were created for. Oh, and you can even use a block within itself (recursion).
This prototype is very, very, experimental, so be prepared to encounter lots of bugs. I'd be very interested in feedback about your experiences and insights.
Enjoy!
-Jens
Can you make it for Linux and Mac, too? I have Linux, and when I drag the image onto Scratch, it just opens Scratch 1.4. Please, only Scratchers who have Windows can use this, I guess the only other way to make your own blocks is to get the Source Code and hack it...
Offline
Dab1998 wrote:
I don't understand. What do I do when I've downloaded the files? Please tell me!
Click on the file saying: Byob.exe and it should open BYOB, and then you program just like in scratch.
Offline
Well if byob3 is coming around August... or you hope it is, you should get the publics opinion on blocks. I hope its even more amazing than byob2!
Offline
dav09 wrote:
Well if byob3 is coming around August... or you hope it is, you should get the publics opinion on blocks. I hope its even more amazing than byob2!
![]()
Well it couldn't really be less amazing could it? Unless it was covered with bunny rabbits and flowers, that would just be wierd.
Offline
Jens wrote:
Hi, ElectricSparx.
The BYOB image also works on Macs and presumably on Linux, too. Copy the .image file into the *Scratch* folder, then drop it onto Scratch.app.
Thanks, Jens. My dad helped me with that.
Offline
MathWizz wrote:
Jens wrote:
Hi Kingdaro,
in the current BYOB version (2) you cannot create custom blocks with drop-down menus that actually do things, the ones created by accident are just non-functional bugs![]()
In the next version (3), which is tentatively scheduled for August 2010, there will be more ways to specify argument types, block colors and categories etc.
Hi MathWhizz,
nevermind, I know you can produce Squeak errors in BYOB, but you cannot ever use those to hack into the BYOB source code, and you did not. If you know some Smalltalk, of course, you can simply browse and modify the complete BYOB source code using the Elements window(and if you know a little more Squeak you can use this method to open the regular Squeak tools like the SystemBrowser etc.)
No, no, no... It was a syntax error... Anyway, I found a better way of doing it!
Open Elements and type "Preferences enableProgrammerFacilities" into the blue block.
http://img413.imageshack.us/img413/9441/byobhacking.png
Now select it and press alt + d. Alt click and you get the halo!![]()
So THAT'S how you get that. I wondered.
Offline
I have a question about the excellent possibility of creating new blocks in BYOB: why not having a flag (like for variables) saying that a block is global or local? That would allow a tremendous saving in updating the same code in several sprites.
Last edited by s_federici (2010-04-14 04:22:04)
Offline
s_federici wrote:
I have a question about the excellent possibility of creating new blocks in BYOB: why not having a flag (like for variables) saying that a block is global or local? That would allow a tremendous saving in updating the same code in several sprites.
Hi Stefano,
excellent suggestion! In fact, we have this already implemented in the current BYOB alpha version. BTW I sent you an e-mail a while ago inviting you to our BYOB alpha mailing list at Berkeley, but did not get any response from you. Perhaps I had the wrong address. If you're interested in checking out our new extensions just send me an e-mail and I'll add you to our list so you'll get the (frequent) new BYOB versions.
Offline
Jens, do we have permission to add your BYOB engine to a future version of Panther (pantherprogramming.weebly.com)? The development topic is that ever-popular 'Four new blocks and block updates Scratch needs'.
Offline