ruyo / VRM4U

Runtime VRM loader for UnrealEngine5
Other
1.38k stars 179 forks source link

Packaging game error (ERROR: Unable to instantiate module 'UnrealEd': Unable to instantiate UnrealEd module for non-editor targets) #46

Open oggycather opened 3 years ago

oggycather commented 3 years ago

Hello, sorry for bothering you but I'm currently having an issue with your plugin. The problem is that I'm unable to build my game due to the VRM4U plugin. This is the error I get when I try to package my game: image VRM4UImporter.Build.cs can be found in "VRM4U\Source\VRM4UImporter" (The 'UnrealEd' reference can be found in line 19) Additional information:

URE Version: 4.25 (latest, C++ project, Visual studio 2019 is installed) Packaging for Windows (64-bit) Yes I am using the UnrealEngine_VRM4UPlugin repository version of VRM4U (Latest version, working fine in the editor, it's located within the Plugins folder of my project) I have also included a log file ProjectMare.log

ruyo commented 3 years ago

Hi.

I think your project is Blueprint Project. After placing the binary plugin, place the source there by overwriting. I think this will work. If that doesn't work, try using the CPP project.

oggycather commented 3 years ago

Hi.

I think your project is Blueprint Project. After placing the binary plugin, place the source there by overwriting. I think this will work. If that doesn't work, try using the CPP project.

Hello, my project is a CPP project. Oh that's how I installed the source plugin (After placing the binary plugin, place the source there by overwriting). I'm not too sure why it isn't working

ruyo commented 3 years ago

OK. I think it's probably a cache file issue. Delete the following files and try GenerateVisualStudioProjectFiles again from uproject.

ProjectMare/Intermediate ProjectMare/Plugins/VRM4U/Intermediate

The installation is as shown on the following page, and as far as the explanation is seen, it seems that it has been installed correctly. Sorry for the machine translation. https://translate.googleusercontent.com/translate_c?client=tw-ob&depth=1&hl=ja&ie=UTF8&pto=aue&rurl=translate.google.com&sl=ja&sp=nmt4&tl=en&u=https://ruyo.github.io/VRM4U/03_exe/&usg=ALkJrhhcHipSis34G-wL07SLQoMtAUlU-A

oggycather commented 3 years ago

OK. I think it's probably a cache file issue. Delete the following files and try GenerateVisualStudioProjectFiles again from uproject.

ProjectMare/Intermediate ProjectMare/Plugins/VRM4U/Intermediate

The installation is as shown on the following page, and as far as the explanation is seen, it seems that it has been installed correctly. Sorry for the machine translation. https://translate.googleusercontent.com/translate_c?client=tw-ob&depth=1&hl=ja&ie=UTF8&pto=aue&rurl=translate.google.com&sl=ja&sp=nmt4&tl=en&u=https://ruyo.github.io/VRM4U/03_exe/&usg=ALkJrhhcHipSis34G-wL07SLQoMtAUlU-A

Hello, I have completed the steps you have provided. However, the same issue occurs. I've also tried making a new project and packing it but no luck, the same error occurs. Perhaps we need to mention it's a module in the .uproject file? Maybe this is a 4.25 specific problem? image

evbahn commented 3 years ago

OK. I think it's probably a cache file issue. Delete the following files and try GenerateVisualStudioProjectFiles again from uproject. ProjectMare/Intermediate ProjectMare/Plugins/VRM4U/Intermediate The installation is as shown on the following page, and as far as the explanation is seen, it seems that it has been installed correctly. Sorry for the machine translation. https://translate.googleusercontent.com/translate_c?client=tw-ob&depth=1&hl=ja&ie=UTF8&pto=aue&rurl=translate.google.com&sl=ja&sp=nmt4&tl=en&u=https://ruyo.github.io/VRM4U/03_exe/&usg=ALkJrhhcHipSis34G-wL07SLQoMtAUlU-A

I've tried making a new project and packing it but no luck, the same error occurs. Perhaps we need to mention it's a module in the .uproject file? image

First, thank you so much #ruyo for making this plugin happened so I could make something great out of it. Second, thanks to all of you developers for keeping this updated.

I am having the exact same issue after installing two other plugins that rely on VRM4U to work, therefore, disabling the others, then changing the type of VRM4UEditor from "DeveloperTool" to "Editor" in VRM4Us' uplugin makes me able to package the game successfully. Everything seems to work fine, runtime import works in build as well.

Though I really need the other two plugins to finish my build so I hope our all-mighty developers please help to revisit this issue again.

Appreciate it, everyone!

oggycather commented 3 years ago

Hello, thank you. Changing these from DeveloperTool to Developer fixed the packaging issue for me image Though I get this warning as a result of it: UATHelper: Packaging (Windows (64-bit)): C:\Users\user\Documents\Unreal Projects\Mare\Plugins\VRM4U\VRM4U.uplugin: warning: The 'Developer' module type has been deprecated in 4.24. It works perfectly now.

ruyo commented 3 years ago

I'm glad it worked. I'm sorry to have taken the trouble.

Thank you! evbahn I'll fix it so that there is no problem with the Editor type. If you don't use CharacterPoseRig, there is no problem.

BrokenArmStudios commented 1 year ago

I found this https://youtu.be/9O_YansI-Fs