GabryTheSniper Posted November 3 Share Posted November 3 When i decomplied the files of the game, i came across these files: 59233856.xet and 58053336.xet . Is there a way to convert them as png? Is there a script that can handle them? Thanks in advance. XET files.zip Link to comment Share on other sites More sharing options...
Engineer Solution h3x3r Posted Saturday at 07:49 AM Engineer Solution Share Posted Saturday at 07:49 AM Tell me if you encounter any other Pixel Format. If so send me the file. from inc_noesis import * import noesis import rapi import os def registerNoesisTypes(): handle = noesis.register("Death end re:Quest 2", ".xet") 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())) TexWidth = bs.readUShort() TexHeight = bs.readUShort() bs.read(2) TexPixelFormat = bs.readUByte() bs.read(5) if TexPixelFormat == 0: bs.TexSize = TexWidth * TexHeight //2 # DXT1 print("Pixel Format > DXT1") elif TexPixelFormat == 32: bs.TexSize = TexWidth * TexHeight # DXT5 print("Pixel Format > DXT5") else: print("Unknown Pixel Format >",TexPixelFormat) data = bs.readBytes(bs.TexSize) if TexPixelFormat == 0: texFmt = noesis.NOESISTEX_DXT1 elif TexPixelFormat == 32: texFmt = noesis.NOESISTEX_DXT5 texList.append(NoeTexture(rapi.getInputName(), TexWidth, TexHeight, data, texFmt)) return 1 2 Link to comment Share on other sites More sharing options...
GabryTheSniper Posted Saturday at 11:55 PM Author Share Posted Saturday at 11:55 PM 16 hours ago, h3x3r said: Tell me if you encounter any other Pixel Format. If so send me the file. from inc_noesis import * import noesis import rapi import os def registerNoesisTypes(): handle = noesis.register("Death end re:Quest 2", ".xet") 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())) TexWidth = bs.readUShort() TexHeight = bs.readUShort() bs.read(2) TexPixelFormat = bs.readUByte() bs.read(5) if TexPixelFormat == 0: bs.TexSize = TexWidth * TexHeight //2 # DXT1 print("Pixel Format > DXT1") elif TexPixelFormat == 32: bs.TexSize = TexWidth * TexHeight # DXT5 print("Pixel Format > DXT5") else: print("Unknown Pixel Format >",TexPixelFormat) data = bs.readBytes(bs.TexSize) if TexPixelFormat == 0: texFmt = noesis.NOESISTEX_DXT1 elif TexPixelFormat == 32: texFmt = noesis.NOESISTEX_DXT5 texList.append(NoeTexture(rapi.getInputName(), TexWidth, TexHeight, data, texFmt)) return 1 It doesn't work, it gives me these traceback errors: Link to comment Share on other sites More sharing options...
Engineer h3x3r Posted Sunday at 08:28 AM Engineer Share Posted Sunday at 08:28 AM Update Noesis... Link to comment Share on other sites More sharing options...
GabryTheSniper Posted Sunday at 01:38 PM Author Share Posted Sunday at 01:38 PM 5 hours ago, h3x3r said: Update Noesis... Yeah, i forgot to update Noesis and they are now working. My bad. Link to comment Share on other sites More sharing options...
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