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.

Namco Museum Remix UKTP162N Encryption

Featured Replies

  • Author
  • Localization

Garo, posted Thu Jan 28, 2021 11:19 am (61868)


After recently learning BMS, I've been trying to crack these PTK files.

I made this crappy script to extract the file

Code:
idstring "UKTP162N"
get FILES long
get ARCSIZE long
endian guess FILES
for i = 0 < FILES
   get SIZE long
   findloc NAMESZ long "\x2E\x74"
   savepos OFFSET
   getdstring NAME NAMESZ
   clog NAME OFFSET ARCSIZE SIZE
next i


Please inform me on what I'm doing wrong
  • Author
  • Localization

spiritovod, posted Thu Jan 28, 2021 10:23 pm (61879)


Not sure what you're trying to get with that script, it's totally not compatible with your attached file and doesn't make much sense (for example, you're passing NAMESZ offset, obtained from findloc, as getdstring's size), also considering that the file doesn't contain clear offsets or sizes.
Here is an example, how it can be parsed in a "blind" way, though it's also not exactly correct, since it's tested only on single file. I suppose resulted files are headerless tga or something, which can be converted with rawtex or something to readable form (converted files in the attachment are created with r8g8b8a8 format). Besides, it looks more like container, where 4 parts of a single symmetric texture are stored in separated files, but I'm probably wrong.

UKTP162N.bms

  • Author
  • Localization

Garo, posted Fri Jan 29, 2021 12:16 am (61880)


Huh. Well I'm sorry for such an incoherent script. As I stated, I'm new to BMS itself, so my scripts will be terrible. Thank you though
  • Author
  • Localization

spiritovod, posted Fri Jan 29, 2021 12:43 am (61881)


You can start with reading some tutorials, there are some in Tutorials section on zenhax and xentax - like this or that. Also, there are tutorials on other sources, just google for them (like this one).
  • Author
  • Localization

lvlrk, posted Mon Mar 06, 2023 1:02 am (75697)


although this post was from a while back,

@spiritovod, @Garo
the ptk file isnt encrypted, it seems to be like a texture effect (particle stuff) data file
in the Namco Museum Remix romfs, these 'ptk' files are in the *resident.lzs files (resident means shared resources in this game)
files of this type have varied file names, which start with BIN_EFF_*, PTK_*, ef_t_*, which seem to indicate that these files are used
for particle effect data

this quick script i wrote up prints the filenames in the ptk files
Code:
idstring "UKTP162N"

goto 552

endian big

get FILES long

math START = 2320

for i = 0 < FILES
   math OFF = START
   xmath OFF "OFF (1024 * i)"

   goto OFF
   get NAME string
   print "%NAME%"
next i


this file has a lot of padding in it
Guest
This topic is now closed to further replies.

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.