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

#1351 2010-08-08 23:37:01

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

I was trying to shorten some giant scripts of mine, and ended up making it twice as long with custom blocks!

Hmm, that's not good.  Could I see both versions?  Or just an excerpt to explain why it got twice as long?

Cool! Are you going to make a stop at MIT?

Of course!  The reason I'm here is the Scratch conference Thurs-Sat.

Are you going to shove a copy of the BYOB3 program in their faces shouting "IT WORKED! IT WORKED! IN YOUR FACE!" while cackling madly?  tongue

Now, now, we're all friends here.  Anyway, they're well aware of what we're up to -- they scheduled Jens and me for an hour-long presentation on BYOB (most paper sessions are 1/2 hour) plus I'm doing a 1/2 hour on the Berkeley course we're developing that uses BYOB.

Anyway, I'm not getting in anyone's face until list operations are fast!


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

Offline

 

#1352 2010-08-09 08:51:30

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Well the thing about these scripts are, no matter what, they are going to be long. I'm trying to make a well functioning textbox for Web Wizard 2.0 (a Prism collab). Before I had tediously created and adjusted (at least three times) 72 copies of the same basic script. There were only slight predictable changes to each of these each time (ex. change the <key [] pressed?> block each time. However, it was almost impossible to edit without extreme lag and crash potential, even in BYOB3. So I decided to make a few general purpose blocks so that I could have only one repeat of the script mentioned above with the same functionality.

Naturally I began with a (key pressed) reporter block whose value was that of the key being pressed. That was 36 "If elses" stacked inside eachother by itself. Then I needed a way of turning my (key pressed) reports into capital letters so that when the up arrow key was pressed their value would be different than the lowercase letters. This meant creating a (CAPS []) reporter block. I couldn't think of anyway to add this without using brute coding, so one again I had 32 repeats of the same script. Then I needed a <key [] pressed?> block that would allow reporters in the drop down list space (hence my earlier question). This too, unfortunately required a bit of brute force code.

I finally managed to string it all together to get the result I wanted. Unfortunately it was much slower then my previous method, even though I used atomic on everything.

(By the way, this was all typed on an iPod touch, which is no small accomplishment)  smile

Last edited by shadow_7283 (2010-08-09 08:59:40)

Offline

 

#1353 2010-08-09 09:00:36

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Well the thing about these scripts are, no matter what, they are going to be long.

Hmm.  The ASCII CODE and ASCII AS LETTER blocks should help somewhat, but I agree, you need a (KEY PRESSED) reporter block that would ideally report an ASCII code plus 256 if ALT is down, etc.


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

Offline

 

#1354 2010-08-09 09:07:59

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Yeah...
Should we advertise BYOB3 in our signatures? I might be able to create an image or something.

Offline

 

#1355 2010-08-09 09:42:03

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Yeah...
Should we advertise BYOB3 in our signatures? I might be able to create an image or something.

We have an image!

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

But, sure, if you want.  I don't really understand signature culture.  But I'd feel honored to see BYOB in your sig.  You can even make up your own image.  smile


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

Offline

 

#1356 2010-08-09 09:44:58

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

Yeah...
Should we advertise BYOB3 in our signatures? I might be able to create an image or something.

We have an image!

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

But, sure, if you want.  I don't really understand signature culture.  But I'd feel honored to see BYOB in your sig.  You can even make up your own image.  smile

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

Now it should link to the main site.  smile

Last edited by soupoftomato (2010-08-09 09:45:13)


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#1357 2010-08-09 10:29:24

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

Re: BYOB 3 - Discussion Thread

soupoftomato wrote:

Now it should link to the main site.  smile

Okay, you inspired me.

http://byob.berkeley.edu/gobo-talking.png

Last edited by bharvey (2010-08-09 10:36:39)


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

Offline

 

#1358 2010-08-09 11:21:43

TheExternal
Scratcher
Registered: 2008-11-04
Posts: 54

Re: BYOB 3 - Discussion Thread

i made a sig but how do i post it as a pic and in my signiture (with a link)

Last edited by TheExternal (2010-08-09 11:26:02)


http://i37.tinypic.com/2jdp99s.png
The funniest thing about this quote is that by the time you realize it doesn't say anything of importance, it's too late to stop reading it.

Offline

 

#1359 2010-08-09 11:30:16

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

TheExternal wrote:

i made a sig but how do i post it as a pic and in my signiture (with a link)

At the top of the forums click Profile, then choose Personality, and there is a box for a signature. Then do this:

Code:

<url=byob.berkeley.edu><img>image url</img></url>

Replace all the angle brackets with the square ones, that was the only was I could show the code instead of an actual image.

This should work, but I have a fever of 102 and I'm hallucinating Gobos, so don't blame me if it doesn't  big_smile


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#1360 2010-08-09 11:39:57

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

TheExternal wrote:

i made a sig but how do i post it as a pic and in my signiture (with a link)

At the top of the forums click Profile, then choose Personality, and there is a box for a signature. Then do this:

Code:

<url=byob.berkeley.edu><img>image url</img></url>

Replace all the angle brackets with the square ones, that was the only was I could show the code instead of an actual image.

Actually, you don't need angle brackets to prevent that. That's what Code areas are for.


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#1361 2010-08-09 11:48:15

TheExternal
Scratcher
Registered: 2008-11-04
Posts: 54

Re: BYOB 3 - Discussion Thread

ok... is it working? i can't see the pic because my browser is messed up (its not just pics)


http://i37.tinypic.com/2jdp99s.png
The funniest thing about this quote is that by the time you realize it doesn't say anything of importance, it's too late to stop reading it.

Offline

 

#1362 2010-08-09 12:29:48

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

TheExternal wrote:

ok... is it working? i can't see the pic because my browser is messed up (its not just pics)

I see an image placeholder down there but it looks like you have the URL wrong, because I can't see the picture itself.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#1363 2010-08-09 12:31:43

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

Re: BYOB 3 - Discussion Thread

^ same!


You can now reach me on Twitter @johnnydean1_

Offline

 

#1364 2010-08-09 12:52:32

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

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

I have a fever of 102 and I'm hallucinating Gobos

Get well soon!


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

Offline

 

#1365 2010-08-09 12:54:34

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

Re: BYOB 3 - Discussion Thread

TheExternal wrote:

ok... is it working?

This is weird; at first all I saw in your sig was the URL (as text), but when I copied the URL and pasted it into another browser window, and thereby saw your intended sig picture, and then went back to the Scratch forum page, now I see the picture!  (With an extra "[/img]" after it.)

EDIT: I guess you changed something, because now it works perfectly.  smile

Last edited by bharvey (2010-08-09 12:59:38)


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

Offline

 

#1366 2010-08-09 12:56:08

TheExternal
Scratcher
Registered: 2008-11-04
Posts: 54

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

This should work, but I have a fever of 102 and I'm hallucinating Gobos, so don't blame me if it doesn't  big_smile

get well soon!


http://i37.tinypic.com/2jdp99s.png
The funniest thing about this quote is that by the time you realize it doesn't say anything of importance, it's too late to stop reading it.

Offline

 

#1367 2010-08-09 12:57:59

TheExternal
Scratcher
Registered: 2008-11-04
Posts: 54

Re: BYOB 3 - Discussion Thread

bharvey wrote:

TheExternal wrote:

ok... is it working?

This is weird; at first all I saw in your sig was the URL (as text), but when I copied the URL and pasted it into another browser window, and thereby saw your intended sig picture, and then went back to the Scratch forum page, now I see the picture!  (With an extra "[/url]" after it.)

oh, that because i was updating my sig and i kept on messing up, so you probally got caught in the middle of it.  tongue  LOL


http://i37.tinypic.com/2jdp99s.png
The funniest thing about this quote is that by the time you realize it doesn't say anything of importance, it's too late to stop reading it.

Offline

 

#1368 2010-08-09 13:09:45

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

Re: BYOB 3 - Discussion Thread

Okay, how about this:

http://byob.berkeley.edu/all-first-class.png

The thing is, it's not strictly true -- we haven't yet made sprites, costumes, etc. first class in 3.0.  But it's our goal, so maybe it's okay to say it?

EDIT: Of course the background isn't beautiful like Shadow's sig...

Last edited by bharvey (2010-08-09 13:19:26)


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

Offline

 

#1369 2010-08-09 13:25:25

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Sweet, I'm using it.  smile

Anyway, I need to get started on a project in BYOB, I just don't know what.  hmm


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#1370 2010-08-09 14:06:05

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

EDIT: Of course the background isn't beautiful like Shadow's sig...

tongue  Would you like me to fade out the edges for you? Add in a couple sun spots? Maybe add a shadow to the text and Gobo?  lol

Last edited by shadow_7283 (2010-08-09 14:06:31)

Offline

 

#1371 2010-08-09 16:09:18

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Hmm... I tried to save a project and got this error message and result:
http://i33.tinypic.com/6fz0h3.png
Here is a link to a larger version.

After which everything I did gave me an error message. I went to presentation mode and back out to see if it would fix it, and then all I had was a blank screen.

You probably won't be able to reproduce it, but...

That's happened to me with the source before, a more common one is going to a position with around twenty digits, it can't handle it and just turns the stage into a large red square with an X in it (Squeak's way of saying that the drawing methods failed)


nXIII

Offline

 

#1372 2010-08-09 18:50:23

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Is there anyway to recover Scratch after it happens?

Offline

 

#1373 2010-08-09 20:28:23

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Restart?


nXIII

Offline

 

#1374 2010-08-09 20:31:03

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

nXIII wrote:

Restart?

Meaning not lose all your data?

Offline

 

#1375 2010-08-09 21:21:32

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Save, then restart?
The red thing is internal to the ScratchScriptEditorMorph, it shouldn't bother your program unless the blocksBin was corrupted.


nXIII

Offline

 

Board footer