All objects show in PIE and Packaged, not Launch Button or compile without editor

Okay so here’s a weird one. (Engine Version: 4.6.1 Official)

In my game, I have a few custom classes. ATile, ATileManager, AChessPiece, AChessPlayerStart, and so forth.

I have levels with a bunch of tiles placed and chess pieces placed on them. Play in Editor? Works great.

If I click “Launch”, I get a few errors in my log for AChessPiece and AChessPlayerStart

“Failed to load Outer for resource ‘BaseBoxComponent’ : ChessPlayerStart (path)”
“Failed to load Outer for resource ‘BaseCapsuleComponent’: ChessPiece (path)”
etc.

Despite the errors, the game launches anyway, and the level is populated by my tiles (placed in editor) but not my chess pieces (also placed in editor). The King chess piece, placed by the player spawn, is also not present in Standalone

After trying to figure out what’s different between the two classes for a little while, recooking the content, and so forth, I tried clicking “Package Content” for Windows x64, Development. When I run the packaged binary, everything works perfect. Again, the packaged game runs just as well as Play In Editor. The problem is solely when clicking “Launch” in editor, or trying to compile without editor from Visual Studio.

I tried deleting Saved folder, Intermediate folder, and regenerating my Visual Studio project files. Same behaviours (PIE works great, Launch doesn’t, did not try repackaging though).

What’s going on? In all cases, nothing crashes. I just don’t have every object spawned.

Hi Scott,

By any chance are you loading the chess pieces using LoadObject?
Because this is loading resources which are unknown at cook time, you need to specify the directories manually to cook.
To do this goto File → Package Project → Project Settings → Packaging → (expand the packaging section) → Additional Asset Directories to Cook,
Then add the directory where the chess piece content is to this list.
You may need to restart the editor for the settings to take affect. Then the project should be setup correctly, and launch on should work as expected.

Actually, I am using StaticLoadObject to point to assets in the Content Browser’s game directory. I tried adding the directory containing the FBX files to Additional Asset Directories to Cook but it’s complaining about not being in the project’s Content directory. I think we found the problem.

Thanks again!