# Packaged Game doesn't load blueprints

**URL:** <https://forums.unrealengine.com/t/packaged-game-doesnt-load-blueprints/305120>\
**Category:** Blueprint\
**Tags:** launching-packaged-g, unreal-engine, packaged-game, UE4, Blueprint, CPP, question\
**Created:** [January 27, 2015, 8:17am UTC](https://forums.unrealengine.com/t/packaged-game-doesnt-load-blueprints/305120 "2015-01-27T08:17:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![UE4Newbie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UE4Newbie](https://forums.unrealengine.com/u/UE4Newbie)\
**Post date:** [January 27, 2015, 8:17am UTC](https://forums.unrealengine.com/t/packaged-game-doesnt-load-blueprints/305120/1 "2015-01-27T08:17:31Z")

</div>

When I Package and run the game or if I launch from editor my blueprints don’t load into the game.

I load a blueprint with

```
static ConstructorHelpers::FObjectFinder<UBlueprint> M16A1Ob(TEXT("Blueprint'/Game/Blueprints/Guns/BP'"));
	if (M16A1Ob.Object)
		GunBP = (UClass*)M16A1Ob.Object->GeneratedClass;
    else
        if(GEngine)
            GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Blue, TEXT("Error MSG"));

```

That works fine In the editor but when I package the game it finds M16A1Ob because the else statement doesn’t run  
but the GunBP doesn’t show up inside the actual game and none of it’s constructor code runs.

---

<div class="post-metadata">

**Author:** ![creasso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@creasso](https://forums.unrealengine.com/u/creasso)\
**Post date:** [January 27, 2015, 1:51pm UTC](https://forums.unrealengine.com/t/packaged-game-doesnt-load-blueprints/305120/2 "2015-01-27T13:51:43Z")

</div>

When using Objects just referenced on StaticLoads you need be sure that you included the directories on Project Settings\>Packaging\>Additional Asset Directories to Cook (I think you did this).

But when including more than one AssetDirectory the Editor is inserting lots of “…/…/…/” on the previous one, so your asset could be being packaged BUT inside the AssetRegister/InnerPackageAddress it’s being assigned to one innexistent “path”.

If you go on your package Settings and remove the “…/…/…/…/…/Game” they’ll be at least found on the loads.

---

<div class="post-metadata">

**Author:** ![jaragoondoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jaragoondoo](https://forums.unrealengine.com/u/jaragoondoo)\
**Post date:** [January 27, 2015, 3:01pm UTC](https://forums.unrealengine.com/t/packaged-game-doesnt-load-blueprints/305120/3 "2015-01-27T15:01:27Z")

</div>

Maybe it cannot find the directory of the BP? Have a look at this page: [A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/Packaged_Game_Paths,_Obtain_Directories_Based_on_Executable_Location)

Just a quick example, here’s what I do to get an FString to my Content directory:

```
FString thePath = FPaths::ConvertRelativePathToFull(FPaths::GameContentDir());

```

Also does AddOnScreenDebugMessage() work in Packaged buildings? I’d assume they don’t, but could be wrong.

---

<div class="post-metadata">

**Author:** ![UE4Newbie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UE4Newbie](https://forums.unrealengine.com/u/UE4Newbie)\
**Post date:** [January 27, 2015, 4:19pm UTC](https://forums.unrealengine.com/t/packaged-game-doesnt-load-blueprints/305120/4 "2015-01-27T16:19:49Z")

</div>

As long as I keep it as a development package addonscreendebugmessage works

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f77a82de](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f77a82de](https://forums.unrealengine.com/u/anonymous_user_f77a82de)\
**Post date:** [June 23, 2017, 3:22am UTC](https://forums.unrealengine.com/t/packaged-game-doesnt-load-blueprints/305120/5 "2017-06-23T03:22:53Z")

</div>

I dont understand ths. I understand fles but ths is qute confusng
