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

Add support for 5.2-5.3 versions of UE #37

Open
wintrel456 opened this issue Mar 13, 2024 · 5 comments
Open

Add support for 5.2-5.3 versions of UE #37

wintrel456 opened this issue Mar 13, 2024 · 5 comments

Comments

@wintrel456
Copy link

No description provided.

@hiperbou
Copy link
Owner

hiperbou commented Mar 13, 2024

You can try this branch, although I had not updated the definitions yet, so maybe some functions that were added or renamed may not be available (this could be fixed manually by editing the definitions if you find any)

https://github.com/hiperbou/kotlin-unreal/tree/UE5.3

@wintrel456
Copy link
Author

Please, can you say how implement this library in existing project from UE5.3 tree?

@hiperbou
Copy link
Owner

hiperbou commented Mar 13, 2024

Right now you will need to put manually the Unreal.js plugin because it is not available on the Unreal Marketplace for versions 5.2 or 5.3.
You can do it following the manual installation instructions here: https://github.com/ncsoft/Unreal.js/

Then you should copy the Content, kotlin-examples and kotlin-unreal-definitions to your project.

Then, from the Source folder copy the files KotlinComponent.h, KotlinComponent.c, KotlinObject.h, KotlinObject.c

Now add the Unreal.js plugin to your *.uproject file

https://github.com/hiperbou/kotlin-unreal/blob/master/KotlinUnreal.uproject#L15

Make sure your **.Build.cs includes the module V8 https://github.com/hiperbou/kotlin-unreal/blob/master/Source/KotlinUnreal/KotlinUnreal.Build.cs#L11

Then, the difficult part would be copying the functionality on KotlinGameInstance to your own GameInstance
https://github.com/hiperbou/kotlin-unreal/blob/master/Source/KotlinUnreal/KotlinUnreal.Build.cs

Then you should modify this to use your GameInstance https://github.com/hiperbou/kotlin-unreal/blob/master/Source/KotlinUnreal/KotlinComponent.cpp#L59 (also the include)

I have never done this process myself, but that should do the trick!

@wintrel456
Copy link
Author

Unfortunately, I get an error after installing UnrealJS.
image

@hiperbou
Copy link
Owner

You need to open the project in Visual Studio and do a rebuild. You would be able to see and fix any compilation errors from there.

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

No branches or pull requests

2 participants