Members erickkingofarmy14 Posted September 3, 2025 Members Posted September 3, 2025 help me! for .pngb in toy soldiers please!
DKDave Posted September 3, 2025 Posted September 3, 2025 11 minutes ago, erickkingofarmy14 said: help me! for .pngb in toy soldiers please! Without samples and script it's impossible to tell. At a guess, the format might be slightly different across platforms (different endian, etc.), as the game was made for PS4, PC, XBox One.
Members erickkingofarmy14 Posted September 4, 2025 Author Members Posted September 4, 2025 (edited) 22 hours ago, DKDave said: Without samples and script it's impossible to tell. At a guess, the format might be slightly different across platforms (different endian, etc.), as the game was made for PS4, PC, XBox One. like this? Edited September 4, 2025 by erickkingofarmy14 upload other image
DKDave Posted September 4, 2025 Posted September 4, 2025 No, I mean samples of the actual files, not screenshots. Screenshots don't show much for anyone to check the files properly. 1
Members erickkingofarmy14 Posted September 4, 2025 Author Members Posted September 4, 2025 (edited) On 9/4/2025 at 7:05 PM, DKDave said: No, I mean samples of the actual files, not screenshots. Screenshots don't show much for anyone to check the files properly. here weapons textures sorry DKDave textures.rar Edited September 8, 2025 by erickkingofarmy14 add text
Members erickkingofarmy14 Posted September 7, 2025 Author Members Posted September 7, 2025 On 9/4/2025 at 7:05 PM, DKDave said: No, I mean samples of the actual files, not screenshots. Screenshots don't show much for anyone to check the files properly. sorry DKDave
Engineers h3x3r Posted September 11, 2025 Engineers Posted September 11, 2025 //------------------------------------------------ //--- 010 Editor v14.0 Binary Template // // File: // Authors: // Version: // Purpose: // Category: // File Mask: // ID Bytes: // History: //------------------------------------------------ FSeek(112); uint16 MipMap; uint16 TextureWidth; uint16 TextureHeight; uint16 Unknown; enum <uint32> { PF_DXT1 = 1, PF_DXT5 = 3, }PixelFormat; FSkip(20); uint32 TextureBufferOffset; uint32 TextureSize;
Members erickkingofarmy14 Posted September 11, 2025 Author Members Posted September 11, 2025 3 hours ago, h3x3r said: //------------------------------------------------ //--- 010 Editor v14.0 Binary Template // // File: // Authors: // Version: // Purpose: // Category: // File Mask: // ID Bytes: // History: //------------------------------------------------ FSeek(112); uint16 MipMap; uint16 TextureWidth; uint16 TextureHeight; uint16 Unknown; enum <uint32> { PF_DXT1 = 1, PF_DXT5 = 3, }PixelFormat; FSkip(20); uint32 TextureBufferOffset; uint32 TextureSize; how to use?
Engineers Solution h3x3r Posted September 13, 2025 Engineers Solution Posted September 13, 2025 (edited) You can write Noesis script by that code. Anyway there you go. from inc_noesis import * import noesis import rapi import os def registerNoesisTypes(): handle = noesis.register("Toy Soldiers War Chest - Texture", ".pngb") 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(112) MipMap = bs.readUShort() TextureWidth = bs.readUShort() TextureHeight = bs.readUShort() bs.read(2) PixelFormat = bs.readUInt() bs.read(20) TextureBufferOffset = bs.readUInt() BufferSize = bs.readUInt() bs.seek(TextureBufferOffset, NOESEEK_ABS) data = bs.readBytes(BufferSize) if PixelFormat == 1: print("Pixel Format > DXT1 ", PixelFormat) elif PixelFormat == 3: print("Pixel Format > DXT5 ", PixelFormat) else: print("Unknown Pixel Format > ", PixelFormat) if PixelFormat == 1: texFmt = noesis.NOESISTEX_DXT1 elif PixelFormat == 3: texFmt = noesis.NOESISTEX_DXT5 texList.append(NoeTexture(rapi.getInputName(), TextureWidth, TextureHeight, data, texFmt)) return 1 Edited September 13, 2025 by h3x3r
Members erickkingofarmy14 Posted September 14, 2025 Author Members Posted September 14, 2025 (edited) 19 hours ago, h3x3r said: You can write Noesis script by that code. Anyway there you go. from inc_noesis import * import noesis import rapi import os def registerNoesisTypes(): handle = noesis.register("Toy Soldiers War Chest - Texture", ".pngb") 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(112) MipMap = bs.readUShort() TextureWidth = bs.readUShort() TextureHeight = bs.readUShort() bs.read(2) PixelFormat = bs.readUInt() bs.read(20) TextureBufferOffset = bs.readUInt() BufferSize = bs.readUInt() bs.seek(TextureBufferOffset, NOESEEK_ABS) data = bs.readBytes(BufferSize) if PixelFormat == 1: print("Pixel Format > DXT1 ", PixelFormat) elif PixelFormat == 3: print("Pixel Format > DXT5 ", PixelFormat) else: print("Unknown Pixel Format > ", PixelFormat) if PixelFormat == 1: texFmt = noesis.NOESISTEX_DXT1 elif PixelFormat == 3: texFmt = noesis.NOESISTEX_DXT5 texList.append(NoeTexture(rapi.getInputName(), TextureWidth, TextureHeight, data, texFmt)) return 1 I NOT UNDERSTAND! Edited September 14, 2025 by erickkingofarmy14 ADD TEXT
Engineers h3x3r Posted September 14, 2025 Engineers Posted September 14, 2025 Copy that code into txt and save it as *.py. Then move it into the Noesis\plugins\python Update noesis via Tools > Check for Updates
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now