Custom Code/Reverse Engineering: Difference between revisions

From Zenith
Jump to navigation Jump to search
Content added Content deleted
No edit summary
Line 3: Line 3:
== Requirements ==
== Requirements ==


* [[NSMBU-Haxx/Setting up Ghidra|Ghidra]] set up with the NSMBU RPX loaded
* [[Ghidra]] set up with the NSMBU RPX loaded (USv1.3.0 is recommended)
* At least a basic understanding of C++ or Assembly
* At least a basic understanding of C++ or 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]]

Revision as of 22:40, 25 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

  • Ghidra set up with the NSMBU RPX loaded (USv1.3.0 is recommended)
  • At least a basic understanding of C++ or Assembly