Page 1 of 1

Porting game-editor engine

PostPosted: Wed Mar 03, 2010 1:34 pm
by akr
Porting game-editor engine to a new plattform is challenging because:

a) SDL was modified. Thus the new SDL (1.3) requires heavy changes. Any clue why this was done? Doe
b) Structures are read into memory (C++ this) directly from a file sequence. This causes heavy problems when compilers arrange unions/structs different.
c) There is a nvidia hack which does result into incomplete output on other devices.
and some more challenges to be managed.

Any experience?

And one more question: How will modified sources being played back into the original source control system?



cheers
andreas

Re: Porting game-editor engine

PostPosted: Wed Mar 03, 2010 2:38 pm
by makslane
akr wrote:a) SDL was modified. Thus the new SDL (1.3) requires heavy changes. Any clue why this was done?


The upgrade is necessary for the iPhone port, but I don't think it is necessary for other ports.
More info: http://code.game-editor.com/ticket/14

b) Structures are read into memory (C++ this) directly from a file sequence. This causes heavy problems when compilers arrange unions/structs different.


In the GP2X device (Linux + ARM) this was a problem (search for GP2X in the code).
All other platforms (Linux + x86, Windows + x86, Winddows Mobile + ARM) works without changes when read or write the game files.

The align and size of the structs used in the game files are:
http://code.game-editor.com/browser/tru ... tAlign.txt
http://code.game-editor.com/browser/tru ... ctSize.txt

c) There is a nvidia hack which does result into incomplete output on other device


Are you talking about a 3D version?

How will modified sources being played back into the original source control system?


Good question :-)
I think we can talk about the changes and commit the code by use some patch or writting into the SVN base.