Array Uproperty config not load with ini content in package
Hi all, I've this problem, an UObject with an array member marked as config that is correctly initialized when game is played in editor. When I package the game and execute, the uobject array has always the elements that is written in the default config ini, completely ignoring the new entry written in the new package ini. This is strange because any other members different from an array, the package config ini values are loaded correctly.
Here is the object read in the config:
Here DefaultMyGameSetting.ini with default config that is loaded also on package
Here MyGameSetting.ini that is placed in the package
I've tried also using - . + ! as explained in https://docs.unrealengine.com/latest/INT/Programming/Basics/ConfigurationFiles/index.html but nothing worked.
The UMyGameSettings object is create in an actor constructor with this instructions:
So repeating, executing the game with editor (or standalone with -game) load correctly the settings specified in DefaultMyGameSetting.ini. Packaging and executing the package, load the array as specified in DefaultMyGameSetting.ini (at packaging time) and only the member connection1 as written in MyGameSetting.ini.
For now I've found a workaround by simply using a fixed number of plain Strings, but I would like to have this working as an array. How could I resolve the issue?
asked Mar 29 '17 at 04:17 PM in Packaging & Deployment
Okay, I've figured it out.
Here's what I did:
ArrayConfig being my project name in this case.
What I think was happening was that you were attempting to replace the element using the + sign. I just tried to override the value using Connections rather than +Connections. Using this method worked for both the array and the string variable.
Have a great day
answered Apr 03 '17 at 12:28 PM
Sean L ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here