NOTE: This tool is design for Cxbx-Reloaded developers to troubleshoot, add, and validate OOVPA signatures.
- Convert
- HLE Cache File
- Plus
- Asm Section
- To
- Reverse Engineer
- Informative Asm File
- Input 4 to 6 arguments manually.
- CHPATRI.ini file as global in same directory with CHPATRI.exe file.
- Drag and drop custom ini file on CHPATRI.exe file executable.
To use it, you will need to input within range of 4 to 6 arguments in your command prompt (cmd.exe) in order to process conversion correctly. Or use your own ini file to automate process your request. See "Automate Process" to find out how.
CHPATRI.exe <Section's Virtual Address> <Section's Size of Raw> <HLE Cache file name (Input)> <Section Asm file (Input)> [HLE Cache file name (Output, optional)] [Section Asm file (Output, optional)]
For example with Cel Damage title:
CHPATRI.exe 0024CF80 0001FF4C 93bf5881.ini DSOUND.txt rangeDetect.txt DSOUND.asm
There are up to 6 arguments can be used. Create a global CHPATRI.ini
file in same directory CHPATRI.exe executable is in. Then add all or a few of these variables from below in CHPATRI.ini file.
arg1=
Virtual Addressarg2=
Size of Rawarg3=
HLE Cache ini file (Input)arg4=
Library section txt file (Input)arg5=
HLE Cache ini file (Output, optional)arg6=
Library section txt file (Output, optional)
Plus you can also use custom ini file for drag and drop onto CHPATRI.exe file. Be aware of custom ini will overwrite global settings.
NOTE: arg3 to arg6 does not require any quotes.
NOTE: Does not necessarily follow in that order.
- Download alugi's quickbms tool and xbe_dump.bms files. Run it to extract all sections into raw section files in a separate folder.
- Next, you will need to dump xbe information from Cxbx(-R)'s, tool in order to obtain
Virtual Address
andSize of Raw
values from specific section. - Run the title in Cxbx(-R) to generate HLE Cache file.
- Run Cheat Engine tool and open any raw section file you chose for Virtual Address and Size of Raw values to be use.
- Click on
Memory View
button. - Click on
File
-->Save disassemble output"
from dropdown menu. From
input should be0
andTo
input should be exactly the same asSize of Raw
value.- Then click "Save" (Please make sure you save it with an extension at the end.)
- Click on
- Now you can use CHPATRI tool, see "How to Use it" instruction above.
- Finally, open generated section file and start reverse engineer of what's missing and/or verify if location is correct.