Playmaker Forum
Bug Reporting => PlayMaker Bug Reporting => Topic started by: projectarksk on December 19, 2016, 01:08:22 AM
-
Hi,
I'm so happy that the playmaker release the array action!
But I encounter some strange bug when using it.
I'm using the action with action Sequence. ArraySet first and StringJoin later.
1.) using the "Array Set" function,
put value(for example:MyString(OMG)) into
the second index of String Array(SArray[why123,mid321,how123]).
That's changed the mid321 into OMG.
2.Then use the "Sring join" join them ,
and put the result into another String(ResultString).
3.)But, The "String join" join all the value but except the Changed,Give me the Result in ResultString: why123mid321how123.
---------------------------------------------------------------------------------
I get the item of the Array and DebugLog it,
and check it from the valuable table,
They all showed It's value had been changed into my value after my "Array Set" .
It show SArray element0:why123, element1:OMG. element2:how123]
but somehow the "String Join" ingore my change and join with old value.
I tried the "String Join" with another pre-setted array,without change the value of array, it works fine.
=============================================
anyone got the same bug too? Or Am I did the wrong steps?
-
Hi,
Thanks for spotting this.
Can you report a bug with this ( via PlayMaker/Tools/submit bug report menu), then we will be able to better track this and fix it for the next release hopefully.
Bye,
Jean
-
Hi,
Meanwhile, Can you do this edit on the ArraySet after line 66, this will fix your problem:
value.UpdateValue();
array.Set(index.Value, value.GetValue());
array.SaveChanges (); // ADD THIS LINE
Maybe this is all it needs but also maybe it's too much of a performance hit for heavy usages, we'll see how this goes and how it will be fixed internally.
Bye,
Jean
-
Hi,
Meanwhile, Can you do this edit on the ArraySet after line 66, this will fix your problem:
value.UpdateValue();
array.Set(index.Value, value.GetValue());
array.SaveChanges (); // ADD THIS LINE
Maybe this is all it needs but also maybe it's too much of a performance hit for heavy usages, we'll see how this goes and how it will be fixed internally.
Bye,
Jean
I had the same problem with String Join and Changed Array. Your solution helped! Thank you!