View Single Post
Old 08-26-10, 03:21 PM   #351
SteelViking
The Old Man
 
Join Date: Mar 2010
Location: U.S.A.-East Coast
Posts: 1,587
Downloads: 86
Uploads: 4
Default

Quote:
Originally Posted by reaper7 View Post
Hi steelviking how do you hex the gr2 file to point to different textures.
I'm trying to point the ship lod.gr2 files to point to different textures. Having no luck with Hex though.
You'd think I'd remember hex from my college days.
It is pretty easy. All you have to do is open the file with the hex editor, do a "find string" search, run a search for the current texture it is using, and change it to what ever file name you want. The limitation here, is that you cannot add or subtract any characters. In other words, you cannot add any file names that were not already there, and you have to make sure that when you change the existing file name to the one you want, that you do not change how long that file name is in the .GR2.

What exactly are you trying to do? Do you have multiple .GR2 files that are pointing to the same texture file? In that case, you could make different .dds files and change them however you wanted, giving them different names obviously, and then pointing each ships .GR2 to the .dds file you wanted.

I will take a look at an LOD file in hex right now just to get a better idea of what is going on.
__________________

He sank 198,650 tons....who you ask?....Erich Topp, that's who!
SteelViking is offline   Reply With Quote