Hitman: Codename 47

Hitman: Codename 47

34 ratings
How To Configure And Run The Game On Modern Systems: A Complete Guide
By mattiejas
This guide explains how to get Hitman: Codename 47 to run properly on modern systems, fixing camera shake, fixing the frame rate to resolve game physics bugs, improving view distance, enabling custom resolutions, and fixing the user interface on high DPI screens.
2
   
Award
Favorite
Favorited
Unfavorite
OpenGL Renderer
To fix the camera shake, and to allow us to limit the frame rate to fix physics problems later in this guide, we must set the game to use the OpenGL renderer. Start the game, go into Options, then Graphics, and select OpenGL.

Optionally, you can set Shadows and Texture quality to maximum, and enable Anisotropic filtering.

You can set the game to full screen if you wish, or leave it disabled to run the game in windowed mode. In windowed mode, some special care may need to be taken for high DPI monitors. On the other hand, in full screen mode, not all resolutions may be supported. We will deal with these issues later in the guide.

We will also configure the resolution later in this guide using a plugin (which fixes also a bunch of other things), so you can ignore that setting.

Antialiasing significantly improves visual quality in this game, particularly at low resolutions. Unfortunately, it's only available when using the Direct3D renderer, which, to my knowledge, suffers from several unresolvable issues—most notably, the inability to limit the frame rate, which leads to physics-related problems. In this guide, we prioritize fixing the physics issues, even if that means going without antialiasing.

All other options will either worsen quality or cause glitches, so leave them disabled:
  • Texture/palette compression reduce memory usage at the expense of visual quality, and this made sense when the game was released, however modern hardware can perfectly handle uncompressed textures. So, leave disabled for best visual quality.
  • Vertex lighting can cause graphical glitches, so leave it disabled as well.
Click Apply and then Ok to confirm the changes. Beware that the settings are not permanently saved until you click Ok.
Custom Resolutions & Increased View Distance
Next, we'll install a plugin that enables custom resolutions not available in the game's menu—including widescreen resolutions, if desired (though non-4:3 aspect ratios do have some minor drawbacks). The plugin also improves view distance, resulting in a more enjoyable gaming experience.

First, download the Ultimate Asi Loader:

https://github.com/ThirteenAG/Ultimate-ASI-Loader/releases

We need the Win32 dsound.dll version of the plugin. Download the zip, extract, and simply place the dsound.dll file in the root of your game folder, besides hitman.exe.

Now, create a folder named scripts inside the main game folder. Next, download nemesis2000's widescreen fix from:

https://community.pcgamingwiki.com/files/file/2788-hitman-codename-47-widescreen-fix/

This zip file also includes an old version of DxWrapper, but you should ignore those files from the zip file (DxWrapper is meant to work with the Direct3D renderer, and we are not using that due to the issues with that renderer). We are only downloading this zip file for the widescreen plugin (and sadly, the original source is no longer available). These are the following two files, both residing in its scripts folder:
h1w.asi h47.ini
Place both files in the scripts folder of your game (creating a new folder if need be). Only copy those two files, and do not copy anything else from this zip file.

You should now have the following layout in your game folder (along with any other game files):
... dsound.dll ... hitman.exe ... scripts\h1w.asi scripts\h47.ini

The default h47.ini runs the game at 1080p widescreen (16:9) resolution, and sets a very high draw distance which looks great but causes severe performance issues in some levels (even on modern hardware). Because the user interface does not scale along, and the user interface font size is very small, the user interface is very hard to read even at 1080p. In addition, non-4:3 aspect ratios cause visual issues with the in-game map. The following settings will fix these problems:
[MAIN] Width = 960 Height = 720 [MISC] Draw_Distance = 6.5
This keeps the game at the original 4:3 aspect ratio, whilst benefiting from an increased view distance, but not to the point where the game comes to a grinding halt. If you don't mind the map looking warped, you can replace 960 by 1280, for a 16:9 aspect ratio, or any other values that suit your needs. Important: if you run the game in full screen mode, one must specify a resolution that is supported by your monitor.

At this point, I suggest starting the game again to check that the new resolution takes effect. When you do so, it is possible that you get the following error:
OpenGL: Unable to switch to fullscreen. Try changing the resolution, refresh rate or the color depth.
If this happens, you can try one of the following things:
  • Run the game in windowed mode instead i.e. move/rename the scripts folder, run the game again without the plugin, disable full screen in the options (remember to click both Apply and Ok to save the settings), then reinstate the scripts folder.
  • Edit h47.ini to set another resolution that you know is supported by your monitor. For instance, most monitors with a 16:9 aspect ratio will support 1280x720.
  • As a last resort, run the game without the widescreen fix (i.e. remove the scripts folder) and instead use the in-game options to pick a resolution.
If you run in windowed mode, the game window may appear in an inconvenient location on your screen and/or may be too small. We will fix this next.
Window Location & High DPI Fix
You can skip this section if you run the game in fullscreen mode.

If you run the game in windowed mode, the game window possibly looks far too small, and cannot be moved around. To fix this, this section has you covered.

First, to force the window to appear on the top left of your screen, start with making a backup of the hitman.ini file in the root of the game folder, just in case something goes wrong. Then, add the following line to this file (do not make any other changes!):
StartUpperPos 0,0
The values 0,0 represent the x and y coordinates. You can modify them to reposition the window anywhere on your screen.

If you're using a high-resolution, high-DPI display, the game window may appear too small at 720p (or at whichever resolution you chose earlier). To address this, you may want to let Windows scale the game using its high-DPI compatibility settings—though this is typically handled automatically.

However, if for whatever reason Windows does not scale up the game window, you can force it as follows: right-click hitman.exe and select Show more options -> Properties. Then, under Compatibility, select Change high DPI settings. Now enable Override high DPI scaling behaviour and select System (Enhanced) from the drop down menu. Then click Ok and Apply (especially don't forget this last step). With this high-DPI compatibility setting, the game's user interface will be appropriately sized, at the expense of some pixelation.
Frame Rate Fix
The game engine will exhibit various bugs, such as floating items after dropping them from the inventory, if the game is run at a high frame rate. To fix these glitches, a frame rate of no more than 60 frames per second is recommended. Note that the game speed is linked to the frame rate, so pick 60 fps if you want a faster experience, 45 fps if you want it slightly slower, or whatever suits your needs. The game seems to ignore vsync entirely—even in windowed mode—so I recommend this step even if you're using a 60Hz monitor.

We will use the RTSS Rivatuner Statistics Server[www.guru3d.com] to limit the frame rate. For whatever reason, this only works with the OpenGL renderer so make sure you followed the earlier instructions to select the correct renderer. After installing and running the application (by running the RivaTuner Statistics Server app from the search bar, or by launching RTSS.exe from the application folder), open the RivaTuner window from the system tray (it looks like a blue screen with a small red square in the top left), set Application detection level to Low, and then set the Framerate limit to your desired value. The Rivatuner application must be running for the limit to work.

To verify that the fps limiter works, enable On-Screen Display support and Show own statistics in Rivatuner, which will display the fps in-game. Alternatively, use steam's performance monitor, via Steam -> Settings -> In-Game -> Show performance monitor.

Note that limiting the frame rate using the NVidia Control Panel does not work, for whatever reason.
Remapping Mouse & Keyboard Controls
The default controls in the game are somewhat dated. You can remap them from the main menu via Options and then Mouse & Keyboard. Here are some controls that resemble modern Hitman games. Obviously you can reassign these however you want.
  • Walk forward: W
  • Run: SHIFT
  • Walk left (strafe): A
  • Walk right (strafe): D
  • Walk backward: S
  • Turn left: ---
  • Turn right: ---
  • Lean left: [
  • Lean right: ]
  • Perform action: E
  • Toggle sneak: SPACE
  • Toggle camera mode: V
  • Drop item: Z
  • Equip binoculars: B
  • Empty hands: G
  • Fire weapon/use item: Mouse 1
  • Reload weapon: R
  • Change firing mode: T
  • Next item: ---
  • Previous item: ---
  • Show map: M
  • Open laptop: F1
  • Show mission status: F2
In the above, some actions are not mapped to anything. To achieve this, first map it to a key you plan to use for something else (like W), and then map W again to its intended action. This will erase its old assignment.

Running is notoriously unusual in the game: you have to hold SHIFT without pressing W. Sadly there's no way to get "standard" running controls. But you can eventually get used to it.

Finally, note that some actions are hardcoded and cannot be remapped:
  • Right mouse button: open interaction menu
  • Mouse scroll wheel: scroll between items
  • SHIFT+ESC: restart current mission

To use an object's interaction menu (you know you can when there is a text icon on the cursor), use the right mouse button to open it, use the scroll wheel to change between options, and press the left mouse button to confirm your choice.

To equip or holster a weapon, use the scroll wheel to change between weapons, and then press the left mouse button to confirm your choice.
Closing Thoughts
If you find anything unclear, or you believe that you've found an error, or you have a constructive suggestion, please do leave a comment below. It is my intention to keep this guide as up-to-date as possible, and I'll try to help to the best of my ability.

Additional resources:
22 Comments
mattiejas  [author] Dec 24, 2025 @ 2:40am 
Thanks tk! You are most welcome.
TK Aks344 Dec 24, 2025 @ 12:42am 
Thanks alot mate, really helpful guide.
mattiejas  [author] Dec 10, 2025 @ 12:55am 
Swell, thanks for the feedback. Glad to hear it helped!
The Eagle with No Name Dec 9, 2025 @ 7:53pm 
Thanks for the guide lad, it helped out a lot.
mattiejas  [author] Dec 5, 2025 @ 4:40am 
I've replicated the error message now and added some advice to the guide. It seems not all resolutions are supported by the game when running in full screen. I hope this helps. Do let me know if you still have problems and we can try and figure it out.
mattiejas  [author] Dec 5, 2025 @ 4:22am 
Oh and if that fails, you can also try 1280x720... I'd be really interested to learn your experience as to what resolutions might cause troubles, so I can update the guide.
mattiejas  [author] Dec 5, 2025 @ 4:21am 
Hmm interesting, thanks for the response. So the entire guide (with the widescreen fix) works only if you use 1920x1080? Note the suggested resolution is 960x720, not 920x720. Can you try that?
Svervo. Dec 5, 2025 @ 2:28am 
it only works for some reason when i put the resolution to 1920x1080 , However when i play in the suggested resolution , 920x720 it just crashes.
mattiejas  [author] Dec 5, 2025 @ 1:43am 
Thanks for the feedback Svervo. I'm sorry it didn't work. Does it work if you skip the "Custom Resolutions & Increased View Distance" section (i.e. not install those extra files)?
Svervo. Dec 5, 2025 @ 12:52am 
Didnt work :( it just says "OpenGL; Unable to switch to fullscreen."