Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG - Experiemental] RegisterHook generally not working in Grounded #626

Open
Aidanamite opened this issue Aug 20, 2024 · 0 comments
Open

Comments

@Aidanamite
Copy link

Aidanamite commented Aug 20, 2024

Branch or Release
Experimental 3.0.1-151

Game and Engine Version
Grounded
UE 4.27

Describe the bug
Most of the functions in Grounded do not seem to be able to be hooked. Some can, but most not. Calling the RegisterHook function says that it was successful in the log, but when the function is supposed to occur, the function provided to the hook is simply not run.

I have attempted to fix the issue by both configuring the engine version override to the game's engine version and delaying registering the hooks even as late as after I've loaded into a world.

Based on what I can tell from using the zDev tools for UE4SS, the functions that are not hookable are any function that is both Final and BlueprintCallable

Using the UE4SS header dumps, I was able to use Cheat Engine to find the function and add a breakpoint to verify that the function is being called and it is, just that the hook itself isn't

To Reproduce

  1. Use the RegisterHook function on any function that is Final & BlueprintCallable
  2. Do something that would trigger that function

In my case, the main function I've been trying to hook is the /Script/Maine.Item:RemoveDurability function

Expected behavior
I expected the hook function to be run.

Desktop (please complete the following information):

  • OS: Win10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant