ProjectBorealis / PBCharacterMovement

HL2-style, classic FPS movement for Unreal Engine implemented in C++
https://www.projectborealis.com/movement
MIT License
1.25k stars 164 forks source link

Can't compile using UE 4.25 #15

Closed Cryoshell99 closed 4 years ago

Cryoshell99 commented 4 years ago

Log:

ProcessResult.StdOut: [3/7] Module.PBCharacterMovement.cpp ProcessResult.StdOut: C:/Users/***/Documents/Unreal Projects/Khsen/Plugins/HLCM/HostProject/Plugins/PBCharacterMovement/Source/PBCharacterMovement/Private/Character/PBPlayerMovement.cpp(1097): error C2248: AActor::Role: unable to access private member declared in class "AActor" ProcessResult.StdOut: C: \ Program Files \ UE_4.25 \ Engine \ Source \ Runtime \ Engine \ Classes \ GameFramework / Actor.h (541): note: see the declaration "AActor :: Role"

mastercoms commented 4 years ago

You have to use the getters and setters provided instead of direct member access.

Cryoshell99 commented 4 years ago

You have to use the getters and setters provided instead of direct member access.

Could you make a step-by-step plan? I understand that this is arrogance on my part, but I just started to study this engine and what you said is not clear to me

mastercoms commented 4 years ago

Look at the Unreal Engine 4.24 release notes, and search for Role. It will provide instructions on how to migrate (use GetRole).

AleDema commented 4 years ago

I supposedly fixed the Role issue, but I'm getting this error: PBCharacterMovement/Source/PBCharacterMovement/Private/Character/PBPlayerCharacter.cpp(238): error C2027: type usage not defined 'UDamageType'

mastercoms commented 4 years ago

Include the damage type class http://classifier.celdevs.com/

mastercoms commented 4 years ago

Fixed in: https://github.com/ProjectBorealis/PBCharacterMovement/commit/04b1e7e2509e4fa58dbbbfb2e15ec7c35551fe64