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

Dark Escape 4D (PS3) (Pac. And Txpk Files)

Featured Replies

Solved by K5.0

  • K5.0 changed the title to Dark Escape 4D (PS3) (Pac. And Txpk Files)
  • 4 weeks later...
  • Supporter

So here is bms for *.ntp.

get BaseFileName basename
get FileSize asize
get FileExtension extension
endian big

getdstring TXPKSign 0x4
get Unknown_0 uint32
get FileSize uint32
get ResourceCount uint32
get TOCOffset uint32
get Unknown_1 uint32
get Unknown_2 uint32
get Unknown_3 uint32

goto TOCOffset
for i = 0 < ResourceCount
	get DefinitionSize uint32
	get ResourceOffset uint32
	get ResourceSize uint32
	get ResourceNameHash uint32

	string Name p "%s/0x%08x.tex" BaseFileName ResourceNameHash

	if ResourceSize != 0
		log Name ResourceOffset ResourceSize
	endif
next i

And here is 010 template for textures.

//------------------------------------------------
//--- 010 Editor v14.0 Binary Template
//
//      File: 
//   Authors: 
//   Version: 
//   Purpose: 
//  Category: 
// File Mask: 
//  ID Bytes: 
//   History: 
//------------------------------------------------
BigEndian();

local uint32 i;

char NTP3Sign[4];
ubyte Unknown_0;
ubyte Unknown_1;
ubyte Unknown_2;
ubyte Unknown_3;
uint32 Reserved[2];
uint32 Unknown_4;
uint32 Unknown_5;
uint32 TextureDataSize;
uint16 GIDXOffset;
uint16 Unknown_8;
uint16 MipMaps;
enum <uint16>
{
    PF_DXT1 = 0,
    PF_DXT5 = 2,
    
}PixelFormat;
uint16 TextureWidth;
uint16 TextureHeight;
uint32 Reserved1[6];
uint32 MipTextureDataSize[MipMaps];

FSeek(GIDXOffset);
char GIDXSign[4];
uint32 GIDXSize;
uint32 TextureNameHash;
uint32 Reserved2;

struct
{
    for (i=0; i < MipMaps; i++)
    {
        struct
        {
            byte MipData[MipTextureDataSize[i]] ;
        }MipRawData;
    }
}TextureData;

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.