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

#3951 2011-10-25 11:26:50

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

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.

script variables (a)
   set variable (a) to 'a'
   show variable (a)

Offline

 

#3952 2011-10-25 11:29:14

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

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.

i meant changing the path to the costumes, sounds etc. directory in the image file  tongue

Last edited by roijac (2011-10-25 11:29:30)

Offline

 

#3953 2011-10-25 11:35:58

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

i meant changing the path to the costumes, sounds etc. directory in the image file

There isn't a media path in the image file!  Wherever the image file itself is, that's where the media files are too.  So the only relevant path is the one you give for the image file when you start the VM.


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

Offline

 

#3954 2011-10-25 16:13:43

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

Re: BYOB 3 - Discussion Thread

Polar curve rho = sin (angle) * sin (2 * angle)
Once the SIN block is correctly set, it can be deleted from the Script area, but still can be used by any another block. Thus more space is available on the Script area for the final custom block ROTH

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

Offline

 

#3955 2011-10-25 17:52:27

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

shadow_7283 wrote:

(ironic remark about a glitch in variable watchers)

Fixed!  big_smile

You do know I thought it was a feature, not a bug, right?  tongue

Offline

 

#3956 2011-10-25 19:42:13

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

Re: BYOB 3 - Discussion Thread

tonight's Snap! pre-pre-pre-alpha update features automatic positioning of newly created watchers. Running HIDE VARIABLE and keeping the variable name slot empty deletes all watchers observing temporary variables from the stage. That way you can now remove "dead" watchers on script variables (in case you wonder: Once a script has terminated, its - temporary - script variables can no longer be accessed by any blocks. Running the same script again will instead produce a new set of same-named temporaries).

Last edited by Jens (2011-10-25 19:52:36)


Jens Mönig

Offline

 

#3957 2011-10-26 01:28:23

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

tonight's Snap! pre-pre-pre-alpha update features automatic positioning of newly created watchers. Running HIDE VARIABLE and keeping the variable name slot empty deletes all watchers observing temporary variables from the stage. That way you can now remove "dead" watchers on script variables (in case you wonder: Once a script has terminated, its - temporary - script variables can no longer be accessed by any blocks. Running the same script again will instead produce a new set of same-named temporaries).

nice!  smile
you still may want fix the bug when you use run(hide()tongue

Offline

 

#3958 2011-10-26 10:32:19

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

you still may want fix the bug when you use run(hide())

You can run, but you can't hide?


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

Offline

 

#3959 2011-10-26 10:33:39

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

You do know I thought it was a feature, not a bug, right?

No, if it had been editable, maybe it would have been a feature.  But we'll get to editable blocks eventually.


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

Offline

 

#3960 2011-10-26 12:37:56

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

roijac wrote:

you still may want fix the bug when you use run(hide())

You can run, but you can't hide?

when i use it without run block,it hides all the blocks fine, but when i put it into a run block, it just looks as it would've been running an infinite loop  big_smile

Offline

 

#3961 2011-10-26 14:49:07

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

roijac wrote:

i meant changing the path to the costumes, sounds etc. directory in the image file

There isn't a media path in the image file!  Wherever the image file itself is, that's where the media files are too.  So the only relevant path is the one you give for the image file when you start the VM.

scratch-UI-dialogs/scratch file chooser dialog/shortcuts
now i need to find out how to hack BYOB without the development.bat :S
any chance of help?

Offline

 

#3962 2011-10-26 20:55:20

Sidharth
Scratcher
Registered: 2007-12-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

Yay! Polar equation grapher! (Sorry, this is all I could come up with...)

http://i.imgur.com/kKb6L.png

twig functions pweeze? Taywor sewies too swow  sad

EDIT: and don't forget repeat until  smile  I like that one.

ANOTHER EDIT: Would it be possible to create a feature to save the current project in localStorage on close and reload it on next open until the save feature comes?

Last edited by Sidharth (2011-10-26 21:04:03)


http://www.danasoft.com/citysign.jpg

Offline

 

#3963 2011-10-26 23:54:06

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

Re: BYOB 3 - Discussion Thread

Sidharth wrote:

twig functions pweeze? Taywor sewies too swow  sad

Yeah, yeah.  Hold your horses.

EDIT: and don't forget repeat until  smile  I like that one.

Me too.  Hold your horses.

ANOTHER EDIT: Would it be possible to create a feature to save the current project in localStorage on close and reload it on next open until the save feature comes?

No, once we can save at all we can save.  (And it'll be available both on local storage and to a URL of your choice.)  It really is coming soon.  None of us like not having it!


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

Offline

 

#3964 2011-10-27 05:44:17

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

Re: BYOB 3 - Discussion Thread

Repeat until:
http://www.imgpaste.com/DKfW.png


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

Offline

 

#3965 2011-10-27 09:57:58

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

Re: BYOB 3 - Discussion Thread

rendering the feigenbaum tree... done
uploading image... done
big_smile

Hardmath123 wrote:

I did that on 3.1.1. It took 45 seconds.  tongue

i also did that. on scratch. and it took about 1 min  tongue

http://i.imgur.com/ZTaZb.png

Last edited by roijac (2011-10-27 10:36:17)

Offline

 

#3966 2011-10-27 10:20:39

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

Re: BYOB 3 - Discussion Thread

I did that on 3.1.1. It took 45 seconds.  tongue


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

Offline

 

#3967 2011-10-28 10:01:29

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

bharvey wrote:

roijac wrote:

i meant changing the path to the costumes, sounds etc. directory in the image file

There isn't a media path in the image file!  Wherever the image file itself is, that's where the media files are too.  So the only relevant path is the one you give for the image file when you start the VM.

scratch-UI-dialogs/scratch file chooser dialog/shortcuts
now i need to find out how to hack BYOB without the development.bat :S
any chance of help?

never mind, i worked it out, i added this line into 'System-Files/FileDirectory(class)>system start up>start up

Code:

self setDefaultDirectoryFrom: '/usr/share/BYOB/BYOB.ini'.

anyway, you don't mind if i ship the .deb with modified image file, right?
(i only changed this and added an option to shift-click edit without development.bat, as it doesn't work on linux)
if it's ok, i'll post the updated .deb package  big_smile
apropos .deb: do you want me to try upload BYOB to the Ubuntu Software Center?

Last edited by roijac (2011-10-28 11:20:58)

Offline

 

#3968 2011-10-28 12:28:33

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

(i only changed this and added an option to shift-click edit without development.bat, as it doesn't work on linux)
if it's ok, i'll post the updated .deb package  big_smile
apropos .deb: do you want me to try upload BYOB to the Ubuntu Software Center?

That's all fine, although I don't understand why you want to build in a hardcoded location for the media files.


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

Offline

 

#3969 2011-10-28 19:56:15

XenoKStudios
Scratcher
Registered: 2011-10-02
Posts: 87

Re: BYOB 3 - Discussion Thread

I have a question -  what about linux users?!!??


http://www.weebly.com/uploads/9/6/6/5/9665487/4685517.png?386

Offline

 

#3970 2011-10-28 20:04:08

XenoKStudios
Scratcher
Registered: 2011-10-02
Posts: 87

Re: BYOB 3 - Discussion Thread

(I mean the ones with DansGuardians blocking the file extensions (.exe, and .zip)
i think it will be really useful for a linux exclusive version!  I'd like scratch and BYOB separate


http://www.weebly.com/uploads/9/6/6/5/9665487/4685517.png?386

Offline

 

#3971 2011-10-28 20:09:09

XenoKStudios
Scratcher
Registered: 2011-10-02
Posts: 87

Re: BYOB 3 - Discussion Thread

Is there an Oreilly book on squeak out there?  I'd love to get into squeak, and modifying scratch


http://www.weebly.com/uploads/9/6/6/5/9665487/4685517.png?386

Offline

 

#3972 2011-10-29 04:56:11

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Too many people are confused be the "boolean unevaluated" inputs. If you go to the block libary, there are loads of posts of blocks which wont work  because they are waiting for a pre-evaluated boolean to change, which isn't going to happen, such as

SJRCS_011 wrote:

BYOB blocks:
Forever when % is true:
http://farm7.static.flickr.com/6225/6250107909_bfd715b8eb_m.jpg
http://farm7.static.flickr.com/6093/6250636584_6acb8de7df_m.jpg
Forever when % is false:
http://farm7.static.flickr.com/6103/6250662120_ce113737e5_m.jpg
http://farm7.static.flickr.com/6045/6250134297_92662212e7_m.jpg

and also, in this thread,

Hardmath123 wrote:

Repeat until:
http://www.imgpaste.com/DKfW.png

will not work for the same reason. I think that if a block has a pre-evaluated boolean insert which is placed in a wait until block or a repeat until block, a message should come up saying that it will not work as expected because of this and it will give them the option to correct it automaticly and replace the boolean with boolean unevaluated, and replace any uses of this variable with the call block with the variable inside.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#3973 2011-10-29 07:20:48

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

I think that if a block has a pre-evaluated boolean insert which is placed in a wait until block or a repeat until block, a message should come up saying that it will not work as expected because of this and it will give them the option to correct it automaticly and replace the boolean with boolean unevaluated, and replace any uses of this variable with the call block with the variable inside.

More generally, I think we should move in the direction of tutorial error messages.  Right now, even when we do catch an error, all we do is turn the block red.  Scratch made a deliberate design decision to try to prevent errors (e.g. with the different block shapes) rather than report them, but we're expecting people to write harder programs.

But, as usual, don't expect it in 4.0.


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

Offline

 

#3974 2011-10-29 07:43:43

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

and also, in this thread,

Hardmath123 wrote:

Repeat until:
http://www.imgpaste.com/DKfW.png

will not work for the same reason.

Huh? It works for me. It might be a browser/OS issue, I have tried it on Firefox and Safari Mac. Would (call(bool)) fix it? If not, how do I fix it?


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

Offline

 

#3975 2011-10-29 08:59:22

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Huh? It works for me. It might be a browser/OS issue, I have tried it on Firefox and Safari Mac. Would (call(bool)) fix it? If not, how do I fix it?

No, browser issues are about graphics or I/O, not about program logic.  When we have the long input dialog so you can set types, you'd set the second input to be "Boolean (unevaluated)" but meanwhile you have to use THE [X = 5] BLOCK in the call, and use CALL [#2] in the definition.

If it does work for you, it's a Snap! bug.  smile   (I'm too tired to check right now.)


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

Offline

 

Board footer