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 .anp texture animation file

Featured Replies

  • Author
  • Localization

garan, posted Wed May 18, 2022 1:07 am (71596)


so these files are big endian, like lots of wii game files. im thinking that theyre texture animations or contain some kind of keyframes that tell the game to render them at locations? im not very sure because im not that good at this stuff.

the file magic is "ANP 150 " and the amount of images stored in the file (image count i guess) is a u32 value and is always stored at 0x8. at 0x30 there is a string pool for each image, and the names are limited to 16 bytes or 15 for a null terminator

after the string pool, there are a bunch of 16 byte chunks that are formatted like [u32 value][u32 value][u32 value]\x00\x00\x00\x00

AND THEN theres a lot of data that looks like its in chunks. probably because i have my bytes per line config set to 16 on hxd.

but yeah when i modified some values and patched the files in the wbfs, i got some results. for example in ANT_BG, when i modifed the image count to less than the original, some font sheets were displayed over textures. i mean i could totally be going about this the wrong way, but i think they might be raw rgba values? or they could only be keyframes if you get the gist of what im saying. maybe theres some other file that contains actual image data and this ANP file type is just pointing to it and contains animation data.

im sorry im going on long tangents and this post is pretty long, tl;dr im trying to figure out what values in this file format do and what they mean
  • Author
  • Localization

lvlrk, posted Mon Mar 06, 2023 1:05 am (75698)


print info about anp file

anp files store info about the 2d ui layout and animation data

Code:
# Namco Museum Remix ANP file info script
# by lvlrk v0.1

idstring "ANP 150 "

endian big

get TEXTURES long
get GROUPS long
get FRAMES long
get UNK1 long
get UNK2 long

get TEXTURES_OFF long
get GROUPS_OFF long
get FRAMES_OFF long
get UNK1_OFF long
get UNK2_OFF long

print "textures:"
for i = 0 < TEXTURES
   getdstring TEXTURE 16
   print "- %TEXTURE%.brres"
next i

print "group count: %GROUPS%"
print "frame count: %FRAMES%"

goto GROUPS_OFF
print "groups:"
for i = 0 < GROUPS
   get COUNT long
   get START long
   get END long
   get DUMMY long
   print "- group[%i%] #%START% - #%END% (%COUNT%)"
next i
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.