NodeJs-Unreal icon indicating copy to clipboard operation
NodeJs-Unreal copied to clipboard

LogTemp: Error: Main script connection error! Likely crash, stopping main script.

Open silobla opened this issue 10 months ago • 3 comments

Hi guys,

I still get the following error message in my Unreal Engine 5.2 Project:

SocketIO: SocketIO Invalid appears to have lost connection, reconnecting attempt 2 with delay 11250 LogTemp: Error: Main script connection error! Likely crash, stopping main script.

I've already tried all steps mentioned in https://github.com/getnamo/NodeJs-Unreal/issues/18 but without resolving the issue.

My index.js is in \Unreal Projects\MyProject\Plugins\NodeJs-Unreal\Content\Scripts npm i tells me everything is up to date.

Need help, thank you very much and have a nice day

silobla avatar Feb 18 '25 20:02 silobla

It's a known issue, reloading the script a few times typically solves it (If in PIE, stop and play again like 2-3x).

That said I'm working slowly toward a more stable refactor around the CLISystem, branch found here: https://github.com/getnamo/NodeJs-Unreal/tree/feat-clisystem-refactor. Not yet working (missing communication protocol standard), but that's the approach that will fix this bug properly.

getnamo avatar Feb 22 '25 01:02 getnamo

Hi @getnamo ,

thank you for your quick response and for trying to fix the issue. Do you have an idea when you will approximately release the new branch?

I'm open to test stuff if you like.

silobla avatar Feb 23 '25 20:02 silobla

Bump, having a similar issue in packaged builds and in editor. is there a work-around? This is severely hindering the playtest of my project.

RyDawgE avatar Mar 04 '25 15:03 RyDawgE