Hello there,
I guess I fumbled the migration of a project containing some tools I built for UE. I tried to migrate it from an old project to a fresh one, changing the folder structure of the project.
Old: “/Game/Sponza/Blueprints/…”
New: “/Game/Blueprints/…”
In doing so, it broke references in my Blueprint Function Library to structs and enums I had used to tidy things up. The names and details of the items haven’t changed at all, just the path to them.
I have tried to open the BFL and BPs in the node editor in order to re-reference and rewire but it just falls apart to the point where nearly every connection is removed and errors abound.
For the life of me I can’t figure out how to just re-point the references to the new name of the structs and enums without everything breaking in the process.
I have tried using “Replace References” but the dialog only comes up with a single entry, the item I selected, and the “consolidate” button is greyed out so I can’t proceed.
I also found some info on Core Redirects but I must not be formatting them incorrectly because none work.
This one results in no errors to the output but also no change/fix to the reference:
[CoreRedirects]
+StructRedirects=(OldName="/Game/Sponza/Blueprints/Flicker/ColorVarStruct",NewName="/Game/Blueprints/Flicker/ColorVarStruct")
This one gives me an invalid character error in the output on startup:
[CoreRedirects]
+StructRedirects=(OldName=/Script/Engine.UserDefinedStruct'/Game/Sponza/Blueprints/Flicker/ColorVarStruct.ColorVarStruct',NewName=/Script/Engine.UserDefinedStruct'/Game/Blueprints/Flicker/ColorVarStruct.ColorVarStruct')
And this one where I tried to use the substring matching to just remove the old name causes the editor to crash on startup:
[CoreRedirects]
+StructRedirects=(OldName="/Sponza",NewName="",MatchSubstring=true)
Am I misunderstanding what these redirects are for or just misformatting the line?
Is there anyway I can cleanly fix these few references without manually rewiring everything? These tools took a lot of time and effort to create and I really don’t want to lose them.