playMaker

Author Topic: Photon Update Compiler Errors  (Read 321 times)

HeathClose

  • Full Member
  • ***
  • Posts: 223
    • View Profile
Photon Update Compiler Errors
« on: July 10, 2017, 07: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..








djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2288
    • View Profile
    • jinxtergames
Re: Photon Update Compiler Errors
« Reply #1 on: July 10, 2017, 07: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..... )

HeathClose

  • Full Member
  • ***
  • Posts: 223
    • View Profile
Re: Photon Update Compiler Errors
« Reply #2 on: July 11, 2017, 05:32:50 AM »
Yikes! I hope you get squared away soon... that must be hell...

I downloaded the 5

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2288
    • View Profile
    • jinxtergames
Re: Photon Update Compiler Errors
« Reply #3 on: July 11, 2017, 07: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 ?

HeathClose

  • Full Member
  • ***
  • Posts: 223
    • View Profile
Re: Photon Update Compiler Errors
« Reply #4 on: July 11, 2017, 09:49:31 AM »
i had originally downloaded the 5 so those errors are with the 5... i suspect the photon update

HeathClose

  • Full Member
  • ***
  • Posts: 223
    • View Profile
Re: Photon Update Compiler Errors
« Reply #5 on: July 11, 2017, 10:33:34 AM »
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...


Ateam

  • Junior Playmaker
  • **
  • Posts: 60
    • View Profile
Re: Photon Update Compiler Errors
« Reply #6 on: July 11, 2017, 09:12:35 PM »
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
« Last Edit: July 11, 2017, 09:24:43 PM by Ateam »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2288
    • View Profile
    • jinxtergames
Re: Photon Update Compiler Errors
« Reply #7 on: July 11, 2017, 10:56:29 PM »
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.

600

  • Sr. Member
  • ****
  • Posts: 493
    • View Profile
    • Car and Traffic Playmaker assets
Re: Photon Update Compiler Errors
« Reply #8 on: July 12, 2017, 12:58:04 AM »
On which Unity version is this?

HeathClose

  • Full Member
  • ***
  • Posts: 223
    • View Profile
Re: Photon Update Compiler Errors
« Reply #9 on: July 12, 2017, 06:23:29 AM »
5.6.1f1

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2288
    • View Profile
    • jinxtergames
Re: Photon Update Compiler Errors
« Reply #10 on: July 12, 2017, 08:12:15 AM »
Hi,
The Error is also on U5.5.4f1

it is with the latest PUN update that the error comes.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2288
    • View Profile
    • jinxtergames
Re: Photon Update Compiler Errors
« Reply #11 on: July 16, 2017, 09:20:06 AM »
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