Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: HeathClose on July 10, 2017, 10:10:27 AM

Title: Photon Update Compiler Errors
Post 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)
Title: Re: Photon Update Compiler Errors
Post by: djaydino on July 10, 2017, 10:42:53 PM
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..... )
Title: Re: Photon Update Compiler Errors
Post by: HeathClose on July 11, 2017, 08:32:50 AM
Yikes! I hope you get squared away soon... that must be hell...

I downloaded the 5
Title: Re: Photon Update Compiler Errors
Post by: djaydino on July 11, 2017, 10:25:40 AM
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 ?
Title: Re: Photon Update Compiler Errors
Post by: HeathClose on July 11, 2017, 12:49:31 PM
i had originally downloaded the 5 so those errors are with the 5... i suspect the photon update
Title: Re: Photon Update Compiler Errors
Post by: HeathClose on July 11, 2017, 01:33:34 PM
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...

Title: Re: Photon Update Compiler Errors
Post by: Ateam on July 12, 2017, 12:12:35 AM
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
Title: Re: Photon Update Compiler Errors
Post by: djaydino on July 12, 2017, 01:56:29 AM
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:

Code: [Select]
byte ngToByte = System.Convert.ToByte(networkGroup.Value);
and change line 95 :
Code: [Select]
GameObject newObject = PhotonNetwork.Instantiate(go.name, spawnPosition, Quaternion.Euler(spawnRotation), networkGroup.Value);to
Code: [Select]
GameObject newObject = PhotonNetwork.Instantiate(go.name, spawnPosition, Quaternion.Euler(spawnRotation), ngToByte);
on 'PhotonNetworkInstantiateSceneObject' also add this line on line 94:
Code: [Select]
byte ngToByte = System.Convert.ToByte(networkGroup.Value);
and change line 95 :
Code: [Select]
GameObject newObject = PhotonNetwork.InstantiateSceneObject(go.name, spawnPosition, Quaternion.Euler(spawnRotation), networkGroup.Value,null);to
Code: [Select]
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.
Title: Re: Photon Update Compiler Errors
Post by: 600 on July 12, 2017, 03:58:04 AM
On which Unity version is this?
Title: Re: Photon Update Compiler Errors
Post by: HeathClose on July 12, 2017, 09:23:29 AM
5.6.1f1
Title: Re: Photon Update Compiler Errors
Post by: djaydino on July 12, 2017, 11:12:15 AM
Hi,
The Error is also on U5.5.4f1

it is with the latest PUN update that the error comes.
Title: Re: Photon Update Compiler Errors
Post by: djaydino on July 16, 2017, 12:20:06 PM
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