# Asset Registry: Why does this assert only in Standalone from Editor?

**URL:** <https://forums.unrealengine.com/t/asset-registry-why-does-this-assert-only-in-standalone-from-editor/101732>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [October 25, 2017, 10:28am UTC](https://forums.unrealengine.com/t/asset-registry-why-does-this-assert-only-in-standalone-from-editor/101732 "2017-10-25T10:28:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [October 25, 2017, 10:28am UTC](https://forums.unrealengine.com/t/asset-registry-why-does-this-assert-only-in-standalone-from-editor/101732/1 "2017-10-25T10:28:46Z")

</div>

```auto

    // Doesn't work in standalone?
    FAssetRegistryModule& AssetRegistryModule = FModuleManager::LoadModuleChecked<FAssetRegistryModule>("AssetRegistry");
    TArray<FAssetData> AssetData;
    AssetRegistryModule.Get().GetAssetsByClass(TEXT("ECGame_MapSummary"), AssetData, false);
    ASSERTV(AssetData.Num() > 0, TEXT("No Map Summaries Found"));

```

Simple question really, I can’t understand why the above code only fires the assertion in Standalone, and only then when launched from the Editor?

If I package the game and launch, it works fine (in any configuration)  
If I use PIE, it works fine.

Only in Standalone does it crash - and I don’t get why. I’ve tried called AssetRegistry.IsLoadingAssets() which returns false - so what gives?

* * *

Essentially I’m trying to find any ECGame\_MapSummary assets that I’ve created from ANYWHERE in the project. I don’t want to have a list of defined objects because I want modders to be able to create these as well and add them to the list without conflicts.

---

<div class="post-metadata">

**Author:** ![Memnarch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Memnarch](https://forums.unrealengine.com/u/Memnarch)\
**Post date:** [October 26, 2017, 7:34am UTC](https://forums.unrealengine.com/t/asset-registry-why-does-this-assert-only-in-standalone-from-editor/101732/2 "2017-10-26T07:34:48Z")

</div>

Can you explain a bit more in detail, how your MapSummary-System works? For our game we use a similar approach like UT where you extend WorldSettings, give it a new Member that holds Summary-Info and at runtime extract that Summary-Object from the map. We just request the Maps(World-Class). As we use the AssetRegistry aswell., maybe i can reproduce it or find a problem.

Greetings

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [October 26, 2017, 8:16am UTC](https://forums.unrealengine.com/t/asset-registry-why-does-this-assert-only-in-standalone-from-editor/101732/3 "2017-10-26T08:16:36Z")

</div>

Mine’s a bit different to UT, I just created a UObject class and create one of them as an asset in the content browser for each map I want summary data for.

I like UT’s method and I can see why they did it that way (more obvious for third-party map makers etc.), but I had issues with trying to delete maps etc. in UT before so I rolled my own system. Also means that I don’t need all that summary data like big UI images etc. loaded during a match.

Weirdly, I’ve since managed to get around this by adding the assets as ‘Primary Asset Types’ in the Asset Manager section in project settings - but I honestly have no idea why that’s working, unless Asset Manager primes all those assets before asset registry or something. It won’t pick up third-party map summaries included as plugins / other modules either.

---

<div class="post-metadata">

**Author:** ![Memnarch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Memnarch](https://forums.unrealengine.com/u/Memnarch)\
**Post date:** [October 26, 2017, 5:18pm UTC](https://forums.unrealengine.com/t/asset-registry-why-does-this-assert-only-in-standalone-from-editor/101732/4 "2017-10-26T17:18:14Z")

</div>

Okay that is strange 😕

---

<div class="post-metadata">

**Author:** ![Memnarch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Memnarch](https://forums.unrealengine.com/u/Memnarch)\
**Post date:** [November 17, 2017, 7:25pm UTC](https://forums.unrealengine.com/t/asset-registry-why-does-this-assert-only-in-standalone-from-editor/101732/5 "2017-11-17T19:25:06Z")

</div>

Just had this, since i changed our system to this system.  
ProjectSettings–\>AssetManager  
Make sure you add this type to it for cooking. Then cook and try again.
