After a long night spent poking, I finally managed to make a successful build (in Windows). Â Here's what I can remember doing; hopefully it helps any other future newbies. Â Note I used Visual Studio.NET, but previous versions of Visual C++ should work similarly.
1) Create a parent directory to hold everything. Â I'll call it UM.
3) Go to http://www.libsdl.org/download-1.2.php. Â Download SDL. Â You want the SDL-devel-1.2.7-VC6.zip file listed under Win32 under Development Libraries. Â Unzip. Â (Note: Â Before I saw this was there, I downloaded SDL-1.2.7.zip under Source Code. Â It comes with a file VisualC7.htm that describes how to build the DLL and LIB files required. Â You need to extract VisualC7.zip to the current directory.)
8) Under UM\uqm-0.3\SRC\MSVC++, open UrQuanMasters.dsw. Â If using .NET, choose to convert. Â Then save all (yes, create a SLN file), and close .NET. Â Now open the .SLN file. Â Always open the .SLN file from here on, not the DSW or DSP ones, or changes you make to project settings may not get saved (at least they didn't for me).
8) Under Project/Properties/C/General, set Additional Include Directories to: .;..;..\sc2code;..\sc2code\libs;..\sc2code\ships;"..\..\..\SDL-1.2.7\include";"..\..\..\SDL_image-1.2.3";"..\..\..\oggvorbis-win32sdk-1.0.1\include";..\..\..\zlib121\include;"C:\Program Files\OpenAL 1.0 Software Development Kit\include"
9) Under Project/Properties/Linker/General, set Additional Library Directories to: "..\..\..\SDL-1.2.7\VisualC7\SDL\Debug";"..\..\..\SDL-1.2.7\VisualC7\SDLmain\Debug";"..\..\..\SDL_image-1.2.3\VisualC\Debug";"..\..\..\oggvorbis-win32sdk-1.0.1\lib";..\..\..\zlib121\lib;"C:\Program Files\OpenAL 1.0 Software Development Kit\libs"
10) Under Project/Properties/Linker/Input, Additional Dependancies, change zlib.lib to zdll.lib
11) Copy these files to the uqm-0.3 directory: SDL.DLL, SDL_image.dll, JPEG.DLL, LIBPNG1.DLL, ZLIB.DLL (from SDL_image-1.2.3\VisualC\graphics\lib), ZLIB1.DLL, VORBISFILE.DLL, OGG.DLL, VORBIS.DLL. Â These can all be found somewhere under UM. Â This step is so the compiled .EXE will have the files in needs to run.
12) Copy uqm-0.3-content.zip (available at http://sc2.sourceforge.net/downloads.html or in your game directory if you first installed the released version) to uqm-0.3\content\packages. Â Optionally copy the uqm-0.3-voice.zip and uqm-0.3-3domusic.zip here too.
13) You should now be able to Build the project and Run the UM\uqm-0.3\uqmdebug.exe file.
« Last Edit: April 24, 2004, 05:07:50 am by richardk »