-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Native was removed with 4.19 #46
Comments
how do you fix? |
Patched files are attached. Rename and remove '.txt' extension, github doesn't support source files here. Apparently you can use DECLARE_FUNCTION to fix the H file, but I don't know if there's something similar for the CPP file. ExtendedRifleMod.uplugin.txt |
Have you ran into this issue ? |
@wrzwicky I basically replaced the SGameMode's file that you gave me copying over the ones i have and i still get errors.. also just to make sure are you using 4.19 ? |
@wrzwicky I tried updating the gamemode source using your change for a 4.20 upgrade, but doesn't seem to work quite yet. Ideally I get rid of the UT beginplay hack alltogether. For now having it compile for users is ideal however ;) |
Unfortunately in 4.19 Native was removed and FNativeFuncPtr was introduced. This requires some minor changes in SGameMode.cpp and SGameMode.h
408: Func->SetNativeFunc((Native)&ASGameMode::BeginPlayMutatorHack);
Also UObject* Context was added as first parameter, this needs to be adapted in definition and declaration.
BR
The text was updated successfully, but these errors were encountered: