Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: artician on June 26, 2014, 01:59:13 PM

Title: Array List Copy [SOLVED]
Post by: artician on June 26, 2014, 01:59:13 PM
I have an FSM that is copying an Array from one game object to another.  Just one action.
The first Array has 10 items.  When the Array List Copy action is activated, it duplicates all the entries from the first Array into the second, so that Array 2 ends up with 20 entries.
Start Index is at 0, and Count is at 10.

This is driving me nucking futs.  There are no other FSMs in the scene that use that action.  I'm running Unity 3.5.7, with the latest version of PM.

As always, help is extremely appreciated.
Title: Re: Array List Copy
Post by: artician on June 28, 2014, 03:25:33 PM
bump!
Title: Re: Array List Copy
Post by: artician on June 30, 2014, 02:13:54 PM
*bump*
 :'(
Title: Re: Array List Copy
Post by: Alex Chouls on June 30, 2014, 03:55:57 PM
I think Jean will need to take a look at this since he maintains ArrayMaker... I believe he's back from vacation tomorrow :)
Title: Re: Array List Copy
Post by: artician on June 30, 2014, 03:57:36 PM
I figured he must be on vacation.  I don't mind!  I hope he had a long and awesome one, the guy deserves it more than anyone I know.

Thanks Alex!
Title: Re: Array List Copy
Post by: jeanfabre on July 01, 2014, 06:31:36 AM
Hi,

 Back :) Thanks for your patience.

 I can't reproduce this. Are you using the latest version on the wiki? It looks to me that you are calling this action twice, or maybe another fsm or state is doing this and you forgot about it...

 Bye,

 Jean
Title: Re: Array List Copy
Post by: artician on July 01, 2014, 02:39:50 PM
I found it.  The FSM was active at runtime, but being disabled immediately afterward.  By that time it had already copied data once, and then a second time when the highscore menu was entered.

Thanks for the input!