Failed to find/load assets

After making a few new folders and moving assets around in my project, when I try and debug my project from Visual Studio, I get an unhanded exception and my project will not load, commenting out the line that Visual Studio highlights, causes the project to build successfully, that line is for the custom GameState for my project, but I am currently not using that for custom functionality, at the moment, the editor complains that it cannot locate the GameState, but still loads up the project as intended, but then the log pops up with these messages:

Info Failed to load
/Game/Blueprints/Actors/PIBotAssets/PIBot.PIBot_C
Referenced by PIBot_C Error
/Game/Blueprints/QuestCharAnimBlueprint
: Can’t find file for asset.
/Game/Blueprints/Actors/IdleRun_TPP
Info Failed to load
/Game/Blueprints/Actors/IdleRun_TPP.IdleRun_TPP
Referenced by QuestCharAnimBlueprint_C
Property
/Script/Engine.AnimNode_BlendSpacePlayer:BlendSpace
Error /Game/Blueprints/MyCharacter :
Can’t find file for asset.
/Game/Blueprints/Actors/IdleRun_TPP
Info Failed to load
/Game/Blueprints/Actors/IdleRun_TPP.IdleRun_TPP
Referenced by
AnimGraphNode_BlendSpacePlayer_9
Property
/Script/Engine.AnimNode_BlendSpacePlayer:BlendSpace
Error /Game/Blueprints/MyCharacter :
Can’t find file for asset.
/Game/Blueprints/Actors/HeroTPP Error
/Game/Blueprints/MyCharacter : Can’t
find file for asset.
/Game/Blueprints/GameModeAssets/PlayerHUD
Info Failed to load
/Game/Blueprints/GameModeAssets/PlayerHUD.PlayerHUD_C
Referenced by PlayerHUDWidget Info
Failed to load
/Game/Blueprints/GameModeAssets/PlayerHUD.PlayerHUD_C
Referenced by MyCharacter Property
/Script/Engine.Blueprint:BPVariableDescription.VarType
Info Failed to load
/Game/Blueprints/Actors/HeroTPP.HeroTPP
Referenced by CharacterMesh0 Property
/Script/Engine.SkinnedMeshComponent:SkeletalMesh
Error /Game/Blueprints/QuestGameState
: Can’t find file for asset.
/Game/GameStateAssets/QuestGameState
Info Failed to load
/Game/GameStateAssets/QuestGameState.Default__QuestGameState_C
Referenced by
Default__QuestGameState_C Info Failed
to load
/Game/GameStateAssets/QuestGameState.QuestGameState
Referenced by QuestGameState Info
Failed to load
/Game/GameStateAssets/QuestGameState.QuestGameState_C
Referenced by QuestGameState_C Error
/Game/Blueprints/QuestGameMode : Can’t
find file for asset.
/Game/Blueprints/GameModeAssets/QuestGameMode
Info Failed to load
/Game/Blueprints/GameModeAssets/QuestGameMode.Default__QuestGameMode_C
Referenced by Default__QuestGameMode_C
Error /Game/Maps/MainMenu : Can’t find
file for asset.
/Game/Blueprints/GameModeAssets/QuestGameMode
Info Failed to load
/Game/Blueprints/GameModeAssets/QuestGameMode.QuestGameMode
Referenced by QuestGameMode Info
Failed to load
/Game/Blueprints/GameModeAssets/QuestGameMode.QuestGameMode_C
Referenced by QuestGameMode_C Error
Failed import for
BlueprintGeneratedClass
/Game/Blueprints/QuestGameMode.QuestGameMode_C
[redirection] in /Game/Maps/MainMenu
Error /Game/Maps/MainMenu : Can’t find
file for asset.
/Game/GameStateAssets/QuestGameState
Error Failed import for
BlueprintGeneratedClass
/Game/Blueprints/QuestGameState.QuestGameState_C
[redirection] in /Game/Maps/MainMenu
Error /Game/Blueprints/MainMenu :
Can’t find file for asset.
/Game/Blueprints/GameModeAssets/MainMenu
Info Failed to load
/Game/Blueprints/GameModeAssets/MainMenu.Default__MainMenu_C
Referenced by Default__MainMenu_C
Error /Game/Maps/MainMenu : Can’t find
file for asset.
/Game/Blueprints/GameModeAssets/MainMenu
Info Failed to load
/Game/Blueprints/GameModeAssets/MainMenu.MainMenu
Referenced by MainMenu Info Failed to
load
/Game/Blueprints/GameModeAssets/MainMenu.MainMenu_C
Referenced by MainMenu_C Error
/Game/Blueprints/PlayerHUD : Can’t
find file for asset.
/Game/Blueprints/GameModeAssets/PlayerHUD
Info Failed to load
/Game/Blueprints/GameModeAssets/PlayerHUD.Default__PlayerHUD_C
Referenced by Default__PlayerHUD_C
Error /Game/Maps/MainMenu : Can’t find
file for asset.
/Game/Blueprints/GameModeAssets/PlayerHUD
Info Failed to load
/Game/Blueprints/GameModeAssets/PlayerHUD.PlayerHUD
Referenced by PlayerHUD Info Failed to
load
/Game/Blueprints/GameModeAssets/PlayerHUD.PlayerHUD_C
Referenced by PlayerHUD_C Error Failed
import for
WidgetBlueprintGeneratedClass
/Game/Blueprints/MainMenu.MainMenu_C
[redirection] in /Game/Maps/MainMenu
Error Failed import for
WidgetBlueprintGeneratedClass
/Game/Blueprints/PlayerHUD.PlayerHUD_C
[redirection] in /Game/Maps/MainMenu
Error /Game/Blueprints/PIBot : Can’t
find file for asset.
/Game/Blueprints/Actors/PIBotAssets/PIBot
Info Failed to load
/Game/Blueprints/Actors/PIBotAssets/PIBot.PIBot
Referenced by PIBot

30 log messages in total, about what the editor cannot find/load.

In windows explorer though, I can see all the files in the locations where they are supposed to be (the correct folders, hopefully), but the editor cannot find/load them, saying they are not where it thinks they were, as I restructured the folders, as I thought that this may allow it to find the previous, 3 assets, that it could not find.

So, would anyone have any advice on how to give the editor the correct references to files? Or how to solve, something else that is causing this problem.

Please tell me if you require more information, to be able to help me with this problem, my greatest thanks.

Edit: After modifying the file layout for my game, I now get 26 errors instead of 30, I will try some more swapping around of files a bit later.

Edit: I had to work off of an old version of the project, but now it only shows 4 errors, instead of 26, “Failed to import asset”, the asset being; the PlayerHUD UMG Widget Blueprint, this asset is in the correct file location, but it cannot be imported properly when I start the debugger from Visual Studio, to load up the project in the UE4 Editor. I may have to start from scratch with a few assets.

Hey FioKron-

In windows explorer in the project folder, right click on the .uproject icon and select “Generate Project Files.” This will recreate the visual studio files which should force visual studios to recognize the new folder location/setup.

Cheers

Hello , my greatest thanks for the help, I do most certainly appreciate your assistance. Given my latest edit though, I did indeed start again, with what I had mind, so there was not too much that had to be done, it took me only a few days to resolve the issues I was having, everything is now working as intended.

I will soon be getting on to creating AI, with the required components, for an NPC in my game.

So I am sorry, it would certainly make sense that what you said for me to do, would indeed work, but those old project files have been replaced by my work around, I will be putting said work around as the solution to my problem therefore, my apologies once again.

I started the project again from a clean backup I had stored away, an old one, but I was able to get most of the assets, I had created, imported into this older version of my project and now, I have got back to where I was in the development process of my game.

It is so very fortunate that I kept onto said backup of the project, I will be sure to back up this project more regularly, to avoid such an incident occurring again. But even before using newer backup versions of the project, should this ever happen again, or similar issues occur, I will try what suggested in a comment to my original post, first of all; finding the .uproject file, selecting the “Generate Project Files” option from the right click drop down menu, then letting Visual Studio do what said it should do, as required, my greatest thanks once again .