Here is a simple tool that allows you to update native hashes and their addresses with ease! This tool will really only be useful to modders who are reverse engineering the game and not the average user, so if that means you, don’t bother reading any further.
The goal of this tool is to simplify the process of updating native addresses to the latest version of the game.
Provided with a version of natives.h and the relevant translation tables, the tool will do the rest for you, producing a natives-bxxx.h file with the hashes changed to reflect the newer version. Additionally, when provided with an addresses-bxxx text file, the tool will also generate and .idc script which can be used within IDA to apply labels at the entry points for these natives, providing valuable information that makes things much easier for anyone reverse engineering the binary.
In the download, I have included almost all necessary files to update natives to the current version of the game at the time of me writing this i.e. v 1180. The only file you will need to attain yourself is natives.h from www.dev-c.com/nativedb. (future versions may use a web request to grab this file, but for now you will need to provide it manually). For future updates, you simply need to create a new bxxx-bxxx.txt file containing the translations, and optionally provide a newer version of the bxxx-addresses.txt file.
To use the program:
First drop the latest version of natives.h into the working directory (Available form www.dev-c.com/nativedb) then select the bxxx-bxxx.txt translation tables up to the game version to which you want to update natives to, and drag these onto NativeHashUpdater.exe.
I hope this will be helpful to other modders. It has definitely made the process a lot easier for me. Please leave a comment if you run into any issues.
Source is included in the download.
Updated with newest translation tables
Program will now generate a crossmap.txt mapping natives from the first input file to the last