Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Scratch 2.0 file editor
- Nathanator1416J
-
100+ posts
Scratch 2.0 file editor
Scratch 2.0 file editor for scratch JSON files.
First of all, we need to come up with a layout plan for the project (Graphics (don't have to be too good) and how it will work).
Next, decide on a language. If necessary, we can use a translator or make DLL files to reference.
Hopefully this works out well!
And by the way, you are probably a more experienced programmer, so I'll hand it over to you, if you would like that.
First of all, we need to come up with a layout plan for the project (Graphics (don't have to be too good) and how it will work).
Next, decide on a language. If necessary, we can use a translator or make DLL files to reference.
Hopefully this works out well!
And by the way, you are probably a more experienced programmer, so I'll hand it over to you, if you would like that.
- Hardmath123
-
1000+ posts
Scratch 2.0 file editor
I'm sorry, I suppose I assumed you meant “help me with the format”, not “help write the program”. I don't really have time for serious coding; but I can certainly explain whatever you want!
Also, I would recommend JavaScript for the editor because it's really easy to get a simple UI in place. And it would be accessible in the browser.

- Nathanator1416J
-
100+ posts
Scratch 2.0 file editor
We will see if anything ever gets started. I need a bit of help. I am going to do it in VB.NET, because It has the best string manipulation code, and I'm most familiar with it.
- Hardmath123
-
1000+ posts
Scratch 2.0 file editor
Actually, string manipulation isn't needed at all—just JSON parsing methods.
// javascript JSON.parse("{}");
// python import json json.load("{}")
- Nathanator1416J
-
100+ posts
Scratch 2.0 file editor
Wow! I guess that js storage should be easily accessed in js itself!
- comp500
-
100+ posts
Scratch 2.0 file editor
Yeah, i have half term ahead of me so I shall be able to help, and I can program in javascript and html 

- comp500
-
100+ posts
Scratch 2.0 file editor
We'll need to use PHP or similar to extract the .sb2 files if we're gonna decode them (gunzip Wow! I guess that js storage should be easily accessed in js itself!

EDIT: I know PHP too

Last edited by comp500 (Feb. 15, 2013 20:38:18)
- lunaluvgood
-
100+ posts
Scratch 2.0 file editor
I'm not sure you'd want my help, I just know HTML, CSS, and a little PHP, but I'd be happy to help with what I can
- comp500
-
100+ posts
Scratch 2.0 file editor
Awesome I'm not sure you'd want my help, I just know HTML, CSS, and a little PHP, but I'd be happy to help with what I can
weWho wants to use Github (Organisations) to manage it?
assuming you know how to use Git…
EDIT: For PHP we'd need a suitable server to run it on too…
Last edited by comp500 (Feb. 17, 2013 17:05:42)
- Nathanator1416J
-
100+ posts
Scratch 2.0 file editor
Sorry I didn't get on earlier, I was busy. All the help we can get is what we need. I think it would be best to do the majority of it in html and js, and have another language do the front end stuff. Since js runs on a PC fine, w/o an emulator, we can just make a program that has a “web browser” object on it, and some save and load buttons that call/reload the main page and it's js. If that doesn't make sense, just design a webpage with forms that access a js that does the json hard work. If you haven't read this (beta.scratch.mit.edu/forums/topic/1810/?page=1) already, do so, cause our purpose is to allow for advanced json blocks not allowed in the normal editor.
- comp500
-
100+ posts
Scratch 2.0 file editor
why would we even need that? i've now found a web server and we can make web apps Sorry I didn't get on earlier, I was busy. All the help we can get is what we need. I think it would be best to do the majority of it in html and js, and have another language do the front end stuff. Since js runs on a PC fine, w/o an emulator, we can just make a program that has a “web browser” object on it, and some save and load buttons that call/reload the main page and it's js. If that doesn't make sense, just design a webpage with forms that access a js that does the json hard work. If you haven't read this (beta.scratch.mit.edu/forums/topic/1810/?page=1) already, do so, cause our purpose is to allow for advanced json blocks not allowed in the normal editor.
- Nathanator1416J
-
100+ posts
Scratch 2.0 file editor
Web apps??? why is it even online??? I got a good server too, you know! but why is it online?
- comp500
-
100+ posts
Scratch 2.0 file editor
because the limitations of the browser are sometimes big, so we need to minimise the cost on the client and process it on the server, I mean Scratch use CakePHP for their system… Web apps??? why is it even online??? I got a good server too, you know! but why is it online?
Oh and you can save it for later use with a server, and directly copy a normal scratch project into the editor if we use php…
Last edited by comp500 (Feb. 20, 2013 06:28:56)
- Nathanator1416J
-
100+ posts
Scratch 2.0 file editor
I have a bit of a full schedule, so I don't have time to learn PHP. If you would like to take over, you can.
- comp500
-
100+ posts
Scratch 2.0 file editor
sure, I do too but i'll work something out I have a bit of a full schedule, so I don't have time to learn PHP. If you would like to take over, you can.
- Magnie
-
100+ posts
Scratch 2.0 file editor
http://stackoverflow.com/questions/2095697/unzip-files-using-javascript – You don't need to use PHP to decompress a ZIP file… You want a program like this to run client side, especially if you are just editing a .sb2 file.
- Nathanator1416J
-
100+ posts
Scratch 2.0 file editor
http://stackoverflow.com/questions/2095697/unzip-files-using-javascript – You don't need to use PHP to decompress a ZIP file… You want a program like this to run client side, especially if you are just editing a .sb2 file.Exactly what I said!!!!!!!
- LiquidMetal
-
100+ posts
Scratch 2.0 file editor
Seems like a great idea theoretically, but…
Last edited by LiquidMetal (March 24, 2013 14:08:43)
- Nathanator1416J
-
100+ posts
Scratch 2.0 file editor
But in reality…… :-) Seems like a great idea theoretically, but…
- Discussion Forums
- » Advanced Topics
-
» Scratch 2.0 file editor