Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Wangan Midnight Maximum Tune 5 ".tex" Files

Featured Replies

  • Author
  • Localization

barankaplan7878, posted Sun May 20, 2018 9:49 am (35073)


I wanna extract vinyls from this game. Anyone can make a QuickBMS plugin for these files?



Thanks
  • Author
  • Localization

Acewell, posted Mon May 21, 2018 12:21 am (35121)


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 :)
Code:
# 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
  • Author
  • Localization

episoder, posted Mon May 21, 2018 9:16 pm (35167)


It's an "Arcade". i5, GTX680, Win7 Embedded. A PC basicly. :mrgreen:

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. 8-)

v1 removed
  • Author
  • Localization

Acewell, posted Wed May 23, 2018 6:08 am (35188)


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. :lol:
  • Author
  • Localization

episoder, posted Wed May 23, 2018 1:53 pm (35199)


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.
  • Author
  • Localization

barankaplan7878, posted Sun May 27, 2018 11:16 am (35312)


Sorry for late reply. I forgot this topic. I uploaded more ".tex" files. With their models(".mdl")
  • Author
  • Localization

episoder, posted Sun May 27, 2018 1:24 pm (35318)


I think i got it right, this time. :mrgreen:

v2 removed
  • Author
  • Localization

barankaplan7878, posted Sun May 27, 2018 1:59 pm (35323)


Thank you so much!!! It's possible to convert edited ".dds" files to a compressed ".tex" file again?
  • Author
  • Localization

episoder, posted Sun May 27, 2018 4:14 pm (35331)


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
  • Author
  • Localization

barankaplan7878, posted Mon May 28, 2018 1:41 pm (35351)


Thanks again. Can you check your DM?
  • Author
  • Localization

episoder, posted Mon May 28, 2018 6:10 pm (35358)


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. :mrgreen:

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
  • Author
  • Localization

barankaplan7878, posted Mon May 28, 2018 6:26 pm (35360)


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,
  • Author
  • Localization

episoder, posted Mon May 28, 2018 8:19 pm (35363)


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.

Code:
# 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.
  • Author
  • Localization

barankaplan7878, posted Mon May 28, 2018 10:03 pm (35366)


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.
  • Author
  • Localization

episoder, posted Mon May 28, 2018 10:44 pm (35367)


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.

wmmt5_tex2dds_V5.rar

  • Author
  • Localization

barankaplan7878, posted Tue May 29, 2018 9:17 am (35381)


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? :D

I can't believe to my eyes! It's working!
Image

Now we just should find a way to change colors of vinyls, the vinyl in the edited file is blue, not red.
Image

Thank you so much!
  • Author
  • Localization

episoder, posted Tue May 29, 2018 5:21 pm (35388)


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. :mrgreen:
  • Author
  • Localization

barankaplan7878, posted Tue May 29, 2018 6:57 pm (35389)


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.
  • Author
  • Localization

barankaplan7878, posted Fri Jun 01, 2018 8:19 pm (35490)


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
  • Author
  • Localization

episoder, posted Sat Jun 02, 2018 2:25 am (35496)


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. :D
  • Author
  • Localization

barankaplan7878, posted Sat Jun 02, 2018 2:21 pm (35515)


If you use your instructions and depack it again. You will see original files.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.