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

Crash when getting class #56

Closed
TheGeogeo opened this issue Nov 6, 2023 · 2 comments
Closed

Crash when getting class #56

TheGeogeo opened this issue Nov 6, 2023 · 2 comments

Comments

@TheGeogeo
Copy link

TheGeogeo commented Nov 6, 2023

Hi,

When i want get UGameplayStatics or any class in engine the game crash.

static inline SDK::UGameplayStatics* GPStatics = nullptr;
//---
if (!this->GPStatics) this->GPStatics = (SDK::UGameplayStatics*)SDK::UGameplayStatics::StaticClass();

I change like in this issue : #52

static inline SDK::UGameplayStatics* GPStatics = nullptr;
//---
if (!this->GPStatics) this->GPStatics = (SDK::UGameplayStatics*)SDK::UGameplayStatics::GetDefaultObj();

And it crash too.

Thx for any reply.

@Fischsalat
Copy link
Collaborator

Check if the offsets in UObject, UStruct, UFunction and UClass are correct. Did any of the assertions at the bottom of SDK.hpp fail? If one of the offsets is wrong you need to fix it by hand for now.

I'm going to make sure offsets of predefined members wont be an issue in the rewrite!

@TheGeogeo
Copy link
Author

Ok thx, i fix it later.

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

2 participants