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"

4.16 Arrays don't use default values in a build

I'm having trouble with porting my game to 4.16 from 4.14. Everything works fine in editor, but the game seems unable to read some array variables default values when in a build. The game breaks in very obvious ways and the log file is reporting the arrays are empty. Again, this only happens in a packaged build of the game.

Here are two snippets of the log file. The errors all look like this, and it applies to dozens of seemingly unconnected array variables from all over the game:

 [2018.03.12-17.34.08:283][786]LogScriptCore:Warning: Script Msg: Attempted to access index 1 from array Boombox_Ys of length 0!
 [2018.03.12-17.34.08:300][787]LogScriptCore:Warning: Script Msg: Attempted to access index 1 from array Boombox_Ys of length 0!
 [2018.03.12-17.34.08:316][788]LogScriptCore:Warning: Script Msg: Attempted to access index 1 from array Boombox_Ys of length 0!
 [2018.03.12-17.34.08:333][789]LogScriptCore:Warning: Script Msg: Attempted to access index 1 from array Boombox_Ys of length 0!
 [2018.03.12-17.34.08:350][790]LogScriptCore:Warning: Script Msg: Attempted to access index 1 from array Boombox_Ys of length 0!
 [2018.03.12-17.34.08:367][791]LogScriptCore:Warning: Script Msg: Attempted to access index 1 from array Boombox_Ys of length 0!
 [2018.03.12-17.34.08:383][792]LogScriptCore:Warning: Script Msg: Attempted to access index 1 from array Boombox_Ys of length 0!
 [2018.03.12-17.34.08:400][793]LogScriptCore:Warning: Script Msg: Attempted to access index 1 from array Boombox_Ys of length 0!
 [2018.03.12-17.34.08:417][794]LogScriptCore:Warning: Script Msg: Attempted to access index 1 from array Boombox_Ys of length 0!
 [2018.03.12-17.34.08:434][795]LogScriptCore:Warning: Script Msg: Attempted to access index 1 from array Boombox_Ys of length 0!


 [2018.03.12-17.34.08:454][796]LogScriptCore:Warning: Script Msg: Attempted to access index 3 from array Graphics Options Current of length 0!
 [2018.03.12-17.34.08:454][796]LogScriptCore:Warning: Script Msg: Attempted to access index 3 from array Graphics Options Current of length 0!
 [2018.03.12-17.34.08:454][796]LogScriptCore:Warning: Script Msg: Attempted to access index 3 from array Graphics Options Current of length 0!
 [2018.03.12-17.34.08:454][796]LogScriptCore:Warning: Script Msg: Attempted to access index 3 from array Graphics Options Current of length 0!
 [2018.03.12-17.34.08:454][796]LogScriptCore:Warning: Script Msg: Attempted to access index 3 from array Graphics Options Current of length 0!
 [2018.03.12-17.34.08:454][796]LogScriptCore:Warning: Script Msg: Attempted to access index 3 from array Graphics Options Current of length 0!
 [2018.03.12-17.34.08:454][796]LogScriptCore:Warning: Script Msg: Attempted to access index 3 from array Graphics Options Current of length 0!
 [2018.03.12-17.34.08:454][796]LogScriptCore:Warning: Script Msg: Attempted to access index 3 from array Graphics Options Current of length 0!
Product Version: UE 4.16
Tags:
more ▼

asked Mar 12 '18 at 05:44 PM in Blueprint Scripting

avatar image

eedobaba
16 2 2 6

(comments are locked)
10|2000 characters needed characters left

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