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

[PC] Shogo: Mobile Armor Division .DTX

Featured Replies

Solved by ikskoks

  • 2 weeks later...
  • Supporter

It wasn't that hard follow 010 template... Works on all provided samples. Thanks ikskoks for confirmation.

from inc_noesis import *
import noesis
import rapi
import os

def registerNoesisTypes():
   handle = noesis.register("Shogo: Mobile Armor Division - Texture", ".DTX")
   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)
	TextureWidth = bs.readUShort()
	TextureHeight = bs.readUShort()
	bs.read(32)
	PaletteBuffer = bs.read(1024)
                    
	RawDataBufferSize = TextureWidth * TextureHeight
	RawDataBuffer = bs.read(RawDataBufferSize)
	data = rapi.imageDecodeRawPal(RawDataBuffer, PaletteBuffer, TextureWidth, TextureHeight, 8, "a8 r8 g8 b8")
	texFmt = noesis.NOESISTEX_RGBA32

	texList.append(NoeTexture(rapi.getInputName(), TextureWidth, TextureHeight, data, texFmt))
	return 1

 

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.