Page 1 of 1

Deadly Premonition (X360) .XPC and .XMD files

Posted: Mon Sep 12, 2022 5:56 pm
by TuneyTunes
Hello all!
I've recently gained a lot of interest in doing texture modding DPDC PC through dpfix. My idea is to port the 360 textures to the PC port as a nice alternative to the DC visuals (I personally don't like a lot of the new icons and HUD). I took a look through this forum and I've downloaded chrrox's plugin for Noesis, sadly couldn't get Finale00's code before it was removed. The plugins worked well for DPDC however, after using offzip to extract the .pkg files from the 360 release, all .XPC files gives me this error (down below) and I've been stuck since. I would try posting on that specific thread however, that one is absolutely ancient and is now part of the Game Archive topic; meaning not many will see it. If anyone could help, that would be greatly appreciated!

Here is an .XPC file from the 360 version so you can troubleshoot yourself if you'd like to.

Re: Deadly Premonition (X360) .XPC and .XMD files

Posted: Mon Sep 12, 2022 10:33 pm
by ikskoks
It's hard to determine the file format with only one sample. Can you upload more samples?

However for the sample you posted there is only one DDS image inside.
If you'll delete first 224 bytes in hex editor (e.g. Hex Workshop), you will be able to
save data as DDS image.

Re: Deadly Premonition (X360) .XPC and .XMD files

Posted: Tue Sep 13, 2022 1:04 am
by TuneyTunes
ikskoks wrote: Mon Sep 12, 2022 10:33 pm It's hard to determine the file format with only one sample. Can you upload more samples?

However for the sample you posted there is only one DDS image inside.
If you'll delete first 224 bytes in hex editor (e.g. Hex Workshop), you will be able to
save data as DDS image.
Thanks, I'll try that out!

Here are some more samples for you to try. I hope it's enough! If you need more, let me know.

Re: Deadly Premonition (X360) .XPC and .XMD files

Posted: Tue Sep 13, 2022 6:11 pm
by TuneyTunes
So I tried what you said last night and it worked very well! I got a lot of textures I was looking for but, I did notice a few of the ones I needed were part of a larger .XPC file archive. When I tried using your method, I got only one texture and it was always the same. I took a look at DPDC's hexes and noticed they don't have "DDS |" and "DXT1" (as shown below). Here are more samples if you want to take a look into this yourself and see if removing those bits or more is the key to having the Noesis plugins read the file correctly. Or if there is a method of getting a specific texture from that file using the hex editor.

Re: Deadly Premonition (X360) .XPC and .XMD files

Posted: Tue Sep 13, 2022 11:11 pm
by ikskoks
I have created a script to extract all DDS files from XPC archive
https://github.com/bartlomiejduda/Tools ... script.bms

You can use it with quickbms http://aluigi.altervista.org/quickbms.htm

And file format description is here http://wiki.xentax.com/index.php/Deadly_Premonition_XPC

If you want to mod the game, you can use "reimport mode" in quickbms, more info here http://aluigi.zenhax.com/papers/quickbms.txt

Re: Deadly Premonition (X360) .XPC and .XMD files

Posted: Mon Sep 19, 2022 4:58 am
by TuneyTunes
I'll try this out, thanks so much for all your help!