Important information: this site is currently scheduled to go offline indefinitely by December 1st 2023.
If you wish to donate to attempt the preservation of tools and software somewhere else before it goes down, check the GoFundMe

Creating a Just Cause 2 filelist

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Kstolen
ultra-n00b
Posts: 2
Joined: Mon Aug 08, 2011 1:39 am

Creating a Just Cause 2 filelist

Post 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?
Rick
Moderator
Posts: 388
Joined: Tue Aug 09, 2005 10:10 pm
Been thanked: 156 times
Contact:

Re: Creating a Just Cause 2 filelist

Post 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.
https://blog.gib.me/

Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
Kstolen
ultra-n00b
Posts: 2
Joined: Mon Aug 08, 2011 1:39 am

Re: Creating a Just Cause 2 filelist

Post 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?
Post Reply