May 12th, 05:07

Wolfire has released the source code for Lugaru under GPL2. The source is based on the Linux version and does not compile directly on Windows. I was able to compile and run Lugaru using Visual Studio 2008 Professional.

Updates

  • May 12 – Replaced the corrupted Data folder. The code now builds and runs perfectly

How I got it to compile

First off, I had to get a few missing windows specific files for Lugaru (WinDefs.h,WinDefs.cpp) which David (creator of Lugaru) was kind enough to provide.

Next were a few missing headers. I commented out glaux.h and vdl.h (somewhere).

I downloaded the latest version of DevIL and added the include and lib paths to Tools->Options->VC++ Directories and had to include the .lib files under lugaru/devil/lib/

Then I got glext.h and added it to VC++ Directories include paths.

After that there were a few errors with some preprocessor conditional defines that needed fixing and commenting a glaux.lib link in the source code.

There were a few minor source code errors, like va_copy (which is not available on win), a missing HDC variable, a problem with a function ConvertFileName etc which were solved with some very quick patches.

The game compiles after that. The main objective was to get the program to compile on windows.

Grab the patched source

Lugaru for Win32 [VS2008]

Dependencies

1. Get a copy of DevIL and include the appropriate header paths in your project
2. Get a copy of glext.h and include the appropriate header path in your project
3. You will need 7-Zip to extract the patched source

Everything else should be present to compile Lugaru on VS2008. All the .lib files and dlls are included in the download.

Future

The current version was put together very quickly. I hope to clean up the Visual Studio project, include all the dependencies, add documentation and combine everything into a single package.

Interesting Links

Dreamspark – Microsoft gives free copies of Visual Studio Professional to students

Lugaru on Google Code – Lugaru with CMake

The Humble Bundle – Pay what you want to get 6 games DRM free and also donate to charity

Lugaru source for VS2008
Lugaru for Win32 using VS2008 (Updated 12-May-2010)
51.63 MB