Well.. this is interesting
It looks like YKCMP but possibly a newer version, the existing tools don't seem to like it, and it seems to have an additional header at the start
This should get you started,
Code:
goto 0x24
get STRING_END long
goto 0x30
get STRING_START long
xmath STRING_LENGTH "STRING_END - STRING_START"
log "stringtable" STRING_START STRING_LENGTH
# workaround for getting entry count
goto 0x50
get FIRST_OFFSET long
set ENTRY_COUNT 0
xmath ENTRY_COUNT "FIRST_OFFSET - 0x40"
xmath ENTRY_COUNT "FIRST_OFFSET / 0x20"
goto 0x40
for i = 0 < ENTRY_COUNT
getdstring NAME 8 # not always populated
get LENGTH long
get UNK1 long # Not populated if WIDTH and HEIGHT are populated
get OFFSET long
get UNK2 long # seems to be in the header of the subfiles, at 0x10, in case of NMPLTEX1 files
get WIDTH long # image width, 0x58 in subfile
get HEIGHT long # image height, 0x5c in subfile
if UNK2 != 0
# image file
string NAME + OFFSET
string NAME + "_"
string NAME + WIDTH
string NAME + "x"
string NAME + HEIGHT
string NAME + ".nplmtex"
print "name: %NAME% offset: %OFFSET% length: %LENGTH% unk1: %UNK1% unk2: %UNK2% width: %WIDTH% height: %HEIGHT%"
log OFFSET OFFSET LENGTH
else
# general files
print "name: %NAME% offset: %OFFSET% length: %LENGTH% unk1: %UNK1% unk2: %UNK2% width: %WIDTH% height: %HEIGHT%"
log OFFSET OFFSET LENGTH
endif
next i