Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Forza Motorsport 1 ".XPR" Texture

Featured Replies

  • Author
  • Localization

AMG, posted Tue Mar 29, 2016 1:57 pm (12299)


Hi!
I'm attaching some textures from Forza Motorsport 1, ".XPR" format, which should be liveries for a car in 3 different quality (I assume).
Just for info, Forza Studio can only import ".XDS" and ".BIX" textures.
  • Author
  • Localization

AMG, posted Wed Mar 30, 2016 1:34 am (12302)


Thank you for the reply. I've tried the ".XPR" script and the file which comes out is a .dat.
Is it normal? And if yes, how should I handle it? I've tried to open it as an image and doesn't work.
  • Author
  • Localization

NullRd, posted Thu Mar 31, 2016 4:06 pm (12319)


Texture compression seems to be DXT1, but one block contains two different textures with separated alpha channels. I've made bmscript to separate them, but alpha channel is decoded incorrectly. Dont know how it should be processed.

livery0nc.xpr - contains something weird (RGBA8888 ?), image data looks like junk.

https://www.sendspace.com/file/vn17ga
  • Author
  • Localization

AMG, posted Fri Apr 01, 2016 7:58 pm (12328)


Many thanks for your help. I've tried the script and it creates 4 .bmp images (which are not images though, not viewable) with a filesize around 1mb for each. And it does the same for every .XPR file, no matter the size. So I assume the script is not yet in a working state?
  • Author
  • Localization

NullRd, posted Fri Apr 01, 2016 9:59 pm (12329)


I use BMP V2 unofficial structure for output, some programs may not support it.
You may try IrfanView - it can open this files and save them in different format.

Script is working, but it may require some tweaking.
First - I didn't make full XPR reader, it just begins read data from offset 2048. On XPR files with more than one entry you should use XPR unpacking script, and then - my script from offset 0.
Second - can't find where real width/height of the texture is stored. On your samples I just used 512x512.

Both tweaks can be done at line
Code:
callfunction ExtractImage 1 2048 512 512

2048 - starting offset of image data
512 512 - width and height
  • Author
  • Localization

Heavyshell, posted Sun May 29, 2016 9:12 pm (13794)


Hey! I've been trying to find out how to get textures from Forza 1 for a while and stumbled across this topic... I've got the .dat extracted from the .xpr file, but the link to NullRD's script is dead. Does anyone here have a backup copy of it?

Additionally, does anyone have info on extracting the actual models? There are a few cars I would love to get from this game that you don't see all that often, for example the Camry Solara and Nissan Altima. Thanks in advance!
  • Author
  • Localization

Heavyshell, posted Sat Jun 04, 2016 1:28 pm (14036)


Thanks a ton!
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.