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.

MACLAREN

Featured Replies

  • Supporter

Let me guess... Forza?

Also there's no model only textures.

EDiT: My bad, models are there but in subfolders

Here's Noesis script for swatchbin files. Textures.

from inc_noesis import *
import noesis
import rapi
import os

def registerNoesisTypes():
   handle = noesis.register("Forza Horizon 6 - Texture", ".swatchbin")
   noesis.setHandlerTypeCheck(handle, noepyCheckType)
   noesis.setHandlerLoadRGBA(handle, noepyLoadRGBA)
   noesis.logPopup()
   return 1
        
def noepyCheckType(data):
   bs = NoeBitStream(data)
   if len(data) < 20:
      return 0
   return 1
   
def noepyLoadRGBA(data, texList):
    bs = NoeBitStream(data)
    BaseName = rapi.getExtensionlessName(rapi.getLocalFileName(rapi.getInputName()))

    bs.read(8)
    RawDataOffset = bs.readUInt()
    ResourceSize = bs.readUInt()
    bs.read(60)
    TextureWidth = bs.readUInt()
    TextureHeight = bs.readUInt()
    bs.read(32)
    PixelFormat = bs.readUInt()
    bs.read(8)
    TextureSize = bs.readUInt()

    bs.seek(RawDataOffset, NOESEEK_ABS)
    TextureData = bs.read(TextureSize)
    if PixelFormat == 0:
        data = rapi.imageDecodeDXT(TextureData, TextureWidth, TextureHeight, noesis.FOURCC_BC1)
        texFmt = noesis.NOESISTEX_RGBA32
        print("Pixel Format > BC1 >", PixelFormat)
    elif PixelFormat == 3:
        data = rapi.imageDecodeDXT(TextureData, TextureWidth, TextureHeight, noesis.FOURCC_BC4)
        texFmt = noesis.NOESISTEX_RGBA32
        print("Pixel Format > BC4U >", PixelFormat)
    elif PixelFormat == 5:
        data = rapi.imageDecodeDXT(TextureData, TextureWidth, TextureHeight, noesis.FOURCC_BC5)
        texFmt = noesis.NOESISTEX_RGBA32
        print("Pixel Format > BC5U >", PixelFormat)
    elif PixelFormat == 9:
        data = rapi.imageDecodeDXT(TextureData, TextureWidth, TextureHeight, noesis.FOURCC_BC7)
        texFmt = noesis.NOESISTEX_RGBA32
        print("Pixel Format > BC7 >", PixelFormat)
    elif PixelFormat == 13:
        data = rapi.imageDecodeRaw(TextureData, TextureWidth, TextureHeight, "r8g8b8a8")
        texFmt = noesis.NOESISTEX_RGBA32
        print("Pixel Format > RGBA8 >", PixelFormat)
    elif PixelFormat == 19:
        data = rapi.imageDecodeRaw(TextureData, TextureWidth, TextureHeight, "r0g0b0a8")
        texFmt = noesis.NOESISTEX_RGBA32
        print("Pixel Format > A8 >", PixelFormat)
    else:
        print("Unknown Pixel Format > ", PixelFormat)
            
    texList.append(NoeTexture(rapi.getInputName(), TextureWidth, TextureHeight, data, texFmt))
    return 1

 

Edited by h3x3r

Create an account or sign in to comment

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.