Duke Nukem Forever
0 of 0

File information

Last updated

Original upload

Created by

DaZombieKiller

Uploaded by

xaeroneo

Virus scan

Safe to use

About this mod

This toolset opens up new possibilities for customizing the game by providing features for mesh extraction, skeleton exporting, model conversion, and data file repackaging.

Permissions and credits
If you want to mod or chat about Duke Nukem Forever as a whole, consider joining the DNF Leak Community server

This toolset opens up new possibilities for customizing the game by providing features for mesh extraction, skeleton exporting, model conversion, and data file repackaging.

GitHub/Source Code: DaZombieKiller/DukeMeshTools

Setup:
  • Edit the "extract_from_dnf.cmd" file, ensuring that "DNF_PATH" points to your Duke Nukem Forever installation.
  • After editing, run "extract_from_dnf.cmd" to generate the 'meshes' folder, setting the stage for your creative endeavors.

Exporting Skeletons:
  • Convert .skl files to .dae effortlessly using the 'sklconv' command. This conversion facilitates importing the skeleton into a modeling tool for rigging custom models. Refer to "get_machinegun_skeleton.cmd" for a practical example.

Converting Models:

Utilize the 'mshtool convert' command to generate .msh files compatible with Duke Nukem Forever. This command, leveraging the Open Asset Import Library, supports various model formats. The structured command is as follows:

mshtool convert <input file path> <meshes folder path> <input .skl path> <output .msh path>

Ensure the input .skl path points to a file within the meshes folder, crucial for DNF's skeleton referencing.


Repackaging Data Files:
  • Employ the 'mshtool build' command to reconstruct meshes.dat and skels.dat. A practical example can be found in "make_packages.cmd." Copy the resulting .dat files into the DNF 'SkinMeshes' folder, replacing the originals.

Some Commands:

  • Explore advanced functionalities like "--auto-rig root" for automated rigging.