Changing World Settings Class permanantly breaks Third-Person starter code
Steps to reproduce:
Open UE4 Editor.
Go to New Project, choose Code Third Person, name it anything you want, create it.
Build in VS, open .uproject to verify that it works.
In Editor, go to File >> Add Code to Project and select World Settings as parent class, type in any name, and select Create Class.
Open VS, close Editor, and build the game again.
Open the Editor again to verify that it still works.
In Editor, open Edit >> Project Settings, then go to General Settings. Change the World Settings Class to the newly created class. Click Set as Default at top. Hit Save and close Editor.
Re open editor and you will get the following error message:
Default Property warnings and errors:
Error: CDO Constructor: Failed to find
The Editor message log will contain the following errors and warnings:
/Game/Blueprints/MyCharacter : Can't find file for asset. /Script/TP_ThirdPerson
Failed to load /Script/TP_ThirdPerson.TP_ThirdPersonCharacter Referenced by MyCharacter Property /Script/Engine.Blueprint:ParentClass
Failed to load /Script/TP_ThirdPerson.TP_ThirdPersonCharacter Referenced by MyCharacter Property /Script/Engine.BlueprintCore:GeneratedClass
Failed to load /Script/TP_ThirdPerson.TP_ThirdPersonCharacter Referenced by PackageMetaData
The third-person character is now broken; camera moves freely around scene and there is no pawn.
Go back into the Project Settings menu and revert World Settings Class to the default WorldSettings, hit Set as Default, then Save and close the Editor.
Open the Editor; the errors persist.
asked Apr 30 '14 at 01:30 AM in Bug Reports
Thanks for the report. I've reproduced this and am taking a look. Not quite sure what's going on yet, but hopefully I can get it sorted out.
answered Apr 30 '14 at 05:47 PM
Marc Audy STAFF
We added a fix for this in CL# 2071719. It will be available in the upcoming 4.2 release. Thanks!
answered May 13 '14 at 04:17 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here