August 17Aug 17 Localization I'm looking for existing tools to convert Taxi Racer New York 2 DCTs to DDS files. taxiracernewyork2_dct.rar
August 17Aug 17 Supporter from inc_noesis import * import noesis import rapi import os def registerNoesisTypes(): handle = noesis.register("Taxi Racer New York 2", ".dct") 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(31) PixelFormat = bs.readUByte() MipMap = bs.readUInt() TextureWidth = bs.readUInt() TextureHeight = bs.readUInt() TextureBufferSize = bs.readUInt() data = bs.read(TextureBufferSize) if PixelFormat == 5: texFmt = noesis.NOESISTEX_RGB24 print("Pixel Format > RGB") elif PixelFormat == 8: texFmt = noesis.NOESISTEX_DXT1 print("Pixel Format > DXT1") elif PixelFormat == 9: texFmt = noesis.NOESISTEX_DXT3 print("Pixel Format > DXT3") elif PixelFormat == 10: texFmt = noesis.NOESISTEX_DXT5 print("Pixel Format > DXT5") else: print("Unknown Pixel Format > ",PixelFormat) texList.append(NoeTexture(rapi.getInputName(), TextureWidth, TextureHeight, data, texFmt)) return 1 Edited August 17Aug 17 by h3x3r
Create an account or sign in to comment