Demo scene:
DemoWorker.unity from
PUNDemoWorker.unitypackagehere:
https://hutonggames.fogbugz.com/default.asp?W928working fine with Photon 1.54 and Photon Actions 1.51
But in my own project I have some troubles.
1. In Online/Offline mode, when hitting action "Photon View RPC Broadcast FSM Event", this error appearing:
Illegal view ID:0 method: rpc
This happens only on game objects that are not instantiated by Photon (with Photon Network Instantiate Action) and owner is "Scene".
Something like this topic:
http://hutonggames.com/playmakerforum/index.php?topic=8384.0And quote:
Thanks Jean, I figured out the problem. It was related to calling photon actions on objects that were not spawned using Photon Instantiate
I check
Known Issues here":
http://forum.unity3d.com/threads/photon-unity-networking.101734/#post-667622When you use multiple scenes, the viewIDs of PhotonViews in those scenes will always start at 1. Edit the PunSceneSettingsFile in your project to enter a minimum ViewID per scene if needed.
And edit "Min View ID" to 10 in this file PunSceneSettingsFile.asset and problem with "Illegal view ID" dissapear. After this I removed this option from SettingsFile and still no problems with illegal view... very strange. And what exactly resolve this problem? PunSceneSettingsFile or something else...
Anyway, problem 2 is worse.
2. In Online mode, when Player 2 join game of Player 1 this error appearing in Player 1 console:
The observed monobehaviour of this PhotonView does not implement OnPhotonSerializeView()!
Player 2 don't have this error in his console, but he can't received information from Player 1 with "Photon View Observed Component" on some game objects that are spawned using "Photon Instantiate Action". But game objects with owner "Scene" working fine here. And again it's strange, but Player 1 and Player 2 characters are seeing each other and they spawned by photon instantiate.
Quote from:
http://answers.unity3d.com/questions/927100/photon-synchronization.htmlThe observed monobehaviour of this photonview does not implement OnPhotonSerializeView()!
This error means that you have a photonView somewhere that is observing a script, but that script has no OnSerializeView() method. Which makes observing that script a bit pointless, since no data gets sent or recieved in that case.
My observing FSM component is the right I am sure.
I don't know what went wrong with my project. In Photon 1.28.3 and Playmaker actions for 1.28.3 everything was fine.
I don't know if anyone can understand something from my long post, but I will continue looking for solution.