ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Aug 24, 2019 6:00 pm

All times are UTC




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Wed Sep 26, 2018 9:15 pm 

Joined: Thu Sep 13, 2018 6:38 pm
Posts: 73
So, MTA seems to store most of it's UI textures in .CBTEX files.
Looking at them in a hex editor shows that they are probably BNTX(A standard switch texture container)
Image
It's definitely compressed data, but can it be decompressed?
That is my question.

There is other compressed formats in the game(CBFMD, CBNTX etc etc), and there is a decompression script for them.
https://www.vg-resource.com/thread-29836.html (Source)
https://mega.nz/#!i5h03IRB!s7BYtPqmW9R4Vww1u_En-e24qbSXsnIwiCqgbwSASjU (BMS Script)

But apparently these CBTEX files use different compression.
Just thought i'd mention that too.

Here's a sample CBTEX:
https://cdn.discordapp.com/attachments/419711036837330956/494616951738466313/lyt_titlelogo_color.cbtex

And a sample CBNTX for comparisons sake:
https://cdn.discordapp.com/attachments/419711036837330956/494617475644784650/mario.cbntx


Top
   
PostPosted: Thu Sep 27, 2018 10:11 am 

Joined: Thu Sep 14, 2017 12:02 am
Posts: 18
sadly some of those texture files uses a different format that RTB is unable to figure out, just like the cubemaps since they're pretty much BNTX textures.


Top
   
PostPosted: Fri Sep 28, 2018 9:11 pm 

Joined: Thu Sep 13, 2018 6:38 pm
Posts: 73
Different format?
How would we know if the format is different if the data is compressed?


Top
   
PostPosted: Sat Sep 29, 2018 10:34 am 

Joined: Thu Sep 13, 2018 6:38 pm
Posts: 73
If the CBTEX stuff can't be decompressed, can the CBNTX and CBFMD files be re-compressed?


Top
   
PostPosted: Tue Oct 02, 2018 9:42 am 

Joined: Thu Sep 14, 2017 12:02 am
Posts: 18
CosmicDreams wrote:
Different format?
How would we know if the format is different if the data is compressed?

As in different texture type that is unknown and not documented, so getting them to export properly isn't pretty much a top priority to researchers.

CosmicDreams wrote:
If the CBTEX stuff can't be decompressed, can the CBNTX and CBFMD files be re-compressed?

there's no tool to re-compress or rebuild the files.


Top
   
PostPosted: Thu Apr 04, 2019 1:05 am 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 262
Fun fact, 2.3.0 has a portion of GZip compressed CBTEX :). It's waluigi_all_alb_l.cbtex and more.


Last edited by LolHacksRule on Sat Jul 06, 2019 2:09 am, edited 1 time in total.

Top
   
PostPosted: Sat Jun 15, 2019 3:48 pm 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 262
SimonTime figured out the compression! https://github.com/simontime/MarioTenni ... compressor

I don't think recompressing with 0x50 is necessary as some files are compressed as of updates with only deflate, making the game handle multiple compression types over one primary, meaning you likely could use modified deflates over modified 0x50s for any 0x50 file.

CBVFX: Compressed Binary VFX
CBPTL: Compressed Binary ParTicLe
CBFMD: Compressed Binary CaFe MoDel
CBTEX: Compressed Binary TEXture
CBNTX: Compressed Binary NX Texture (BNTX).

New compression was added as of updates, I'll say them later.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited