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

Unreal Engine 5 module compilation error #257

Open
kurushimee opened this issue May 29, 2022 · 3 comments
Open

Unreal Engine 5 module compilation error #257

kurushimee opened this issue May 29, 2022 · 3 comments

Comments

@kurushimee
Copy link

From log:

[4/7] Compile Module.UnrealCLR.cpp
C:\Users\jerma\Documents\Projects\spruce_eel\Plugins\UnrealCLR\Source\UnrealCLR\Private\UnrealCLRFramework.cpp(407): error C2338: Invalid elements count of the [ControllerHand] enumeration
C:\Users\jerma\Documents\Projects\spruce_eel\Plugins\UnrealCLR\Source\UnrealCLR\Private\UnrealCLRFramework.cpp(410): error C2338: Invalid elements count of the [PixelFormat] enumeration
C:\Users\jerma\Documents\Projects\spruce_eel\Plugins\UnrealCLR\Source\UnrealCLR\Private\UnrealCLRFramework.cpp(412): error C2338: Invalid size of the [Bounds] structure
C:\Users\jerma\Documents\Projects\spruce_eel\Plugins\UnrealCLR\Source\UnrealCLR\Private\UnrealCLRFramework.cpp(503): warning C4996: 'UObjectBaseUtility::IsPendingKill': IsPendingKill() should no longer be used. Use IsValid(Object), IsValidChecked(Object) or GetValid(Object) instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
C:\Users\jerma\Documents\Projects\spruce_eel\Plugins\UnrealCLR\Source\UnrealCLR\Private\UnrealCLRFramework.cpp(985): warning C4996: 'UEngine::IsSplitScreen': IsSplitScreen was only ever checking if there are more than one local player. Use HasMultipleLocalPlayers instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
LogInit: Warning: Still incompatible or missing module: UnrealCLR
LogCore: Engine exit requested (reason: EngineExit() was called)
LogExit: Preparing to exit.

Seems like it's still incompatible with UE5?

@kurushimee
Copy link
Author

Well I was able to fix the last two by removing them as they're now deprecated. What about the first three?

@kurushimee
Copy link
Author

Fixed by:

  • Changing required value from 17 to 18 (changed in UE5 I guess?) at line 407 in Source/Native/Source/UnrealCLR/Private/UnrealCLRFramework.cpp.
  • Removing/commenting out lines 410 and 412 in Source/Native/Source/UnrealCLR/Private/UnrealCLRFramework.cpp. Most likely it's better to correct these instead of getting rid of them, but I don't know how.
  • Removing/commenting out everything about IsPendingKill and IsSplitScreen in UnrealCLR.h and UnrealCLRFramework.h located in Source/Native/Source/UnrealCLR/Public as well as in UnrealCLR.cpp and UnrealCLRFramework.cpp located in Source/Native/Source/UnrealCLR/Private.

@kurushimee kurushimee changed the title Unreal Engine 5 Plugin compilation error Unreal Engine 5 module compilation error May 29, 2022
@nxrighthere
Copy link
Owner

Please, see #248.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants