June 14Jun 14 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 June 14Jun 14 by h3x3r
June 14Jun 14 17 hours ago, HORIZON6 said: MER E63SAMG 18 zip.zip 21.26 MB · 3 downloads As it's your first post, you clearly haven't read the rules, so take some time to read them. You need to amend your post title and add some explanation text to the body of your post stating what you've already tried, etc. Otherwise your post will be deleted as spam.
Create an account or sign in to comment