playMaker

Author Topic: PUN 2 Network Sync Variables Not Working [Partially Solved]  (Read 524 times)

mrphilipjoel

  • Playmaker Newbie
  • *
  • Posts: 49
PUN 2 Network Sync Variables Not Working [Partially Solved]
« on: October 20, 2022, 12:15:27 PM »
i got it working again. its still giving me the error, but it doesn't freeze game anymore, and everything is working as it should

Unity 2021.3.1
Playmaker 1.9.5
PUN 2.4.0

I am trying to network sync a Vector3.

I created my "Photon Network Synch FSM" using the Playmaker Menu to create my FSM for network syncing my variables.

I only have one variable on the "Photon Network Synch FSM". I have "network sync" checked.

By default, the value of the varaible is 0,0,0. At runtime, it seems to get the sync'd variable at least once, because the value is no longer 0,0,0. But, the value never changes after that. 'Every Frame' is checked on all the appropriate actions.

I thought I had solved it by moving the FSM below the Photon View. But after adding a second variable, I started getting the same errors again.

Console:
Code: [Select]
Fsm component 'LeftHandNetworkLine(Clone)' on gameObject 'LeftHandNetworkLine(Clone)' has variable checked for network synching, but no PhotonView component is observing this fsm
UnityEngine.Debug:LogError (object)
HutongGames.PlayMaker.Pun2.PlayMakerPhotonProxy:SanitizeGameObject (UnityEngine.GameObject) (at Assets/PlayMaker PUN 2/Scripts/PlayMakerPhotonProxy.cs:203)
HutongGames.PlayMaker.Pun2.PlayMakerPhotonGameObjectProxy:Awake () (at Assets/PlayMaker PUN 2/Scripts/PlayMakerPhotonGameObjectProxy.cs:76)
Photon.Pun.PhotonNetwork:NetworkInstantiate (Photon.Pun.InstantiateParameters,bool,bool) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2650)
Photon.Pun.PhotonNetwork:Instantiate (string,UnityEngine.Vector3,UnityEngine.Quaternion,byte,object[]) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2482)
HutongGames.PlayMaker.Pun2.Actions.PunInstantiate:doInstantiate () (at Assets/PlayMaker PUN 2/Actions/PunInstantiate.cs:98)
HutongGames.PlayMaker.Pun2.Actions.PunInstantiate:OnEnter () (at Assets/PlayMaker PUN 2/Actions/PunInstantiate.cs:51)
HutongGames.PlayMaker.FsmState:ActivateActions (int) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:222)
HutongGames.PlayMaker.FsmState:OnEnter () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:192)
HutongGames.PlayMaker.Fsm:EnterState (HutongGames.PlayMaker.FsmState) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:3073)
HutongGames.PlayMaker.Fsm:SwitchState (HutongGames.PlayMaker.FsmState) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:3012)
HutongGames.PlayMaker.Fsm:UpdateStateChanges () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2945)
HutongGames.PlayMaker.Fsm:Start () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2169)
PlayMakerFSM:Start () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:595)
« Last Edit: October 20, 2022, 02:44:31 PM by mrphilipjoel »