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.
Zero Tolerance for Disrespect

Death end re:Quest 2 .XET files

Featured Replies

Solved by h3x3r

  • Supporter
  • Solution

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

 

  • Author
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:

Screenshot 2024-11-10 005436.png

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.