So I built gE 1.5 (debug-old interface project named gameEditor) from source code at
http://sourceforge.net/p/game-editor/code/HEAD/tree/trunk/ after resolving 3-4 errors in 3 projects (staticSDL, engine and gameEditor). It compiled successfully and a gameEditor.exe file was created in output directory. When I ran it, it normally showed up the Welcome dialog box. But here comes the problem when I try add any actor when it crashes on the final step of adding actor i.e click on 'Add' button. It crashes when trying to load any ged file provided with source or any created with previous version. I know its just a preview but still what I can see from this entire thread is that it worked atleast much more than this. So whats wrong?
Here is what I did and how I resovled errors.
I'm using using msvs2008 pro (what devs were using)
First of all, I placed missing files : dsound.h , ddraw.h, d3dtypes.h and dinput.h in the directory:
[main dir]\SDL\SDL\src\video\windx5
Then I manually placed the file dxguid.lib in appropriate dir.
{I know downloading the entire directx sdk is recommended but this one works and resolved the errors, so... }
There were two syntax errors in scrap.c file of
engine like this:
error C2061: syntax error: identifier 'scrap_type' | line 35
error C2059: syntax error: ';' | line 35Piece of code of scrap.c (line 33 to 38):
- Code: Select all
/* System dependent data types */
//typedef Atom scrap_type;
typedef uint32_t scrap_type; // here is the error
#if defined(X11_SCRAP)
/* * */
So after comparing it to the scrap.c file in source of gE 1.4.0 , I changed it to:
- Code: Select all
/* System dependent data types */
//typedef Atom scrap_type;
#if defined(X11_SCRAP)
/* * */
typedef uint32_t scrap_type; // the error is resolved
After doing all this there were no errors but it did crash on actions mentioned above.
And with msvs2008 instance running, when we do such a crash to happen, the debugger tells about an unhandled exception in gldebug.cpp | line 80
check the file here
http://sourceforge.net/p/game-editor/code/HEAD/tree/trunk/kyra/util/gldebug.h However the paths, activation regions and all other menus along with the actor control panel for view worked fine.
So finally, can anyone find out whats wrong? How to eliminate this exception thrown?
The debug build: