Split/Second Velocity - cant open .TEXTURES files

Textures, recreate headers, conversions, algorithms and parsing of image files
NFG
Posts: 8
Joined: Tue Feb 15, 2022 11:45 pm

Split/Second Velocity - cant open .TEXTURES files

Post by NFG »

Hi,

I'd like to open various texture files from game Split Second Velocity in order to modify them and create my own ones, however im unable to open them in any program. I was looking for anything related to ".textures" extension however i couldn't find anything that would help. I tried to use hex editor in order to find the original extension of the file and the only thing that i've found is that original extension is "SXET" (which isnt really helpful cause changing extension from .textures to .sxe/.sxet does not work). While i was looking into hex code in each .textures file i noticed that in some of them few lines below the header there are visible extensions such as ext1 and dds. I tried to use them too but... it didnt worked out.

Does anyone have any idea how to open these files or convert them to images?

If this will be helpful im gonna leave one of these files here.

Regards
NFG
Posts: 8
Joined: Tue Feb 15, 2022 11:45 pm

Re: Split/Second Velocity - cant open .TEXTURES files

Post by NFG »

Texture is in the archive
h3x3r
Posts: 165
Joined: Wed Jun 01, 2016 5:53 pm

Re: Split/Second Velocity - cant open .TEXTURES files

Post by h3x3r »

There are multiple textures in that file. But luckily for you those are standard DDS also with headers. But not sure where is table with offsets. I know that 4 bytes "int" before "DDS |" sign is texture size in bytes.
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Split/Second Velocity - cant open .TEXTURES files

Post by rabatini »

Hi.
To extract this dds, just do a simple findloc.

You should extract your graphics with this.

Code: Select all

findloc OFFSET string "DDS" 0 "" 0
math i = 0
do

    goto OFFSET
    get DUMMY long
    findloc NEXT_OFFSET string "DDS" 0 ""

     if NEXT_OFFSET == ""

        get SIZE asize
    else
        math SIZE = NEXT_OFFSET

    endif
    math SIZE -= OFFSET
    log "" OFFSET SIZE
    math i += 1
    math OFFSET = NEXT_OFFSET

while NEXT_OFFSET != ""
NFG
Posts: 8
Joined: Tue Feb 15, 2022 11:45 pm

Re: Split/Second Velocity - cant open .TEXTURES files

Post by NFG »

Alright, looks like it worked however i think there is something wrong with the names of the files cause i dont think they were supposed to be named for example 00000000.sxe, 00000001.dds etc.. Is there any way to find what are the original names of that files? Reimporting them is working perfectly fine however textures in game are not changed at all :/
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Split/Second Velocity - cant open .TEXTURES files

Post by rabatini »

NFG wrote:Alright, looks like it worked however i think there is something wrong with the names of the files cause i dont think they were supposed to be named for example 00000000.sxe, 00000001.dds etc.. Is there any way to find what are the original names of that files? Reimporting them is working perfectly fine however textures in game are not changed at all :/


its supposed to be named like this 000001.dds

because in the main file dont have names pattern, i see names in the end of main file, but i dont know if it related.
NFG
Posts: 8
Joined: Tue Feb 15, 2022 11:45 pm

Re: Split/Second Velocity - cant open .TEXTURES files

Post by NFG »

rabatini wrote:
NFG wrote:Alright, looks like it worked however i think there is something wrong with the names of the files cause i dont think they were supposed to be named for example 00000000.sxe, 00000001.dds etc.. Is there any way to find what are the original names of that files? Reimporting them is working perfectly fine however textures in game are not changed at all :/


its supposed to be named like this 000001.dds

because in the main file dont have names pattern, i see names in the end of main file, but i dont know if it related.



If so then its fine, but I still have a texture visibility problem because after modifying the original texture, the new one doesn't show up in the game (instead the old one is visible). I thought it was because the original file was not overwritten, but when I re-extracted it, a modified texture appears instead of the original one, so that's not the case.

There is a possibility that the problem is somehow related to the .sxe file that appears with the texture after extraction but... it makes no sense, cause the only way to open a file with that extension is by using a ProfiCAD program which is designed for drawing of electrical and electronic diagrams, schematics etc. therefore its not possible that it is some sort of a config file... unless there is another way to open that file that i dont know about.

If the problem is not related to that file then i dont know what it could be :/
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Split/Second Velocity - cant open .TEXTURES files

Post by rabatini »

.sxe is just the header, most of people that makes findloc scripts, ignore the header, i prefer to not.
but, it is not your problem in this case, if the old imagem stills appears insted the new one.

have 2 options.

you're saying that, you've got the changed image, but in the game the old image appears instead of the new one right?


1- You are not inserting it correctly, but as you said in your post, you extract again the inserted file from inside the iso and the images appear modified accordingly.
2 - Can be have duplicate images, and you need to find it.

The best way to know where this image come from is debugging.
NFG
Posts: 8
Joined: Tue Feb 15, 2022 11:45 pm

Re: Split/Second Velocity - cant open .TEXTURES files

Post by NFG »

OK so I did some progress and noticed that the modified liveries are actually working BUT they are only visible in the race and not in the garage where you pick the car so I would say it's half way to success :)

In other words, I have to look deeper into the files to find the files that have still not been changed.

If I make further progress I will leave the instruction here, unless someone already knows the location of these files and would be able to post it here, for which I would be very grateful.

Anyway, I'm starting digging through the files :)
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Split/Second Velocity - cant open .TEXTURES files

Post by rabatini »

NFG wrote:OK so I did some progress and noticed that the modified liveries are actually working BUT they are only visible in the race and not in the garage where you pick the car so I would say it's half way to success :)

In other words, I have to look deeper into the files to find the files that have still not been changed.

If I make further progress I will leave the instruction here, unless someone already knows the location of these files and would be able to post it here, for which I would be very grateful.

Anyway, I'm starting digging through the files :)


the image is the same?
garage and race?
NFG
Posts: 8
Joined: Tue Feb 15, 2022 11:45 pm

Re: Split/Second Velocity - cant open .TEXTURES files

Post by NFG »

After some research It turns out that there are two separate texture files, one for race and one for garage. Accessing the garage texture is quite tricky cause that file is not appearing after just extracting specific car folder. In order to get to it you have to extract the entire "vehicles" folder which takes a while and after you do that almost every texture file is revealed. Also some files are having the same names so QucikBMS renames them while extracting by adding for example "_0000001" to the name of the file and here is an important part:

After modifying the texture you have to delete every unchanged file and after that you have to delete part of the texture file name that was added by QuickBMS ( "_0000001"). After doing so and reimporting the file back the modified car texture appears both in garage and in the race :)


It took a while but thank you all for help :D

Regards