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

Error inserting CameraCaptureManager_BP blueprint into the scene #33

Open
4ndr3aR opened this issue Jan 9, 2024 · 0 comments
Open

Error inserting CameraCaptureManager_BP blueprint into the scene #33

4ndr3aR opened this issue Jan 9, 2024 · 0 comments

Comments

@4ndr3aR
Copy link

4ndr3aR commented Jan 9, 2024

Hey there!

First of all let me congratulate you for this plugin. I haven't been able to get it running yet but it looks really well written and should be a great starting point for trying to understand what's going on in the guts of Unreal Engine.

I'm using UE 5.2.0 and I had some trouble adding CameraCaptureManager_BP.uasset to the scene. The editor was always giving errors such as:

VerifyImport: Failed to find script package for import object 'Package /Script/CameraCaptureToDisk'
CreateExport: Failed to load Parent for BlueprintGeneratedClass /CameraCaptureToDisk/CameraCaptureManager_BP.CameraCaptureManager_BP_C
Unable to load Default__CameraCaptureManager_BP_C with outer Package /CameraCaptureToDisk/CameraCaptureManager_BP because its class (CameraCaptureManager_BP_C) does not exist

I tried both using the project already included in your repo and creating new projects (with all kinds of configurations I could think of), without success.

At first I thought what was missing was the reference to the the C++ class, so I tried moving the CameraCaptureManager.cpp/.h pair pretty much everywhere, again without success. I finally came across a post about redirects in Config/DefaultEngine.ini and that seems to have finally solved my problem.

Basically, after creating a new project with the first person template (called TestImageCapture1), I copied CameraCaptureManager.cpp/.h to Source/TestImageCapture1, CameraCaptureManager_BP.uasset to Content/CameraCaptureToDisk/Blueprints and I added these two lines to Config/DefaultEngine.ini under the [/Script/Engine.Engine] section:

+ActiveGameNameRedirects=(OldGameName="/Script/CameraCaptureToDisk.CameraCaptureManager",NewGameName="/Script/TestImageCapture1.CameraCaptureManager")
+ActiveClassRedirects=(OldClassName="/Script/CameraCaptureToDisk.CameraCaptureManager",NewClassName="/Script/TestImageCapture1.CameraCaptureManager")

Now the blueprint has a parent again and I can add it to the scene.

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

1 participant