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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Packaging Problem

I am trying to create and use dynamic material in my c++ code using this

static ConstructorHelpers::FObjectFinder materialAsset(TEXT("MaterialInstanceConstant'/Game/PortalGame/PortalMat_Inst.PortalMat_Inst'")); UMaterialInstance *BoxMaterialInstance; if (materialAsset.Succeeded()) { BoxMaterialInstance = materialAsset.Object; dynamicTerrainMaterialInstance = UMaterialInstanceDynamic::Create(BoxMaterialInstance, NULL); }

However it runs perfectly while running in the Editor but fails while packaging and the error I get this.

[2017.03.25-09.14.14:581][ 0]Can't save G:/UnrealSource/UnrealProjects/GGTest/Saved/Cooked/WindowsNoEditor/GGTest/Content/Maps/ThirdPersonExampleMap.umap: Graph is linked to private object(s) in an external package. External Object(s): MaterialInstanceDynamic_18

But if I remove dynamic materials it packages successfully.

Have anyone faced this or any clue about this?

Product Version: UE 4.15
Tags:
more ▼

asked Mar 25 '17 at 09:49 AM in Packaging & Deployment

avatar image

Sameerrajsingh
0 1 1

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

1 answer: sort voted first

Hi Sameerrajsingh ,

There are a few trouble shooting steps to follow initially when having packaging issues:

1. Delete The following folders and then try repackaging

  • Intermediate

  • Saved (since your error is occurring in your project's saved folder this may be the source)

  • Config (deleting this folder will result in having to re-enter all values for your Editor and Project Settings. So make a copy somewhere safe!)

2. Disable Plugins

NEXT Please provide the Log file by clearing your Ouput Log, package your project, then Cut and Paste from the newly generated Output Log into a text document and post.

Let me know if that helps,

Ed Burgess

more ▼

answered Mar 28 '17 at 08:43 PM

avatar image Sameerrajsingh Mar 30 '17 at 03:28 PM

Hi Ed,

I did exactly the same thing as mentioned in step 1 and 2 but still got the same errors.

I am attaching the fresh log and the CookLog from the Automation tool.

Sameer

avatar image Sameerrajsingh Mar 30 '17 at 03:29 PM
uat_log.txt (94.6 kB)
avatar image Sameerrajsingh Mar 30 '17 at 03:30 PM
outputlog.txt (133.7 kB)
avatar image Ed Burgess ♦♦ STAFF May 17 '17 at 05:34 PM

Sorry for late reply, I see that you mentioned removing certain assets fixes the issue. If fixing redirectors doesn't help I would recommend making a copy of the bugged assets and deleting the original this method has helped users in the past.

(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