Installing UPIS
 |
UPIS has moved to SourceForge |
| |
As of August 2009, the UPIS codebase has been added to the official USARSim CVS repository. The newest release can be found in the Tools releases (v3.37 and up) at SourceForge, and the source code is available in the CVS in the usarsim/Tools/ImageServer directory. We will also be moving documentation to the official USARSim wiki. |
Preface
UPIS is an image server for UT2004. It uses the Microsoft Detours library to intercept the
Direct3D? 8 calls that UT2004 uses to finalize its screen drawing. It then copies the display to an external buffer, and serves the image upon request to any clients.
UPIS can be either compiled directly from source, or installed using precompiled 32-bit binaries available for Windows XP and Vista. Due to restrictions on Microsoft Detours, the current version can only run in 32-bit mode.
If you have problems with installing or running UPIS, please check the FAQ.
Compiling source
Requirements
- Windows XP or Vista (32-bit)
- Visual Studio 2008
Directions
- Download the most recent UPIS source release from here.
- Unzip the archive to your directory of choice.
- Open
upis.sln using Visual Studio 2008.
- Select
Release from the Configuration list box.
- Select
Build > Build All.
- After the build, you should find the
upis.exe and upisdll.dll in the ./Release directory.
- Copy
FreeImage.dll and detoured.dll to the ./Release directory.
- To run UPIS, see the instructions on
Running the server.
Installing binaries
Requirements
- Windows XP or Vista (32-bit)
Directions
- Download the most recent UPIS binary release from here.
- Unzip the archive to your directory of choice.
- If not already installed, run the included
vcredist08.exe to install the Visual C++ 2008 redistributable package.
Running the server
Requirements
- Windows XP or Vista (32-bit)
- Microsoft Visual C++ 2008 Redistrubutable
- UT2004
- UPIS binaries (from previous sections)
Directions
Before you run UPIS, please rename or delete any version of FreeImage.dll in the same directory as ut2004.exe. Old copies can override the version packaged with UPIS and cause linker errors.
- Edit the
run.bat in the directory with your UPIS binaries
- Change the first parameter of
upis.exe to the path to the ut2004.exe binary.
- Change the second parameter of
upis.exe to be the desired command-line options for ut2004.exe. Leave a space as the first character.
- Save and close
run.bat.
- Execute
run.bat. UT2004 should launch with the specified options.
- To switch focus away from UT2004, use
Ctrl+Esc. This will switch focus to the Start Menu, from which you can switch to other applications.
Notes
- It is often useful to copy the
run.bat script and create variants for different maps/gametypes/options. This way, you can easily launch many different UT2004 configurations.
- To change the resolution of the image server, simply change the screen resolution in UT2004.
- Press
~ to open the console in UT2004.
- Type
setres XRESxYRES to change the resolution (e.g. setres 640x480).
- Press
~ again to close the console.
- It is useful to run UT2004 in windowed mode to allow for quick tabbing in and out of the window.
- Press
Esc to open the UT2004 menu.
- Go to
Settings>Graphics.
- Select the checkbox labeled
Windowed.
- Select
Apply to switch UT2004 to windowed mode.