Wangan Midnight Maximum Tune 5 ".tex" Files
-
- Posts: 33
- Joined: Fri Oct 06, 2017 3:43 pm
Wangan Midnight Maximum Tune 5 ".tex" Files
I wanna extract vinyls from this game. Anyone can make a QuickBMS plugin for these files?
Thanks
Thanks
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
not sure of the image data, the only info i can find about this game says it is on Arcade platform.
but this bms script will at least decompress your sample
but this bms script will at least decompress your sample
Code: Select all
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm
comtype gzip
get SIZE asize
get NAME basename
string NAME + _decmp.tex
clog NAME 0x0 SIZE SIZE
-
- Posts: 123
- Joined: Fri Oct 27, 2017 7:36 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
It's an "Arcade". i5, GTX680, Win7 Embedded. A PC basicly.
I'd need more samples to figure out the header. Car textures, real diffuse textures to flag the formats. This one are just 2 DXT5 in a multifile container. Red stripe vinyls.
v1 removed
I'd need more samples to figure out the header. Car textures, real diffuse textures to flag the formats. This one are just 2 DXT5 in a multifile container. Red stripe vinyls.
v1 removed
Last edited by episoder on Mon Jun 04, 2018 3:21 am, edited 2 times in total.
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
episoder wrote:This one are just 2 DXT5 in a multifile container. Red stripe vinyls.
ah i didn't know what vinyls were when i tried dxt5 and though what i was seeing was wrong.
-
- Posts: 123
- Joined: Fri Oct 27, 2017 7:36 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
Me too at first. Could decode more or less lines and 'scatter patterns' or bold 'lines'. When i had a 'correct' pow width it made sense and i found the header blocks of the second. I was shocked this lil 6k blew up to 2MB in the first place.
-
- Posts: 33
- Joined: Fri Oct 06, 2017 3:43 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
Sorry for late reply. I forgot this topic. I uploaded more ".tex" files. With their models(".mdl")
-
- Posts: 123
- Joined: Fri Oct 27, 2017 7:36 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
I think i got it right, this time.
v2 removed
v2 removed
Last edited by episoder on Mon Jun 04, 2018 3:21 am, edited 1 time in total.
-
- Posts: 33
- Joined: Fri Oct 06, 2017 3:43 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
Thank you so much!!! It's possible to convert edited ".dds" files to a compressed ".tex" file again?
-
- Posts: 123
- Joined: Fri Oct 27, 2017 7:36 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
Reimport? Theoretically yes. That means if the engine can load the resized recompressed files. For sanity V3 with drag and drop. Just throw the tex in the depack or repack. Reimports with fix and tested rexports the modification safely. I had to workaround this. That should make this all work tho.
v3 removed
v3 removed
Last edited by episoder on Mon Jun 04, 2018 3:21 am, edited 2 times in total.
-
- Posts: 33
- Joined: Fri Oct 06, 2017 3:43 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
Thanks again. Can you check your DM?
-
- Posts: 123
- Joined: Fri Oct 27, 2017 7:36 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
Sure. Ofc, you're not familiar with bat style foo and syntax. V4. You could just c/p a quickbms into the 00 folder, but i included it, to 'idiot' proof it. No offense. I know, this is all old no gui console hacksh!t. Tutorial for the generally unknowing.
Depack: drag and drop. You gotta confirm the temporary and output folders being created on the first run.
cleaned up
Repack: drag and drop. You gotta confirm the recompression fix to apply.
cleaned up
v4 removed
Depack: drag and drop. You gotta confirm the temporary and output folders being created on the first run.
cleaned up
Repack: drag and drop. You gotta confirm the recompression fix to apply.
cleaned up
v4 removed
Last edited by episoder on Mon Jun 04, 2018 3:22 am, edited 2 times in total.
-
- Posts: 33
- Joined: Fri Oct 06, 2017 3:43 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
Bro, you are the BEST!!! THANKS!!!
Edit: Game stucks at loading Thanks anyway.
Edit 2: BTW, repacker have a problem. I depacked it after editing and repacking the edited files. And the extracted files are the same as original game files. Can you fix this problem? This game can load other files (not sure about ".tex" but can load edited files with different file extensions) that size is changed,
Edit: Game stucks at loading Thanks anyway.
Edit 2: BTW, repacker have a problem. I depacked it after editing and repacking the edited files. And the extracted files are the same as original game files. Can you fix this problem? This game can load other files (not sure about ".tex" but can load edited files with different file extensions) that size is changed,
-
- Posts: 123
- Joined: Fri Oct 27, 2017 7:36 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
Well. It works for me. Odd. Are you sure you're overwriting the extracted files in the dds folder?
cleaned up
I still have this byte that could fix things back to 'original' format. Which is alot of guessing. You could try to fix it rewriting the recmpfix bms. Just cp this and save it.
That's all i can do. If the engine still crashes, you may have to check that your edited files are the same format as the extracted files and really compressed. Gimp for example does not auto detect and recompresses the original dxt. If that doesn't help, it may just not be possible to reimport. It's gzip but it could be a format variation that does not compute. I'm not familiar with file compression. I can't help with that.
cleaned up
I still have this byte that could fix things back to 'original' format. Which is alot of guessing. You could try to fix it rewriting the recmpfix bms. Just cp this and save it.
Code: Select all
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm
#log memory_file 0 0
get k asize 0
log memory_file 0 k 0
goto 0 -1
put 559903 threebyte -1
goto 9 -1
put 11 byte -1
get oname basename
string oname + .tex
log oname 0 k -1
That's all i can do. If the engine still crashes, you may have to check that your edited files are the same format as the extracted files and really compressed. Gimp for example does not auto detect and recompresses the original dxt. If that doesn't help, it may just not be possible to reimport. It's gzip but it could be a format variation that does not compute. I'm not familiar with file compression. I can't help with that.
Last edited by episoder on Sun Jun 03, 2018 12:29 am, edited 1 time in total.
-
- Posts: 33
- Joined: Fri Oct 06, 2017 3:43 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
I copy pasted it. Now it's depacking modded textures but in game it shows original. The modded file is 15 kb and original is 6 kb.
Note: I did the same thing with another vinyl, now the edited file is 6 kb and game stucks at loading again. I am confused.
Note: I did the same thing with another vinyl, now the edited file is 6 kb and game stucks at loading again. I am confused.
-
- Posts: 123
- Joined: Fri Oct 27, 2017 7:36 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
Yeh. Last iteration i can do. I cropped the recompressed files to the real file size. The last idea i got. May be possible the engine compressor detects the file size as the compressed chunk size, cause it's not stored anywhere. Also should make it safely find the uncompressed filesize at the end of the file. A possible codepath. Verification purpose perhaps.
If that doesn't do it, I'm sorrry, there's not alot of hope to make this work. The file format replication ends there.
Edit: if you use this you gotta reextract the files you test. This method needs some additional data i had to work out.
If that doesn't do it, I'm sorrry, there's not alot of hope to make this work. The file format replication ends there.
Edit: if you use this you gotta reextract the files you test. This method needs some additional data i had to work out.
-
- Posts: 33
- Joined: Fri Oct 06, 2017 3:43 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
I repacked the edited file and depacked it, the extracted files are the same as original, i edited it again and repacked. After depacking it, i got the edited files. BTW in first edited file repack is 27 kb, on second repack it decreased to 22 kb. The original file is 6 kb. 27-22=5. Where is 1 kb gone?
I can't believe to my eyes! It's working!
Now we just should find a way to change colors of vinyls, the vinyl in the edited file is blue, not red.
Thank you so much!
I can't believe to my eyes! It's working!
Now we just should find a way to change colors of vinyls, the vinyl in the edited file is blue, not red.
Thank you so much!
-
- Posts: 123
- Joined: Fri Oct 27, 2017 7:36 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
I'd not mind if you could reupload the pics to another picture host like imgur. The host you're using is not working here. Do you mean it's working ingame? Done then? Good thing. The size of the compressed is not predictable. I dunno what you calculated there.
Anyway. Done.
Anyway. Done.
-
- Posts: 33
- Joined: Fri Oct 06, 2017 3:43 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
Photos working on me, imgur is blocked in my country :/ I should use a VPN to enter imgur.
Edit: Yes it's working ingame, but i maked a blue vinyl, but in game it appears red. Because the original vinyl is red.
And I got an idea, editing more colorful vinyls. I edited Pac-Man vinyl and it works! Thank you for everything!
I will write instructions to here soon.
Edit: Yes it's working ingame, but i maked a blue vinyl, but in game it appears red. Because the original vinyl is red.
And I got an idea, editing more colorful vinyls. I edited Pac-Man vinyl and it works! Thank you for everything!
I will write instructions to here soon.
-
- Posts: 33
- Joined: Fri Oct 06, 2017 3:43 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
Instructions:
1. Depack the ".tex" file
2. Edit the depacked textures
3. Copy paste edited textures to an another folder
4. Repack the ".tex" file
5. Depack it again
6. Copy paste edited textures from "another folder" to "dds" folder
7. Repack the ".tex" file again
1. Depack the ".tex" file
2. Edit the depacked textures
3. Copy paste edited textures to an another folder
4. Repack the ".tex" file
5. Depack it again
6. Copy paste edited textures from "another folder" to "dds" folder
7. Repack the ".tex" file again
-
- Posts: 123
- Joined: Fri Oct 27, 2017 7:36 pm
Re: Wangan Midnight Maximum Tune 5 ".tex" Files
barankaplan7878 wrote:Instructions:
1. Depack the ".tex" file
2. Edit the depacked textures
3. Copy paste edited textures to an another folder
4. Repack the ".tex" file
5. Depack it again
6. Copy paste edited textures from "another folder" to "dds" folder
7. Repack the ".tex" file again
That's not exactly correct or a lil too much.
(0. backup tex file for backup safety reasons)
1. run depack
(1b. backup dds folder for backup safety reasons)
2. edit and resave directly into the dds folder
3. run repack
Again, Good it's working. This remote debug thing without having the game seemed impossible. Logic is logic tho.