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

#201 2010-10-01 02:19:15

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

Ok using my file can someone make a HTML/PHP/JScript (Manily JScript/HTML) version of this. So it can get that info, then store it in 2 arrays. The first being the stuff before the '=' and the second being the stuff after the '=' in each line.

okay, when I'm back from school I'll do it!  big_smile


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#202 2010-10-01 14:01:45

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

ok post when done


You can now reach me on Twitter @johnnydean1_

Offline

 

#203 2010-10-01 16:06:47

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

ok post when done

sorry I was busy last night so tommorow I'm free and ready to help!  big_smile


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#204 2010-10-01 17:09:33

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

maybe we could read the scratch java applet coding?


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#205 2010-10-01 17:13:59

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

*opens project with notepad++*
WOA. How does that become a sprite?


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#206 2010-10-01 20:20:49

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Lets make a new Scratch viewer!

midnightleopard wrote:

maybe we could read the scratch java applet coding?

That's what I did; get a decompiler and look in ObjReader.class. Then convert the 500+ lines to PHP  tongue


nXIII

Offline

 

#207 2010-10-02 05:59:49

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Lets make a new Scratch viewer!

Empty project called "blank project" has this:

Code:

ScratchV02  AObjSStch      c  c  c  c  c  c  c  c      c  
c  c  c  
c  c         history       (2010-10-2 10:57:14    save    blank project        
       platform       Win32       language       en       
os-version       NT       scratch-version       1.4 of 30-Jun-09           thumbnail#   x c  c         author           âXéaÿ   c  c       ?ÿÿÿObjSStch   }c  c  c    c  c  c  c  c      ?ð          c  
 d <c  c  !    àh    ?ÿÿÿ       Stage           c      c  
¢c  c  c              ¤c  c   d 2       background1"àh c    ð ´       popmc    € c  +  €    õÿ  Ta        Õ½
rïS#<$› â«sñUÚ_Ä`³©i¨’±åÅGáAó&íGÑaJo}p#a
DÎêó*ɧj‘ý%˜îµ9Ýèâ:`Dvpyµh¢EØgäJµl’zÞ†kŸqÈŽü!0â]}yßäq7M©¶ç©¸O–Œ‰‘i®OÙõ\< _PoïiNV$
òqÅY£g“¶™x²øÚh    £6ŽWkf)_¢F¼õòÈÊ­õ¢Î«Ä2êñÀ9«Q(VñI4+NÛ,º¾¨ì©¼ÑÝŒ¼.<K€YR'9]¬êÅq­­§)³ºÐö°¥?zQÈQÊ?k}ùçÖÓ¾¶¾UÕ¬õ¼*3‚Aõ@„/,òW՟ó¿õËtãœz z6‰?†8Ò$:Ãç’ο†ÀÏéQk%~: A8µ#–Sè/ÏVÂ*ÂêÑZêI"”5×<Ð5ì#J    ZîGØËwË
Öfêo±’*30x+ª<ôódá¿×¸Öö߬ïÍ)\#¨H«¯óRæpߺàÛé3öÌ$ÛòJ„É|òäç5á
á†èzôg¡,_Œ^=þtòçêÊç–é„ïàøùÔJ’Ù    7ûyöô–õÝù×ÿŽ—
ŠUþa

/* No comment */

Offline

 

#208 2010-10-02 06:03:27

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Lets make a new Scratch viewer!

With two simple scripts:

Code:

ScratchV02  iObjSStch      c  c  c  c  c  c  c  c      c  
c  c  c  
c  c         history       P2010-10-2 10:57:14    save    blank project        
2010-10-2 11:02:18    save    blank project        
       platform       Win32       language       en       
os-version       NT       scratch-version       1.4 of 30-Jun-09           thumbnail#   x c  c         author           âXéaÿ   c  c       ?ÿÿÿObjSStch   7}c  c  c    c  c  c  c  c      ?ð          c  
 d <c  c  !    àh    ?ÿÿÿ       Stage       c  
c     c      c  ¢c  c  c                 c  c     c  c  ¤c  c   d 2       background1"àh c    ð ´  @f`        c  c  c    @4         c  c  c  c          popmc  !  € c  "+  €    õÿ  Ta    c  #c  $   c  %   c  &   c  #c  '   c  (    c  )c  $   c  *c  +c  ,       Õ½
rïS#<$› â«sñUÚ_Ä`³©i¨’±åÅGáAó&íGÑaJo}p#a
DÎêó*ɧj‘ý%˜îµ9Ýèâ:`Dvpyµh¢EØgäJµl’zÞ†kŸqÈŽü!0â]}yßäq7M©¶ç©¸O–Œ‰‘i®OÙõ\< _PoïiNV$
òqÅY£g“¶™x²øÚh    £6ŽWkf)_¢F¼õòÈÊ­õ¢Î«Ä2êñÀ9«Q(VñI4+NÛ,º¾¨ì©¼ÑÝŒ¼.<K€YR'9]¬êÅq­­§)³ºÐö°¥?zQÈQÊ?k}ùçÖÓ¾¶¾UÕ¬õ¼*3‚Aõ@„/,òW՟ó¿õËtãœz z6‰?†8Ò$:Ãç’ο†ÀÏéQk%~: A8µ#–Sè/ÏVÂ*ÂêÑZêI"”5×<Ð5ì#J    ZîGØËwË
Öfêo±’*30x+ª<ôódá¿×¸Öö߬ïÍ)\#¨H«¯óRæpߺàÛé3öÌ$ÛòJ„É|òäç5á
á†èzôg¡,_Œ^=þtòçêÊç–é„ïàøùÔJ’Ù    7ûyöô–õÝù×ÿŽ—
ŠUþa
   
EventHatMorph   hello
   clearPenTrails
   nextBackground       Scratch-StartClicked
   wait:elapsed:from:
   
broadcast:
   doIf   c  -c  .c  /   c  0
   |   c  1c  2c  3   c  4c  5c  6   c  7
   =   1   1
   <   5   4
   doReturn

Scripts:
http://www.freeimagehosting.net/uploads/f6f6092f58.gif

Last edited by TheSuccessor (2010-10-02 06:05:02)


/* No comment */

Offline

 

#209 2010-10-02 06:05:55

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

TheSuccessor wrote:

With two simple scripts:

Code:

ScratchV02  iObjSStch      c  c  c  c  c  c  c  c      c  
c  c  c  
c  c         history       P2010-10-2 10:57:14    save    blank project        
2010-10-2 11:02:18    save    blank project        
       platform       Win32       language       en       
os-version       NT       scratch-version       1.4 of 30-Jun-09           thumbnail#   x c  c         author           âXéaÿ   c  c       ?ÿÿÿObjSStch   7}c  c  c    c  c  c  c  c      ?ð          c  
 d <c  c  !    àh    ?ÿÿÿ       Stage       c  
c     c      c  ¢c  c  c                 c  c     c  c  ¤c  c   d 2       background1"àh c    ð ´  @f`        c  c  c    @4         c  c  c  c          popmc  !  € c  "+  €    õÿ  Ta    c  #c  $   c  %   c  &   c  #c  '   c  (    c  )c  $   c  *c  +c  ,       Õ½
rïS#<$› â«sñUÚ_Ä`³©i¨’±åÅGáAó&íGÑaJo}p#a
DÎêó*ɧj‘ý%˜îµ9Ýèâ:`Dvpyµh¢EØgäJµl’zÞ†kŸqÈŽü!0â]}yßäq7M©¶ç©¸O–Œ‰‘i®OÙõ\< _PoïiNV$
òqÅY£g“¶™x²øÚh    £6ŽWkf)_¢F¼õòÈÊ­õ¢Î«Ä2êñÀ9«Q(VñI4+NÛ,º¾¨ì©¼ÑÝŒ¼.<K€YR'9]¬êÅq­­§)³ºÐö°¥?zQÈQÊ?k}ùçÖÓ¾¶¾UÕ¬õ¼*3‚Aõ@„/,òW՟ó¿õËtãœz z6‰?†8Ò$:Ãç’ο†ÀÏéQk%~: A8µ#–Sè/ÏVÂ*ÂêÑZêI"”5×<Ð5ì#J    ZîGØËwË
Öfêo±’*30x+ª<ôódá¿×¸Öö߬ïÍ)\#¨H«¯óRæpߺàÛé3öÌ$ÛòJ„É|òäç5á
á†èzôg¡,_Œ^=þtòçêÊç–é„ïàøùÔJ’Ù    7ûyöô–õÝù×ÿŽ—
ŠUþa
   
EventHatMorph   hello
   clearPenTrails
   nextBackground       Scratch-StartClicked
   wait:elapsed:from:
   
broadcast:
   doIf   c  -c  .c  /   c  0
   |   c  1c  2c  3   c  4c  5c  6   c  7
   =   1   1
   <   5   4
   doReturn

Is this:
When I recive 'Hello'
next background

When Flag Clicked
wait (i think 7) secs
broadcast 'hello'


You can now reach me on Twitter @johnnydean1_

Offline

 

#210 2010-10-02 06:07:11

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Lets make a new Scratch viewer!

See image above.


/* No comment */

Offline

 

#211 2010-10-02 06:19:08

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

I see the < = > and < > > blocks but not the wait blocks' input


You can now reach me on Twitter @johnnydean1_

Offline

 

#212 2010-10-02 06:50:10

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

don't forget these also contain where the blocks are placed in the scripting area.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#213 2010-10-03 15:15:06

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

Ok scrap that, we are now using project summarys!
We also need to get the costumes


You can now reach me on Twitter @johnnydean1_

Offline

 

#214 2010-10-03 15:18:52

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

Re: Lets make a new Scratch viewer!

and sounds

Offline

 

#215 2010-10-03 16:44:16

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

k lets start with summaries


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#216 2010-10-03 16:48:25

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

I found where the project title is saved. Line 3 of the code in notepad++ at the very end.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#217 2010-10-03 16:49:46

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

Oh! Project notes are at the very end of line 5!


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#218 2010-10-03 16:54:04

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Lets make a new Scratch viewer!

Okay, so here's a summary for an un-named project with the normal cat sprite and the script:

when green flag pressed
forever {
  move 10 steps
}

Code:

Project: 
Totals: 
    Sprites: 1
    Stacks: 1
    Unique costumes: 3
    Unique sounds: 2
--------
Sprite: Stage
  Costumes (1):
    background1 (480x360)
  Sounds (1):
    pop (0:00:00)
  No stacks.
--------
Sprite: Sprite1
  Costumes (2):
    costume1 (95x111)
    costume2 (95x111)
  Sounds (1):
    meow (0:00:01)
  Stacks (1):
    when green flag clicked
        forever  
            move 10 steps
    end

--------

So, I was thinking that it could upload a package that contains images, sounds, the summary, and the project.sb file. Basically, this project would have a package that looks like this:

summary.txt
newProj.sb
Stage background1.gif
Stage pop.wav
Sprite1 costume1.gif
Sprite1 costume2.gif
Sprite1 meow.wav

And the sounds and images and sounds would be called from the script.

Last edited by ScratchReallyROCKS (2010-10-03 17:01:47)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#219 2010-10-03 17:14:27

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

ScratchReallyROCKS wrote:

Okay, so here's a summary for an un-named project with the normal cat sprite and the script:

when green flag pressed
forever {
  move 10 steps
}

Code:

Project: 
Totals: 
    Sprites: 1
    Stacks: 1
    Unique costumes: 3
    Unique sounds: 2
--------
Sprite: Stage
  Costumes (1):
    background1 (480x360)
  Sounds (1):
    pop (0:00:00)
  No stacks.
--------
Sprite: Sprite1
  Costumes (2):
    costume1 (95x111)
    costume2 (95x111)
  Sounds (1):
    meow (0:00:01)
  Stacks (1):
    when green flag clicked
        forever  
            move 10 steps
    end

--------

So, I was thinking that it could upload a package that contains images, sounds, the summary, and the project.sb file. Basically, this project would have a package that looks like this:

summary.txt
newProj.sb
Stage background1.gif
Stage pop.wav
Sprite1 costume1.gif
Sprite1 costume2.gif
Sprite1 meow.wav

And the sounds and images and sounds would be called from the script.

Thats what I was thinking!
Shal we start now!


You can now reach me on Twitter @johnnydean1_

Offline

 

#220 2010-10-03 17:31:42

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

ScratchReallyROCKS wrote:

Okay, so here's a summary for an un-named project with the normal cat sprite and the script:

when green flag pressed
forever {
  move 10 steps
}

Code:

Project: 
Totals: 
    Sprites: 1
    Stacks: 1
    Unique costumes: 3
    Unique sounds: 2
--------
Sprite: Stage
  Costumes (1):
    background1 (480x360)
  Sounds (1):
    pop (0:00:00)
  No stacks.
--------
Sprite: Sprite1
  Costumes (2):
    costume1 (95x111)
    costume2 (95x111)
  Sounds (1):
    meow (0:00:01)
  Stacks (1):
    when green flag clicked
        forever  
            move 10 steps
    end

--------

So, I was thinking that it could upload a package that contains images, sounds, the summary, and the project.sb file. Basically, this project would have a package that looks like this:

summary.txt
newProj.sb
Stage background1.gif
Stage pop.wav
Sprite1 costume1.gif
Sprite1 costume2.gif
Sprite1 meow.wav

And the sounds and images and sounds would be called from the script.

Thats what I was thinking!
Shal we start now!

Yes we shall!  tongue


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#221 2010-10-03 19:21:44

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

how do we make it do that?


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#222 2010-10-03 19:47:47

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Lets make a new Scratch viewer!

midnightleopard wrote:

how do we make it do that?

We make a Scratch mod that uploads the project package to the website instead of just the project.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#223 2010-10-03 21:12:07

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

okay. So we can't then have people upload projects?


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#224 2010-10-03 21:43:26

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Lets make a new Scratch viewer!

midnightleopard wrote:

okay. So we can't then have people upload projects?

Well, I guess we could have some beta testers...


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#225 2010-10-03 21:54:39

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Lets make a new Scratch viewer!

ooh!
ooh!
pick me!!!
pick me!!!
i can help find errors and be constructive!!
pick me!!!

big_smile   big_smile


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

Board footer