playMaker

Author Topic: Error on iOS but works fine in editor  (Read 5631 times)

davenirline

  • Playmaker Newbie
  • *
  • Posts: 9
Error on iOS but works fine in editor
« on: June 27, 2012, 01:04:18 AM »
Has any of you encountered this error when running the game in actual device? What's weird is that it's only isolated to LocalMoveTo (a custom action) and it used to work fine.

Error loading action: [0074] Shopper : MainFsm : MoveAlongFloor :
Anino.Playmaker.Actions.LocalMoveTo : speed
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMaker.ActionData:CreateAction(FsmState, Int32)
HutongGames.PlayMaker.ActionData:LoadActions(FsmState)
HutongGames.PlayMaker.FsmState:LoadActions()
HutongGames.PlayMaker.Fsm:InitData()
HutongGames.PlayMaker.Fsm:Init(MonoBehaviour)
PlayMakerFSM:Start()



(Filename:
/Applications/buildAgent/work/b0bcff80449a48aa/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp
Line: 43)



Error loading action: [0074] Shopper : MainFsm : MoveAlongFloor :
Anino.Playmaker.Actions.LocalMoveTo : timeReference
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMaker.ActionData:CreateAction(FsmState, Int32)
HutongGames.PlayMaker.ActionData:LoadActions(FsmState)
HutongGames.PlayMaker.FsmState:LoadActions()
HutongGames.PlayMaker.Fsm:InitData()
HutongGames.PlayMaker.Fsm:Init(MonoBehaviour)
PlayMakerFSM:Start()



(Filename:
/Applications/buildAgent/work/b0bcff80449a48aa/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp
Line: 43)


Error loading action: [0074] Shopper : MainFsm : MoveAlongFloor :
Anino.Playmaker.Actions.LocalMoveTo : finishEvent
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMaker.ActionData:CreateAction(FsmState, Int32)
HutongGames.PlayMaker.ActionData:LoadActions(FsmState)
HutongGames.PlayMaker.FsmState:LoadActions()
HutongGames.PlayMaker.Fsm:InitData()
HutongGames.PlayMaker.Fsm:Init(MonoBehaviour)
PlayMakerFSM:Start()



(Filename:
/Applications/buildAgent/work/b0bcff80449a48aa/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp
Line: 43)



Error loading action: [0074] Shopper : MainFsm : Exit :
Anino.Playmaker.Actions.LocalMoveTo : speed

UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMaker.ActionData:CreateAction(FsmState, Int32)
HutongGames.PlayMaker.ActionData:LoadActions(FsmState)
HutongGames.PlayMaker.FsmState:LoadActions()
HutongGames.PlayMaker.Fsm:InitData()
HutongGames.PlayMaker.Fsm:Init(MonoBehaviour)
PlayMakerFSM:Start()



(Filename:
/Applications/buildAgent/work/b0bcff80449a48aa/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp
Line: 43)



Error loading action: [0074] Shopper : MainFsm : Exit :
Anino.Playmaker.Actions.LocalMoveTo : timeReference
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMaker.ActionData:CreateAction(FsmState, Int32)
HutongGames.PlayMaker.ActionData:LoadActions(FsmState)
HutongGames.PlayMaker.FsmState:LoadActions()
HutongGames.PlayMaker.Fsm:InitData()
HutongGames.PlayMaker.Fsm:Init(MonoBehaviour)
PlayMakerFSM:Start()

(Filename:
/Applications/buildAgent/work/b0bcff80449a48aa/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp
Line: 43)

Error loading action: [0074] Shopper : MainFsm : Exit :
Anino.Playmaker.Actions.LocalMoveTo : finishEvent

UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMaker.ActionData:CreateAction(FsmState, Int32)
HutongGames.PlayMaker.ActionData:LoadActions(FsmState)
HutongGames.PlayMaker.FsmState:LoadActions()
HutongGames.PlayMaker.Fsm:InitData()
HutongGames.PlayMaker.Fsm:Init(MonoBehaviour)
PlayMakerFSM:Start()

disturbing

  • 1.2 Beta
  • Playmaker Newbie
  • *
  • Posts: 7
Re: Error on iOS but works fine in editor
« Reply #1 on: July 31, 2012, 02:03:14 AM »
I'm having the same issue, did you resolve it?

disturbing

  • 1.2 Beta
  • Playmaker Newbie
  • *
  • Posts: 7
Re: Error on iOS but works fine in editor
« Reply #2 on: July 31, 2012, 11:32:57 AM »
This issue was ANNOYING, But I solved it.

Seems iOS reads the playmaker data differently than the Editor.

WHENEVER there's an update on an action's structure (different variables, etc), then there's an error reading it on iOS if those variables are in a prefab.

To solve this all I did was change the layer of the prefab which had the modified playmaker actions (to something else, then back to the original) and applied to resave it.  After the prefab was re-saved, it worked fine on iOS.

~DisTurBinG


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Error on iOS but works fine in editor
« Reply #3 on: July 31, 2012, 06:43:49 PM »
The FSM loader in the editor tries to correct data problems (e.g., the action has changed). These checks are stripped from the final build to improve performance. If you load FSMs or run the game in the editor you should get log messages about actions that have changed. I'll make it clearer that you need to resave these FSMs before making a build! And I'll change the log message to a warning...

Sorry for the confusion!