NightFire2Source

From DanIT
Revision as of 01:19, 15 August 2025 by Dan (talk | contribs)
Jump to navigation Jump to search

A project workflow to port over levels from the 007 Nightfire console version to the Source engine.

Extracting the Files

To extract the 007 Nightfire files, you need:

  1. Place the ISO in the 'iso_dump_folder' folder of 'nightfire-re'.
  2. Run the Python script 'main.PY'.
  3. All the extracted files will be located in the folder 'iso_extract\platform_ps2\ps2_converted'.

Converting to Source

The extracted files include .OBJ files of level parts of the singleplayer FPS levels and all multiplayer levels.
The OBJ files are 3D models, but in order to create a workable level in Source, we need brushes instead of models.
There is no other way than to manually redraw all the surfaces as brushes, but we can import the level parts as model to use as reference to easily draw over it, and the scaling to Source is such that the parts fit on the Hammer grid, thus creating an almost 1:1 replica.

  1. Run the 'Set-Scale.PS1' PowerShell script in the same folder as the .OBJ files.
    (this scales the object 40x, to match the right dimension for the Source engine Hammer Units.
  2. Run the 'Compile-OBJ2MDL.PS1' PowerShell script in the same folder as the .OBJ files.
    (this uses Hammer's studiomdl.exe tool to convert the .OBJ format to Source/Hammer-compatible models including .MDL files.
    Edit this script's settings to fit your projects targeted game.
    The right files will automatically be extracted to your game's 'models' folder.
  3. Open Hammer, place an object (prop_static), change the model to the Nightfire level part you want.
    You can stitch multiple level parts together.

Next Step

Test

  1. A


Notable dimensions (currently based on Drakes Castle / Snow Blind map):

Description Dimensions
Model Scale (Original OBJ to Hammer Units) x40
Texture Scale 0.5 (mostly)
Wall Thickness (Thin) 5
Wall Thickness (Normal) 10
Floor Height 10
Room Size Mutliple of 20
Hallway Width 120
Stairs Step 8x16
Stairs Step Count Multiple of 5
? Height 40