Hi Jens, when I open that project in the source code image there's no text in the unconnected think block. When I click on it the error debug comes up. So I can't copy it to the workspace. The problem appears as well in actual Scratch 1.3.1. How can I fix the problem?
Hi Thilo, the code in this project refers to an old version of Scratch (1.2) and is no longer compatible with Scratch 1.3 or later. If you would like to try it nonetheless it is also part of Chirp and integrated in the chirp.remix image. So you might want to download that one (try the files-only version). If you would like to port the code to newer versions of Scratch it's also posted on SqueakMap. BTW I'm almost done porting it myself :-)
For some reason, when I open the workspace and press "Crtl+V", it says to enter my initials. I do that and it says my initials and then the time. What's wrong????
It wasn't as hard as it may look. I already had my XML DOM/Parser module (the code of a Smalltalk class) ready for reuse from other projects I had done in Squeak, so all I had to do was to configure it to handle Scratch Scipts
Jens- Do you think you can perhaps make projects that stimulate "Peacefulness" for my gallery??? So far, mine is not looking so good because I am creating all my projects except 1! *Boo Hoo*
No, maxsteele2, Squeak doesn't use the standard keyboard shortcuts of MS Windows, but has its own ones. In Squeak you actually use "alt-a" to select all, and "alt-c" to copy the selected text to the clipboard. (If you're using a Mac you use the cmd-key instead of alt). BTW that's another "Scratch-secret"...
I don't have enough knowledge to properly comment this project, but I can recognize an excellent tool when I see it. BRAVO, Jens! "Flip" was good already; "XML" is great. I love it.
you know that is a bralliant alternitive to programming on squeak but yet you can use your project for multi purposes, or in reverse maybe you could make string variables using squeak and convert it.
Ahhhh, forget what I said - Again, I have got it working now. Sorry for clogging up the comment area. One quick question, can you impliment this into scratch, not the sqeak version.
Whoa, Eric, "Scratch for Second Life", that makes me *very* curious! Glad you find this useful. I've got some issues with the "architecture" of my code (the XML DOM probably shouldn't distinguish between content and nodes, and instead of an external "XMLConverter" class the conversion methods should probably be categories of the blocks themselves, but it's easier for me to maintain it the way it is...). Also, I've got some other methods I didn't (yet) publish, like compressing, storing and retrieving graphics within the xml format. If you're interested in any of these, just let me know!
This helps A LOT!! all i can say is your projects are really good! sorry i have to add you to friends list again since this is my new account the Lanie624 account was all messed up for some reason!
Thanks for the kind comments, folks. I didn't write the XML interface for the Scratch Team to consider including it into the official release of Scratch, it was (and still is) just a "quick and dirty" hack which provides a customized Scratch app with a nonvalidating (and thus error prone and unstable) XML-interface. I like to imagine how something like it could be used to build external utility applications around Scratch, which wouldn't need to know how to write files in Scratch's hideously complex binary file format (which is really only reproducable in a Squeak/Scratch version and hardly in any other programming language).
Excellent. I wonder if the Scratch team would be willing to consider incorporating new functions built and Beta tested by others? I'm still yearning for the ability to rename variables and broadcasts. Too often, I get into a project, (thinking I know exactly "where I'm going" with it) and then find I'm using a variable or a broadcast for something that its name no longer describes. I don't think I'll be learning Squeak anytime soon tho...
Download the 3 sprites and 16 scripts of "xml" and open it in Scratch
Project Notes
- caution: experimental -
this project includes a patch which lets you export scripts (blocks and stacks) into editable text files using an XML format, and import such XML files as scripts back into Scratch.
It also tells you how to install this patch into the officially published Scratch source code version. 1.2.1
The XML format produced by this patch is translation independent and should work with any national language you select in Scratch. It also works with any old ('obsolete') blocks of previous Scratch versions, but not with the comment block of the v.1.2 BETA.
This patch will not break any compatibility. Any projects created using its features will also work online.
Note: This is really only suitable and useful for experienced Squeak hackers.
Feel free to use and modify the source code of this patch anyway you like.
Comments
You need to be logged in to post comments
Add a Comment
can i run my scratch projects into ms VB 2008 ex that means 2 add better animation!!! yay
can't open squeak workspace but have squeak installed. please help me!
Hi Jens, when I open that project in the source code image there's no text in the unconnected think block. When I click on it the error debug comes up. So I can't copy it to the workspace. The problem appears as well in actual Scratch 1.3.1. How can I fix the problem?
Oh, I just looked into the downloaded project, and the code is still there...
Hi Thilo, the code in this project refers to an old version of Scratch (1.2) and is no longer compatible with Scratch 1.3 or later. If you would like to try it nonetheless it is also part of Chirp and integrated in the chirp.remix image. So you might want to download that one (try the files-only version). If you would like to port the code to newer versions of Scratch it's also posted on SqueakMap. BTW I'm almost done porting it myself :-)
Have made a scripts Index [url=https://mail.google.com/mail/?ui=2&ik=403f481a7f&view=att&th=11f3bb166f6da814&attid=0.1&disp=attd&zw]Here[/url]
it worked
i did it in regular scratch using the error debug
how do you get the squeak window?
How do you get the "World Menu" on Scratch 1.3?
Just (right) click anywhere on the white background within the Scratch/Squeak window
will you make a how to get a block that says [< > then { } secs has passed then < >]
wait until <> wait () secs if <>
i made a WORKING block that says [when < > is true] instead of [when flag clicked][forever if < >]
I know, is it (if H -)?
its because i did (WARNING DO NOT USE THIS BLOCK c &)
i made a new block exported then imported it said WHEN GREEN FLAG CLICKED, ()-()
i made one with : XML, options & scroll (but scrool doesnt work)
For some reason, when I open the workspace and press "Crtl+V", it says to enter my initials. I do that and it says my initials and then the time. What's wrong????
do alt+v
(view all replies)th image file is the source code.image
it works! by the way dont insert lists into chirp insert lists and files for scratch lists in chirp
Wow! I got it to work! OMG!!
how do you figure this stuff out?
It wasn't as hard as it may look. I already had my XML DOM/Parser module (the code of a Smalltalk class) ready for reuse from other projects I had done in Squeak, so all I had to do was to configure it to handle Scratch Scipts
you are a really great squeak hacker
this is you're most usefull invention yet!
(but it's already in chirp.)
Hey, Question: Can you make a custom save block? I can't seem to get the Source Code up...
in fact, I have done just that. Check out my Lists and Files prototype at: http://chirp.scratchr.org/blog
(view all replies)Jens- Do you think you can perhaps make projects that stimulate "Peacefulness" for my gallery??? So far, mine is not looking so good because I am creating all my projects except 1! *Boo Hoo*
I posted another comment on your chirp blog in scratch2exe.
a pink box thingy pops up and it doesnt work O_o
thnx! but whats ctrl do?
No, maxsteele2, Squeak doesn't use the standard keyboard shortcuts of MS Windows, but has its own ones. In Squeak you actually use "alt-a" to select all, and "alt-c" to copy the selected text to the clipboard. (If you're using a Mac you use the cmd-key instead of alt). BTW that's another "Scratch-secret"...
so you use the default in mac
and ctrl-a
nope
u mean ctrl-c
no
pleez click the love it button if you like it
(link to project)">scratch.mit.edu/projects/dingdong/91969
I don't have enough knowledge to properly comment this project, but I can recognize an excellent tool when I see it. BRAVO, Jens! "Flip" was good already; "XML" is great. I love it.
i didnt even know u could do that!! Dankt Jens
Krüpelli!
????????????????????????????????????????????
(link to project)">(link to project)
Ok. I found it in http://scratch.mit.edu/pages/source">http://scratch.mit.edu/pages/source
I couldn't find how to run a source code image? Can someone tell please...
Well, now that this is Top Loved, you have to add another Level!
I DIDN'T NO THIS WAS EVEN POSSIBLE! ITS AWESOME!!
well, not anything
(view all replies)i did anythings posble in smaaltalk----80
(view all replies)yah uh... yah? wha?
what?
(link to project)">(link to project)
you know that is a bralliant alternitive to programming on squeak but yet you can use your project for multi purposes, or in reverse maybe you could make string variables using squeak and convert it.
whoa
sweet
This should be featured!
(link to project)">(link to project)
It's great! Actually worked. Thank you Jens!
:O
it actually worked awesome!
Ahhhh, forget what I said - Again, I have got it working now. Sorry for clogging up the comment area. One quick question, can you impliment this into scratch, not the sqeak version.
yeah when you get a red box (walkback) go to the projject "source" by jens
Forget what I said, it works now. But when I say that, I do all the suff you said but it doesn't work.
wait... what program do I use to run a .image file
ummm..either I can't find the image or it won't let me open it, but still... help!!!
Whoa, Eric, "Scratch for Second Life", that makes me *very* curious! Glad you find this useful. I've got some issues with the "architecture" of my code (the XML DOM probably shouldn't distinguish between content and nodes, and instead of an external "XMLConverter" class the conversion methods should probably be categories of the blocks themselves, but it's easier for me to maintain it the way it is...). Also, I've got some other methods I didn't (yet) publish, like compressing, storing and retrieving graphics within the xml format. If you're interested in any of these, just let me know!
Hi Jens- I've started incorporating this into my Scratch for Second Life project. It's incredibly helpful!
this must have taken a while to figure out
This helps A LOT!! all i can say is your projects are really good! sorry i have to add you to friends list again since this is my new account the Lanie624 account was all messed up for some reason!
Me speechless.
Thanks for the kind comments, folks. I didn't write the XML interface for the Scratch Team to consider including it into the official release of Scratch, it was (and still is) just a "quick and dirty" hack which provides a customized Scratch app with a nonvalidating (and thus error prone and unstable) XML-interface. I like to imagine how something like it could be used to build external utility applications around Scratch, which wouldn't need to know how to write files in Scratch's hideously complex binary file format (which is really only reproducable in a Squeak/Scratch version and hardly in any other programming language).
Excellent. I wonder if the Scratch team would be willing to consider incorporating new functions built and Beta tested by others? I'm still yearning for the ability to rename variables and broadcasts. Too often, I get into a project, (thinking I know exactly "where I'm going" with it) and then find I'm using a variable or a broadcast for something that its name no longer describes. I don't think I'll be learning Squeak anytime soon tho...
omg, jens, that's amazing. i know almost nothing about squeak, but this has convinced me i should download it.