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

#3926 2011-10-24 11:52:49

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

roijac wrote:

http://i.imgur.com/qUhWG.png
was bored  big_smile

That's cool.  smile  (pun...)  You know that the official Koch snowflake fractalizes the first and last section of each side, too, right?

Try this:
http://www.imgpaste.com/PDjg.png


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#3927 2011-10-24 12:21:11

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

roijac wrote:

http://i.imgur.com/qUhWG.png
was bored  big_smile

That's cool.  smile  (pun...)  You know that the official Koch snowflake fractalizes the first and last section of each side, too, right?

i didn't even know how it's called  big_smile
anyway, this is still cool  smile


do you know what's going on with taneb? he should say if it worked with byob lower-cased (the .deb package)

edit: this could also be cool if you could answer this, as i need this to make the linux image run correctly  smile

Last edited by roijac (2011-10-24 12:23:01)

Offline

 

#3928 2011-10-24 12:57:01

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

Koch Curves championship goes on !

http://www.xleroy.net/ByobTuto/New/Snap!/kochcurve01.gif

http://www.xleroy.net/ByobTuto/New/Snap!/kochcurve02.gif

Offline

 

#3929 2011-10-24 15:20:35

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

When I try to make interesting fractals they get disjointed.


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#3930 2011-10-24 17:57:12

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

@ bharvey & Jens
Don't think that we are all mad of fractals! But while we are waiting for serious matters like Lists and Save we spend our time by playing in the school-ground...

Offline

 

#3931 2011-10-24 19:36:49

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

Re: BYOB 3 - Discussion Thread

I just updated the pre-pre-pre-alpha nasciturus version with my first shot at variable watchers (show/hide variable blocks).

Enjoy!


Jens Mönig

Offline

 

#3932 2011-10-24 23:55:20

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

Re: BYOB 3 - Discussion Thread

Awesome! http://img51.imageshack.us/img51/9724/snapwatcher.png
That's much improved on BYOB3's variable watchers.  smile

Last edited by shadow_7283 (2011-10-24 23:56:49)

Offline

 

#3933 2011-10-24 23:57:40

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

do you know what's going on with taneb? he should say if it worked with byob lower-cased (the .deb package)

Nope, all I know about y'all is what I read here.  smile

edit: this could also be cool if you could answer this, as i need this to make the linux image run correctly  smile

All the media files are found in the same directory from which you ran Scratch.image or BYOB.image.  Here is the script I put in /usr/bin/byob:

Code:

#!/bin/sh
# Squeakvm wrapper to load Scratch image.
#------------------------------------------------------------
/usr/bin/scratch_squeak_vm \
-plugins /usr/lib/scratch/Plugins \
-vm-sound-pulse \
/usr/lib/scratch/BYOB.image "${@}"

Is that what you wanted?

P.S.  That's my least favorite Queen song.  sad   And anyway Queen are a little past the peak of good music, which begins and ends with the Beatles.

Last edited by bharvey (2011-10-25 00:16:08)


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

Offline

 

#3934 2011-10-24 23:58:45

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

Re: BYOB 3 - Discussion Thread

14God wrote:

When I try to make interesting fractals they get disjointed.

What browser, what OS?  And posting a picture of the code and the result would help too.  Tnx.


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

Offline

 

#3935 2011-10-25 00:00:43

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

Re: BYOB 3 - Discussion Thread

xly wrote:

serious matters like Lists and Save

You'll (all) be pleased to know that a first pass at both of these was just today written by nXIII, so they should make it into the pre-alpha reasonably soon (well, except for the display of lists, a can of worms for Jens).


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

Offline

 

#3936 2011-10-25 00:03:10

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB 3 - Discussion Thread

0.o nXIII???


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#3937 2011-10-25 00:03:35

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

That's much improved on BYOB3's variable watchers.

Hey, don't make fun of Jens; that's my job!


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

Offline

 

#3938 2011-10-25 00:05:26

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

Re: BYOB 3 - Discussion Thread

MathWizz wrote:

0.o nXIII???

Yeah, well, he hasn't been following the forum lately, but he still exists.  I'm an eyewitness.  smile


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

Offline

 

#3939 2011-10-25 01:35:18

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

http://www.imgpaste.com/TfWA.png

Oh, and Jens, can the blocks.push statements, by any chance, be added to an onload kind of function so I can dynamically push blocks in? Then I could try to make a 'make a variable' block or a 'make a block' block.
Currently I'm trying to make do with adding blocks to the variables palette programmatically.

Last edited by Hardmath123 (2011-10-25 01:39:30)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#3940 2011-10-25 07:05:20

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

(ironic remark about a glitch in variable watchers)

Fixed!  big_smile


Jens Mönig

Offline

 

#3941 2011-10-25 07:17:04

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

Re: BYOB 3 - Discussion Thread

Hi Hardmath123,

it's great that you're finding out about how to script your own blocks using the Snap! source code. The mechanism that adds blocks to the palette is still very much preliminary, because the whole GUI and the microworld components are still mostly non-existing. What I've put into the nasciturus version so far is really only a bunch of dummy elements that let me try the core language features (the blocks and the evaluator).

But even once we'll start to focus on the GUI and on turning this into a real product it's unlikely that we'll actively encourage adding your own primitives, because - you know... after all - Snap! is all about Building Your Own Blocks in Snap! itself.

Last edited by Jens (2011-10-25 07:18:20)


Jens Mönig

Offline

 

#3942 2011-10-25 09:16:00

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

All the media files are found in the same directory from which you ran Scratch.image or BYOB.image.  Here is the script I put in /usr/bin/byob:

Code:

#!/bin/sh
# Squeakvm wrapper to load Scratch image.
#------------------------------------------------------------
/usr/bin/scratch_squeak_vm \
-plugins /usr/lib/scratch/Plugins \
-vm-sound-pulse \
/usr/lib/scratch/BYOB.image "${@}"

Is that what you wanted?

nope, i meant to the way of changing the image file  smile

bharvey wrote:

P.S.  That's my least favorite Queen song.  sad   And anyway Queen are a little past the peak of good music, which begins and ends with the Beatles.

Beatles are nice, not more of this.
don't take the new song personally  tongue

Offline

 

#3943 2011-10-25 09:21:40

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

jens, you might want to disable script vars watchers, or add something like 'hide all watchers', because when i manage to display a temp var, it cannot be hidden any-more...  big_smile

edit: unless with manually destroying the instance, of course  smile

Last edited by roijac (2011-10-25 09:29:54)

Offline

 

#3944 2011-10-25 09:31:28

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

nope, i meant to the way of changing the image file

Okay, I'm confused; the original question was

Anyone knows how to change them (like the 'costumes' path etc.)?

... to which the answer is that costumes, etc, come from the same folder as the image file.  Do you mean changing the path to the image file?  That's what the script I posted does; it calls the Squeak VM with the full path to BYOB.image given explicitly.

don't take the new song personally  tongue

Much better.  smile


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

Offline

 

#3945 2011-10-25 09:51:01

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

jens, you might want to disable script vars watchers, or add something like 'hide all watchers', because when i manage to display a temp var, it cannot be hidden any-more...  big_smile

edit: unless with manually destroying the instance, of course  smile

Well, the idea is that in Snap! you now can watch every variable, even script variables. Personally, variable watchers - cool as they are - aren't my all time favorite Scratch feature, and I think it might be a good idea to assign the value of a script variable to a watched global one, so you can control the watcher after the script as been executed. However, watchers certainly are a great tool for debugging scripts and block definitions. Therefore I believe that manually deleting unused watchers (drag them to the palette to delete them) is okay.


Jens Mönig

Offline

 

#3946 2011-10-25 10:25:31

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

Re: BYOB 3 - Discussion Thread

OK, I give up, how do you watch a script variable?


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

Offline

 

#3947 2011-10-25 10:42:21

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

OK, I give up, how do you watch a script variable?

script variables (a)
   show variable (a)
   repeat (100)
      change variable (a) by (1)
   hide variable (a)

smile


Jens Mönig

Offline

 

#3948 2011-10-25 10:47:34

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Awesome! http://img51.imageshack.us/img51/9724/snapwatcher.png
That's much improved on BYOB3's variable watchers.  smile

Wait.... does that variable having a script mean you can share a script by a mere code now! Can you simply set a variable to a text and it will then be ably to be ran? Then you can share a script!


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#3949 2011-10-25 10:57:32

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

script variables (a)
   show variable (a)

Ah.  But it doesn't work for inputs to scripts, which don't show up in the pulldown.


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

Offline

 

#3950 2011-10-25 11:14:13

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Two things:
1. Can you remove the 'are you sure you want to leave this page' dialog? It's annoying.
2. Is this intentional?
http://www.imgpaste.com/Gu8p.png


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

Board footer