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

#1 2012-01-07 05:36:22

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Scratch Text

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)


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#2 2012-01-07 05:46:17

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Scratch Text

is it able to run the code like a normal scratch project?


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#3 2012-01-07 05:51:58

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Scratch Text

nathanprocks wrote:

is it able to run the code like a normal scratch project?

No, you have to import the sprite in Scratch.


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#4 2012-01-07 06:19:01

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Scratch Text

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?  smile


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#5 2012-01-07 06:24:11

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Scratch Text

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?  smile

Java


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#6 2012-01-07 06:57:29

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

Re: Scratch Text

looks cool!


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

Offline

 

#7 2012-01-07 07:20:41

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch Text

do you want any help i am quite good at java


http://i.imgur.com/1QqnHxQ.png

Offline

 

#8 2012-01-07 07:53:47

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: Scratch Text

Great program ZeroLuck! This will solve everyone's need for scratch-based text  smile


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#9 2012-01-07 08:16:11

ihaveamac
Scratcher
Registered: 2007-09-22
Posts: 1000+

Re: Scratch Text

I would use this a lot. Thank you for making this.  big_smile


~ihaveamac - visit ihaveamac.net

Offline

 

#10 2012-01-07 08:30:23

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Scratch Text

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?  smile

Java

Nice  smile  Have you managed to write .sprite files successfully yet?


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#11 2012-01-07 08:36:27

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Scratch Text

blob8108 wrote:

Nice  smile  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.


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#12 2012-01-08 11:26:26

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: Scratch Text

ZeroLuck wrote:

blob8108 wrote:

Nice  smile  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)


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#13 2012-01-08 12:24:20

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Scratch Text

This is not my problem.
I know to read .sb files a .sprite file is not very different.
Bur writing is much harder.


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#14 2012-01-08 12:39:31

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

Re: Scratch Text

[offtopic]
Zeroluck, you can probably take that thing out of your signature now, the security hole has been fixed for a while
[/offtopic]


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

Offline

 

#15 2012-01-08 13:49:56

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

Re: Scratch Text

Sweet! I've had this idea (along with many others) in the back of my head that I have been thinking about. Looking forward to using it.  big_smile


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

Offline

 

#16 2012-01-08 16:59:20

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Scratch Text

ZeroLuck wrote:

blob8108 wrote:

Nice  smile  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 (:


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#17 2012-01-08 20:18:18

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

Re: Scratch Text

Sweet!


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

 

#18 2012-01-08 20:49:07

Bsteward
Scratcher
Registered: 2010-04-13
Posts: 100+

Re: Scratch Text

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)


Interested in the future of Scratch?http://ffs.us.to/1.png
http://i40.tinypic.com/2i9jejd.jpgIt has http://bit.ly/Ol3MfD views. Click to add one more!

Offline

 

#19 2012-01-08 21:36:12

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Scratch Text

That's really cool looking!  big_smile


Posts: 20000 - Show all posts

Offline

 

#20 2012-01-09 06:30:39

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Scratch Text

That looks amazing!


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#21 2012-01-09 12:25:42

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Scratch Text

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?


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#22 2012-01-09 12:58:40

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

Re: Scratch Text

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.


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

Offline

 

#23 2012-01-09 14:27:39

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Scratch Text

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.  smile


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#24 2012-01-09 15:16:37

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

Re: Scratch Text

blob8108 wrote:

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.  smile

Yes, yes it would.  tongue


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

Offline

 

#25 2012-01-10 16:54:47

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Scratch Text

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. -_-


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

Board footer