ok, what about a linux port ?
I tried it and there are only some small changes needed
Code: Select all
rm -r lib
sed -i -e 's|Irrlicht.h|irrlicht.h|g' \
CGrassPatchSceneNode.h
sed -i -e 's|#include <windows.h>||g' \
g_Game.h
sed -i -e 's|_strdate(dateStr);||g' \
g_Game.cpp
sed -i -e 's|_strtime(timeStr);||g' \
g_Game.cpp
sed -i -e 's|Sleep(1000)|sleep(1)|g' \
g_Game.cpp
sed -i -e 's|video::EDT_DIRECT3D9|video::EDT_OPENGL|g' \
g_Game.cpp
sed -i -e 's|debug_to_file.open ("debug.txt");|debug_to_file.open ("/tmp/SupremacyErrands-debug.txt");|g' \
g_Game.cpp
sed -i -e 's|1024,768|800,600|g' \
g_Game.cpp
ok, ok, the datestr, timestr needs some more coding to have fine timemarks in debug.txt. But I wanted to show a proof of concept
and in main.cpp
Code: Select all
//INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
main( int args, char **argv )
{
bool fullscreen = false;
bool sound = false;
video::E_DRIVER_TYPE driverType = video::EDT_OPENGL;
g_game* game = new g_game(fullscreen,sound,driverType);
game->g_init ();
game->g_run ();
return 0;
}
To compile you need audiere and Irrlicht, download the sources, change to source-directory.
You can download my SUSE-packages from here:
http://packman.links2linux.de/package/Irrlicht
http://packman.links2linux.de/package/libaudiere
compile the beast after the above changes
Code: Select all
g++ -I/usr/include/irrlicht -Iinclude -I. -I/usr/include -c *.cpp
g++ -o SupremacyErrands *.o -L/usr/lib -lIrrlicht -laudiere
than grab the windows bin distribution (200MB), delete all dll and exe,*.db files, change to the directory you unziped the binary distribution,
copy your compiled linux binary in and
launch the game with ./SupremacyErrands
enjoy
still to do:
* adjust the naming of some data-files (it's a mixture of jpg/JPG,...) as spelling is important on linux.
* recreate the datafiles with "/" instead of "\", some resources won't be found ...
* sound related things, /dev/dsp is blocked-error fixing ...
so if you like to have it also on linux, feel free to contact me via pn.
have fun