xboxscene.org forums

OG Xbox Forums => Game Hacking => Xbox Game Forums => Game Hacking - * Everything Else.* => Topic started by: BILLS on August 21, 2005, 10:10:00 AM

Title: Injecting Dds Images In An Xpr
Post by: BILLS on August 21, 2005, 10:10:00 AM
QUOTE(Knocks @ Aug 21 2005, 01:09 PM)
What is a good utility to manipulate those files?  I found a way to extract DDS files and edit them with a Photoshop plugin from Nvidia.  But injecting a DDS back doesn't work because an edited DDS has a different file size, and the utility I'm using (BossAFS) gives me an error message about that.  Is there another program that will do this?
Title: Injecting Dds Images In An Xpr
Post by: zX_Storm on August 21, 2005, 01:28:00 PM
Search the forums for "mitee". He created a nice XPR extractor/injector. (MiteeXPRv3)
Title: Injecting Dds Images In An Xpr
Post by: Angerwound on August 21, 2005, 04:43:00 PM
The xpr format is simply the base DDS image with some extra header information. One way of doing things is save the DDS in the save Size and Color Format as the original and simply copy/paste the hex over top the one inside the XPR. The reason you are getting different sizes is more then likely due to you adding or removing 'MIPMAPS' - try both until you produce the same size file.
Title: Injecting Dds Images In An Xpr
Post by: mrjkwik on August 22, 2005, 09:05:00 AM
there is also a program called "gx", or "gx003", something like that and works well with xprs
Title: Injecting Dds Images In An Xpr
Post by: BILLS on August 22, 2005, 01:48:00 PM
QUOTE(mrjkwik @ Aug 22 2005, 12:16 PM)
there is also a program called "gx", or "gx003", something like that and works well with xprs
Title: Injecting Dds Images In An Xpr
Post by: Instigator on August 22, 2005, 06:19:00 PM
Technically speaking, an XPR is NOT "just a DDS with some extra info."

XPR stands for "Xbox Packed Resource" and it's actually a single file made up of several resource files.  The reason that Mitee's tool may not be able to read the file is because the XPR format is not an absolute.  You define your own format for the file when you create it, and then you tell the xbox SDK what format you're using so that it knows how to interpret the data within the file.

But anyway, I'll now return you to your previous discussion...