Hacking (WIP) - BNTX Extractor

AboodXD

I hack NSMB games, and other shiz.
OP
Member
Joined
Oct 11, 2014
Messages
2,880
Trophies
1
Location
Not under a rock.
XP
2,921
Country
United Arab Emirates
BNTX Extractor v0.4

BNTX Extractor is a tool which extracts textures from the Binary NX Texture ('BNTX' / .bntx file extension) format used in Switch games, and saves them as DDS (or ASTC files).

Supported texture formats:
  • R8_G8_B8_A8_UNORM
  • R8_G8_B8_A8_SRGB
  • R5_G6_B5_UNORM
  • R8_UNORM
  • R8_G8_UNORM
  • BC1_UNORM
  • BC1_SRGB
  • BC2_UNORM
  • BC2_SRGB
  • BC3_UNORM
  • BC3_SRGB
  • BC4_UNORM
  • BC4_SNORM
  • BC5_UNORM
  • BC5_SNORM
  • BC6H_UF16
  • BC6H_SF16
  • BC7_UNORM
  • BC7_SRGB
  • ASTC4x4
  • ASTC4x4 SRGB
  • ASTC5x4
  • ASTC5x4 SRGB
  • ASTC5x5
  • ASTC5x5 SRGB
  • ASTC6x5
  • ASTC6x5 SRGB
  • ASTC6x6
  • ASTC6x6 SRGB
  • ASTC8x5
  • ASTC8x5 SRGB
  • ASTC8x6
  • ASTC8x6 SRGB
  • ASTC8x8
  • ASTC8x8 SRGB
  • ASTC10x5
  • ASTC10x5 SRGB
  • ASTC10x6
  • ASTC10x6 SRGB
  • ASTC10x8
  • ASTC10x8 SRGB
  • ASTC10x10
  • ASTC10x10 SRGB
  • ASTC12x10
  • ASTC12x10 SRGB
  • ASTC12x12
  • ASTC12x12 SRGB

Known bugs:
  • The swizzling isn't completely perfect yet.

Notes:
  • A lot of tools don't support BC6 and BC7 DDS files, so I recommend using CompressonatorCLI to convert those DDS files to PNG files.
  • For ASTC textures, you need to use the ASTC Evaluation Codec to convert those textures to TGA. Use the following command:
    Code:
    astcenc -d input.astc output.tga

Here's a test:
XMG1h0a.png

Special thanks to:
  • gdkchan: Original swizzling algorithm

Download.
Source code / Github.
 
Last edited by AboodXD,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Veho @ Veho:
    I only wish it was actually playable.
  • Veho @ Veho:
    There's a guy on the Tube of You that makes playable mechanical arcade games out of Lego. This could work on the same principle.
  • Veho @ Veho:
    Just a couple of guys taking their manatee out for some fresh air, why you have to molest them?
  • Veho @ Veho:
    Stupid Chinese shop switched their shipping company and this one is slooooooow.
  • LeoTCK @ LeoTCK:
    STOP BUYING CHINESE CRAP THEN
  • LeoTCK @ LeoTCK:
    SUPPORT LOCAL PRODUCTS, MAKE REVOLUTION
  • LeoTCK @ LeoTCK:
    THEY KEEP REMOVING LOCAL SHIt AND REPLACING WItH INFERIOR CHINESE CRAP
  • LeoTCK @ LeoTCK:
    THATS WHY MY PARTNER CANT GET A GOOTWEAR HIS SIZE ANYMORE
  • LeoTCK @ LeoTCK:
    HE HAS BIG FOOT AND BIG DUCK
  • LeoTCK @ LeoTCK:
    d*ck i mean*
  • LeoTCK @ LeoTCK:
    lol
  • Veho @ Veho:
    Mkay.
  • Veho @ Veho:
    I just ordered another package from China just to spite you.
  • SylverReZ @ SylverReZ:
    Communism lol
  • SylverReZ @ SylverReZ:
    OUR products
  • The Real Jdbye @ The Real Jdbye:
    @LeoTCK actually good quality products are dying out because they can't compete with dropshipped chinese crap
    +2
  • BakerMan @ BakerMan:
    @LeoTCK is your partner the sascrotch or smth?
  • Xdqwerty @ Xdqwerty:
    Good morning
  • Xdqwerty @ Xdqwerty:
    Out of nowhere I got several scars on my forearm and part of my arm and it really itches.
  • AdRoz78 @ AdRoz78:
    Hey, I bought a modchip today and it says "New 2040plus" in the top left corner. Is this a legit chip or was I scammed?
  • Veho @ Veho:
    @AdRoz78 start a thread and post a photo of the chip.
    +1
    Veho @ Veho: @AdRoz78 start a thread and post a photo of the chip. +1