Unable to load MathworksSimulation Plugin in Unreal

Hi,
I have installed "Vehicle Dynamics Blockset Interface for Unreal Engine 4 Projects" and trying to run the Custom method to open the AutoVrtlEnv project in Unreal.
I have followed the procedure https://in.mathworks.com/help/vdynblks/ug/support-package-for-customizing-scenes.html, installed UE4.19 (tried with 4.19.2, 4.19.0, 4.19.2_release tags from Unreal github directories and buiding the executable as EPIC Launcher is having only UE4.24 and UE4.23 versions as of now).
When tried to open the project from Matlab environment, I am getting the following errors:
  1. Missing or incompatible:
2. If I choose No in the above option (step 1) then getting the error as failed to load:
3. If I press OK in step 2, the Epic launcher app is launched which provides only the latest 4.24 version launch option.
4. If I press Yes in step 1, the AutoVrtlEnv project is opened but having the Load errors as below:
5. Also having the MathworksSimulation Plugin disabled:
6. If I try to enable, the Unreal application is asking for a restart and the same sequence continues. Below snapshots are for your reference on the unreal version being used:
Note that the source is built using the Github https://github.com/EpicGames/UnrealEngine/tree/4.19. I also tried with https://github.com/EpicGames/UnrealEngine/tree/4.19.2-release and https://github.com/EpicGames/UnrealEngine/tree/4.19.0-release. But all are providing the same above errors only.
7. I tried opening the AutoVrtlEnv project using the latest UE 4.24.1. But getting the following error:
8. If I provide No, then the project is not loaded. If I press Yes, then getting the following error:
Request your support in adding the MathworksSimulation plugin inside Unreal engine and use the custom mode to edit the scenes in VehicleDynamicsBlockset.

10 Kommentare

Thanks for the detailed debugging info, Manoj. A few follow-up questions while we look into this:
1) Can you confirm that you're using Windows 10?
2) Can you confirm that you received the message "Successfully copied MathWorksSimulation plugin to UE4 engine plugins!" after running the setup script in Step 3 of the instructions? If it worked, you should see "MathWorksSimulation.uplugin" file in the folder "C:\Program Files\Epic Games\UE_4.19\Engine\Plugins\Marketplace\MathWorks\MathWorksSimulation" (or wherever you installed the Unreal Engine.
Hi Mr.Mike Sasena,
1) I am using Windows 10 Home Single Language
2) I got the "Successfully copied MathWorksSimulation plugin to UE4 engine plugins!" message first time when I ran the script, and the files are copied inside the Unreal installed folder.
I hope there is no problem with the installation. I think the plugin needs to be rebuilt for the current unreal versions and tested by Mathworks staff for operation.
If any Mathwork staff can perform a new installation of unreal (using epic launcher or github source building), they will be able to sort out I think.
Mike Sasena
Mike Sasena am 20 Feb. 2020
Bearbeitet: Mike Sasena am 20 Feb. 2020
Thanks for the additional info, Manoj. I'm not certain, but your issue may have to do with how you installed Unreal Engine. I've always used the Epic Launcher to install the Unreal Engine, so I'm not certain if the resulting folder structure is the same between both install methods.
Only the latest versions are shown by default, but you can select older versions from the Launcher:
Click on the "+" symbol next to "Engine Versions", then click on the white arrow to the right of the version number. It will open a pull-down menu with a list of older releases that you can install. I'd recommend you start with installing 4.19.2 through the Epic Games Launcher and see if it makes a difference.
Thanks Mike, I installed 4.19.2 through Epic launcher and now I am able to open AutoVrtlEnv project in UE_4.19 along with the MathworksSimulink plugin enabled and Sim 3D classes appearing.
Thanks for the help. I will start exploring on this.
regards,
S Manoj Kumar
Excellent! Looks like the 2 installation methods are indeed different. We'll make sure to steer customers towards the Launcher install method, since the GitHub installer has some different behavior. Appreciate you giving a detailed accoutn of what you saw.
Hi Mike,
I am able to open the AutoVrtlEnv project using the matlab script.
But, if I try opening the project by double-clicking or from Unreal application and choosing the project file to open I am getting the error as below:
Can you explain why the UE editor only opens via the Matlab script?
I plan to use Matlab in one PC and Unreal Engine in another different PC. I need to open the AutoVrtlEnv unreal project without the script.
regards,
S Manoj Kumar
hello Kumar,
Did your problem been solved or not because i'm dealing with the same problem right now, can u help
I wanted to provide an answer in case anyone else runs into this thread.
Once you have enabled MathWorks plugins on an Unreal Engine project, the project can only be opened via a MATLAB script or the Simulation 3D Scene Configuration block in Simulink. Simulink will fail to establish a connection with the editor if you open the Unreal Editor outside MATLAB® or Simulink. To avoid this failure mode, the UE Editor for the project can only be opened through MATLAB/Simulink.
@Nishan Neeko, Can you specify why this is failing? Is there a fix planned?
Hi Manoj, unfortuantely this is a technical limitation that I don't have much insight to offer into. The team may consider implementing a more robust interface mechanism in a future release that doesn't require this manual step.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Ya Wei
Ya Wei am 18 Jan. 2021

1 Stimme

the AutoVrtlEnv unreal project must be opened from matlab command line, or form simulink block [Simulation 3D Scene Configuration] -> [Open Unreal Editor].
Because the simulink is not linked to Unreal Editor, when u double click xxx.uproject to open the AutoVrtlEnv project, the error happens. as ue editor can not find matlab plugins.
matlab command line: e.g
path = fullfile('C:','Local','myProject','myProject.uproject');
editor = sim3d.Editor(path);
open(editor);
Mike Sasena
Mike Sasena am 12 Apr. 2022

0 Stimmen

For those of you still learning how to install the Unreal Engine plugin, I encourage you to check out this video series. It walks you through the setup using some of our shipping exampes. Hope you find it helpful.

5 Kommentare

I use Matlab 2022b, have the "Vehicle Dynamics Blockset Interface for Unreal Engine 4 Projects support package" and UE4.26, but have a similar problem when I want to open the Unreal Editor through Simulation 3D Scene Configuration block:
I used the code line: sim3d.utils.copyExampleSim3dProject("C:\project"); as mentioned on the link to coppy the project but I got this error:
Error using mkdir
Access is denied.
Error in sim3d.utils.copyExampleSim3dProject
Hi Arash,
It sounds like a Windows permission issue. Have you checked if you have write priveleges to create the "C:\Project" folder? You could also start by creating an empty folder manually, then using the scritp to copy the files into that new folder.
I'm facing a similar kind of problem, MathWorks plugin which interfaces connection between Matlab/Simulink and UE4 won't get enabled no matter what I do. How can I solve the issue?
Hi Harshal. It's hard to debug something via a chat thread. I'd recommend you reach out to our Tech Support team who can work directly with you to resolve your specific issue.
Hi, Did you solve the problem? i am facing the same problem.

Melden Sie sich an, um zu kommentieren.

Produkte

Version

R2019b

Kommentiert:

am 24 Apr. 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by