Skip to content

Playing from a PC installation

The port can run from a Steam or retail PC installation of Hitman: Blood Money instead of the PS2 disc image. The engine is still the PS2 engine and reads PS2 layouts: scene members whose PC layout differs are converted to the PS2 layout as they are read, one member at a time, by the converters in port/engine/system/_sdl/pcdata/. Nothing under src/ knows about the PC data.

Starting it

  • Command line: openbloodmoney "C:/Program Files (x86)/Steam/steamapps/common/Hitman Blood Money".
  • In Settings → Files, set Version to PC. Choose Browse PC ZIP or, on desktop, Browse PC folder. Play starts at the title screen and Quick Play opens a mission.

The launcher also accepts an installation ZIP with Scenes/HitmanBloodMoney.zip at its root or inside one enclosing folder. DiscOpen (disc.cpp) treats a folder as a PC installation when it has Scenes/HitmanBloodMoney.ZIP and no HITMAN3.ELF. PcDataStart (pcdata.cpp) then:

  • serves MAIN.INI and HM3GPAD.CFG from memory (DiscAddMemoryFile). The PC has neither. MAIN.INI starts at HitmanBloodMoney.gms, as the PC's own HitmanBloodMoney.ini does: the boot menu, attract mode and AllLevels/ErrorMessages scenes exist only on the PS2 disc, so there are no demo timeouts. HM3GPAD.CFG is the PS2 controller layout, generated from a table (see Pad bindings); the port's keyboard layout is added on top as usual;
  • points the movie, stream and room-reverb lookups at the installation (Settings().szPcInstallPath, bPcAudio) for this run only. Opening the game directly with this command keeps the saved configuration.

Other differences from a disc run:

  • File names keep their long form: DiscFileName (sysfilesdl.cpp) cuts names to 8.3 only for a PS2 disc, and the loading-screen player opens Loader_Sequence.ZIP instead of LOADER_S.ZIP. The PC loader scenes place their pictures on a 1024 x 768 screen, which the player scales to the PS2's 512 x 448 (LOADER_PC_SCREEN_WIDTH; before 24 November 2026 they were drawn at twice their size).
  • pc_sound_effects, pc_loading_screens and pc_models do nothing here: the scene banks, loaders and character models are the PC's already. They take those PC assets into a disc run (pc-assets.md).
  • pc_text does nothing here either: the scene text is the PC tables as they are, corrections included; ResourceCollection::LoadFile's port version (localeoverridesdl.cpp) changes only a disc run's tables (pc-assets.md).
  • The HUD and menus use the PC version's layout (pc_layout, on with the PC version): the PC scenes' health frame has its bar slots at the PC's places and its item frame is wider, and the PC fonts are wider than the disc's (Enhancements: PC HUD and menu layout). The HUD is drawn in window pixels as on the PC (pc_hud_size, Enhancements: PC HUD size), and the action prompts use the PC scenes' key caps.
  • Memory cards and save games go to pc/ under the save folder (PcDataSaveFolder): PC scenes number geoms differently and five scenes add animations, so a save from one data set is not valid in the other.
  • The game heap is 512 MB instead of 256 MB (M11's textures alone are 101 MB), and the draw allocator gets twice the disc's growth (PC scenes have up to 2.6 times the PS2's strip chunks).

Members

PcDataMember sits in ZSysFileSDL::GetSize and Load after the mod overrides and before the raw archive read, and in the loading-screen player's LoadZipMember. It converts a member on first use, keeps the result in a small cache and drops it once the engine has read the whole member. A converter that fails logs why and the raw member is used.

Member On PC Handling Page
.GMS, .SGP, .RMC, .RMI, .LOC, .SUP, .ZGF, .SGD PS2 layout; every PC .PRP decodes against the PS2 class schema unchanged
.BUF Crowd bone rotations and light records use PC conventions Conjugate the quaternions, scale LightInfo by 255 and set ambient alpha to 64 ConvertStaticBuffer
.SND PS2 layout, every record's name kept; ANM, LOC and PRP sound references index the PC file unchanged snd.md
.WHD, .WAV PS2 records with a name in front; banked IMA ADPCM and PCM read by the sound DLL (pcsound.cpp) snd.md
pc_eng.str PC stream container (IMA, PCM, Ogg Vorbis) native PC stream mode in pcstreamsdl.cpp snd.md
.ANM PS2 layout; state channels all 14-bit checked and copied (pcanimations.cpp); the air rifle's reload and first-person hold, which five disc scenes lack, play from it with no code change (anm.md) anm.md
.TEX DXT1/DXT3/RGBA/I8/PALN/U8V8 records PS2 records keeping the PC texels; DecodeTexture decodes them (pctexture.cpp) tex.md
.PRM + .MAT object headers, D3D vertex and index buffers, materials PS2 strips, dot3 strips, bone strips, shadow meshes, water patches and scatter fields at the same handles (pcprims.cpp, pcmaterials.cpp; see Surfaces) prm.md, mat.md
.OCT collision leaves name PC objects and triangle runs collision trees rebuilt over the converted strips (pccollision.cpp) oct.md
.PRP PS2 layout, but the decal systems' m_PreCalcPrims hold no prims (the PC makes decal prims at run time) mark counts set to the PS2's and the arrays pointed at decal prims the prim conversion appends (pcdecals.cpp); served through ZSysFileSDL::GetZipFile, because the property stream is opened with IOFilesystem_t::open prp.md
movies Bink (Movies/*.bik) videosdl.cpp, as with a PC installation beside a disc sound-and-movies.md
.xml (menus and settings) PS2 layout in <Platform PS2> blocks, but some shared parts changed for the PC the disc's forms restored (pcmenus.cpp); see Menus

The .TEX converter also adds the pad button icon texture to every scene (see Pad button glyphs).

The .PRM, .OCT, .TEX and .PRP converters read the raw siblings they need (.MAT, .OCT, .PRM, .PRP) and convert deterministically, so each converted root's lColiId points at its rebuilt tree and each decal system at its prims.

Pad button glyphs

ZGameData::GetIcon turns {cross}, {ZW_SELECT} and the other button tags into the private-use characters U+E004 (circle), U+E005 (square), U+E006 (triangle), U+E007 (cross), U+E008 (square bullet) and U+E009 (start). Every PS2 font has glyph records for them, with bIcon set, that point at an icon page of the font (16 by 16 texels per button, drawn untinted). The PC fonts have neither the records nor the page, and ZTTFONT::GetCharInfo draws a missing character as a space, so every pad prompt was blank (GUI and Input).

  • PcPadGlyphsAddTexture (pcpadglyphs.cpp) adds a 512 by 64 RGBA texture with 4 mip levels to every converted .TEX through PcTexturesAppendRgba (pctexture.cpp). Its id is PCPADGLYPH_TEXTURE_ID, 2040, unused in all 68 scene textures of the Steam release (their ids go up to 1,366). The five buttons are drawn from vector shapes in the PS2 icons' style, one 64-texel cell each: a dark round button with a lit top and the PS2 colours (red circle, pink square, green triangle, blue cross), and a grey arrowhead for start.
  • ZTTFONT::GetCharInfo is replaced (port/engine/zwindows/_sdl/zttfontoverridesdl.cpp). When the font lacks a character, PcPadGlyph answers U+E004 to U+E007 and U+E009 with records in the PS2 fonts' metrics (16 by 16, 13 above the baseline, advance 18, bIcon set) whose UVs name a cell of the icon texture. The PC fonts have the PS2's point sizes (14, 16 and 20) and nearly the same glyph metrics, so the PS2 icon metrics fit them unchanged. On the disc, and for any character the font has, nothing changes.
  • {bullet_square} gives U+2022, which all three PC front-end fonts have, instead of U+E008 (gamedataoverridesdl.cpp). The PC text uses the tag 196 times, on the weapon upgrade screens.
  • The action, pickup and drop menus' button picture is the PC's key cap (a 160 by 23 picture, the cap the 18 by 15 units at its top left), which is blank with a pad. With a PlayStation pad the glyph from GetIcon replaces it at the cap's centre (ingamemenusoverridesdl.cpp).
  • The button_icons setting is unchanged: xbox, and auto with a non-PlayStation pad, give text labels such as [A] before a glyph is looked up, and keyboard prompts name keys as before.
  • PC-data menus drop {ZW_*} tags when showing keyboard prompts.
  • tools/port/tests/pc_pad_glyphs_test.cpp converts a .TEX, adds the texture, and checks that every older texture keeps its id, that the icon texture decodes and that each glyph names it.

Checked with screenshots against the disc: the briefing's Back, the pause menu's Back, Start and Select legends, the HUD's drop, pickup and action prompts, the title screen and the profile name keyboard. The U+2022 bullet was not seen on screen (the upgrade screens are not reachable by script).

Pad bindings

On the PS2 the pad bindings are not in the executable: MAIN.INI names hm3gpad.cfg, which ZActionManager::LoadBindings reads. The PC has no such file. pcpadbindings.cpp describes the PS2 layout as a table of action, trigger (tap, fasttap, hold, holddown, release, ana) and pad control, with |, & and && combinations and a negated term for the map; PcPadBindingsText makes the configuration text from it at start-up. The text equals the disc file's with whitespace removed. The three blocks:

  • ZWINDOWSKEYS_1 (menus): the D-pad moves; Cross, Circle, Triangle and Square are ZW_SELECT to ZW_SELECT4 (tap); ZW_CANCEL is Triangle on release; Start, L1 and R1.
  • HMControl (play), with UseGameController=true: R1 fires, R2 reloads, L1 crouches, D-pad left or right is the second fire; the sticks; Triangle cancels and drops; Cross uses (fast tap), opens the action menu (held) and closes it (release); Circle the same for pickup; Square holsters (fast tap) and opens the inventory (held); L3 throws, R3 toggles the camera, D-pad up and down zoom; Start is the in-game menu, Select the briefing; L2 the map unless R2 is held; R1, R2 and Up the cheat menu; the map, statistics and newspaper actions; Start or Cross skip movies and cut sequences.
  • DeathSequenceInput: Start ends the death sequence.

Options and defaults

With pc_tuning, AutoAim defaults to 0 unless the profile has saved a value. PC-data menus hide the PS2 Vibration and AutoAim block. The remaining defaults come from the PS2 profile configuration.

The XML reader selects PC keyboard, Exit Game and checkbox controls for PC data. ZPortCheckBox handles the checkbox element. The frontend conversion removes the unsupported EAX option and restores the default colour set. See pcmenublockssdl.cpp for the block selection and pcmenus.cpp for the XML changes.

Checked with screenshots: the pause menu, Options, Sound, Graphics and Controls in M00, and the title screen, profile manager and profile name keyboard, in both modes.

Rendering

PC rendering covers post filters, materials, water, weather and shadows.

Scene scripts with the PC data

The PC version runs the PS2 level scripts (src/scripts/, native-scripts.md) on the PC scenes. The PC release ships its own build of the same 693 scripts, 14 DLLs in Scriptcs/_gamerelease/ (MSVC 7.1). Three checks on 25 November 2026 asked whether that mix is safe; the tools and raw results are in build/script-check/ (untracked): layout/, names/ and logic/.

Layouts and the scenes' script data (layout/). For every script, the PS2 module's SCRIPTCREATOR, state tree, functions table and function controllers were compared with the PC DLL's (script-modules.md). All 693 scripts agree in their creator records, state trees and fixups, and the 15,702 paired functions have the same frame sizes. Three things differ, none a layout problem:

  • Alllevels_Perceptionconverter_HandleBloodStainPerception takes 84 bytes of arguments on the PC against 80: the PC's blood-decal message carries one more word (see the logic changes below). With pc_scripts the port sends the PC's record and runs the PC's function; otherwise the PS2's.
  • M02_M02_Targetbunny overrides table slot 65 (OnKnockedUnconscious) on the PC, and M02_M02_Grothobunny has one PC-only function (both below).

A scene gives each script instance only its name and its import values, in the order of the script's import list (SF.Input calls in its Imports/UnpackResources callbacks), each value typed (Int32 and Float32 arrays, strings, a geometry reference as path strings). It stores no variable blocks, offsets or fixups, so the only coupling between a script build and the scene data is the import list's sequence of types and counts. All 2,617 PS2 and 2,650 PC script controllers decode exactly against both builds' import lists, and the 3,216 SF.Input calls are the same on both. Paired by scene, geometry path and controller index, every PS2 controller has a PC counterpart running the same script with the same layout; 2,489 pairs hold identical values, and the 128 that differ do so only in sound references (offsets into each scene's own .SND, which the port loads unchanged). Every geometry reference resolves in its own scene. The PC adds 33 controllers in groups named PC_ONLY or NO_PS2 (M01: 7 m01_receptiontourist, 2 m01_cellartourist; M09: 13 m09_civilian, 4 m09_barfighter, 2 m09_loungingguest and 5 useables); they use scripts the PS2 has and fit their import lists, but no PS2 run ever had them.

Names the scripts look up (names/). 23 of the 43 script interfaces that take a string are called by the shipped scripts (animations by template name, LOC keys and their sounds, dialogue keys built as prefix + number + postfix, controllers on a geometry, a car's pose objects, items in a container, scripts on a geometry through SF.FindScriptStateByRef). Every literal name (2,096 distinct, 3,401 call sites) was resolved by the engine's own rule in both data sets, every PS2 LOC key, animation template and animation collection was found in the PC data, and a Lua mod logging 28 lookup interfaces at run time over every level (3,000 frames, PC and disc) found no result that differs. No name resolves on the disc and fails on the PC data. Names that fail on both (dead code in shared scripts, and a few the original game never had: M09 guests' M09_GDD_* drink lines spelled M09_GAD_* in the table, the guards' HMSI_*_03G line spelled HMSL, animations such as M05's /Hit/HeadFrontSmall) behave as on the PS2.

Logic the PC changed (logic/). Every function of the 14 DLLs was paired with the PS2 modules (26,428 pairs) and compared by its engine calls, calls to other script functions, states, strings, constants, message values, bit positions and field offsets, with compiler patterns ruled out automatically and the rest reviewed by hand. The PC build changes five things, which the PS2 scripts in src/scripts do not have and the PC version now makes as script patches (pc_scripts, on with the PC version; below):

  1. All levels, Alllevels_Perceptionconverter_on_decalvisible and _HandleBloodStainPerception: the PC's blood-decal message has one more word, and an NPC removes a seen blood decal only when Gettime() minus that word is under 0.001; on the PS2 the only limit is once every 0.5 s. An engine change too: the PC's ZCheckVisible::UpdateVisible (PC 0x52da30) sends the record through FUN_0052cab0 with the frame time in that word (g_pSysInterface->FrameTime as seconds, the value Engine__Gettime returns, PC 0x59d310), so the NPC removes the decal only when it handles the message in the frame it was sent, not when the message waited in its cue.
  2. M02, M02_M02_Grothobunny_on_evm02_trygovson: if she is busy when the request comes, the PC sends evm02_trygovson to her again after 20 s through a PC-only helper; on the PS2 the request is lost.
  3. M02, M02_M02_Targetbunny, slot 65 (OnKnockedUnconscious): the PC calls Zhm3Actor__Disabledrag, so her unconscious body cannot be dragged; the PS2 inherits the empty function.
  4. M03, M03_M03_Levelcontrol: on_evm03_exitboxenter first kills objectiveOneTarget if he is alive, and on_evm03_singerdead also sends MSG_actionshow (0x84f), which shows the exit once both objectives are done (on the PS2 only the character-killed handler does).
  5. M10, M10_M10_Scientist_InspectSuitcaseState_run, resume case 12: after placing the item the PC also calls Zgeom__Copyobjectposdir(phoneItem, dropPos).

The comparison cannot see a change made only through an operator, a comparison's direction or the order of calls or arguments, and 140 PS2 and 287 PC functions nothing references were not compared. Counts per level and every verdict are in logic/report.md and logic/review/.

The PC script changes in the port

With pc_scripts (on with the PC version, launcher.md) the port makes the five changes as script patches, each written from the PC DLL's listing (port/engine/zstdlib/_sdl/pcscripts/, the mechanism in native-scripts.md). The PS2 version runs src/scripts unchanged.

# Patch What the port does
1 perceptionconverter.c: Alllevels_Perceptionconverter's message handler, every level MSG_decalvisible goes to the PC's on_decalvisible, which copies the PC record (id, type, position, sent time; 0x18 bytes) into a 0x54-byte frame for the PC's HandleBloodStainPerception: the PS2's function with the sent-time test. The engine side is ZCheckVisible::UpdateVisible (overrides), which sends the PC record (SDecalVisiblePc, payload layouts), and the message cue copies 0x18 bytes for it.
2 m02.c: M02_M02_Grothobunny's message handler evm02_trygovson runs the PC's handler: when she is free she sits down as on the PS2; when she is busy (actorFlags 0x100000, her sit state, or a perception level other than neutral) a PC-only function sends her the request again in 20 s through Alllevels_Basefunc_SendDelayedMessageInFork and keeps its handle in delayedMessageHandle, as her own 40 s request does.
3 m02.c: M02_M02_Targetbunny's functions table, slot 65 OnKnockedUnconscious calls Zhm3Actor__Disabledrag(her, her) (PC 0x58920).
4 m03.c: M03_M03_Levelcontrol's message handler evm03_exitboxenter kills objectiveOneTarget when Zactor__Isdead says he is alive, then does what the PS2 does; evm03_singerdead also sends MSG_actionshow to actionReceiver once both objectives are done.
5 m10.c: M10_M10_Scientist_InspectSuitcaseState_run's entry point at resume 12 it calls Zgeom__Copyobjectposdir(phoneItem, dropPos) (the phone takes the drop point's position and facing; the PC passes the phone first) and then runs the PS2 function.

How they were checked (26 November 2026, the Windows build, the test mod tools/port/mods/pcscripts with OPENBLOOD_TRACE_SCRIPT_PATCHES=1, each scenario from the PC installation and from the disc):

  • Every PC run logs the patches its level gets (Scripts: M02: pc_scripts patch: ..., three in M02, two in M03 and M10, one elsewhere); runs from the disc and PC runs with OPENBLOOD_SETTINGS=pc_scripts=0 log none.
  • 3. The target bunny starts M02 unconscious, and half a second after the scene loads her OnKnockedUnconscious calls Zhm3Actor__Disabledrag on herself in every PC run; never from the disc.
  • 2. The mod put 47 in the grotto, killed the governor's son next to the bunny and sent her evm02_trygovson at 25.8, 34.8 and 44.7 s. The first found her free and she sat down; the other two found her busy (perception levels 3 and 2), and the PC's retries reached her at 54.77 and 64.73 s, 20 s later each. The one at 54.77 s found her busy again and was retried at 74.80 s; the last two found her free. From the disc no request was repeated.
  • 4. The mod killed the ambassador (the second target) at 19.9 s and sent the level control evm03_singerdead at 24.9 s, and the PC's handler sent MSG_actionshow to the exit's receiver; it then sent evm03_exitboxenter at 29.9 s, and the PC's handler killed the singer (Zhm3Actor__Die, then the level control's characterkilled) before the cut sequence ended the mission. From the disc neither happened.
  • 1. In M02 a guest the mod killed bled, the decal came into a guard's view at 30.86 s, and the PC's function removed it in that frame (removes decal 5, seen at 30.861 s). The other branch, a decal record that waited in a cue and is kept, did not happen in these runs.
  • 5. Applied (the controller held the PS2 function), but not run: in 16,000 frames of M10 (527 s) with the mod sending the scientist starttomove at 80 s and m10_checksuitcase every 30 s, he released both bodyguards but never started the suitcase inspection.

Verify script modules with make match-scripts and compiled objects with make check-digests.

Compared with the real PC game

On 25 November 2026 the Steam release itself was run on the development machine and its first gameplay view of M00 was compared with the port's PC version.

How it was run. The executable's Steam wrapper refuses to start outside Steam ("Failed to find Steam", also from a copy of the installation), so the game was started with steam.exe -applaunch 6860. Steam passes further arguments on, and the engine reads its command line as options: -d Key=Value (or -D) sets one, -i FILE reads an ini file, -dbg_ini and -o are the other switches (FUN_00445f30, PC 0x445f30; strings at PC 0x75cdd8 to 0x75cdf4). -d DefaultScene=M01\M01_main.gms reached the engine but the PC build still opened its front end, so the level was reached through the menus: a new profile, Start Game, Normal, the M00 movie skipped with Esc and the briefing closed with Esc. Keys were sent with keybd_event and the window captured with CopyFromScreen (1024 × 768, windowed, the installation's own Resolution 1024x768, the PC's default graphics options). The run wrote nothing to the installation (a listing of its 265 files before and after was identical) and no file under the user's folders that could be found. The port ran with version=pc, a 1024 × 768 window and the original aspect, the briefing closed by an input script; both views were steady (the port's frames 2,000 and 2,800 agree, as do the PC's at 3 and 12 seconds).

Capture the first gameplay view at the same resolution, camera position and point in the cutscene. Keep the game focused when recording mouse input. Differences in camera heading, NPC positions or post-filter timing can dominate a pixel comparison. Compare the M00 water and sky, M08 distant trees and the opening views of M01 and M05 separately.

Status

Checked on 24 November 2026 with the Steam release:

  • The title scene runs from the installation alone: meshes, textures, animation, sound, streams and movies.
  • M00 (the campaign tutorial) loads and plays: the loading-screen sequence, the level, 47, the HUD and the objectives.
  • All 13 campaign missions ran for 2,000 frames each without a crash or a rejected member in the original Quick Play load test. Quick Play now starts at M01. Start M00 through Play.
  • Converter tests over all 68 PC archives: every member converts; 9,128,191 mesh triangles and 2,583,885 collision triangles match the PC data vertex by vertex; 27,669 textures decode; every banked wave decodes and every stream resolves. See each format page for the numbers and the tests in tools/port/tests/pc_*_test.cpp.

The same 13-mission load test passed from both the installation and the disc. Playback of Ogg Vorbis streams requires FFmpeg.