x

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"

Nativization fails with nativized actor reference in values of map variable

Hello,

I have a single class set to Nativize (exclusive method) : "Chunk". Another class ("MapManager" - not nativized) has a map variable with vector keys and Chunk references values. I attached the log errors (shipping build).

link text

I am absolutely not a programmer but I noticed that at the lines mentionned by the log (150-160 for MapManager and 1018-1819 for Chunk), the value type of the TMap is declared as AChunk_C* instead of AChunk_C__pf6286095*

From MapManager__pf6286095.h (150 - 160) :

 FORCENOINLINE TMap<FVector,AChunk_C*> & GetRef__ChunkMap__pf()
     {
         static TWeakObjectPtr<UProperty> __PropertyPtr{};
         const UProperty* __Property = __PropertyPtr.Get();
         if (nullptr == __Property)
         {
             __Property = GetClass()->FindPropertyByName(FName(TEXT("ChunkMap")));
             check(__Property);
             __PropertyPtr = __Property;
         }
         return *(__Property->ContainerPtrToValuePtr<TMap<FVector,AChunk_C*> >(__Object));

From Chunk__pf6286095.cpp (1818) :

 TMap<FVector,AChunk_C*>  __Local__8 = TMap<FVector,AChunk_C*> {}

Unfortunately, I have not been able to reproduce the issue on a blank project. Prior to this error, I had other issues with Map variables (read : https://answers.unrealengine.com/questions/572195/nativize-assets-fails-with-set-variable.html) but I modified my script to avoid them. Map and sets are very useful and I would like to use the power of C++ conversion.

By the way, packaging without nativization works fine, I have restarted my computer several times, deleted Intermediate and Saved folders, etc.

Product Version: UE 4.16
Tags:
log.txt (4.8 kB)
more ▼

asked Jun 27 '17 at 04:43 PM in Packaging & Deployment

avatar image

Kaiagan
6 1 4

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

0 answers: sort voted first
Be the first one to answer this question
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