UE4SS-RE / RE-UE4SS

Injectable LUA scripting system, SDK generator, live property editor and other dumping utilities for UE4/5 games
http://docs.ue4ss.com/
MIT License
1.38k stars 188 forks source link

[Feature] Log target game base address early, and log RVAs for hooked functions #522

Open massclown opened 6 months ago

massclown commented 6 months ago

To help troubleshoot AOBs and other early load crashes, please log the base address of the game target executable in the beginning of the UE4SS initialization as well.

Currently, it appears to be only logged at https://github.com/UE4SS-RE/RE-UE4SS/blob/main/UE4SS/src/UE4SSProgram.cpp#L331 which happens way too late, and only if all the objects have been successfully constructed (which may not be the case for an early crash).

Additionally, when logging the hooked functions addresses, please also log the RVA, in addition to the actual virtual address as it is now. RVAs can be copy-pasted to a disassembler or debugger without having to subtract the base address every time (especially if the target has already crashed).