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

#5051 2012-05-05 08:05:00

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

Re: BYOB 3 - Discussion Thread

Pictures for page 42 onwards.

42-2 and 42-4 can't be done because apparently I can't make a script pic of a ring (Jens...). The <[] is a []> block has a text (rather than dropdown) input because that block doesn't exist and I can't make custom dropdowns.


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

Offline

 

#5052 2012-05-05 10:11:28

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Maybe all blocks created for the stage are global?

Noooo, don't encourage him!  That was the kludge they used in Scratch, but the stage is an object just as a sprite is, and sprites don't inherit from the stage.  When we get an object system going, there will be a prototype Sprite that toplevel sprites inherit from, and that's where global blocks will go.


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

Offline

 

#5053 2012-05-05 10:17:03

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Pictures for page 42 onwards.

42-2 and 42-4 can't be done because apparently I can't make a script pic of a ring (Jens...). The <[] is a []> block has a text (rather than dropdown) input because that block doesn't exist and I can't make custom dropdowns.

Thanks!  You're awesome.


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

Offline

 

#5054 2012-05-05 11:05:17

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hardmath123 wrote:

Pictures for page 42 onwards.

42-2 and 42-4 can't be done because apparently I can't make a script pic of a ring (Jens...). The <[] is a []> block has a text (rather than dropdown) input because that block doesn't exist and I can't make custom dropdowns.

Thanks!  You're awesome.

You're welcome. What do I do about "ring" images?


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

Offline

 

#5055 2012-05-05 11:59:06

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

Save failed: TypeError: Object a ArgMorph 0 [580@419|12@13] has no method 'toXML'

(You should really let users copy and paste these error messages - I had to copy that out by hand)

That has happened in ALL my projects. Why?

GRR, I can't post the images because their URLs exceed the scratch forum character limit! You should REALLY write a PHP script to generate the images!


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

 

#5056 2012-05-05 12:53:37

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

Save failed: TypeError: Object a ArgMorph 0 [580@419|12@13] has no method 'toXML'

Sorry, I was leaving this one for Jens.

I can save projects.  Is there something in your projects that we're likely not to have serialized yet?  I thought it might be rings but I can save those.


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

Offline

 

#5057 2012-05-05 12:56:26

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

What do I do about "ring" images?

We wait until Jens fixes this bug.  smile


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

Offline

 

#5058 2012-05-05 15:46:11

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

joefarebrother wrote:

Save failed: TypeError: Object a ArgMorph 0 [580@419|12@13] has no method 'toXML'

Sorry, I was leaving this one for Jens.

I can save projects.  Is there something in your projects that we're likely not to have serialized yet?  I thought it might be rings but I can save those.

It might be the upvars? That's the only thing I can think of that all my projects had in common...


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

 

#5059 2012-05-05 17:39:59

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

It might be the upvars?

Ah, good call.  I get the same error with an upvar.  Thanks.


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

Offline

 

#5060 2012-05-06 02:39:46

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

Re: BYOB 3 - Discussion Thread

reminder to all screenshoters: you can easily take a screen shot using shift+rightclick then 'save image as' in firefox (not tested in other browsers)

Offline

 

#5061 2012-05-06 02:55:57

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

Re: BYOB 3 - Discussion Thread

Being a Mac user, I just drag it onto my folder.  smile

Jens, maybe you could set the document.title to something a bit nicer than the DataURI, so that if you open up 3 or 4, you can tell them apart. Even something as simple as Script1, Script2, etc. would help out a lot. Thanks!


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

Offline

 

#5062 2012-05-06 04:14:28

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

Re: BYOB 3 - Discussion Thread

one thing that's really annoying in C-slots inside custom blocks: you can drop reporters in there - if it miss the right place the script pops out. it really annoys once you have large scripts. could you maybe disable it?

Offline

 

#5063 2012-05-06 06:00:10

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

Re: BYOB 3 - Discussion Thread

script pictures of ringified blocks now work, thanks for the report! Please reload the Snap! page while holding down the shift key to make the changes take effect.

Last edited by Jens (2012-05-06 07:42:52)


Jens Mönig

Offline

 

#5064 2012-05-06 13:45:40

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Being a Mac user, I just drag it onto my folder.  smile

Jens, maybe you could set the document.title to something a bit nicer than the DataURI, so that if you open up 3 or 4, you can tell them apart. Even something as simple as Script1, Script2, etc. would help out a lot. Thanks!

It's an image fie though, not an HTML. The browser automatically uses the URL as the title.
Hey, you can use document.title to change the title? Cool!

Offline

 

#5065 2012-05-06 14:00:38

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

Re: BYOB 3 - Discussion Thread

he jens, can you enable script pic for PrototypeHatBlockMorph?

another little thing: did you mean to have the lamda sign on c-slots? because on page 15 it says it should be '['

Last edited by roijac (2012-05-06 14:37:24)

Offline

 

#5066 2012-05-06 14:36:15

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: BYOB 3 - Discussion Thread

scimonster wrote:

Hardmath123 wrote:

Being a Mac user, I just drag it onto my folder.  smile

Jens, maybe you could set the document.title to something a bit nicer than the DataURI, so that if you open up 3 or 4, you can tell them apart. Even something as simple as Script1, Script2, etc. would help out a lot. Thanks!

It's an image fie though, not an HTML. The browser automatically uses the URL as the title.
Hey, you can use document.title to change the title? Cool!

Unfortunately, the window is not a html page, it's a data url. It does not behave in the same way and I don't think you can set the title.


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

Offline

 

#5067 2012-05-06 14:37:58

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

rookwood101 wrote:

scimonster wrote:

Hardmath123 wrote:

Being a Mac user, I just drag it onto my folder.  smile

Jens, maybe you could set the document.title to something a bit nicer than the DataURI, so that if you open up 3 or 4, you can tell them apart. Even something as simple as Script1, Script2, etc. would help out a lot. Thanks!

It's an image fie though, not an HTML. The browser automatically uses the URL as the title.
Hey, you can use document.title to change the title? Cool!

Unfortunately, the window is not a html page, it's a data url. It does not behave in the same way and I don't think you can set the title.

That's what i said...
For the second line, i was referring to a regular HTML/JS page.

Offline

 

#5068 2012-05-06 18:59:53

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

did you mean to have the lamda sign on c-slots? because on page 15 it says it should be '['

That was Jens's idea.  He thinks it'll teach the idea better if every input type that's really a procedure, even the unevaluated-type slots, shows a lambda hint in the prototype.  I haven't updated the manual to reflect this yet.


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

Offline

 

#5069 2012-05-07 01:39:39

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

he jens, can you enable script pic for PrototypeHatBlockMorph?

done!


Jens Mönig

Offline

 

#5070 2012-05-07 03:48:04

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

Re: BYOB 3 - Discussion Thread

The script image urls are REALLY long. They actually exceed the scratch forum 64kb size limit! Could you maybe write a PHP page to generate the images? Then the url will be shorter, and I could post the images on the forums.


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

 

#5071 2012-05-07 05:03:43

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

Re: BYOB 3 - Discussion Thread

Yeah, that certainly would be a nice way to hack custom block images into the Scratch forums  smile


Jens Mönig

Offline

 

#5072 2012-05-07 05:56:09

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: BYOB 3 - Discussion Thread

scimonster wrote:

rookwood101 wrote:

scimonster wrote:


It's an image fie though, not an HTML. The browser automatically uses the URL as the title.
Hey, you can use document.title to change the title? Cool!

Unfortunately, the window is not a html page, it's a data url. It does not behave in the same way and I don't think you can set the title.

That's what i said...
For the second line, i was referring to a regular HTML/JS page.

Oops! didn't read your post correctly  smile


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

Offline

 

#5073 2012-05-07 08:57:45

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

Re: BYOB 3 - Discussion Thread

zebra coloring bug:
drop a reporter so it gets colored, now drop it elsewhere...
http://tinyurl.com/zebracoloringbug

Offline

 

#5074 2012-05-07 09:10:12

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

Re: BYOB 3 - Discussion Thread

scimonster wrote:

Hardmath123 wrote:

Being a Mac user, I just drag it onto my folder.  smile

Jens, maybe you could set the document.title to something a bit nicer than the DataURI, so that if you open up 3 or 4, you can tell them apart. Even something as simple as Script1, Script2, etc. would help out a lot. Thanks!

It's an image fie though, not an HTML. The browser automatically uses the URL as the title.
Hey, you can use document.title to change the title? Cool!

Well, as far as I'm concerned, just the window title is good enough, because I rename the images anyway.

You shouldn't use window.title "just like that", you should only use it for specially generated windows. Content windows like a normal blog shouldn't change their title during runtime as it can confuse search engines. Imagine a page titled "blogp1" in Google!  tongue  Anyway, it is in some cases even a form of SEO because someone can title a window "Our Solar System" in the HTML, then rename it to "Cheap Deals on Airline Tickets" in the JS.


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

Offline

 

#5075 2012-05-07 09:16:36

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

Re: BYOB 3 - Discussion Thread

bharvey, you gained access to my snapshots dropbox folder, i'll post when i finish part IV, is it ok?

Offline

 

Board footer