Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: HeathClose on July 10, 2017, 10:10:27 AM
-
So I'm having trouble sending RPC broadcasts with data, and the RPC receive data isn't working at all... so I was building a new clean project to demonstrate the issues and upon installing photon, there was an update... but now I can't even finish building the it because of the photon update having compiler issues..
(https://www.dropbox.com/s/rhmgyd90hdfq936/Screenshot%202017-07-10%2009.04.51.png?dl=1)
(https://www.dropbox.com/s/bjklyjli2qi09lk/Screenshot%202017-07-10%2009.05.00.png?dl=1)
(https://www.dropbox.com/s/77sy1329cgc0gva/Screenshot%202017-07-10%2009.05.09.png?dl=1)
(https://www.dropbox.com/s/6kkr70c05ctrexl/Screenshot%202017-07-10%2009.05.21.png?dl=1)
-
Hi,
Which package did you get from the Ecosystem?
I can see that there are 2 version, on for unity 4 and one for unity 5
maybe the issue lies there.
I can't test my self at the moment because i am still using mobile data to get internet
There is a 'Fiber Break' on the internet connection and hopefully it will be fixed within 2 days..... :'( no internet since Friday already.
(At least they promised one month free internet :) but still..... )
-
Yikes! I hope you get squared away soon... that must be hell...
I downloaded the 5
-
Hi,
Tell me about it!...
I live half in the Philippines half in Belgium (it used to be 1Mbits compared to 100Mbits. now its 10mbits compared to 200Mbits)
+ regular disconnections in the Philippines.
But life is still better in the Philippines :)
Did it solve the errors ?
-
i had originally downloaded the 5 so those errors are with the 5... i suspect the photon update
-
Also... keep in mind the only reason I need help getting this project going is so I can build a demo that shows that there were photon actions that didn't work pre update...
you can only RPC broadcast fsm events by name...
RPC get data doesn't receive anything...
-
I had the same error, and I fixed it changing the code.
you need replace the PhotonNetworkInstantiate code for this.
https://hastebin.com/ubiyazuviw.cs
and the PhotonNetworkInstantiateSceneObject code for this.
https://hastebin.com/efamoretew.cs
-
Hi,
That will work but the problem is that you can not set a network group anymore.
What you can do is on 'PhotonNetworkInstantiate' add this line on line 94:
byte ngToByte = System.Convert.ToByte(networkGroup.Value);
and change line 95 :
GameObject newObject = PhotonNetwork.Instantiate(go.name, spawnPosition, Quaternion.Euler(spawnRotation), networkGroup.Value);
to
GameObject newObject = PhotonNetwork.Instantiate(go.name, spawnPosition, Quaternion.Euler(spawnRotation), ngToByte);
on 'PhotonNetworkInstantiateSceneObject' also add this line on line 94:
byte ngToByte = System.Convert.ToByte(networkGroup.Value);
and change line 95 :
GameObject newObject = PhotonNetwork.InstantiateSceneObject(go.name, spawnPosition, Quaternion.Euler(spawnRotation), networkGroup.Value,null);
to
GameObject newObject = PhotonNetwork.InstantiateSceneObject(go.name, spawnPosition, Quaternion.Euler(spawnRotation), ngToByte, null);
I Can't update them at the moment, i need to ask access to jean to edit them.
i send a mail to him and i will try to update asap.
-
On which Unity version is this?
-
5.6.1f1
-
Hi,
The Error is also on U5.5.4f1
it is with the latest PUN update that the error comes.
-
Hi,
I added an attachment with the updated version of those 2 actions.
they are not yet updated on the Ecosystem. i will post here when they are updated on the Ecosystem