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

Native was removed with 4.19 #46

Open
themangomago opened this issue Jun 3, 2018 · 5 comments
Open

Native was removed with 4.19 #46

themangomago opened this issue Jun 3, 2018 · 5 comments

Comments

@themangomago
Copy link

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

@skeeta92
Copy link

how do you fix?

@wrzwicky
Copy link

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
MyFlashlightMod.uplugin.txt
SGameMode.h.txt
SGameMode.cpp.txt

@skeeta92
Copy link

Have you ran into this issue ?

#48

@skeeta92
Copy link

@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 ?

@tomlooman
Copy link
Owner

@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 ;)

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

4 participants