Random Sequence Player not working as expected?

Hi,

Just trying to setup some random idle variations, nothing too complex. So using the random sequence player as it seems to do just that?

But the settings don’t seem to work properly, not sure if I am doing something wrong.

For example if I hook up three idles, set the max loop count to 1 for each of them and tick shuffle mode. Expected behaviour is that idle1 plays, then idle 2 then idle 3, once each in that order. And then this pattern repeats? Actual result is that the animations will play in any order and any amount of times as if shuffle and max loop count weren’t set.

Max loop count does not seem to work with shuffle off either.

So in short, max loop count doesn’t seem to be working? And neither does shuffle?

Also this may be my imagination but the variations seem to come in bunches, lets say I left everything at default. I would expect each idle to have a 1/3 chance of playing. So the same result as if I rolled a three sided die over and over. But the randomness seems to come in bunches? As in 2,2,2,3,3,3,3,1,1,1,1,3,3,3,3,1,1,1,1,1,2,2,2,2 something like that. Again this may just be pure chance.

thanks

Hey edcates,

Thanks for the detailed report. Can you provide me with some screenshots on how you are setting this up within blueprints so I can get a visual on how to do this on my end?

Thanks,

Here you are. So basically there are three entries, everything is default, except I set shuffle mode and max loop count.

thanks

Thanks for the screenshot. I did some more digging and found this issue has been reported. I’ve added to our Public Issues Tracker site which you can locate by following the link below.

UE-28987

Let me know if you have further questions or need additional assistance.

Cheers,

I’m using 4.19 and this still hasn’t been fixed

4.22 … just ran into this issue… still there.

Please make sure that you are NOT using “Max Loop Count 1”, as it indicates to either no loop (single play) or 1 loop (play twice) which will NOT shuffle properly. Max Loop Count here is kind of misleading as it is n+1 animations. As Min Count 0 is just playing one time.

1 Like

Why wouldn’t one loop shuffle properly?
Anyway this node finally seems to actually be working! Not sure exactly when it was fixed but hurrah.

May it still not work now in 5.03

1 Like

Version: 5.2.0-25360045+++UE5+Release-5.2

Still works funky.
At least one concrete bug - reset to default arrows just set values to 0.

Hard to adjust blends properly. Default value of 0.2 time with linear interpolation results in “partial loops” - looks like character plays sequence X 1.2 times. I guess it might be desirable in some cases, but it’s giving me a hard time while trying to setup short randomized idles. Character either jitters or noticeably overlaps sequences.
Very short time and custom curve seem to help.

1 Like