ProjectBorealis / PBCharacterMovement

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

Fix build for UE5.1 #38

Closed narukimato closed 1 year ago

narukimato commented 1 year ago

Hello, This PR fix 2 error that throwed when build code for UE 5.1.

Error throwed :

Fixed with cee56c817c5f7bf0dc06dc6fb8082c3665de1f1a :

[REDACTED]\Plugins\PBCharacterMovement-master-1\HostProject\Plugins\PBCharacterMovement\Source\PBCharacterMovement\Public\Character\PBPlayerMovement.h(196): Error: An explicit Category specifier is required for Blueprint accessible functions in an Engine module.

fixed with cd855176ada19ba09c87fe3fa95177f53b1b5913 :

[1/1] Compile Module.PBCharacterMovement.cpp
[REDACTED]\Plugins\PBCharacterMovement-master-1\HostProject\Plugins\PBCharacterMovement\Source\PBCharacterMovement\Private\Character\PBPlayerCharacter.cpp(98): error C2027: use of undefined type 'UDamageType'
[REDACTED]\UE_5.1\Engine\Source\Runtime\Engine\Classes\Engine\DamageEvents.h(11): note: see declaration of 'UDamageType'
[REDACTED]\Plugins\PBCharacterMovement-master-1\HostProject\Plugins\PBCharacterMovement\Source\PBCharacterMovement\Private\Character\PBPlayerCharacter.cpp(98): error C2737: 'bMassIndependentImpulse': const object must be initialized

Thanks.