GameTechDev / XeSSUnrealPlugin

Intel® XeSS Plugin for Unreal* Engine
MIT License
123 stars 4 forks source link

Compilation error in Standalone Mode (UE 5.1.1, plugin V1.4.7) #10

Closed Nerwy closed 2 months ago

Nerwy commented 2 months ago

Hello, I just added this plugin to my project but when I try to launch the game in Standalone Mode, I get these errors that cause the game to break: image These issues do not seem to appear in PIE or packaged builds which is really strange.

xessgamedev commented 2 months ago

Please share a full log file.

Nerwy commented 2 months ago

Sorry, forgot to attach it, here is it: XeSSIssue.log

xessgamedev commented 2 months ago

The reason should be your Blueprint referring XeSS Blueprint is loaded before XeSSBlueprint module is loaded, which is "PostEngineInit". You can try to load you Blueprint module later or load XeSSBlueprint module earlier.

Nerwy commented 2 months ago

This blueprint is called from the game instance in order to initialise the XeSS upscaler at game start, is there a way to force the plugin to load before everything else including the game instance? Even adding a delay inside the game instance before calling the function that contain the XeSS function does not work.

xessgamedev commented 2 months ago

You may try to edit XeSS.uplugin to set load phase of module XeSS and XeSSBlueprint to "PreDefault", then they will be loaded before UGameInstance::Init().

Nerwy commented 2 months ago

With this change the plugin does not block the load of anything else as expected but now the plugin itself does not work anymore because of this error: image

EasyGameUI5_1_2.log

xessgamedev commented 2 months ago

Sorry, you're right. FSceneViewExtensions::RegisterExtension requires GEngine to be assigned, which is done in FEngineLoop::Init(), let me check any other solution.

xessgamedev commented 2 months ago

Please try TempFix.zip, just replace the same files. NOTE: it is a temp fix for testing only, the final solution may change in the next public release. TempFix.zip

Nerwy commented 2 months ago

Thank you for checking it out. Unfortunately this does not seem to work as now the engine crash on startup image

xessgamedev commented 2 months ago

It seems that the plugin source or binary is not updated, please help to confirm if the files are replaced and plugin binaries re-built.

Nerwy commented 2 months ago

I just rebuilt the plugin with the fix and it does indeed work, thank you for the assistance. Are you planning to add this fix to an official build anytime soon?

xessgamedev commented 2 months ago

Yes, definitely, and together with other bug fixes and new features. Thank you for reporting and helping to verify.