Please help compiling a plugin!

Hello and thank you for reading!

I would love to make this plugin from elgSoft be usable in UE 5.4, it would be extremely useful for me!

I have installed Visual Studio 2022 and made it trying to compile as described here.

And I almost reached the goal, but now I don’t know how to go on.

This is what I get:

E0070 incomplete type FHitResult is not allowed

That’s the use of FHitResult in a function:

So I am obviously almost there. But since I am in no way a professional C++ programmer, I can’t go on…

Any idea and idea?

Thank you so much!

Okay! One second after asking here for help I found out myself:

In ElgEditorContext_LevelEditor.cpp add this line as additional include:

#include <Engine/HitResult.h>

Thats it!

edit fixed plugin engine version from 5.4.3 to just 5.4 to suppress error message:

ElgEditorScripting-master.zip (2.5 MB)

@zeit-feld
You still needs some fixes of code regarding if else functions regarding unreachable code & and build orders settings for the plugin.

1 Like

Yes, you are right!

However I created a fork on Github, should be updated there also.

Nevertheless, here is everything I did:

In ElgEditorContext_LevelEditor.cpp add this line as additional include:

#include <Engine/HitResult.h>

In ElgEditorContext_BP.cpp and ElgEditorBP_UBlueprint.cpp where needed just replaced

#endif

return nullptr;

with

#else
	return nullptr;
#endif

Then, also I edited the .uplugin file with an ASCII-Editor like so:

"EngineVersion": "5.4",

Thank you so much!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.