Error: "failed to add redirector from None" during packaging

Hi,

currently I’m facing an error during packaging my game.

I defined some game name and class name redirectors. Which is fine so far. When I’m packaging the game I get an error which says redirector ‘None’ cannot be mapped to ‘None’.

So I stuck at this point because if I remove the redirectors from the ini file then tons of my classes are not loaded. Is there any option to “apply” those redirectors that I can remove them from the ini file?

I really have no idea at the moment where this error comes from because everything looks fine so far.

Here are my redirectors (names cleaned):

[URL]
[/Script/Engine.Engine]
+ActiveGameNameRedirects=(OldGameName="/Script/Game1",NewGameName="/Script/Game4") 
+ActiveGameNameRedirects=(OldGameName="Game1",NewGameName="Game4") 
+ActiveGameNameRedirects=(OldGameName="/Script/Game2",NewGameName="/Script/Game2") 
+ActiveGameNameRedirects=(OldGameName="Game2",NewGameName="Game2") 
+ActiveGameNameRedirects=(OldGameName="/Script/Game3",NewGameName="/Script/Game4") 
+ActiveGameNameRedirects=(OldGameName="Game3",NewGameName="Game4") 
+ActiveClassRedirects=(OldName="BGameInstance", NewName="/Script/Game4.BGameInstance")
+ActiveClassRedirects=(OldName="DropItem", NewName="/Script/Game4.DropItem")

After editor start I get also this errors:

LogLinker: Error: AddRedirectList(D:/xxx/Saved/Config/Windows/Engine.ini) failed to add redirector from None to None with empty name!
LogLinker: Error: AddRedirectList(D:/xxx/Saved/Config/Windows/Engine.ini) failed to add redirector from None to None with empty name!
LogLinker: Error: AddRedirectList(D:/xxx/Saved/Config/Windows/Engine.ini) failed to add redirector from None to None with empty name!
LogLinker: Error: AddRedirectList(D:/xxx/Saved/Config/Windows/Engine.ini) failed to add redirector from None to None with empty name!

This is the error which occurs during build:

UATHelper: Packaging (Windows (64-bit)):   LogInit: Display: LogLinker: Error: AddRedirectList(D:/xxx/Saved/Config/Windows/Engine.ini) failed to add redirector from None to None with empty name!

This is the Engine.ini:

[Core.System]
Paths=../../../Engine/Content
Paths=%GAMEDIR%Content
Paths=../../../Engine/Plugins/2D/Paper2D/Content
Paths=../../../Engine/Plugins/FMODStudio/Content
Paths=../../../Engine/Plugins/Media/MediaCompositing/Content
Paths=../../../Engine/Plugins/Runtime/AppleARKit/Content
Paths=../../../Engine/Plugins/Runtime/Oculus/OculusVR/Content

[/Script/AndroidPlatformEditor.AndroidSDKSettings]
SDKPath=(Path="")
NDKPath=(Path="")
ANTPath=(Path="")
JavaPath=(Path="")

[/Script/UdpMessaging.UdpMessagingSettings]
EnableTransport=True
UnicastEndpoint=0.0.0.0:0
MulticastEndpoint=230.0.0.1:6666
MulticastTimeToLive=1
EnableTunnel=False
TunnelUnicastEndpoint=
TunnelMulticastEndpoint=

[/Script/UnrealEd.UnrealEdEngine]
TemplateMapInfos=(ThumbnailTexture=Texture2D'"/Engine/Maps/Templates/Thumbnails/Default.Default"',Map="/Engine/Maps/Templates/Template_Default")
TemplateMapInfos=(ThumbnailTexture=Texture2D'"/Engine/Maps/Templates/Thumbnails/VR-Basic.VR-Basic"',Map="/Engine/Maps/Templates/VR-Basic")

[WindowsApplication.Accessibility]
StickyKeysHotkey=False
ToggleKeysHotkey=False
FilterKeysHotkey=False
StickyKeysConfirmation=False
ToggleKeysConfirmation=False
FilterKeysConfirmation=False

Does anybody know where I can find the source which is responsible for this error? Then I would like to take a look into it?

!Solved! Never mind. The error was produced not by the game name redirectors but instead by the active class redirectors. After removing them the error is gone and packaging looks good so far. Thank you for your help!

Kind regards

Andre Schaaf-Ledermüller

Yes. You can “Fix Up” redirectors from within the editor. Above the content pane is a “Filters” drop-down. Select “Other Filters” and then “Show Redirectors”. That will show them in the content pane. If you right-click on a redirector you will see a “Fix Up” option.

They shouldn’t be hard to find but if you need help, the redirectors are always 1KB. You can go through the directory and check worst case.

1 Like

Thank you! I The file redirectors are fixed. But the main problem are Blueprint types with C++ base classes. I have no idea how I can fix this as they are written to the blueprint itself.

And this error that the redirector ‘None’ could not be mapped is also still there.

What is the specific problem with the base classes? In the blueprint editor at the top is a button called “Class Settings”. If you click that, the details panel will show “Parent Class” at the top (and you press “Class Defaults” to get back).

Before you go crazy trying to fix this, you should probably try a 100% fresh build (if you haven’t already). Sometimes the intermediate files get corrupted. The easiest thing to do is to go in the editor (your project) and choose File->(Package project)->(Zip up project). Make a zip and then unzip it into a new directory. Try building that one and see if anything changes.

You can’t just copy things like that. What you’re supposed to do is go into the original project, select the assets you want to copy, right-click, and choose “Migrate”. Now, in my experience this never works with C++ classes, only editor content. You can try the following but I don’t know if it will work.

So you also need to copy the C++ files over (same paths) and make sure you change the project reference in the class declarations. This is the all-caps name after the “class” keyword, (ex: “MYPROJECT_API”). You need those to match the new project rather than the old one. And make sure the new project was created as a blank C++ project.

Also, I would prepare the destination project with the C++ stuff before migrating the content over to it. Maybe even see that it compiles before migrating). GL!

Oh and if the two projects have the exact same name then it should be a breeze to copy and migrate.

Currently I’m at work. Later this day I will send some screenshots which clarify this problem a bit.

But here is what I did

  1. I copied classes and blueprints from one project to another (and renamed the game as well)
  2. Started the editor
  3. Blueprints cannot be opened because of missing parent classe
  4. I added redirectors to the ini file
  5. I started the editor blueprints are accessible with correct parents
  6. I run fixup redirectors through content browser
  7. I remove the redirectors from ini and shutdown editor
  8. Started editor, parent classes are missing like in step 3
  9. Closed editor
  10. Added redirectors, everything is fine

So this means to me that the redirectors are not written to the blueprints and parent classes are “forwarded” through the redirectors. As for now I’m not be able to remove the redirectors from the ini and startup the editor with no error.