playMaker

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

HeathClose

  • Full Member
  • ***
  • Posts: 226
Photon Update Compiler Errors
« 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..








djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Photon Update Compiler Errors
« Reply #1 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..... )

HeathClose

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

I downloaded the 5

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Photon Update Compiler Errors
« Reply #3 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 ?

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: Photon Update Compiler Errors
« Reply #4 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

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: Photon Update Compiler Errors
« Reply #5 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...


Ateam

  • Full Member
  • ***
  • Posts: 116
Re: Photon Update Compiler Errors
« Reply #6 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
« Last Edit: July 12, 2017, 12:24:43 AM by Ateam »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Photon Update Compiler Errors
« Reply #7 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.

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 713
    • Flashing Lights
Re: Photon Update Compiler Errors
« Reply #8 on: July 12, 2017, 03:58:04 AM »
On which Unity version is this?

HeathClose

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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Photon Update Compiler Errors
« Reply #10 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Photon Update Compiler Errors
« Reply #11 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