Page 1 of 1

Find pointer address for the current frame/Hook to Stage Select Naruto Storm 4

Posted: Thu Aug 27, 2020 6:54 pm
by exavadeathwitch
I'm updating an API in C++ that someone made for Naruto Shippuden Ultimate Ninja Storm 4. The original code for a function that uses the pointer is below.
int ccGeneralGameFunctions::GetCurrentFrame()
{
int frame = 0;
memcpy(&frame, (void*)(d3dcompiler_47_og::moduleBase + 0x15AE70C - 0xC00), 4);
return frame;
}

This gets the current frame of the game and is necessary as I need to assign values to something every frame. Does anyone here have an idea on how I could find an updated pointer for the new version of the game? Also, does anyone here have an idea on how I could hook cheat engine to the stage select of the game to figure out how to know which stage has been selected?