-
Notifications
You must be signed in to change notification settings - Fork 1
How to decompile a script
- A NARC tool, such as knarc or Tinke.
- A tool to extract and reinsert NARCs to your ROM, such as Tinke or NitroExplorer2b.
- The latest version of BeaterScript.
The first two steps depend on your preferred ROM editing tools.
- Load your ROM in Tinke, then locate the script NARC of the game you are hacking. For example: Black and White's script NARC is at
a/0/5/7
, and Black 2 and White 2's script NARC is ata/0/5/6
. - Unpack the NARC.
- With your ROM tool, dump/extract the script NARC of the game you are hacking. For example: Black and White's script NARC is at
a/0/5/7
, and Black 2 and White 2's script NARC is ata/0/5/6
. - Extract the contents of the NARC with the NARC tool you chose to use.
-
Find the script container (or, file) in the NARC which you would like to edit. The index of the file can be easily identified by checking the header section in Spiky's DS Map Editor, or similar.
- (optional) Copy the file you extracted qto the BeaterScript directory.
-
Open a command prompt/terminal in the BeaterScript directory. On Windows, you can just browse to the directory with Windows Explorer, press Shift + Right Click inside of the folder, then click
Open command prompt here
, orOpen Powershell window here
. On Linux, open your terminal, thencd
to the BeaterScript directory. -
In the command prompt window which shows up, type in the following to decompile your script (dependent on your operating system):
.\BeaterScript -d <input> <game code> <output>
./BeaterScript -d <input> <game code> <output>
To clarify:
-
input
is the path to the script container (or, file) which you extracted out of the NARC earlier. -
game
is the abbreviation for the game you are hacking. Valid options at this time are (case sensitive):BW
,B2W2
. -
output
is the path where you want this script file to be written.
- Check the
output
path for your decompiled script.