ncsoft / Unreal.js

Unreal.js: Javascript runtime built for UnrealEngine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working in UE 5.1

Hannessa opened this issue · comments

Hi,

I tried to install Unreal.js in a brand new UE 5.1 project, following the instructions in the readme. However, I just get the following error message when I try to rebuild it:

image

image

image

Here's a list of the compile errors I get:

image

I managed to solve half of them by just adding

#include "EditorStyleSet.h"

at the top of SJavascriptGraphEdNode.cpp

commented

I ran into the same issue and ended up rolling back to UE5, am happy to know I am not the only one having this problem

Yeah, same here, good to know! I also rolled back, but I do want to start switching to UE5.1 soon thanks to the much improved foliage rendering.

I also added:
#include "EditorStyleSet.h"
to JavascriptEditorTab.cpp (on row 5 below #if WITH_EDITOR)

and I'm now down to 17 errors. So that gives me some hope that it might mostly be easy fixes.

image

Not quite sure why this didn't generate errors before, and I can't find any info about this EditorStyleSet.h in the UE 5.1 release notes. But maybe it's just a newer compiler or something that is less forgiving.

commented

I'm cheering for you! I'll take a deeper look in the evening and see if I can figure it out as well, fingers crossed that one of us can solve this problem.

This changelist may be helpful for updating Unreal.js to 5.1: getnamo/UnrealJs@3836ff2. Largely changed FEditorStyle to FAppStyle

and getnamo/UnrealJs@733c763 for re-enabling logging.

There are still some deprecation warnings on compile, but it does run.

Made minor fixes and made a fork release (win64) for 5.1: https://github.com/getnamo/UnrealJs/releases/tag/v0.7.0

That's amazing. I just tested it, and it runs out of the box. Thanks so much for fixing this! This should really be merged into the original repo. Great job!

UE 5.1 supported version has been pushed.

@dochigun-nc The new version can't run the example normally, and input "GWorld" in the JavaScript console prompts an undefined error.