Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Crash when creating a new level


This code :

 FName baseName = FName(*string);

 level = NewNamedObject<ULevel>(world, baseName, EObjectFlags::RF_NoFlags, (UObject *)& gameInstance->TemplateLevelSolarSystem);

crash the editor here in "engine/source/runtime/core/public/uobject/nametypes.h" :

   306        ElementType const* const* GetItemPtr(int32 Index) const
   307        {
   308            int32 ChunkIndex = Index / ElementsPerChunk;
   309            int32 WithinChunkIndex = Index % ElementsPerChunk;
   310            check(IsValidIndex(Index) && ChunkIndex < NumChunks && Index < MaxTotalElements);
   311 *****     ElementType** Chunk = Chunks[ChunkIndex];
   312           check(Chunk);
   313           return Chunk + WithinChunkIndex;
   314       }

It's about a FName problem, but what ?

Product Version: UE 4.9
more ▼

asked Nov 06 '15 at 02:01 PM in C++ Programming

avatar image

31 8 14 18

avatar image MickD777 Nov 06 '15 at 06:03 PM

Just curious but why would you create a new level that way?

avatar image w77 Nov 07 '15 at 01:04 AM

I create all levels on the fly. It's a procedural world.

avatar image Matthew J Nov 09 '15 at 02:43 PM

Hello w77,

In the process of having a procedural world, I would suggest already having the level created as a .umap asset but populating it with assets in a procedural manner. Attempting to create assets in such a way at runtime is always risky.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

We haven't heard from you in a while w77. Are you still experiencing this problem or have to worked around it in some way? Please let us know any progress you've made. In the meantime, I'll be marking the issue as resolved for tracking purposes.

more ▼

answered Nov 13 '15 at 07:16 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question