sinbad / SPUD

Steve's Persistent Unreal Data library
MIT License
308 stars 45 forks source link

GameInstance function GetOnPawnControllerChanged() does not exist in 4.25 #11

Closed rfsheffer closed 2 years ago

rfsheffer commented 2 years ago

Unfortunately, the GameInstance function GetOnPawnControllerChanged() does not exist in Unreal 4.25 so the plugin does not compile for 4.25 at this time without commenting out the two calls to it in Source/SPUD/Private/SpudStreamingVolume.cpp. This is not a problem for me because I don't have to use the SpudStreamingVolumes, but I thought I would bring it up. This delegate is executed from the pawn class itself in 4.26 in Pawn.cpp in the function OnRep_Controller() Line 488 and is definitely new. I suppose one way to get around this is to observe controllers and bind to OnNewPawn which is broadcast whenever a pawn is being possessed.

Cheers! Ryan

sinbad commented 2 years ago

OK I'm just going to increase the required version to 4.26. 4.25 can't support seamless travel properly either, so rather than have to caveat things anymore I'm just going to require 4.26 - you can patch your version to use OnNewPawn if you like though, or submit a PR to do that in 4.25. I don't have 4.25 installed anymore anyway so am not testing with it.