Custom Code/Reverse Engineering: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
Jhmaster2000 (talk | contribs) m (→Locating Actor Constructors: update bot cmd) |
Jhmaster2000 (talk | contribs) m (add IDA notice and game variant link) |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
== Requirements == |
== Requirements == |
||
* [[ |
* [[Ghidra]] set up with the NSMBU RPX loaded ([[Game Variants|US v1.3.0 <small>[6B6EF642]</small>]] is recommended) |
||
** <small>'''Advanced Users Only!''' You can alternatively use IDA Pro 7.2+ if you prefer, but this guide will be optimized for Ghidra and you will be on your own to convert steps to IDA equivalents.</small> |
|||
* At least a basic understanding of C++ or Assembly |
* At least a basic understanding of C++ and/or Assembly (preferably PowerPC Assembly) |
||
== Locating Actor Constructors == |
|||
# Create a class from the Symbol Tree menu and name it the same as the target class name. |
|||
# Check the build function for your desired profile from the Discord bot in the [https://discord.gg/PXM34tKQNj Zenith server] (syntax: -searchprofile [name]). |
|||
# Go to the build function address from above (Press G to load goto menu). |
|||
# Label the build function <code>Class::build</code> where Class is the name of the class you just created in the Symbol Tree. |
|||
# Set the param type to <code>ActorBuildInfo*</code> and set the label to <code>buildInfo</code>. |
|||
# Right click on the function that gets called inside the build function, and go to function signature. |
|||
# Label it <code>Class::Class</code>, set the calling convention to <code>__thiscall</code> (make sure to remove the extra param if it creates one here), and set param 2 to be of type <code>ActorBuildInfo*</code> and labelled <code>buildInfo</code>. |
|||
[[Category:Guides]] |
[[Category:Guides]] |
Latest revision as of 00:50, 26 November 2022
This page is dedicated to guides on reverse engineering the game, to find helpful information about the internals and to assist in creating ASM patches for low level hacks.
Requirements[edit | edit source]
- Ghidra set up with the NSMBU RPX loaded (US v1.3.0 [6B6EF642] is recommended)
- Advanced Users Only! You can alternatively use IDA Pro 7.2+ if you prefer, but this guide will be optimized for Ghidra and you will be on your own to convert steps to IDA equivalents.
- At least a basic understanding of C++ and/or Assembly (preferably PowerPC Assembly)