NativizedAssets has 1024 string characters limit

I have BP structure with 354 materials elements. If turn on nativization assets (“-nativizeAssets”) when cooking and packaging via command-prompt, the following error is occure:

“UnrealBuildTool: F:/A/Intermediate/WindowsNoEditor/NativizedAssets/Source/NativizedAssets/Public/SettingsDB__pf3799584219.h(26) : String constant exceeds maximum of 1024 characters”

On line 26 “MakeStructureDefaultValue=XXXXXX” when XXXXXX is string with more than 1024.

If cooking and packaging without nativizeAssets, all works OK!

Hello,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue in a clean project?
  3. Could you provide screen shots of any blueprints/materials/settings that may be involved?

Sorry but have no time for this. Regards

Hello,

Feel free to reopen this issue when you have time/information and I will be happy to assist you further.

Make it a great day

Steps to reproduce the error:

  1. in blank BP project create BP structure that contains one element of Material type. Insert 354 members materials from StarterContent over and over until set all 354 members.
  2. Then use that BP structure in some actor in scene
  3. Then try to package with -nativizedAssets

Nativization BP Assets is very important option and must be prioritize by my opinion before anything else. Regards

If you go into your project settings and turn on Nativize blueprint Assets and then package out via File > Package project > Chosen platform, does this method make a difference?

No, not at all

I was unable to reproduce this issue on our end. I have another question after running through the test again. Are you assigning materials to the material elements or can they remain empty?

I assigned all 354 materials from StarterContent (not just create 354 empty materials members in the BP structure)

This is the major point- the names of the materials will concate in one string in “XXXXXX” (MakeStructureDefaultValue=XXXXXX) during nativization and error of 1024 string chars limit will rise!

After further testing I was not able to reproduce this error on our end. Could you provide a sample project that reproduces this issue so that I could take a closer look?

Hello,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.

Thanks,

I am absolutely sure about this bug. It is just a matter of some time to be confirmed by you. Regards

Hello,

If you would like to provide a sample project that reproduces this issue I will be more than happy to take a look. You can do this by providing a link via google drive or drop box. If you would like to provide it privately, you can do so via a private message to me on the forums.