Dungeon Defenders II

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Dungeon Defenders II

Post by Doctor Loboto »

Typically this would be easy to extract but no, this has some weird method of compression for its otherwise Unreal Engine based formats. I'm trying to get some models and textures out of them. Here are the most important files to me currently, along with the base executable just in case.

https://www.dropbox.com/s/fuxzlpe41o2nlva/DD2.zip?dl=0
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dungeon Defenders II

Post by aluigi »

Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: Dungeon Defenders II

Post by Doctor Loboto »

Hence why I'm asking here about it.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Dungeon Defenders II

Post by id-daemon »

Just tell Gildor that he doesn't need offsets, just add size to the previous offset, and it should be fine.

I'm sure he can support this game, and while he's doing that, you can use my tool for extraction:

Dungeon_Defenders_2_upk [upk_name] [object_wildcard]

example: Dungeon_Defenders_2_upk StartupCoop.upk lord

It will make a batch file to extract all objects you need from the package
Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: Dungeon Defenders II

Post by Doctor Loboto »

So how do I use this to extract the models and textures properly?
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Dungeon Defenders II

Post by id-daemon »

if you only need 1 or 2 models, you can convert them manually. For example, take AbyssLord_Body_M.Texture2D file, we can see the texture is 1024x1024, DXT5, and is located in 01_AbyssLord_Default.Tex.AbyssLord_Body_M.tfc (as expected). Offset inside tfc is 0x50000, size 0x100000.

We can cut it, make a proper DDS header and get this:

Image
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Dungeon Defenders II

Post by id-daemon »

The same way you can manually convert models with hex2obj, or some other tool.

Another option would be (if the format is the same as in some other UE3 game), we can just make Gildor's tool think it is that game, and convert it.

Or you can wait until Gildor supports it himself, and he was notified already as I can see on his forum.
Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: Dungeon Defenders II

Post by Doctor Loboto »

I've never been to skilled with hex2obj, and the only model I really need is the Abyss Lord and his Book, which are all part of the same model I believe. Would you be able to get it for me? I want to use it for some renders for the weekend. The textures I need are the ones marked 'D'.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Dungeon Defenders II

Post by id-daemon »

I can. But the problem is there are just TOO MANY different parts for the Abyss Lord, and the models are all looking inside out Image

cut StartupCoop.upk Aby_Head000A_SK.SkeletalMesh CA36D3D 7AA7
cut StartupCoop.upk Aby_Head000B_SK.SkeletalMesh CA3E7E4 6B79
cut StartupCoop.upk Aby_Head000C_SK.SkeletalMesh CA4535D 9D45
cut StartupCoop.upk Aby_Head000D_SK.SkeletalMesh CA4F0A2 8475
cut StartupCoop.upk Aby_Torso000A_SK.SkeletalMesh CA57517 DDFB
cut StartupCoop.upk Aby_Torso000B_SK.SkeletalMesh CA65312 950B
cut StartupCoop.upk Aby_Arms000A_SK.SkeletalMesh CA6E81D BB83
cut StartupCoop.upk Aby_Arms000B_SK.SkeletalMesh CA7A3A0 941F
cut StartupCoop.upk Aby_Armor000A_SK.SkeletalMesh CA837BF 2E5BB
cut StartupCoop.upk Aby_Armor000B_SK.SkeletalMesh CAB1D7A 14E17
cut StartupCoop.upk Aby_Armor000C_SK.SkeletalMesh CAC6B91 2D9CF
cut StartupCoop.upk Aby_Armor000D_SK.SkeletalMesh CAF4560 1A96B

these are all Abyss Lords?
Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: Dungeon Defenders II

Post by Doctor Loboto »

Oh, there are alternate skins for him Typically I'd try for the "000A" ones first. I'm not 100% sure though.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Dungeon Defenders II

Post by id-daemon »

Do you need armor? Or head, torso, and arms is enough?

Textures marked 'D' are diffuse color. 'M' are gloss masks as you can see above. Do you also need these?
Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: Dungeon Defenders II

Post by Doctor Loboto »

Armor would be helpful, but I don't know what that constitutes. I only need the diffuse colors.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Dungeon Defenders II

Post by id-daemon »

Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: Dungeon Defenders II

Post by Doctor Loboto »

Hm, that site doesn't seem to want to work for me. Do you have dropbox by any chance?

EDIT: Never mind, got it working! Thanks for the textures.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Dungeon Defenders II

Post by id-daemon »

thats what i'm currently getting. Sure with gloss & lightning it will look much better.

Image
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Dungeon Defenders II

Post by id-daemon »

Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: Dungeon Defenders II

Post by Doctor Loboto »

https://www.dropbox.com/s/v5c1i1cl1z2ocbc/AbyssLord.jpg?dl=0

Full model should look like this, I think.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Dungeon Defenders II

Post by id-daemon »

No. My picture you see above is ALREADY 4 models.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Dungeon Defenders II

Post by id-daemon »

Can't find any models for book. How it looks in the game? Can it be opened, closed?
Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: Dungeon Defenders II

Post by Doctor Loboto »

It can open and close, yes. Default 'pose' is probably closed.