Page 1 of 1

Creating a Just Cause 2 filelist

Posted: Mon Aug 08, 2011 9:02 am
by Kstolen
Hi guys, I'd like to do some modding on Just Cause 2.

Gibbed/Rick has made some nice tools for viewing the archives that come with the game and the files inside them.
Unfortunately, the filenames are hashed, so his tool uses a list of known file names to identify files in the archives.
However, only something like ~10% of filenames are known. I'd like to improve on this, but I'm not really sure where to start.

How do people tend to go about discovering filenames/paths to create a filelist?

Re: Creating a Just Cause 2 filelist

Posted: Tue Aug 09, 2011 12:03 am
by Rick
The typical way is to hook the hashing function in the game so you can log all calls, IIRC, Just Cause 2 doesn't use precomputed hashes for anything aside from property names.

Re: Creating a Just Cause 2 filelist

Posted: Sat Sep 03, 2011 3:29 am
by Kstolen
I'd put this off for a little while, back on it now.
The typical way is to hook the hashing function in the game
Is that what you did, yeah? Any tips to share about the process? Maybe the address of the hashing function? I can't seem to find it. It would probably have a load of bitwise shifts and xors in it, yeah?