playMaker

Author Topic: Photon errors, need help  (Read 1627 times)

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Photon errors, need help
« on: July 14, 2017, 12:58:13 AM »
Hi, i started with a new project and follow these steps to getting my photon network ready.

1: installed playmaker 1.8.3
2: get photon from the asset store
3: install Ecosystem
4: download playermaker PUN u5 from ecoscystem
5. build game

Got all these errors before and after build -

--------------------------------------------------------------------------------------
Assets/PlayMaker PUN/Actions/PhotonNetworkInstantiate.cs(95,71): error CS1502: The best overloaded method match for `PhotonNetwork.Instantiate(string, UnityEngine.Vector3, UnityEngine.Quaternion, byte)' has some invalid arguments

Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonNetwork.cs(2435,30): (Location of the symbol related to previous error)
Assets/PlayMaker PUN/Actions/PhotonNetworkInstantiate.cs(95,71): error CS1503: Argument `#4' cannot convert `int' expression to type `byte'

-----EndCompilerOutput---------------
- Finished compile Library/ScriptAssemblies/Assembly-CSharp.dll
Assets/PlayMaker PUN/Actions/PhotonNetworkInstantiate.cs(95,71): error CS1502: The best overloaded method match for `PhotonNetwork.Instantiate(string, UnityEngine.Vector3, UnityEngine.Quaternion, byte)' has some invalid arguments
 
(Filename: Assets/PlayMaker PUN/Actions/PhotonNetworkInstantiate.cs Line: 95)

Assets/PlayMaker PUN/Actions/PhotonNetworkInstantiate.cs(95,71): error CS1503: Argument `#4' cannot convert `int' expression to type `byte'
 
(Filename: Assets/PlayMaker PUN/Actions/PhotonNetworkInstantiate.cs Line: 95)


-------------------------------------------------------------------------------------

What will be the solution?

thanks
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Photon errors, need help
« Reply #1 on: July 14, 2017, 04:02:19 AM »
Hi,
There is a solution i have on this topic :
http://hutonggames.com/playmakerforum/index.php?topic=15431.msg71470#msg71470

But you need to edit the scripts for it (it is not very hard to do).

The latest photon version gives this error and the actions need to be update,
we will try to resolve this asap.

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Re: Photon errors, need help
« Reply #2 on: July 14, 2017, 09:44:12 PM »
Thanks, glad to know that  :)
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio