Skip to main content

Unreal Tournament 2004 in 2015

I am planning to play some old games with some friends, but there are some issues with new hardware. For UT2k4 when starting I get the following error:

UT2004 Build UT2004_Build_[2005-11-23_16.22]

OS: Windows NT 6.2 (Build: 9200)
CPU: AuthenticAMD Unknown processor @ 3506 MHz with 2047MB RAM
Video: AMD Radeon HD 7700 Series (1429)

LockRect failed: D3DERR_DEVICELOST

History: UD3DRenderDevice::ReadPixels <- UD3DRenderDevice::Present <- UGameEngine::Draw <- UWindowsViewport::Repaint <- UWindowsClient::Tick <- ClientTick <- UGameEngine::Tick <- Level Untitled <- UpdateWorld <- MainLoop <- FMallocWindows::Free <- FMallocWindows::Realloc <- 10910191 0 FArray <- FArray::Realloc <- 0*2 <- FMallocWindows::Free

This seems to be a problem with Direct3D, so to fix it open the configuration file (C:\Program Files (x86)\Steam\steamapps\common\Unreal Tournament 2004\System\UT2004.ini). Under [Engine.Engine] comment out using a semi-colon (;) the line

RenderDevice=D3DDrv.D3DRenderDevice

and uncomment the line

RenderDevice=OpenGLDrv.OpenGLRenderDevice 

This changes the rendering to Open GL. Whilst the ini file is open you can set the monitor resolution (in my case 1920x1080). Under [WinDrv.WindowsClient] set

FullscreenViewportX=1920
FullscreenViewportY=1080

As widescreen resolutions have a wider field of view (FOV) than 4:3 monitors this also needs to be changed to stop things looking stretched. In user.ini in the UT2k4 system folder set

DesiredFOV=105.000000
DefaultFOV=105.000000

This should hopefully make everything run fine. The menus and HUD look a bit odd, but that doesn't make much difference to the gameplay.

Comments

Popular posts from this blog

Latex package clash

Annoyingly, when trying to use the IOP journal template with the amsmath package you receive an error saying ! LaTeX Error: Command \equation* already defined.                Or name \end... illegal, see p.192 of the manual. which is caused by both amsmath and iopart having a definition for \equation*. This error occurs whether or not you are using \equation*. Not using amsmath makes writing maths so horrific you may as well use Word, but there is a way round; place the following lines before importing the amsmath package: \expandafter\let\csname equation*\endcsname\relax \expandafter\let\csname endequation*\endcsname\relax This removes the \equation* definition from iopart so that there isn't a clash when amsmath is imported. Perfect! Now you can use \align, \eqref, \text , etc. which are not part of the iopart package. I found this solution on stack exchange , but it took quite a while to find. Happy Latexing!

Hard case for Ibanez GA5TCE

One of the biggest criticisms of the Ibanez GA5TCE that I have seen is that Ibanez don't make a hard case for it. This wouldn't be so bad if it wasn't such an unusual size and shape for a classical acoustic, meaning you can't just use a generic case. After trying pretty much all of the cases in my local guitar shop they noticed that the Ibanez has a similar shape to the Alahambra slimline guitars, such as the 3 C CT , and Alahambra do make a hard case for them. The case has the catchy name " Cut-away thin Guitar Case 9565 " and turns out to fit the Ibanez GA5TCE almost perfectly. The case itself is black with a leather textured finish and copper coloured clasps. Inside it is black and fluffy like most cases. The guitar body fits snugly with effectively no movement. The neck is slightly thinner on the Ibanez than the Alahambra so the neck can move a few mm at the support. However, when the case is closed it seems very secure because the strings sit in the ...

Generating binary vectors in Matlab

More of a note to self than a blog post, but a really useful way to generate vectors of binary numbers in Matlab is the following dec2bin(Num,nBits)-'0' This generates a vector of "nBits" in length for number "Num". The '0' at the end converts it from a string into a vector for some reason. E.g. dec2bin(3,4)-'0' = [0 0 1 1] I found this out from Stack Overflow: http://stackoverflow.com/questions/5744576/convert-decimal-to-binary-vector