Duke4.net Forums: Duke Nukem Forever (2011) Model Conversion Tools - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Duke Nukem Forever (2011) Model Conversion Tools  "12 years later..."

#1

For the past few days I've been working on and off on some tools for importing new models into DNF, here's the HRP Ripper as an example:
Posted Image
SETUP
* Edit extract_from_dnf.cmd so that DNF_PATH points to your DNF installation.
* After editing it, run extract_from_dnf.cmd to generate the 'meshes' folder.

EXPORTING SKELETONS
You can convert .skl files to .dae using the 'sklconv' command.
This allows you to import the skeleton into a modelling tool to rig your own custom model.
See get_machinegun_skeleton.cmd for an example.

CONVERTING MODELS
Use the 'mshtool convert' command to generate .msh files for importing into DNF.
It uses the Open Asset Import Library, so any model formats supported by it should work.
The command is structured like so:

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

The input .skl path must point to a file within the meshes folder. This is necessary because
of how DNF references skeletons from .msh files.

REPACKAGING THE DATA FILES
You can use the 'mshtool build' command to rebuild meshes.dat and skels.dat.
See make_packages.cmd for an example of how this works. The resulting .dat files can be copied
into the DNF 'SkinMeshes' folder, replacing the originals.

You can download the tools here and get the source code here.

This post has been edited by TheZombieKiller: 08 May 2023 - 01:31 AM

7

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options