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"

Problem with default values of variables being reseted

I posted a coment on this bug here: https://answers.unrealengine.com/questions/179108/problem-with-default-values-of-variables-being-res.html but noone answeres, so i'l try to wright it as a question:

"I still have a similar bug in 4.7.3. I use structure blueprint to store integer arrays, then in child actor construction script i set parent array as one of structure file arrays right before parent construction script. It works fine in PIE, but in standalone preview array length = -1. And I also have circular dependency problem. I tryed to solve it to make everything linear but one of blueprints still decompiles when I compile mentioned parent blueprint."

Product Version: Not Selected
Tags:
more ▼

asked Mar 30 '15 at 08:22 AM in Bug Reports

avatar image

axess21
67 9 15 19

avatar image TJ V ♦♦ STAFF Mar 30 '15 at 02:37 PM

Hi axess21,

Could you post some screenshots showing exactly how you are setting this up or include a small text project that has the error?

avatar image axess21 Apr 02 '15 at 09:43 AM

link text Here is a small Project with this bug. Array length = 4 when Play in editor, and array length = 0 when play as standalone game

avatar image axess21 Apr 02 '15 at 09:15 AM

alt textalt textalt textalt text

structure.jpg (309.7 kB)
pie.jpg (784.9 kB)
standalonegame.jpg (444.8 kB)
avatar image axess21 Apr 02 '15 at 09:16 AM

Here are screenshots, i'll try to make a small text project with same bug now

avatar image spyro Jul 22 '15 at 05:59 PM

I got the same problem with 4.8.2. In about 1 of 5 cases on editor load all class values of a derived class are set to their default values and I have to restore a backup version.

avatar image TJ V ♦♦ STAFF Jul 22 '15 at 07:17 PM

Hi spyro,

This specific issue was fixed in 4.8. I'm thinking that you are encountering a similar but slightly different bug. Could you post it as a new report and include repro steps and/or a small test project?

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

1 answer: sort voted first

That test project allowed me to narrow down the issue. This is actually a known bug that has been fixed internally. Unfortunately it didn't quite make the 4.7.4 hotfix build but you should see it by the 4.8 release.

I don't exactly have a workaround for you but it's has to do with getting a value from an Array that is contained within a Struct. Using this method always returns 0 in Standalone mode. However, this error isn't present in a packaged project so you should be fine to continue developing with this method in place.

alt text

Cheers,

TJ

more ▼

answered Apr 02 '15 at 08:18 PM

avatar image

TJ V ♦♦ STAFF
41.1k 1009 183 493

avatar image axess21 Apr 03 '15 at 06:38 AM

Thank you! More reasons for 4.8 hipe)

(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