Running Standoff in Linux HOWTO HellcatV Revision History Revision 1.0 release 2005-09-14 First official release. This HOWTO describes how to use CVS wine dated from 2005-09-14 to run Secret Ops and Standoff. ------------------------------------------------------------------- Step 1: Configure Wine so it can run Starcraft or any other Wing Commander Relevant options in ~/.wine/config are listed as follows: [x11drv] "PerfectGraphics" = "Y" "Managed" = "Y" "Desktop" = "Y" "UseDGA" = "Y" "UseXShm" = "Y" "DXGrab" = "N" "DesktopDoubleBuffered" = "Y" Leave everything else to defaults. --------------------------------------------------------------------- Step 2: "Install" DirectX edit ~/.wine/system.reg add 2 lines: [Software\\Microsoft\\DirectX] 1089185411 "Version"="5.08.01.0881" --------------------------------------------------------------------- Step 3: Install Secret Ops by running the installer wine "Secret Ops Installer.exe" --------------------------------------------------------------------- Step 4: Install Standoff If you already had installed Secret Ops, and your wine-accessible registry is out of date, add the following registry keys (with the C:\Program Files\Secret Ops modified to be the actual install location it exists at) [Software\\Origin Systems\\Wing Commander Secret Ops] 1126670530 "Extra File 1"="C:\\Program Files\\Secret Ops\\register.bin" "Extra File 2"="C:\\Program Files\\Secret Ops\\episode.bin" "Extra File 3"="C:\\Program Files\\Secret Ops\\inputmap.out" "Extra File Count"=dword:00000003 "Install Size:"=dword:00000002 "Installed From:"="X:\\WZS3d9f.tmp\\" "Installed To:"="C:\\Program Files\\Secret Ops\\" "Prophecy Installed"=hex:01 "Secret Ops Installed"=hex:01 "Video Card Description:"="Direct3d" "Video Card Major Version:"=dword:00000002 "Video Card Minor Version:"=dword:00000000 "Video Card Number"=dword:00000003 ------------------------------------------------------------------ Step 5: Copy redistributable DLL's. MSVBVM60.DLL and MFC42.DLL into standoff's directory. These DLL's may be obtained from microsoft or any microsoft system and are redistributable http://support.microsoft.com/default.aspx?scid=kb;en-us;259403 http://support.microsoft.com/default.aspx?scid=kb;en-us;290887 --------------------------------------------------------------------- Step 6: Test wine "Standoff Launcher.exe" Make sure to turn Color depth to 32 bit Make sure to UNCHECK "Avoid Sound Skipping on fast machines" then run the game. It should play, but with some unacceptible graphical glitches. Objects should appear inside out or in the wrong order. ---------------------------------------------------------------------- Step 7: Upgrade DDraw.dll You can either 1) download http://vegastrike.sourceforge.net/users/hellcatv/ddraw.dll.so or 2) if you compiled wine from scratch then you can download http://vegastrike.sourceforge.net/users/hellcatv/ddraw.patch and apply the patch to the dlls/ddraw/ directory cd dlls/ddraw patch -p0 < /path/to/ddraw.patch then make either way, copy ddraw.dll.so to /usr/local/lib/wine/ to overwrite the old version there. and now run Standoff. Everything should be perfect except ingame cutscenes, which have the ordering problem that the ddraw patch only fixed for inflight scenes. I've really hacked together ddraw.dll it took me tons of time, and I haven't found the root cause of the problem. Firstly OpenGL does not like FLT_MAX to be specified as the max zbuffer depth. Secondly, somehow prophecy forgets to turn off zbuffer writes for drawing the background with either textures 2 3 or 4. So I detect textureID 2, 3 or 4 and turn off zbuffer writes for that. If you have any better ideas feel free to poke at it and let me know (my e-mail is at the top of the document) Thanks -HellcatV