Hey.
I am developing a program in which you will be able to create Scratch sprites in text
format and import them in your Scratch project.
The editor has syntax highlighting and some other features.
Image:
scratchtext.png
Last edited by ZeroLuck (2012-01-07 05:50:07)
Offline
Oooh, I was thinking of doing something similar -- a little tool that would convert a .sb Scratch project file to a bunch of directories containg the images and scripts of the project for easy editing, and then allow you to compile it back to a project again.
What are you making this in?
Offline
blob8108 wrote:
Oooh, I was thinking of doing something similar -- a little tool that would convert a .sb Scratch project file to a bunch of directories containg the images and scripts of the project for easy editing, and then allow you to compile it back to a project again.
What are you making this in?![]()
Java
Offline
I would use this a lot. Thank you for making this.
Offline
ZeroLuck wrote:
blob8108 wrote:
Oooh, I was thinking of doing something similar -- a little tool that would convert a .sb Scratch project file to a bunch of directories containg the images and scripts of the project for easy editing, and then allow you to compile it back to a project again.
What are you making this in?![]()
Java
Nice
Have you managed to write .sprite files successfully yet?
Offline
blob8108 wrote:
Nice
Have you managed to write .sprite files successfully yet?
No (I am working on it), but I managed to read a .sb file already (in the Scratch Android player).
I know that writing a scratch file is much harder than reading...
but I will see.
Offline
ZeroLuck wrote:
blob8108 wrote:
Nice
Have you managed to write .sprite files successfully yet?
No (I am working on it), but I managed to read a .sb file already (in the Scratch Android player).
I know that writing a scratch file is much harder than reading...
but I will see.
There was a topic on the .sprite format a while ago, I'll try to find it.
(*Sets off on a long journey through the forums*) [jk]
Edit: The post is here.
Last edited by zippynk (2012-01-08 11:27:38)
Offline
[offtopic]
Zeroluck, you can probably take that thing out of your signature now, the security hole has been fixed for a while
[/offtopic]
Offline
ZeroLuck wrote:
blob8108 wrote:
Nice
Have you managed to write .sprite files successfully yet?
No (I am working on it), but I managed to read a .sb file already (in the Scratch Android player).
I know that writing a scratch file is much harder than reading...
but I will see.
It's reasonably complicated, but I'm sure you'll be okay. I'm maintaining a little wiki on the Scratch format, that compiles all the information about it, in case it's of any help to you (:
Offline
Sweet!
Offline
Maybe you could work with JSO to connect this project with the Scratch Blocks plug-in with this allowing sprites to be converted to Scratch Blocks and Scratch Blocks to be converted into sprites. This would be very useful for the wiki.
Last edited by Bsteward (2012-01-08 21:01:41)
Offline
I have really problems with writing these files...
my created file looks like this:
ObjSStch .}c c c c c c c ? c d <c c !l G× o c ? TxtScratchSprite.sprite Öc c c c |c c c c c c c c c dc c d <c c ! 2 ( 7■Ò!\ ¹] ³ TxtScratchSprite c c óc c c ? ? normal c c Kost├╝m1# c !c " @4 c #c $c %c & Ç c 'c ( c )c * c +c , c +c - c +c . ! EventHatMorph Scratch-StartClicked say: Hello! World! Hallo!
but it has to look like this:
ObjS Stch |.. ! ! ! ! ! ! ! ? ! d <!
! ! l G × o ! TxtScratchSprite.sprite !
! ! ! ! ! ! ! ! ! ! ! ! d! ! d <! ! ! 2 ( ▄ ©! \ ¹ ] ³ TxtScratchSprite ! ! ! ! ! ? ?
normal ! ! Kost├╝m1# ! !! " @4 ! #! $! %! &
Ç ! '! ( ! )! * ! +! , ! +! - ! +! .
EventHatMorph Scratch-StartClicked
say: Hello! World! Hallo!Can somebody help me?
Offline
ZeroLuck wrote:
I have really problems with writing these files...
my created file looks like this:Code:
ObjSStch .}c c c c c c c ? c d <c c !l G× o c ? TxtScratchSprite.sprite Öc c c c |c c c c c c c c c dc c d <c c ! 2 ( 7■Ò!\ ¹] ³ TxtScratchSprite c c óc c c ? ? normal c c Kost├╝m1# c !c " @4 c #c $c %c & Ç c 'c ( c )c * c +c , c +c - c +c . ! EventHatMorph Scratch-StartClicked say: Hello! World! Hallo!but it has to look like this:
Code:
ObjS Stch |.. ! ! ! ! ! ! ! ? ! d <! ! ! l G × o ! TxtScratchSprite.sprite ! ! ! ! ! ! ! ! ! ! ! ! ! d! ! d <! ! ! 2 ( ▄ ©! \ ¹ ] ³ TxtScratchSprite ! ! ! ! ! ? ? normal ! ! Kost├╝m1# ! !! " @4 ! #! $! %! & Ç ! '! ( ! )! * ! +! , ! +! - ! +! . EventHatMorph Scratch-StartClicked say: Hello! World! Hallo!Can somebody help me?
Mind sending a hex dump instead of raw characters? It's hard to see the bytes right now.
Offline
ZeroLuck wrote:
I have really problems with writing these files...
Can somebody help me?
You couldn't post the source code for writing the files, could you? That might be more helpful.
Offline
MathWizz wrote:
ZeroLuck wrote:
I have really problems with writing these files...
my created file looks like this:Mind sending a hex dump instead of raw characters? It's hard to see the bytes right now.
It's actually impossible to see the bytes: the forums have replaced most of the unprintable characters with spaces. -_-
Offline