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

#876 2010-01-03 05:01:01

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

...so I'll post again the idea: the .m3w (or .m3ow) project file will be a .zip file with changed extension (like Quake 3's .pk3 files). Below is a structure in the archive, where <this> denotes a folder.

<ProjectName>
index.xml
thumbnail.png
<Sprites>
  <Sprite>
    spritedata.xml
    <Spinnets>
      //spinnets, the sprite scripts go here. Eg. spinnet.m3owscript
    <Costumes>
      //costumes go here.
    <Sounds>
      //sounds go here
  <Stage>
    <GlobalScripts>
      //global scripts & stage scripts go here
    <Stages>
      //backgrounds go here.
    <Sounds>
      //stage sounds go here.

Last edited by filo5 (2010-01-03 10:52:11)


Converting my Scratch projects to Python!

Offline

 

#877 2010-01-03 07:36:21

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

Thats a good idea, iv seen some xml, iv done some xml editing, and that should work if we can make the program read it, and if its xml it will work in notepad for easy editing if someone wants to do that.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#878 2010-01-03 10:57:26

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

Files:
index.xml - project descriptor. All project data go here - name, author, save log, sprite list and stage settings. Root node: <Project>.

thumbnail.png - project thumbnail.

Sprite/spritedata.xml - sprite info: costumes, sounds, spinnets. It's a link between project descriptor and sprite itself. Root node: <Sprite>.

.m3owscript files - script files.

.m3w or .m3ow files - project files. Actually .zip archives.


Converting my Scratch projects to Python!

Offline

 

#879 2010-01-03 11:01:06

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Emerald

Keeping in mind all these things are bundled into .m30w file


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#880 2010-01-03 11:10:14

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

index.xml example:

Code:

<Project name="Welcome to M3OW" author="M3OWMakerz" version="3" stage-size="600x400" last-saved="20100815101204" created="20100705211841" id="WelcomeToM3OW">
  <Save-Log>
    <log-entry type="saved" datetime="20100815101204" />
    <log-entry type="published" datetime="20100814105200" />
    <!-- etc. -->
  </Save-Log>
  <Sprite-List>
    <Sprite id="WelcomeToM3OW-SPRITE-1" name="Welcome-Stamper" sprite-data="/Sprites/Welcome-Stamper/spritedata.xml" />
    <Sprite id="WelcomeToM3OW-SPRITE-2 name="Cat" sprite-data="/Sprites/Cat/spritedata.xml" />
  </Sprite-List>
  <Stage>
    <Script id="WelcomeToM3OW-STAGE-SCRIPT-1" location="/Stage/GlobalScripts/Program.m3owscript" exclude="false" />
    <Costume id="WelcomeToM3OW-STAGE-COSTUME-1" location="/Stage/Stages/welcome-stage.bmp" exclude="false" />
     <Sound id="WelcomeToM3OW-STAGE-SOUND-1" location="/Stage/Sounds/snd1.mp3" exclude="false" />
     <Sound id="WelcomeToM3OW-STAGE-SOUND-2" location="/Stage/Sounds/meow-flanged.mp3" exclude="false" />
  </Stage>
</Project>

Converting my Scratch projects to Python!

Offline

 

#881 2010-01-03 11:47:46

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

gershmer wrote:

Keeping in mind all these things are bundled into .m30w file

Do they?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#882 2010-01-03 14:29:08

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

Yes. Let's assume you have a proper .m3ow file. Now change its extension to .zip (project.m3ow -> project.zip), and open it in your archive reader. That's it. Now you can see all the structure and data.


Converting my Scratch projects to Python!

Offline

 

#883 2010-01-03 14:59:26

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

cleaver, that should work.  big_smile


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#884 2010-01-03 19:56:20

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: Emerald

that's smart.

But complicated.

How are we uh, going to read this file?

I was having a hard enough time with reading plain text, let alone a zip archive in a clever guise.

I still dunno what about opening file in python.
but there is probably a lib for that.


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#885 2010-01-04 05:55:34

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

obviously we'll have to have a plugin or something for the zip reader, you cant just simply change the file exstension to .zip and check whats inside, i tried it. It was a .sb file though... i dont k now how they structured though so it might not have worked anyway.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#886 2010-01-04 14:05:27

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

Hmm... The way the 'sample' project was... is really confusing.  hmm

Offline

 

#887 2010-01-04 15:24:37

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

This is the 'sample' project from the tech-side. And, there are binary and python libs for ZIP archives. To edit or run the project, .m3ow archive will be simply unpacked to a temporary directory and then XMLs will be parsed, resources checked and allocated, scripts executed, which, to an end-user, means - project is played. Diagrams file:
M3OW TECHNOLOGY DIAGRAMS


Converting my Scratch projects to Python!

Offline

 

#888 2010-01-04 15:51:40

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: Emerald

holy carp that's overcomplicated!

but, very nice diagram there.

Most big video games only have one file per save. and usually it's not an archive.
but, if this is what we're doing, then, uh, I don't know.


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#889 2010-01-04 16:01:35

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

No, .m3ow archive is the project file. Games will have to save the state themselves - using commands:

Code:

load variables state (last)

save variables state

Converting my Scratch projects to Python!

Offline

 

#890 2010-01-04 16:09:22

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

I can just understand that, Slightly confused with the first one though.
The difference between run and edit are? If its like Scratch, then it all go into 1, unless we're adding an external complier?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#891 2010-01-04 21:33:00

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: Emerald

I don't think theres an actual different program, just different buttons in the gui.
for instance, in the file menu.
ok....


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#892 2010-01-05 04:03:48

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

Run mode is done by M3OW Player only. For M3OW itself, user, in order to edit the project, will have to click "edit" button from "project" menu, to go to the editor. Temporary folder will be moved to M3OW folder. The reason I designed the architecture like this, is simple: some people want only to run the project (watch animation, play game, etc.) - then, after running the project, user will get an option - go remix, or switch off. Go remix will do the same as project->edit. Switch off will close the project and delete temporary folder.


Converting my Scratch projects to Python!

Offline

 

#893 2010-01-05 09:56:36

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

filo5 wrote:

Run mode is done by M3OW Player only. For M3OW itself, user, in order to edit the project, will have to click "edit" button from "project" menu, to go to the editor. Temporary folder will be moved to M3OW folder. The reason I designed the architecture like this, is simple: some people want only to run the project (watch animation, play game, etc.) - then, after running the project, user will get an option - go remix, or switch off. Go remix will do the same as project->edit. Switch off will close the project and delete temporary folder.

The M30W player? On the other forum you said that the editing would be done in Diamond, but what is this M30W player?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#894 2010-01-05 13:06:25

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

The module which runs the project.


Converting my Scratch projects to Python!

Offline

 

#895 2010-01-05 14:30:29

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

...we've not made that yet have we?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#896 2010-01-05 15:08:19

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

correct.


Converting my Scratch projects to Python!

Offline

 

#897 2010-01-05 21:13:01

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: Emerald

by what landmark do we wanna acomplish this by?

like, 0.4, 0.5, etc....


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#898 2010-01-06 07:13:42

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

Lets get the editor up and running, then when we add in sprites we start on the viewer (Offline) and once we've got to V1, we start on the online viewer.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#899 2010-01-06 09:52:11

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

Offline viewer is the M3OW Player module. Online viewer is the M3OW-2-GO Player.


Converting my Scratch projects to Python!

Offline

 

#900 2010-01-06 11:18:11

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

Where are these names coming from?!


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

Board footer