Offtopic: Into Commodore 64 (6502) coding, pixeling or music?
Xentax is looking for new members for the C64 activities!
Just drop us a message at forum@xentax.com and join the Scene Team!

Forum rules: Click here

NFS Rivals - .itexture

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
LALHW
ultra-n00b
Posts: 9
Joined: Sun Jan 10, 2016 1:37 am

NFS Rivals - .itexture

Post by LALHW » Tue Jan 12, 2016 11:36 pm

Hello, I am trying to edit some Need for Speed Rivals textures and I need help.

After dumping the game, I have tried to extract/convert the .itexture files, in order to get readable dds files, but I fail. The extracted results are some useless, very strangely proportioned (2048x1 px e.t.c) but with right names, dds files. I have tried using the following tools:
-Bf4 texture converter (Batch_Itexture_Converter_BF4.exe) by Dainiuxxx
-Star Wars Battlefront texture converter (Batch_Itexture_Converter.exe) by Dainiuxxx

Using Ninja Ripper I'm able to get some textures, is there any other way?

User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 585
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: NFS Rivals - .itexture

Post by Wobble » Wed Jan 13, 2016 10:40 pm

[out]
Last edited by Wobble on Sun Mar 12, 2017 11:58 am, edited 1 time in total.

LALHW
ultra-n00b
Posts: 9
Joined: Sun Jan 10, 2016 1:37 am

Re: NFS Rivals - .itexture

Post by LALHW » Fri Jan 15, 2016 8:38 pm

Yes, I'm using Windows, please check these files, I hope there is everything you need.

NFS - Rivals: https://mega.nz/#!GQ0hXCgZ!ZM5gaxkHbn8o ... oTRJjFsxaE, .ebx reffering to file
https://mega.nz/#!XY0wwCLJ!gKEs2HDs6Ug2 ... DlpWHaZo1U, .itexture
https://mega.nz/#!XJFTwLSa!7NlSWL2g1AdM ... TODuLAC3rg, .chunk file, referred by the .itexture
https://mega.nz/#!yM90nR6D!xuRKEh_Aatu2 ... -aFvrWF8dU, extracted .dds via Bf4 texture converter
https://mega.nz/#!DQUSXS7a!pOSEc2s7kQzB ... 1ZSdz00tB4, the resulted .png after the dds conversion
https://mega.nz/#!3d1mHLiA!JDxJsv0UbG9m ... RsS4Y_h4C4, real .dds (converted to png), extracted via Ninja Ripper
https://mega.nz/#!jRVAjTKR!kPYzQhtZYGse ... 3ME4nKdfyw, screenshot from Texture Finder v2.1, showcasing the .chunk file

User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 585
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: NFS Rivals - .itexture

Post by Wobble » Sat Jan 16, 2016 2:08 am

[out]
Last edited by Wobble on Sun Mar 12, 2017 11:58 am, edited 1 time in total.

LALHW
ultra-n00b
Posts: 9
Joined: Sun Jan 10, 2016 1:37 am

Re: NFS Rivals - .itexture

Post by LALHW » Sat Jan 16, 2016 11:05 am

I will try your suggestion. I have found 'DXT5' using a hex editor, but where are the dimensions located? Can I just change the image size using any image editor?

User avatar
Acewell
VIP member
VIP member
Posts: 1274
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2415 times
Been thanked: 744 times

Re: NFS Rivals - .itexture

Post by Acewell » Sat Jan 16, 2016 11:23 am

Open car_ford_mustanggt_2014_livery_kenblock_d.dds with a hex editor
put your cursor on byte 0xC and type in 00 08 to overwrite the current values
then put your cursor on byte 0x57 and type in 31 to overwrite the current value
save the file and you are done

:D
Last edited by Acewell on Sat Jan 16, 2016 1:21 pm, edited 1 time in total.

LALHW
ultra-n00b
Posts: 9
Joined: Sun Jan 10, 2016 1:37 am

Re: NFS Rivals - .itexture

Post by LALHW » Sat Jan 16, 2016 12:19 pm

Thank you all, it works for most of the files. But can you please check these files, too? https://mega.nz/#!qQExlL6J!-f4pirGH0Fa5 ... QVDNu--h4xY It seems it's not working because it's supposed to be a 512px file. Is there any 'map' I should follow for the different image sizes? For example, what should I change for 128px, 256px, 512px e.t.c.?

User avatar
Acewell
VIP member
VIP member
Posts: 1274
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2415 times
Been thanked: 744 times

Re: NFS Rivals - .itexture

Post by Acewell » Sat Jan 16, 2016 1:54 pm

put your cursor on byte 0xD and type 02 to overwrite 08

all you're doing is taking the image size and converting it to hexadecimal and inputting that value in the right place in little endian byte order.

64 - 40 - 40 00
128 - 80 - 80 00
256 - 100 - 00 01
512 - 200 - 00 02
1024 - 400 - 00 04
2048 - 800 - 00 08
4096 - 1000 - 00 10

height value starts at 0xC and width value starts at 0x10

:D

LALHW
ultra-n00b
Posts: 9
Joined: Sun Jan 10, 2016 1:37 am

Re: NFS Rivals - .itexture

Post by LALHW » Sat Jan 16, 2016 7:57 pm

THank you, everything is OK now. Final question: is it possible to enable alpha channel this way?

User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 585
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: NFS Rivals - .itexture

Post by Wobble » Sat Jan 16, 2016 9:12 pm

[out]

Post Reply