namecrc from MEMORY_FILE

Programming related discussions related to game research
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

namecrc from MEMORY_FILE

Post by Shokoniraya »

hello sir aluigi
i wroted a script for decompressed umd file, but my problem is name files, because name table and hash codes are in file and using MEMORY_FILE for set names will not working, but i want to do it in this script, i mean how can i use a name file from MEMORY_FILE, i think you did same thing in sleeping dogs script
in script, you can see it in line 37, there is a log file that extract name file and then script read it, but i want to do it in MEMORY_FILE, how can i do it?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: namecrc from MEMORY_FILE

Post by aluigi »

As far as I know it works with MEMORY_FILE too.
Simple example:

Code: Select all

set MEMORY_FILE string "0x1234 asdf.txt"
namecrc NAME 0x1234 MEMORY_FILE 32
print "TEST %NAME%"

The result is asdf.txt indeed