playMaker

Author Topic: 2018.3 rebuild FSMs -- Error Loading Action PlayRandomSound  (Read 1081 times)

acknickulous

  • Playmaker Newbie
  • *
  • Posts: 19
2018.3 rebuild FSMs -- Error Loading Action PlayRandomSound
« on: January 03, 2019, 10:02:14 PM »
I can't rebuild all the FSMs in my build -- latest PlayMaker and Unity3d 2018.3. I get this error:

Code: [Select]
Error Loading Action: State 1 : HutongGames.PlayMaker.Actions.PlayRandomSound : audioClips
System.InvalidCastException
  at (wrapper managed-to-native) System.Array.SetValueImpl(System.Array,object,int)
  at System.Array.SetValue (System.Object value, System.Int32 index) [0x00057] in <ac823e2bb42b41bda67924a45a0173c3>:0
  at HutongGames.PlayMaker.ActionData.LoadArrayElement (HutongGames.PlayMaker.Fsm fsm, System.Array field, System.Type fieldType, System.Int32 elementIndex, System.Int32 paramIndex) [0x00617] in C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:1461
  at HutongGames.PlayMaker.ActionData.LoadActionField (HutongGames.PlayMaker.Fsm fsm, System.Object obj, System.Reflection.FieldInfo field, System.Int32 paramIndex) [0x0063e] in C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:1199
  at HutongGames.PlayMaker.ActionData.CreateAction (HutongGames.PlayMaker.ActionData+Context context, System.Int32 actionIndex) [0x0024f] in C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:942
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMaker.ActionData:CreateAction(Context, Int32) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/ActionData.cs:947)
HutongGames.PlayMaker.ActionData:LoadActions(FsmState) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/ActionData.cs:776)
HutongGames.PlayMaker.FsmState:get_Actions() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:738)
HutongGames.PlayMakerEditor.ProjectTools:UpdateGetSetPropertyActions() (at Assets/PlayMaker/Editor/PlayMakerProjectTools.cs:157)
HutongGames.PlayMakerEditor.ProjectTools:UpdateScenesInBuild() (at Assets/PlayMaker/Editor/PlayMakerProjectTools.cs:99)
HutongGames.PlayMakerEditor.ProjectTools:UpdateAllFSMsInBuild() (at Assets/PlayMaker/Editor/PlayMakerProjectTools.cs:51)

Should I revert back to 2018.2?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: 2018.3 rebuild FSMs -- Error Loading Action PlayRandomSound
« Reply #1 on: January 05, 2019, 12:29:16 PM »
Please use the attached version of PlayRandomSound. It should fix the error while I investigate this issue.