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.

Plants VS. Zombies (Android TV China) *.TEX (SEXYAppFramework TEXture)

Featured Replies

  • Author
  • Localization

LolHacksRule, posted Tue Mar 30, 2021 10:54 pm (63141)


The textures are zlib-compressed, the format is super easy but ripping textures is going to be a little tedious as they use XML files to locate textures on the atlas. I tried to create a Noesis script on my own, it gets the textures, but doesn't properly adjust the texture formats to ARGB, making textures look improperly colored. Any advice on fixing my script?

Code:
//------------------------------------------------
//--- 010 Editor v10.0.2 Binary Template
//
//      File: PopCap (SexyApp/Sexy App) Framework *.TEX (SEXY Texture)
//      Authors: LolHacksRule
//      Version: 1
//      Purpose: Gets data out of the binary.
//      Category: Metadata
//      File Mask: SEXYTEX
//      ID Bytes:
//      History:
//------------------------------------------------

LittleEndian();

struct Header {
    char    sexyTexHeader[7]; //Should be SEXYTEX
    char    padding[5]; //should be 00
} header;


struct TexMetaData {
    uint    texWidth; //Width
    uint    texHeight;
    uint    texFmt; //03 = ARGB4444, 02 = ARGB8888
    uint    unknown2;
    uint    unknown3;
    uint    zLibCompressedTexSize;
    char    morePadding[12];
} texMetaDataTable;


Code:
    #RGBA8888 texture
    if texFmt == 0x2:
        print("RGBA8888: format detected")
        texData = rapi.imageDecodeRaw(decompTex, texWidth, texHeight, "r8 g8 b8 a8")
        texFmt = noesis.NOESISTEX_RGBA32
    #RGBA4444 texture
    elif texFmt == 0x3:
        print("RGBA4444: format detected")
        texData = rapi.imageDecodeRaw(decompTex, texWidth, texHeight, "r4 g4 b4 a4")
        texFmt = noesis.NOESISTEX_RGBA32
    else:
        print("UNKNOWN TEXTURE FORMAT DETECTED!")
        return None
    texList.append(NoeTexture(rapi.getInputName(), texWidth, texHeight, texData, texFmt))
    return 1
  • Author
  • Localization

z4ruz, posted Wed May 26, 2021 9:27 pm (64294)


next time please also provide full script (attach as file)
  • Author
  • Localization

LolHacksRule, posted Fri May 28, 2021 10:15 pm (64358)


Sorry, but thanks anyway.
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.