Tags: Projects

Duke Nukem Forever


Duke Is Totally Takei The Duke Nukem Forever demo is out. I can't even convey how surreal it is to me to be typing those words. But anyway, I've been poking around the demo for the last couple of days, and a new version of Noesis is up now that supports extracting 5 different variants of its included .dat packages.

The picture is of the world's first (well, probably) right and proper DNF content mod, with Duke sporting his brand new Takei Pride tanktop. Noesis spits out all of the info you need to re-inject textures while it's extracting them, and I've already got a fully functional repacker that I intend to release sometime relatively soon. I've also finished hammering out the model format now, and Noesis v3.27 and later can view/export them.

Duke modelDuke model
Duke modelDuke model

The process of exporting the models is pretty simple, but requires a few steps. Here's a step by step of what you need to do.

1) Using Noesis, extract the contents SkinMshes/defs.dat, SkinMeshes/meshes.dat, and SkinMeshes/skels.def. By default, Noesis will want to extract these to separate folders. You don't want this, and instead you want to extract them all to a single folder. (e.g. "c:\steam\steamapps\common\duke nukem forever demo\SkinMeshes\allfiles")

2) Browse to the .msh of your choice in Noesis and open it.

3) If .skl or .def files cannot be found automatically you will be prompted for them. Additionally, Noesis will attempt to find MegaPackage.dat and TextureDirectory.dat relative to the path of the .msh file. If it cannot, you will be prompted for those files as well.

4) Export and enjoy. Note that materials are still a work in progress, and it can't automatically find the right materials in most cases. But certain models are working. (like Duke and one of the Holsom twins)

I've got model re-import/modification working, but the material situation limits it pretty severely. In the coming days/weeks, I'll be continuing to reverse that data and trying to figure out a reasonable process for replacing/overriding assets that doesn't involve rebuilding all of the game's packages.

Also, if you haven't heard yet, you can play the vehicle sequence in first-person. It's much nicer this way.

Update: I've successfully exported a model to COLLADA, modified it (re-weighted, added and modified geometry, modified the texture), re-exported it to .msh using my in-progress Noesis exporter, and got it to load in the demo. Have a look:



Wait for the scene with the twins.
Share:


Comments

131 comments in total.
Post a comment

IP: 79.116.118.174

Gordon

June 19, 2011 at 1:52 am (CST)
Thanks for your reply.I googled for a fix but with no success.Where can i get the latest client.dll ?

Thank you again.


IP: 68.0.165.94

Rich Whitehouse

June 19, 2011 at 1:16 am (CST)
Well, as I've mentioned before, I think having people modify their core .dat files is a really bad idea. It's prone to lots of issues. It's especially prone to causing problems with Steam, and with updates/patches. Therefore, I plan to only go this route if I'm absolutely forced. I've asked Gearbox for some feedback on this issue and plan to give them another few days into next week before I just proceed on my own.

Gordon: There was some third-party fix for that, at one point. I don't remember what it was. I think you might just need to use the latest client.dll. I'm not sure, it's been too many years since I poked around in that stuff.


IP: 79.48.150.181

Federico

June 18, 2011 at 10:20 am (CST)
hello.. nice work! i've exported something from dnf and made some changes.. but how can I rebuild back a .dat archive from the modified-extracted folder? tried batch but couldn't use it :(


IP: 79.115.160.115

3dwizard

June 18, 2011 at 8:19 am (CST)
Any idea when you will be able to release a tool that can rimport modified files into the DNF .dat archives?
Like for ex if I want to modify, bumpmaps, textures, sound files, meshes etc and want to test them in game.
Just exporting files is really cool but it doesn't allow us to mod DNF at all.


IP: 79.116.119.219

Gordon

June 18, 2011 at 8:17 am (CST)
Hey.I don't know any other way to contact you so i'm hoping you'll read this.

It's about the jumbot.Is there anything i can do so that i can use secondary fire on the 357 Mangnum and the Crossbow ?
I mean to actually be able to use the scope.

Thank you.


IP: 68.0.165.94

Rich Whitehouse

June 17, 2011 at 7:30 pm (CST)
Those files aren't encrypted at all. They're binary formats. You can't expect to edit a binary format in notepad. :)


IP: 188.94.228.46

Mr.Deviance

June 17, 2011 at 9:16 am (CST)
Hey I really like your app Rich.
I have a question.
Is there any way to decrypt .dfx. .dmx .dps .dtx .cvp .dsm or.U files after you extract the DNF's MegaPackage.dat ?
I can open all of those files with notepad but among words I see lots of encrypted stuff.
If we have access to those files I think we can configure the properties for the textures and materials of the game.


IP: 188.26.52.41

3dwizard

June 16, 2011 at 8:04 pm (CST)
Very awesome, I can't wait.
I want to start modding this hell out of this game and potentially start changing some internal settings and make some things work like they used to work in the 2009 video teasers of Duke Nukem Forever.
The quicker I can access and modifity scripts and various settings, the sooner the game will start looking more like a pc game.


IP: 68.0.165.94

Rich Whitehouse

June 16, 2011 at 7:08 pm (CST)
3dwizard: Could be, I haven't seen any properties relating to decals though. Eventually I'd like to translate DNF's materials to/from extended Quake 3 shaders or something, but that depends on the route I go for importing maps.

SPTX: All of the .dat files are already extractable. As for getting the contents into Unreal-format files, that would be a bad idea, considering most of the formats support things that Unreal formats don't. You don't want to lose data on conversion.

zardalu: Yeah, I'll be adding anim support eventually. Haven't had a chance to look into it yet, as it's a lower priority than maps for me at the moment. I did come across the entrypoint for anim decompression already, though.


IP: 76.11.67.53

zardalu

June 16, 2011 at 7:26 am (CST)
Thanks Rich for the latest version. I am loving it.
Any potential for DNF anim support down the road?


Comment Pages:
Previous ... 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 ... Next


Post a comment

Name:


Enter the following (refresh if you can't read it):
Read image


Comment:





8346441 page hits since February 11, 2009.

Site design and contents (c) 2009 Rich Whitehouse. Except those contents which happen to be images or screenshots containing shit that is (c) someone/something else entirely. That shit isn't really mine. Fair use though! FAIR USE!
All works on this web site are the result of my own personal efforts, and are not in any way supported by any given company. You alone are responsible for any damages which you may incur as a result of this web site or files related to this web site.