Page 1 of 1

How does "gedt" files work?

PostPosted: Fri Feb 27, 2009 3:47 pm
by asmodeus
Does anybody know here how a gedt file worked? I mean how to "read" such a file, or is there a program to make/edit these files? I just like to have information like this:
Offset |Length |Description
0000h | 3 |Signature
0004h | 4 | file size
etc.

Re: How does "gedt" files work?

PostPosted: Fri Feb 27, 2009 5:48 pm
by makslane
Is the format used to save the tutorias.
Look the Tutorial.cpp file, Save function:

http://code.game-editor.com/browser/tru ... l.cpp#L223

Re: How does "gedt" files work?

PostPosted: Fri Feb 27, 2009 8:47 pm
by asmodeus
makslane wrote:Is the format used to save the tutorias.
Look the Tutorial.cpp file, Save function:

http://code.game-editor.com/browser/tru ... l.cpp#L223

I knew that these are tutorial files. What I found out so far is that:
what-I-found-out.gif

It's quite hard to work along your code. Can you complete the list or is there already one? I also like to know what "events" there exist and how they work.

Re: How does "gedt" files work?

PostPosted: Fri Feb 27, 2009 9:45 pm
by makslane
The events are the SDL events (like SDL_KEYDOWN, SDL_KEYUP, SDL_MOUSEBUTTONDOWN...)

The right line to look the save is (Tutorial::Save:
http://code.game-editor.com/browser/tru ... l.cpp#L782

Look this function to see how the file is saved.
The file is compressed, so I can't tell you the right byte places of the final file.