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"

Streams not working in structs or arrays.

I have just been converting a simplish blueprint to be modular but have hit a bug or something; streams don't work when in structs nor arrays, or at least, none of the 'get random *** from stream' do.

Product Version: Not Selected
Tags:
more ▼

asked Feb 22 '15 at 04:50 AM in Bug Reports

avatar image

Oscar Cooke-Abbott
542 54 59 71

avatar image TJ V ♦♦ STAFF Feb 23 '15 at 08:32 PM

Hi WarLord,

Which version of the editor are you currently using? Also, could you provide a couple screenshots showing your setup?

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

1 answer: sort voted first

Hi WarLord,

We haven't heard back from you in a few days, so we are marking this post as resolved for tracking purposes. If you're still experiencing this issue, please feel free to post back here with additional information I requested above.

Cheers,

TJ

more ▼

answered Mar 03 '15 at 09:58 PM

avatar image

TJ V ♦♦ STAFF
41.2k 1009 183 493

avatar image Oscar Cooke-Abbott Mar 06 '15 at 10:32 AM

Sorry for not replying. but you should be able to reproduce this issue if you make an array variable of random streams, get the first one (in the construction script) and using it for anything; it won't work.

avatar image TJ V ♦♦ STAFF Mar 06 '15 at 09:37 PM

I attempted to repro this in 4.7.2 but so far I haven't been able too. Which version are you using? Also, could you post a screenshot of your setup to make sure we are doing this the same way?

avatar image Oscar Cooke-Abbott Mar 11 '15 at 06:35 AM

I am also using 4.7.2 and this is my setup

alt text

avatar image TJ V ♦♦ STAFF Mar 14 '15 at 07:00 PM

What behavior are you seeing in the editor? Is the object not rotating at all or is it rotating initially and then doesn't rotate again?

avatar image Oscar Cooke-Abbott Mar 19 '15 at 05:16 AM

It rotates initially (always to the same rotation no matter what however) and then does not change rotation later.

avatar image TJ V ♦♦ STAFF Mar 19 '15 at 01:59 PM

In the setup that you are using, that is the intended behavior. You're creating an array of Streams but then you are only calling the Stream at the '0 Element' over and over again.

Here is how Random Streams work. When one is first created, the random stream will generate a random rotation (or whatever type you are using), then if that same stream (seed) is ever called again it will always return the same rotation.

I'm not sure if you are familiar with Minecraft but it is similar to the way world seeds work. When a seed is created, a random world is procedurally generated from it. That seed number can then be used again to recreate the exact same world.

From the docs:

"where you want a random effect, but also a consistent distribution each time the graph is evaluated."

Please take a look at the Random Stream documentation for more info.

Cheers,

TJ

avatar image Oscar Cooke-Abbott Mar 19 '15 at 08:30 PM

Yes I understand how they work, it's just they they aren't when not straight variables, ie. If I create a standard variable of a random stream and change it in the level after placing one of the blueprints, it works and the rotation will change depending on what the random stream's value is, but when they are in any sub sort of class, like an array, they don't return any value other than what appears to be 0. Thanks

avatar image TJ V ♦♦ STAFF Mar 20 '15 at 03:07 PM

Sorry about that WarLoad, I misunderstood the issue. I was able to reproduce this behavior in 4.7.3 and our latest internal build. I have entered it as JIRA UE-12223 and our developers will be investigating the issue further. We will post back here with updates as we have them.

Cheers,

TJ

avatar image Oscar Cooke-Abbott Mar 20 '15 at 03:23 PM

Ok, thankyou :)

(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