getnamo / NodeJs-Unreal

Embed node.js as an Unreal Engine plugin.
MIT License
239 stars 34 forks source link

support for UE 4.27 #37

Closed T3KKIE closed 2 years ago

T3KKIE commented 2 years ago

hi, is a version planned for 4.27

getnamo commented 2 years ago

It's likely you can recompile the current master commit for 4.27 and it should work

huwyane commented 2 years ago

Is this working for 4.27?

I get this error when I have the Node component on an actor and try to simulate: "Pure virtual function being called while application was running (GlsRunning == 1)."

getnamo commented 2 years ago

@huwyane what platform are you trying to run this on? Windows? Have any logs of the crash?

JonesHong commented 2 years ago

It's likely you can recompile the current master commit for 4.27 and it should work

I have tried to use 4.26 and 5, but rebuild always get failded. I bought Socket.IO Client in marketplace. Does it cause any issue?

Because some built-in bug in UE5, I forced to downgrade Unreal. I have try 4.26 editor, but it cause another problem in other plugins.

If NodeJs-Unreal can be run in 4.27, it will help a lot.

getnamo commented 2 years ago

It shouldn't, project plugins override any marketplace ones of same type. You do need to have a c++ project or hybrid to compile a plugin in the project though, see https://github.com/getnamo/SocketIOClient-Unreal#github

JonesHong commented 2 years ago

After following the direction in SocketIO-Unreal.

I create a blank project in 4.26 and set plugins (Nodejs-Unreal & SocketIO-Client). Create a none class in C++. Build project as "Development Editor" and "Development". Project can be open in 4.26. Then I try to switch Unreal Engine version to 4.27. Open project. It siad "Need to rebuild", but always get failded around 70%.

Also I try to deleted SocketIO-Client in Plugins.Because I already installed in marketplace. My thought is that only rebuild Nodejs-Unreal. Yet it still rebuild failed.

What did I do wrong or missing? I try this tutorial on YouTube, but nothing changed. (It clamed "Rebuild any old plugin to any new version such as UE5.")

getnamo commented 2 years ago

Made a backport release for UE4.27: https://github.com/getnamo/NodeJs-Unreal/releases/tag/v1.1.0. It uses the marketplace version for 4.27 of socket.io (https://github.com/getnamo/SocketIOClient-Unreal/releases/tag/v1.10.0) and had one compile change to work with that matching plugin. I did have to remove the marketplace one to generate the project files for 4.27 but after that it worked as expected.

You should be able to delete the embedded socket.io plugin in the release if you want to use the marketplace one instead (they're identical).

getnamo commented 2 years ago

Backport branch for reference: https://github.com/getnamo/NodeJs-Unreal/tree/ue4.27

JonesHong commented 2 years ago

Thank you so much! I will try it later! It’s 2 am here.

I have used Nodejs-Unreal in ue5. And realized I can do something interesting with it. I can't wait for it.

Have a good day and goodnight😁

Update 8 hours later. I dream about Unreal code last night. How crazy🤣 Just adding plugin to 4.27 and following sample code. It works!!👍️