Skip to content

PC assets in a disc run

The PC version reads its installation directly. A PS2 disc run can use selected assets when a PC data option overrides the PS2 defaults. Set game.pc_install to the installation and enable the relevant option through --set, OPENBLOOD_SETTINGS or the configuration’s overrides. This comparison covers the PAL disc and Steam installation.

Playing from a PC installation is a different mode: it plays the PC data alone, converted to the PS2 layouts. This page is about the PS2 game with selected PC assets.

Summary

Asset PS2 disc PC installation Used in a disc run Setting
Cutscenes MPEG-2 PSS, 512 x 448, 25 fps Bink, 800 x 600, 30 fps yes an active PC data source (sound-and-movies.md)
Speech, music, streamed ambience 16 kHz mu-law lines, 32 kHz music up to 44.1 kHz IMA ADPCM, PCM, Ogg Vorbis yes pc_audio (sound-and-movies.md)
Room reverb none EAX 3 per room yes reverb (sound-and-movies.md)
Banked sound effects SPU ADPCM, at most 22.05 kHz IMA ADPCM or PCM, up to 44.1 kHz, longer weapon shots yes, new pc_sound_effects (below)
Loading screens 512 x 448 layers, 8-bit 1024 x 768 layers yes, new pc_loading_screens (below)
Textures 455 MB, 4- and 8-bit palettes 2,473 MB, DXT and RGBA, normal and specular maps through a texture pack texture_pack (textures.md)
Character meshes 2 or 3 levels of detail one finer level of detail added yes, new pc_models (below)
Prop and scenery meshes the same meshes no below
Text English English, with 291 PC-only keys and 6 corrections yes, new: the corrections, and the PC's mouse and key names pc_text (below)
Animations 14-bit and narrower state channels all 14-bit, 8 more animations in 5 scenes yes, new pc_animations (below)
Fonts and menus PC-data mode Menus
Materials and water PC-data mode Surfaces

Sound effects

What the two banks hold

Every scene has a bank of short sounds that the sound DLL keeps in memory: footsteps, impacts, doors, weapons, machines, the menu sounds. On the disc it is the scene's .WAV with the .WHD header table (docs/internals/formats/snd.md). The PC has the same two files for each scene, loose beside the scene zip, with a name before each record (docs/internals/formats/snd.md, "PC version"). Speech, music and long ambience are streamed instead, from PS2_ENG.STR and pc_eng.str; pc_audio covers those.

tools/port/tests/pc_sound_map_test.cpp decodes both sides of every paired banked wave in all 68 scene pairs. The pairing is the one the port uses (below). The numbers count the PS2 wave header records that get a PC wave:

Scene Banked PS2 records With a PC wave Mean rate PS2 / PC PC above 22.05 kHz PC PCM16 PC energy above the PS2 Nyquist frequency Bank bytes PS2 / PC
HitmanBloodMoney (front end) 214 209 20,147 / 31,874 Hz 141 0 7.96 % mean 0.67 / 1.15 MB
M00_main 369 356 19,364 / 29,669 Hz 197 3 8.94 % mean 1.72 / 2.75 MB
M05_main 487 465 19,332 / 30,405 Hz 256 19 10.98 % mean 1.80 / 3.62 MB
M10_main 466 449 19,262 / 29,604 Hz 227 19 12.07 % mean 1.73 / 3.48 MB
all 68 scenes 11,273 10,944 19,908 / 32,999 Hz 7,000 460 13.12 % mean 43.5 / 89.3 MB
  • Codec. The PS2 bank is SPU ADPCM: 16-byte blocks of 28 samples, 4.57 bits a sample, with a two-tap predictor. The PC bank is Microsoft IMA ADPCM (0x400-byte blocks of 2,041 samples, 4.01 bits a sample) for 10,484 of the pairs, and 16-bit PCM for 460, most of them the weapon shots. The two ADPCMs are of the same order of quality; the difference is the sample rate.
  • Sample rate. No banked PS2 wave is above 22,050 Hz (of the paired records, 9,344 are between 16 and 22.05 kHz, 1,267 between 11.025 and 16 kHz and 333 at 11.025 kHz or below). The PC wave has a higher rate in 9,356 pairs, the same rate in 1,588 and a lower one in 82 (Machines/Ventilation/Machine_Ventilation_Air_002.wav is 8 kHz on the PC and 22.05 kHz on the PS2).
  • High frequencies. Measured with 1024-point FFTs over each PC wave whose rate is higher, 13.12 % of the energy on average lies above half the PS2 copy's rate, which the PS2 copy cannot hold; 6,522 of 9,285 such waves have more than 1 % there and 4,186 more than 5 %. The PC waves are not upsampled PS2 waves: the PS2 copies were made from them by plain decimation (snd.md, "Pairing PC sounds with the PS2's").
  • Length. Some PC waves are longer than their PS2 copy (720 of the pairs made by position that pass the sound check, below): the PS2 has the weapon shots, explosions and some loops cut short. Weapons/FireArms/Handgun_Dessert_Eagle/Shot.wav is 0.98 s on the PC and 0.61 s on the PS2, Rifle_Remington/Shot.wav 0.96 s against 0.58 s, Explosion_Bomb_Remote_002__xbox__pc.wav 2.33 s against 1.79 s, Machines/PC_Typing/PC_Typing_001.wav 3.25 s against 0.29 s.
  • Content. The paired waves are the same recordings: resampled to the PS2 rate, the waveforms correlate at 0.956 on average (10,378 of 10,944 at 0.9 or more), and their 10 ms loudness envelopes at 0.990.

The PC effects are therefore better: the same sounds with more of their high frequencies, and the full weapon shots.

Pairing

The PS2 .SND and .WHD keep no names (m_ResourceNameOffset and lEntry are 0), so a PS2 wave cannot be looked up by name. The PC names are only used in the log. port/engine/system/_sdl/pcdata/pcsoundmap.cpp pairs the two Wave tables instead:

  1. Both discs list a scene's Wave records in the same order. The PC adds or drops one to seven in 11 scenes, and some sets of variations are in another order. A Wave keeps its group byte (m_Filler1, which a banked WHD record repeats as lId) and its duration: the PC re-encoded the waves at other rates, and the lengths stay within a millisecond. PcSoundPairWaves takes the longest common subsequence of the two tables under "same group, same storage (banked or streamed), durations within 1.5 ms plus 0.5 %".
  2. A PS2 record left over is looked for within 16 places of where the pair before it says it should be, under the same test: a reordered set of variations.
  3. What is still left between two pairs is paired by position when both tables have as many records there, with the same storage, in the same order. These are the PC's re-edits (the longer shots) and the records whose group byte the PC retuned: the group byte of the weapon shots, the menu sounds and some explosions and impacts differs by 5 between the discs (Osd/Menu_Scroll.wav is group 19 on the PC and 24 on the PS2, Explosion_Bomb_Remote_002__xbox__pc.wav 72 and 67). The group byte is kept as a test in step 1, because without it a PS2 Remington shot cut to 0.582 s pairs with the PC's Rifle_Sg_552/Shot.wav, which happens to last 0.584 s.
  4. A pair made by position is used only when the two waves sound alike: PcSoundEnvelopeCorrelation correlates their loudness over 10 ms windows over the PS2 wave's length, the PC wave read at the PS2 rate, and the pair needs 0.8 (PC_SOUND_PAIR_MIN_ENVELOPE). A wave under 30 ms cannot be measured and is used when its duration agrees.
  5. A paired PC wave replaces the PS2 one only when its rate is at least the PS2's, or it is longer (PcSoundPreferPc).

Over all 68 scenes, 1,492 pairs are made by position. 1,257 pass the sound check: 583 weapon shots, 267 menu sounds, 204 Action sounds, 68 bullet impacts, 27 explosions and others. 235 do not, among them Impacts_Bullet/Water/Impact_Water_2.wav (envelope 0.64), Character/MalePeeing/Male_Peeing_001__xbox__pc.wav (2.39 s on the PC, 0.88 s on the PS2, envelope −0.22) and Handgun_Browning/Shot.wav (0.76). Their PS2 waves play. 10 PS2 records serve several table entries whose PC waves have different names; the first pair is used (the PS2 merged identical records, the PC kept one per entry, Animal_Cicadas_M01_001__xbox__pc.wav in two folders).

The test reports a pair as probably wrong when both its waveform and its envelope correlate below 0.8: there are none. 329 banked PS2 records (332 Wave table entries) have no PC wave: 82 for the PC's lower rate, the rejected pairs, and records that only one disc has.

In the port

port/engine/audio/soundengine/_sdl/pceffectssdl.cpp, with the setting pc_sound_effects (a disc run with a PC installation, set by hand or in a test since the launcher's version choice):

  • ZDllSoundSDL::InstallWaves (the engine installs the sound data, the header table and then the bank) calls PcEffectsInstall. It finds the PC scene zip as the room reverb does (PcSceneZipPath in roomeffectsdl.cpp: SCENES\M00\M00_ALBI.WHD is Scenes/M00/M00_albino.ZIP, ignoring case), reads its .SND member and the loose .WHD and .WAV beside it (PcSceneSiblingPath), reads the PS2 Wave table from the engine's installed sound data (ZDllSound::GetPackedObjectTypeAt), pairs the two and checks the pairs made by position with both waves decoded. It keeps a sorted table of PS2 header offset to PC header offset and the PC .WHD and .WAV (at most 4.5 MB). This takes 6 to 9 ms a scene.
  • For a pair made by position whose PC wave is longer or shorter, it writes the PC duration into every PS2 Wave record of that header (SWave::m_fDuration, in the engine's copy of the .SND). ZDllSound::AddNewPlayBuffer keeps a source for its wave's duration (at least 0.3 s), so without this a longer PC shot would be cut at the PS2 length. M00 has 25 such records, M06 41.
  • FindOrDecodeWave asks PcEffectsDecode for a banked PS2 record before decoding it. A PC wave is decoded whole (PcSoundDecodeBankedWave) and cached under the PS2 header offset at the PC rate and channel count. The mixer's step is the wave's rate times the engine's pitch, and start offsets are in 1/256 s, so neither depends on which rate the wave has. A mod's replacement (assets/sounds/) still comes first, and a PC wave that does not decode leaves the PS2 one.
  • Nothing changes in a PC-data run (PcDataActive): the scene's bank is the PC's already.
  • The log says, once a scene: pc effects: 436 of 450 banked waves of host0:SCENES\M06\M06_Main.whd from .../Scenes/M06/M06_main.WAV (391 records of the same length, 44 paired by position and checked, 9 rejected by their sound, 5 kept for their higher PS2 rate, 41 durations from the PC; 9 ms). With OPENBLOOD_SOUND_LOG=1 it also logs each pair made by position with its envelope, and each PC wave it decodes: sound: wave 00c690 from the PC bank: Water/Water_Splash/Water_Splash_Boat/Water_Splash_Boat_003.wav (44100 Hz, 124404 frames; PS2 22050 Hz, 62202 frames).

Verification

  • pc_sound_map_test over all 68 scene pairs (commands in the file): exit status 0, no probable wrong pair and no PC wave that fails to decode. Its totals are the table above.
  • The in-game log and the mapping test give 356 records in M00 and 436 in M06.
  • All 13 campaign missions from the disc with pc_sound_effects=1 and pc_loading_screens=1, 900 frames each through the launcher's quick start: no crash, and each scene's count agrees with the test (M00 356 of 369, M05 465 of 487, M06 436 of 450, M10 449 of 466, M12 436 of 454, M13 414 of 422; 7 to 14 ms a scene).
  • OPENBLOOD_WAVE_DUMP_DIR with the setting on and off, M00: the same header offsets decode to the PC rate and length with it on (00c690 22,050 Hz and 62,202 frames off, 44,100 Hz and 124,404 frames on; 00ca50 22,050 Hz off, 38,114 Hz on, with 7.5 % of its energy above 8 kHz against 2.1 %). A 40-second mix dump (OPENBLOOD_SOUND_DUMP) at the start of M00 hardly differs, because the streamed ambience and music dominate it.

Limits

  • Pitch, volume and the 3D calculations are the PS2 engine's; the PC retuned the volume of 55 Sound records, which the PS2 data keeps.
  • A wave the PS2 cut short and the sound check rejects keeps its PS2 length.
  • The decoded-wave cache is 192 MB, or 448 MB when pc_audio also plays PC streams. Waves are decoded on demand.

Loading screens

Each mission scene has a loader scene beside it, LOADER_S.ZIP on the disc and Loader_Sequence.ZIP on the PC, whose script fades pictures in and out while the mission loads: the mission title, the target's portrait and name, a background and the progress bar (loadersequencesdl.cpp).

PS2 PC
Screen 512 x 448 1024 x 768
Tiles, M00 64 (128 x 256, 128 x 128 and 128 x 64) 24 (512 x 512 and 512 x 256)
.TEX, M00 1.21 MB 5.29 MB
Pictures, M00 7 7, the same script timing (11.3 s)

The pictures are the same, at about twice the resolution along each axis. Every PC position and size along X is exactly twice the PS2's (the progress bar's first key is at x = −922 on the PC and −461 on the PS2).

With pc_loading_screens, the loader reads and converts the PC scene’s loader PRM and TEX. A missing loader archive selects the PS2 loader. If the archive exists but a member fails conversion, the port logs the rejected member and draws no loading screen.

The player draws in the PS2's 512 x 448 screen pixels. A PC loader is scaled by 512 / 1024 along X and 448 / 768 along Y (LOADER_PC_SCREEN_WIDTH, LOADER_PC_SCREEN_HEIGHT). Without the scale the PC pictures were drawn at twice their size, with the mission title off the bottom right: PC-data runs use the same scale. OPENBLOOD_LOADER_LOG=1 logs every picture's tiles (position and size in loader units, texture id) and key frames, which is how the two screens were measured. In the 13-mission sweep above every mission's PC loader converted and played (7 to 13 pictures, 22 to 36 tiles). Captures of M00's loader with the setting on and off show the same layout; the title, the portrait of Joseph Clarence and the name are sharper with it on.

Animations

The PC scene animations (.ANM) are the PS2's at a finer quantisation, plus eight animations five PS2 scenes lack (anm.md). With pc_animations=1 (pc_animations; since the launcher's version choice the PlayStation 2 version reads no PC installation, so this disc-with-PC-assets mode is set by hand or in a test) a disc run takes both, merged into the disc's member so that every number the game keeps stays the disc's (anm.md: the PC animations in the PS2 game).

What changes

  • State channels. Every state channel of the 11,373 state streams in the 68 scenes is the PC's 14-bit one, where the PS2 stored 10-bit quaternions, 11-bit joint angles and 6- to 13-bit foot positions. The poses move by at most 0.22° (quaternions), 0.27° (angles) and 0.07 units (foot positions); the bone rotations, root motion and poses are bit for bit the same either way.
  • The air rifle. M06 (The Murder of Crows), M08 (Death on the Mississippi), M10 (A House of Cards), M11 (A Dance with the Devil) and M12 (Amendment XXV) lack the air rifle's reload (Hero_UB_WeaponHandling#UB_Reload_Airrifle, all but M08) or its first-person hold (Hero_1Person#UB_1P_Hold_AirRifle, all but M10). The rifle lies in A New Life (M05), whose scenes have both; 47 can keep it, find it in the hideout and take it into these later missions. The PS2 game asks for both by name, from the weapon template's .PRP properties, so on the disc the rifle reloads with no animation (the dart is back the next frame) and in first person 47's arms stay down and the rifle is not in the picture. With the setting he breaks the rifle open and loads a dart (101 frames) and holds it to his shoulder in first person, as on the PC. anm.md has the functions and the evidence. No game function changes: once the data has the animations, the PS2 code plays them.

What stays the disc's

  • Animation indices, names, headers, meta keys (the frame events) and m_SoundIndex of the disc's 12,955 animations, and its template ids. Save games, the variation lists and the scripts that name animations see the same numbers with the setting on or off. The eight added animations come after the disc's, and their two templates after the disc's highest template id; a save made during an air-rifle reload with the setting on names an animation the disc's file does not have.
  • Sounds. m_SoundIndex is a byte offset into the scene's .SND, whose PC layout differs; the disc's animations keep the disc's offsets, which play the same sounds, footsteps included (their timed footstep keys are inside the .SND record the offset names). An added animation's PC offset would become the disc offset that paired animations with the same PC offset have; the eight air-rifle animations have none. pcsoundmap.cpp pairs Wave records, not the Seq records these offsets name, so it is not needed here.
  • The quaternion, ground and pose streams, the bone and pose lists and chunks 5 and 9.

In the port

PcMergeAnimations (port/engine/system/_sdl/pcdata/pcanimmerge.cpp) builds the member; PcDataMember (pcdata/pcdata.cpp) serves it in place of the disc's .ANM when the setting is on and the PC installation has the scene. The merge takes 23 to 46 ms when a scene loads, and the member is 57.5 MB over all scenes against 45.4 MB. A scene without a PC twin, or a member that does not merge, keeps the disc's; the log says which (pc animations:). From the PC installation alone (pc-data.md) the scenes are the PC's own and already have the eight animations; the setting does nothing there.

Verification

  • pc_animations_test --merge (anm.md): 68 of 68 scenes merge; 0 errors in the checks that every disc animation, template and variation list is unchanged and every PC template and list is present; off against on as the engine decodes the states, the differences above; the merged state streams are the PC's bytes.
  • OPENBLOOD_PCANIM_TEST=airrifle in M06, from the disc with the setting off and on and from the PC installation (captures every 10 frames with OPENBLOOD_CAPTURE_DIR): off, reload animation none, the dart back one frame after the reload starts, aim none in first person and an empty first-person picture; on and from the PC installation, the reload action runs for 104 frames with UB_Reload_Airrifle (47 swings the rifle up and breaks it open, the HUD shows 0 darts until it ends) and the first person shows the rifle at the shoulder with UB_1P_Hold_AirRifle.
  • Sounds in M06 with OPENBLOOD_SOUND_LOG=1 and pc_sound_effects=1 (which names the banked waves), three runs of 1,500 frames each way: footsteps (Character/Footsteps/...) started 33 to 56 times with the setting off and 23 to 39 times with it on, out of 47 to 93 sounds; the counts vary that much between runs of one setting because the crowd's walking is random. The waves the animations start are the same records: their m_SoundIndex values are the disc's (checked for all 12,955 animations).
  • The 13 missions for 2,000 frames each with pc_animations=1 (quick start, no movies), from the disc and from the PC installation: all 26 runs exit 0. From the disc, each mission's main scene is merged (M06, M11 and M12 with 2 animations added, M08 and M10 with 1, the others with none); from the PC installation the setting does nothing and the PC members are used as they are.

Character and prop meshes

The PC meshes were compared with the PS2's in M00 and M10 by pairing prims through their full geom path in the .PRP tree (characters' meshes are all named Ground, so only the path tells them apart). Vertices are PC index-buffer vertices against PS2 unique positions; hidden sub-prims and static shadows are left out.

Scene Paired prims Static triangles PC / PS2 Rigid (props, weapons) PC / PS2 Skinned, LOD 0 PC / PS2
M00_main 1,420 146,457 / 147,197 (1,345 of 1,363 equal) 21,612 / 21,511 (31 of 42 equal) 25,050 / 19,106 (1.31 x)
M10_main 956 89,931 / 101,249 (751 of 878 equal) 71,603 / 78,214 29,191 / 21,601 (1.35 x)

Characters, triangles per level of detail (PC / PS2):

Character Bones LOD 0 LOD 1 LOD 2
Hitman_01 (47) 99 2,771 / 2,275 2,275 / 2,275
M00 FrontGateGuard 100 3,092 / 2,047 2,047 / 2,047 1,053 / 1,053
M00 Secretary_01 97 2,737 / 2,139 2,139 / 2,139 2,139 / 2,139
M10 FloorGuard_01 100 3,319 / 2,325 2,325 / 2,325 972 / 972
M10 Sheik 97 2,746 / 1,974 1,974 / 1,974 1,974 / 1,974
  • The PC adds one level of detail to each character. On the PS2 one mesh carries LOD mask 3 and is drawn for LOD 0 and 1; the PC splits it into a new mask-1 mesh, 1.22 times the PS2's triangles for 47 and 1.28 to 1.51 times for the others, and the PS2 mesh as mask 2. Every vertex of the PC's LOD 1 and LOD 2 lies on a PS2 vertex; 81 to 98 % of the new LOD 0's do, so it is a refinement of the same model.
  • LOD 0 is drawn only close up: ZRender::SetLOD(m_LODTableCharacters, 4, 6) gives it to characters within about 3 m of the camera (the LOD index is about the distance / 100 at a 67.4° field of view). The gain is 47 in third person and people next to the camera; draw_distance widens that band.
  • Props and scenery are the same meshes. Where counts differ the PS2 is as often the larger: in M10, 137 PS2 meshes have more triangles, 33 of them exactly twice the PC's (Pc10I_HorseStatue_01 916 / 1,832), apparently faces doubled where the PC uses a two-sided material.
  • Character meshes have no collision (lColiId is 0 in every PS2 bone-strip record of M00 and M10), so the finer meshes need nothing but the prims.

PC character models in a disc run

With PC CHARACTER MODELS (pc_models, set by hand or in a test since the launcher's version choice; it needs a PC installation), ZSysFileSDL::GetSize and Load serve a disc scene's .PRM through PcModelsMember (port/engine/system/_sdl/pcmodelssdl.cpp). It reads the PS2 member from the scene archive and the same scene's .PRM and .MAT from the PC scene zip (PcSceneZipPath, as pc_sound_effects finds its bank), and PcMergeCharacterModels (port/engine/system/_sdl/pcdata/pcmodels.h) adds the PC level 0 to every character it can pair. The merged member is kept until the engine has read all of it and merged again when the scene loads again; a scene that fails, or has no PC zip, keeps the disc's member. prm.md, "PC character levels of detail" describes the pairing and the records; in short:

  • Bones: the counts do not always agree. The PC keeps muscle helper bones (xtra_lmus_forearm, ...) the disc dropped: two at the end for the M00 Scoop, Swing King and lawyer (100, 98, 95 bones against 98, 96, 93), nine in the middle for M06's guests. Bones are matched by name and bind pose, and a PC bone the disc lacks is drawn with its nearest ancestor. Pieces: the PS2 cut each PC object into pieces of at most 30 bones (47's 872-triangle head into 623, 107, 108 and 34), so level 1 matches material by material, not object by object; the PS2 sub-prims' lVariantId (0x8000 plus a material slot) groups the pieces. PC-only layers: the PC level 0 adds a 108-triangle additive shell over the eyes (Eyes_outer, no diffuse map) and glasses lenses (Accessories_Glass_Transp); they have no PS2 texture and are left out;
  • every new sub-prim takes the texture, draw mode, colour and bias of the PS2 sub-prim that draws its material at level 1, and in a variant list the record of that sub-prim, so variant textures stay the PS2's;
  • characters stay the PS2's when the bones, variants or level 1 do not match, when a level-0 material finds no PS2 texture, or when the disc already has a level 0 of its own (12, among them the M09 dog, whose PS2 level 0 is the PC's).

Over the 68 scene pairs, 118 of the 147 characters with a finer PC level 0 get it, 1 to 11 a scene: level 0 goes from 253,163 to 326,882 triangles, 1.17 times for 47 (2,275 to 2,663; the eye shells left out) and up to 1.46 times. tools/port/tests/pc_models_test.cpp checks the merged buffers (every chain and variant list decodes, level 1 unchanged, every vertex on a PS2 bone).

Interaction with draw_distance: the level is chosen from the distance divided by draw distance capped at 4, so the PC model is drawn to about 3 m at 1, 6 m at 2 and 12 m at 4; 47 draws level 0 at every distance either way (ZHitman3::WantViewPrimHide).

Vertex grid. ObjectVertexScale gives all chunks of one object the same position grid, starting at 1/64 unit and doubling as necessary. Vertices shared between chunks then decode to the same position.

Checked in the game (25 November 2026):

  • OPENBLOOD_MODELS_LOG=N logs every N frames each drawn character's distance, LOD level and triangles. 47 in M00: 2,275 triangles in 10 sub-prims with the setting off, 2,663 in 7 with it on, 2,771 in 8 in PC-data mode (the eye shell drawn there). Other characters switch as the table says: the M03 photo tourist at 300 cm draws level 0 with 2,882 triangles, M06's bartender at 297 cm 2,816 and the delivery man at 271 cm 2,710; the M05 FBI guard at 357 cm draws level 1 (1,937), and with draw_distance=4 level 0 (2,748 against 1,937 with the setting off); the M05 caterer at 1,430 cm level 3 (1,065), or level 1 with draw_distance=4.
  • Close-ups (resolution_scale=3; OPENBLOOD_DETERMINISTIC=1 for the same frame with the setting on and off): 47 in M00 from the front, and the M05 FBI guard at 3.5 m with draw_distance=4. The PC heads are rounder and the jaw and collar smoother; textures sit where the PS2's do, skinning follows the PS2 animation without cracks, and the eye shells and lenses are absent, as intended. Shading differs a little: the PC normals of the level-0-only vertices are the PC's own (at positions both meshes share they agree with the PS2's to a median 0.7° to 2.4°, 90% within 14°), so a face can come out a shade lighter or darker in the same light.
  • All 13 campaign missions from the disc with pc_models=1, 2,000 frames each through the launcher's quick start with an input script that closes the briefing and walks 47 about: every run exits 0, every mission scene merges (M00 8 of 15 characters, M01 10 of 16, M02 9 of 16, M03 9 of 21, M04 8 of 14, M05 9 of 16, M06 6 of 89, M08 8 of 14, M09 9 of 20, M10 10 of 15, M11 6 of 31, M12 7 of 14, M13 7 of 14; 57 to 102 ms; the prims grow 0.7 to 1.7 MB), and the logs show characters at every level from 0 to 6 drawing their level's triangles.
  • OPENBLOOD_MODELS_TEST=closeup (port/engine/debug/_sdl/modelstestsdl.cpp) puts 47 next to one actor after another for such captures; the camera does not always end up facing the actor, so it is an aid, not a test.

The larger visible difference on characters remains their textures (47's face is 512² on the PC, 128² on the PS2), which a texture pack can give; pc_models keeps the PS2 textures, which is what the PS2 sub-prims' texture ids name.

Text and languages

  • Languages. Both are English only. The European disc has PS2_ENG.STR and no other language file; the PC has pc_eng.str. No .LOC on either side has a language folder.
  • Coverage. The PC has 54 .LOC files and the disc 56 (attractmode and bootmenu are PS2 only). Every PS2 key is on the PC: 197,229 PS2 strings, 212,943 PC. Each PC scene adds the same 291 keys: Interface/Online (245), Interface/Options/PC/* (28) and Options/EAX, Interface/KeyConfiguration (CycleCCs to CycleCoins, FireWeapon2b, PickupSPC), Interface/Mouse (7) and Headers/RenderOptionMenu. The PS2 code reads none of them.
  • Platform keys. The disc's .LOC already holds the PC's tutorial texts (41 _PC keys) and Legend_PC; the port shows them with keyboard prompts.
  • Differences. 493 strings differ, which are 14 keys repeated in every scene that has them: 6 in AllLevels, 6 in the 25 newspaper tables, a subtitle in 18 tables and a tutorial in one. The corrections: the Flatline newspaper's short target name (the template's "M05") (NewsPaper/Statistics/MissionData/Target1NameShort/4 points at the full name on the PS2, so it prints "Carmine DeSalvo" where "DeSalvo" was meant), "is at the moment questioning" to "are" (Sentences/160), the was/were logic of the murder article template (which also changes its layout, LinesInArticle 85 to 83 and a <kerning -40> headline), two online headers and double spaces in M00/Tutorials/01_Control_PC. The rest are rewordings ("POINT OF INTEREST" becomes "INTEREST POINT", "Violent Offender" "Fierce Offender") and PC-specific text (InsufficientSpace 80 Kb to 200 Kb, FireWeapon2 "Scope View").
  • M05 garage doors. The PS2 code labels the action with hard-coded English ("Open Garage Door"); the PC uses AllLevels/Actions/OpenDoor ("Open Door"), which the disc's M05_main.LOC also has. In English the PS2 label is the more specific one.

PC text

With PC TEXT (pc_text, set by hand or in a test since the launcher's version choice; it needs a PC installation), a disc run shows the PC version's corrections of the disc's text. ResourceCollection::LoadFile (0x0014c4fc) is replaced in port/engine/enginedata/_sdl/localeoverridesdl.cpp: it reads the disc's table as the game does, then the .LOC of the same scene's PC zip (PcSceneZipPath, which maps the disc's 8.3 names such as M00_ALBI to M00_albino.ZIP), and PcLocMerge (port/engine/system/_sdl/pcdata/pcloc.cpp) builds the table the engine keeps. Each scene load logs one line (pc text: host0:SCENES\M04\M04_news.loc: 4 strings take the PC text, 16 PC-only strings added, 501085 to 501773 bytes (2 ms)) and the corrected keys. A merge takes 1 to 14 ms.

A key-level merge, not the PC's whole table. The PC tables have every disc key, but taking them whole would also bring the rewordings and the PC and online strings below, and their sound ids are packed offsets into the PC scene's .SND (loc.md), which the disc's sound bank does not share: subtitled voice lines would name the wrong records. The merge keeps the disc's table and replaces only the text of the chosen keys; each element keeps the disc's mask, second string, sound id and trailing word, and the tree is written again with every offset recomputed.

The 14 keys that differ (493 strings: each key repeats in every scene that has its folder):

Key Scenes Disc PC Class Taken
NewsPaper/Texts/NewsPaperTextStats_Murder 25 "All of the victims was found dead" for one victim "The victim was" when TotalKilled is 1; LinesInArticle 83 and a <kerning -40> headline (below) correction (grammar), with a layout change yes
NewsPaper/Statistics/MissionData/Target1NameShort/4 25 names Target1Name/4_{M05Target}, the full name Target1NameShort/4_{M05Target} correction (data) yes
NewsPaper/Statistics/MissionData/Target1NameShortArticle/4 25 _Multi name error short_ Target1NameShortArticle/4_{M05Target} correction (data); no template on either side reads the key yes
NewsPaper/Statistics/Sentences/160 25 "is at the moment questioning" "are" correction (agreement) yes
M00/Tutorials/01_Control_PC 1 "To Sneak hold␣␣the␣␣Sneak key" single spaces correction (typo) yes
FMVSubtitles/Outro/1018-1171 18 "May I check your briefcase?" "May I take your briefcase?" subtitle correction (not checked against the voice line) yes
NewsPaper/Statistics/Rating/1x5 25 Violent Offender Fierce Offender rewording no
NewsPaper/Statistics/Rating/2x5 25 Violent Criminal Violent Thug rewording no
AllLevels/Map/Icons/InterestPoint 54 POINT OF INTEREST INTEREST POINT rewording (the map legend, named in the scene .PRP) no
AllLevels/Interface/KeyConfiguration/DropItem 54 Drop Drop/Throw PC key list wording; no PS2 code reads it no
AllLevels/Interface/KeyConfiguration/FireWeapon2 54 Secondary Fire Scope View platform (the PC's right mouse button) no
AllLevels/Interface/XenonSaveLoad/InsufficientSpace 54 a saved career needs 80Kb 200Kb platform (the PC profile's size); no PS2 code reads it no
AllLevels/Interface/Headers/txtFriendRequest, txtBlockRequest 54 capitals, "RECEVIED" sentence case, "received" online (the PC's online dialogs); the port has no online service no
  • Flatline's target. In Flatline (level 4, the disc's SCENES\M04; the template's comments call it "M05") ZHM3LevelControlM04::CalculateExtraStats stores the final target as MainTargetNumber, and the template picks names by {M05Target}. On the disc the short name is the full name, so the article's second paragraph reads "Lorenzo Lombardo was believed to be the victim"; with the setting, "Mr. Lombardo was believed".
  • Sentences/160 follows PoliceDepartment/{CurrentLevel}: "Baltimore Police Department", "local police", "Paris Police", "LAPD", "NOPD", "The FBI" and others. "is" is wrong after the five plural ones ("local police is") in any English; "are" after the singular ones is British usage. The PC's form is never ungrammatical, so it is taken.
  • The outro subtitle is the M13 ending cutscene's (FMVSubtitles/Outro, named only by M13_main.PRP); the other 17 scenes carry the folder unread. It is the only subtitle the PC changed. It was not compared with the recorded line. OPENBLOOD_PCTEXT_TEST=outro (port/engine/rendervideo/_sdl/videooverridesdl.cpp) starts the M13 scene's Movies/Outro player, the one whose subtitle folder is /FMVSubtitles/Outro, after 300 of its updates and turns the subtitles option on, so a disc run of M13 reaches the line without playing the mission (run without OPENBLOOD_NO_MOVIES). The picture captures (OPENBLOOD_CAPTURE_DIR) show "Welcome, Mr. Johnson, welcome. May I check your briefcase?" without pc_text and "... May I take your briefcase?" with it, about 34 seconds into the movie (frames 1018 to 1171 of 30 a second).

For the FMV subtitle compositing limit, see Sound and movies.

PC-only keys. Each PC scene adds the same 291 keys. A disc run using a PC installation (with or without pc_text) gets the 16 under AllLevels/Interface/Mouse (mb1 "Left mouse button" to mb5, wheelup, wheeldn) and AllLevels/Interface/KeyConfiguration (CycleCCs, CyclePistols, CycleSmgs, CycleAssaultRifles, CycleSnipers, CycleBinoculars, CycleCoins, FireWeapon2b, PickupSPC), so port features that name PC controls (mouse menus, key names, the weapon quick keys) can look them up with GetResourceText. No PS2 code and no disc XML reads either folder, so nothing changes on screen. The other 275 (Interface/Online, Interface/Options/PC, Options/EAX, Headers/RenderOptionMenu) are not added.

The murder article template

NewsPaperTextStats_Murder is the newspaper's main article: the page's NewsPaperTextStats element reads NewsPaper/Texts/NewsPaperTextStats (ZStatisticsTest::LoadText, 0x3a19dc), which includes it through {locale}; the statistics parser expands it and a ZSIMPLEHTML lays it out (loc.md). The PC changes three things:

  1. The was/were logic. For clean kills (CleanKills, non-target kills without a visible cause, ZHM3LevelControl::IncCleanKills) the disc writes {Numbers} or "all", "of the victims", then was or were by CleanKills, so one victim gives "All of the victims was found dead in mysterious circumstances". The PC writes "The victim was" when TotalKilled is 1. Its branch leaves a <caps Next> without its </caps>, which changes nothing: Next pops itself after one letter and </caps> never pops the stack's last entry.
  2. LinesInArticle 85 to 83: the line below which the six target background paragraphs (<beforeLine {LinesInArticle}>) still fill the article.
  3. <kerning -40> around the headline. ZSIMPLEHTML::CreateGeometryInternal (0x20f948) adds Kerning() / 10.0f pixels between two letters of a word (the PC, 0x558e10, multiplies by 0.1 at 0x755e30), so the headline's letters move 4 pixels closer. </kerning> pops the line-spacing stack, not the kerning stack (ParseHtmlTag 0x20ecac, case nKerning; the PC's 0x558680 shares one body for cases 0xb and 0xd), so the -40 holds until the first paragraph pushes <kerning -10>: only the headline is tightened. The headline's <linespacing -20> is popped by that </kerning> instead of its own </linespacing>, which then finds one entry and does nothing; the result is the same.

Rendered with the disc's fonts in Flatline's newspaper, the PC template is correct: OPENBLOOD_PCTEXT_TEST=news (port/engine/debug/_sdl/pctexttestsdl.cpp) ends the mission and loads M04/M04_news, OPENBLOOD_PCTEXT_STATS adds counters, an input script zooms in, and OPENBLOOD_DETERMINISTIC=1 makes the runs alike (Lorenzo Lombardo is the final target in every one).

The article without and with pc_text

The article with one innocent killed, one clean kill and two witnesses, without (left) and with pc_text: "Mr. Lombardo", "The victim was found dead" and "LAPD are".

Headlines with the disc's and the PC's template

The headline for the same mission (rows 1 and 2) and for 25 kills ("TERRORIST MASSACRES 26!", rows 3 and 4), with the disc's template and then the PC's: the letters are 4 pixels closer and none touch. (The right edge is the zoomed view's, not the headline's.)

  • In the light case the article ends at the same "[CRIME STORY, p. 5]" with either template; the PC's text is about one line shorter, so the first column takes one more line. With 25 kills the article runs on into a third column at the top right with the disc's template and with the PC's alike; LinesInArticle only drops a background paragraph in an article that is already short.
  • The port therefore takes the PC template as it is. OPENBLOOD_PC_TEXT_TEMPLATE=logic takes the PC's was/were logic with the disc's layout values (LinesInArticle 85, no headline kerning), and disc the disc's template; both are for comparisons.

The training level's Controls splash without and with pc_text

M00/Tutorials/01_Control_PC, which the port shows while the keyboard is in use (ZHM3LevelControlM00::GetLocalisedText): the disc's double spaces show (top) and are gone with pc_text (bottom).

PC-data mode. A PC-data run reads the PC tables themselves: PcTextMerge returns at once when PcDataActive, and no converter touches .LOC (pc-data.md). The same OPENBLOOD_PCTEXT_TEST=news run from the PC installation shows "Mr. Lombardo", "The victim was" and the PC's headline. None of the 14 PC strings is wrong for the PS2 code there: the two KeyConfiguration strings and InsufficientSpace are read by no PS2 code (its memory card messages are MemoryCard/* keys), the online headers belong to windows the port never opens, and the rest are the PC's own wording. With the PC fonts, which are wider, the first paragraph's "Lorenzo" stands alone on a fill-justified line and ZSIMPLEHTML::FillJustify spreads its letters; that is layout, not text.

Verification. tools/port/tests/pc_loc_test.cpp merges all 54 pairs of tables (the disc's attractmode and bootmenu have no PC counterpart) and reads every string back through a port of the engine's Lookup: 0 failures. Each corrected key reads the PC text, every other disc string the disc text, the 16 PC-only strings the PC text; a second merge of the result changes no byte; the logic and disc forms of the template are checked too. 119 strings change: 4 in each of the 25 news and post-mission tables, the outro subtitle in 18, the tutorial in 1. All 13 missions ran 2,000 frames from the disc with pc_text=1 and exited 0.

Other assets

Scene members, all scenes (PS2 71, PC 68):

Member PS2 PC
.TEX 455 MB 2,473 MB
.PRM 158 MB 376 MB
.ANM 45 MB 57 MB
.PRP 31 MB 34 MB
.LOC 18 MB 22 MB
.SND 7.8 MB 27 MB (the extra is names)
.OCT 16.5 MB 7.1 MB (another layout)
.MAT none 11 MB

.GMS, .BUF, .SGP, .RMC and .RMI are within 8 %.

  • Animations: used, with pc_animations (above).
  • Gameplay XML: nothing to take. difficultysettings.xml, money.xml and notoriety.xml are byte-identical in all 77 copies. The menu XML is converted in PC-data mode only.
  • .GMS, .PRP, .BUF: not used. They follow the PC geom numbering and name PC .SND and .PRM objects.
  • Movies. All PC movies are Bink at 30 fps; the cutscenes 800 x 600, Intro_bi 768 x 576 and Trailer 720 x 480. The PC has one more, gfxlogo.bik (640 x 480, 120 frames), which the PC title scene starts; it is not worth adding.
  • Install files. ReadMe.rtf holds install and DirectX notes, HitmanBloodMoney.ini only the resolution, window position and DefaultScene; ENCVAG.DLL (Sony's VAG encoder), testapp.exe and runme.* are leftovers.
  • Textures. The PC textures have four times the texels or more and add normal, specular and translucency maps. The PS2 and PC number a scene's textures differently (446 of 22,101 named textures share an id), so the port uses them through a texture pack matched by hash or name (textures.md).

Reproducing

  • tools/port/tests/pc_sound_map_test.cpp (build line in the file): pc_sound_map_test build/pc-only/corpus-pc "<pc install>" build/pc-only/corpus-ps2 <PS2 disc files> [-v] [M00/M00_main ...]. The two corpora are the scene zips unzipped, one directory per archive; the PS2 disc files are the ISO's files (SCENES/...). -v lists every unpaired record, every low correlation and every PS2 record two names share.
  • pc_loc_test DISC.LOC PC.LOC [-v] merges a pair of scene tables and checks the strings. To capture the newspaper, enable pc_text with the installation selected and set OPENBLOOD_LAUNCHER_PLAY=quick, OPENBLOOD_LAUNCHER_MISSION=3 and OPENBLOOD_PCTEXT_TEST=news.
  • The mesh, text and member-size numbers came from one-off Python scripts over the same two corpora (tools/port/scene/loc.py for the .LOC trees, tools/port/prm_dump.py and prim-decode.md for the PS2 prims, pcprims.cpp's layouts for the PC's).

Use pc_animations_test --merge <pc corpus> <ps2 corpus> [-v] for animations and pc_models_test [-v] PS2.PRM PC.PRM for models. Build commands are in the respective files under tools/port/tests/.