I was actually once thinking of creating a different viewer myself.
The viewer would be a JavaScript application that runs the project, and then HTML would allow embedding and a play, pause, and resume button.
I'm still trying to figure out the encoding,though.
Good luck on your project!
Offline
bbbeb wrote:
ooh!
ooh!
pick me!!!
pick me!!!
i can help find errors and be constructive!!
pick me!!!
![]()
![]()
Okay...I think that's jd1's decision.
Offline
If you need to find the project format, this is from the source code page:
http://download.scratch.mit.edu/source-code/ScratchFileFormat.txt
Offline
CommunistPancake wrote:
If you need to find the project format, this is from the source code page:
http://download.scratch.mit.edu/source-code/ScratchFileFormat.txt
We're not doing that anymore. We're using project summaries now.
Offline
Ok to start lets make 3 arrays
The sprite name whos script it is
The script
Inputs
Lets get code like that first then we can use it!
Offline
CommunistPancake wrote:
If you need to find the project format, this is from the source code page:
http://download.scratch.mit.edu/source-code/ScratchFileFormat.txt
emm... I leave you for 1 day and we've scrapped the idea of decoding it. I think this dude could help with this txt file!!! Take a look.
Offline
woa. CommunistPancake, you're a genius (I think, if the rest of the team agrees.)
If he's correct we can crack open that document and maybe figure out how to decode from there! I like the idea of decoding if we maybe read that.
Offline
ScratchReallyROCKS wrote:
CommunistPancake wrote:
If you need to find the project format, this is from the source code page:
http://download.scratch.mit.edu/source-code/ScratchFileFormat.txtWe're not doing that anymore. We're using project summaries now.
Epic FAIL!
Last edited by bbbeb (2010-10-04 17:46:52)
Offline
You could also use the silk icon set for the green flag and red stop sign. They have them both, and it is completely free. No credit needed.
http://www.famfamfam.com/lab/icons/silk/
Offline
Another thing (sorry for the double post), but we need to find out what image format scratch saves the images in the projects. Without it, we can't display anything!
Offline
CommunistPancake wrote:
Another thing (sorry for the double post), but we need to find out what image format scratch saves the images in the projects. Without it, we can't display anything!
It uses .gif and .bmp.
Offline
why can't we decode the .sb file? imagine a world where someone could go to our website, then upload their project then see it ran in a canvas? Without downloading a mod?
Offline
midnightleopard wrote:
why can't we decode the .sb file? imagine a world where someone could go to our website, then upload their project then see it ran in a canvas? Without downloading a mod?
Scratch files are binary! JavaScript isn't powerful enough to decode them.
Offline
ScratchReallyROCKS wrote:
midnightleopard wrote:
why can't we decode the .sb file? imagine a world where someone could go to our website, then upload their project then see it ran in a canvas? Without downloading a mod?
Scratch files are binary! JavaScript isn't powerful enough to decode them.
Hmm, I wonder if someone could upload a project and then download a zip file. Then they can use the zip file to run the project in the browser!
Offline
johnnydean1 wrote:
ScratchReallyROCKS wrote:
midnightleopard wrote:
why can't we decode the .sb file? imagine a world where someone could go to our website, then upload their project then see it ran in a canvas? Without downloading a mod?
Scratch files are binary! JavaScript isn't powerful enough to decode them.
Hmm, I wonder if someone could upload a project and then download a zip file. Then they can use the zip file to run the project in the browser!
I was thinking that our mod could upload the project package, and then people would download just the .sb file from it.
Offline
CommunistPancake wrote:
If you need to find the project format, this is from the source code page:
http://download.scratch.mit.edu/source-code/ScratchFileFormat.txt
OH SWEEEEEEEEEEEEEEEEEET!!!!!! Thank you...
I might try and make a faster Java Player (just for fun.)
Offline
ScratchReallyROCKS wrote:
johnnydean1 wrote:
ScratchReallyROCKS wrote:
Scratch files are binary! JavaScript isn't powerful enough to decode them.Hmm, I wonder if someone could upload a project and then download a zip file. Then they can use the zip file to run the project in the browser!
I was thinking that our mod could upload the project package, and then people would download just the .sb file from it.
Why can't you use php like nXIII said?
Offline
MathWizz wrote:
ScratchReallyROCKS wrote:
johnnydean1 wrote:
Hmm, I wonder if someone could upload a project and then download a zip file. Then they can use the zip file to run the project in the browser!I was thinking that our mod could upload the project package, and then people would download just the .sb file from it.
Why can't you use php like nXIII said?
we are going to use PHP and html5 and JS for the visual stuff.
Offline
Daffy22 wrote:
MathWizz wrote:
ScratchReallyROCKS wrote:
I was thinking that our mod could upload the project package, and then people would download just the .sb file from it.Why can't you use php like nXIII said?
we are going to use PHP and html5 and JS for the visual stuff.
![]()
No, I meant to read the Scratch file.
Offline
MathWizz wrote:
Daffy22 wrote:
MathWizz wrote:
Why can't you use php like nXIII said?we are going to use PHP and html5 and JS for the visual stuff.
![]()
No, I meant to read the Scratch file.
yeah we are.
(I'm not sure what they're on about but theres no other easy way to read the file.)
Offline
Ok who knows PHP, and if so can you make a start on the .sb file
Offline
okay here is a test:
EventHatMorph Scratch-StartClicked say: hi hello!
This is basically one sprite with one script that says hi and another sprite that says hello! The probllem is: how can I tell which sprite countains which blocks?
Offline
How can we get the .sb project like this:
79 98 106 83 1 83 116 99 104 1 ; object store header
0 0 0 3 ; object table size, 3 objects
109 1 8 ; [1] a user-class SampledSound object, version 1, 8 fields
99 0 0 2 ; evelopes: ref to object table entry 2
4 0 0 128 0 ; scaledVol: 32768
5 0 0 ; initialCount: 0
99 0 0 3 ; samples: ref to object table entry 3
5 86 34 ; sampilingRate: 22050
5 0 0 ; samplesSize: 0
4 0 1 0 0 ; scaledIncrement: 65536
1 ; scaledInitialIndex: nil
20 0 0 0 0 ; [2] a zero-length array
12 0 0 0 0 ; [3] a zero-length sound bufferThat's how the .txt file linked to explains the file. Any help?
Offline