The Forum is up for sale: XeNTaX Forum looking for new owner

Grey Matter 360 .tex files

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
SLIFallen
advanced
Posts: 67
Joined: Tue Sep 28, 2010 4:26 pm
Been thanked: 3 times

Grey Matter 360 .tex files

Post by SLIFallen »

Apparently the 360 version of this game has a compression type for the textures (vs. the PC version that is straight .dds)

Providing a sample here as there are now updated tools for extracting the PAK files and blender imports provided here by the community for the 360 version. :D


HERE are some sample texture files
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1411 times

Re: Grey Matter 360 .tex files

Post by chrrox »

they are xpr files you need to recreate the xpr header then use the xpr tool unbundler from the xbox sdk on them.
SLIFallen
advanced
Posts: 67
Joined: Tue Sep 28, 2010 4:26 pm
Been thanked: 3 times

Re: Grey Matter 360 .tex files

Post by SLIFallen »

chrrox wrote:they are xpr files you need to recreate the xpr header then use the xpr tool unbundler from the xbox sdk on them.
Way over my head. I'm no programmer. :(
fatduck
mega-veteran
mega-veteran
Posts: 315
Joined: Wed Aug 02, 2006 10:07 pm
Has thanked: 10 times
Been thanked: 94 times

Re: Grey Matter 360 .tex files

Post by fatduck »

Code: Select all

# Games: Grey Matter (XBOX360)
# TEX to DDS converter
# by Fatduck    Feb2011
# script for QuickBMS    http://aluigi.org/papers.htm#quickbms

endian big
get DDSNAME basename
get DATASIZE asize
set XPRNAME DDSNAME
string XPRNAME += .xpr
putvarchr MEMORY_FILE 0 0
append
putdstring "XPR2" 4 MEMORY_FILE
put 0x64 long MEMORY_FILE
put DATASIZE long MEMORY_FILE
put 1 long MEMORY_FILE
putdstring "TX2D" 4 MEMORY_FILE
put 0x30 long MEMORY_FILE
put 0x34 long MEMORY_FILE
put 0x14 long MEMORY_FILE
putdstring DDSNAME 0x1C MEMORY_FILE
log MEMORY_FILE 0 DATASIZE 
append

math DATASIZE += 0x3C
log XPRNAME 0 DATASIZE MEMORY_FILE
This one should work!
You still need a program called unblundler to convert it back to tga!
Good Luck

Sorry, now fixed!
Last edited by fatduck on Fri Feb 04, 2011 4:27 pm, edited 2 times in total.
No more Fatduck, no more FatImporter, Byebye everyone!
SLIFallen
advanced
Posts: 67
Joined: Tue Sep 28, 2010 4:26 pm
Been thanked: 3 times

Re: Grey Matter 360 .tex files

Post by SLIFallen »

Wow. Awesome! Thank you!

Might someone PM me the unbundler app? Kind of overkill to have to dl/install the whole 360sdk (which is useless to the non-programmer like me) just for one little app. 8D

Thanks again!!

EDIT. Got it! Thanks!
SLIFallen
advanced
Posts: 67
Joined: Tue Sep 28, 2010 4:26 pm
Been thanked: 3 times

Re: Grey Matter 360 .tex files

Post by SLIFallen »

Hmmm. Does not seem to be working:

I get this:

- error in src\quickbms.c line 8623: dumpa_direct_copy<>
Error: No such file or directory

I run quickbms (.0.4.8a) pick the script, set the input folder (using "" to get all the .tex files) and select an output folder, click save and I get this...?
jaden
mega-veteran
mega-veteran
Posts: 209
Joined: Sat Feb 05, 2011 1:41 am
Been thanked: 1 time

Re: Grey Matter 360 .tex files

Post by jaden »

great chrrox
SLIFallen
advanced
Posts: 67
Joined: Tue Sep 28, 2010 4:26 pm
Been thanked: 3 times

Re: Grey Matter 360 .tex files

Post by SLIFallen »

Maybe i'm not being specific enough. Here is a screenshot of what is happening. You can clearly see the script is finding (one of) the files and in fact creates the file name in the target directory with a zero byte size.
Image
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1411 times

Re: Grey Matter 360 .tex files

Post by chrrox »

this bms script just creates xpr files those are a known file format on the xbox 360 you need the xbox skd to extract dds images from it.

if one file is giving you trouble upload it.
also make sure you have the newest quickbms.
SLIFallen
advanced
Posts: 67
Joined: Tue Sep 28, 2010 4:26 pm
Been thanked: 3 times

Re: Grey Matter 360 .tex files

Post by SLIFallen »

chrrox wrote:this bms script just creates xpr files those are a known file format on the xbox 360 you need the xbox skd to extract dds images from it.

if one file is giving you trouble upload it.
also make sure you have the newest quickbms.
Yes, chrrox, I do understand what you are pointing out. The screenshot shows exactly that.

It is "seeing" one of the target files (angela_alpha_hair_color.tex) in the input folder (temp3) and converting it to the .xpr equivelent and placing it in (Temp5) The file is created in the output folder but it is zero bytes.

I do have the unbundler tool from the 360 sdk to use on the files AFTER they are back to .xpr's.

A sample file (folder) is in my first post at the top of this thread. Thanks!
fatduck
mega-veteran
mega-veteran
Posts: 315
Joined: Wed Aug 02, 2006 10:07 pm
Has thanked: 10 times
Been thanked: 94 times

Re: Grey Matter 360 .tex files

Post by fatduck »

Make sure you had copy the latest BMS script!
I did edit it once and it should work!
No more Fatduck, no more FatImporter, Byebye everyone!
SLIFallen
advanced
Posts: 67
Joined: Tue Sep 28, 2010 4:26 pm
Been thanked: 3 times

Re: Grey Matter 360 .tex files

Post by SLIFallen »

fatduck wrote:Make sure you had copy the latest BMS script!
I did edit it once and it should work!
As stated above I am running 0.4.8a

I did finally get it to work command line ONLY. using the quickbms GUI does not work. (and the quickbms readme is contradictory (backwards) on the syntax layout. So that was confusing me even more)

A shame you cant use wildcard arguments on unbundler.exe. One file at a time, but hey, it's better than NOTHING!

Thanks to all!!
jaden
mega-veteran
mega-veteran
Posts: 209
Joined: Sat Feb 05, 2011 1:41 am
Been thanked: 1 time

Re: Grey Matter 360 .tex files

Post by jaden »

thanks a lot
lUIGUIPIETRO
veteran
Posts: 87
Joined: Sat Mar 13, 2010 3:59 pm
Has thanked: 44 times
Been thanked: 2 times

Re: Grey Matter 360 .tex files

Post by lUIGUIPIETRO »

how cant open xpr files?
Post Reply