xboxscene.org forums

Author Topic: Injecting Dds Images In An Xpr  (Read 95 times)

BILLS

  • Archived User
  • Sr. Member
  • *
  • Posts: 297
Injecting Dds Images In An Xpr
« 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?
Logged

zX_Storm

  • Archived User
  • Full Member
  • *
  • Posts: 186
Injecting Dds Images In An Xpr
« Reply #1 on: August 21, 2005, 01:28:00 PM »

Search the forums for "mitee". He created a nice XPR extractor/injector. (MiteeXPRv3)
Logged

Angerwound

  • Archived User
  • Hero Member
  • *
  • Posts: 928
Injecting Dds Images In An Xpr
« Reply #2 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.
Logged

mrjkwik

  • Archived User
  • Hero Member
  • *
  • Posts: 769
Injecting Dds Images In An Xpr
« Reply #3 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
Logged

BILLS

  • Archived User
  • Sr. Member
  • *
  • Posts: 297
Injecting Dds Images In An Xpr
« Reply #4 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
Logged

Instigator

  • Archived User
  • Newbie
  • *
  • Posts: 30
Injecting Dds Images In An Xpr
« Reply #5 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...
Logged