Photon voice error

Report bugs of MFPS 2.0 here
Post Reply
User avatar
volfase
Member
Member
Posts: 33
Joined: Sun Mar 18, 2018 2:14 am
Location: Finland
Contact:

Assets/MFPS/Scripts/Internal/Editor/MFPS/PhotonVoiceAddon.cs(66,25): error CS0029: Cannot implicitly convert type 'bl_PlayerNetwork' to 'UnityEngine.GameObject'
and
Assets/MFPS/Scripts/Internal/Editor/MFPS/PhotonVoiceAddon.cs(75,14): error CS0029: Cannot implicitly convert type 'bl_PlayerNetwork' to 'UnityEngine.GameObject'
User avatar
Lovatto
Admin
Admin
Posts: 1778
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

For fix this:
in PhotonVoiceAddon.cs change the lines 51 and 60:

Code: Select all

GameObject p1 = bl_GameData.Instance.Player1;
with

Code: Select all

GameObject p1 = bl_GameData.Instance.Player1.gameObject;
same with the line 60:

Code: Select all

p1 = bl_GameData.Instance.Player2.gameObject;
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
Argha
Member
Member
Posts: 18
Joined: Mon Apr 20, 2020 4:28 am

Getting 3 error:
Tag: Remote is not defined.
UnityEngine.GameObject:set_tag(String)
bl_PlayerSettings:RemotePlayer() (at Assets/MFPS/Scripts/Network/Player/bl_PlayerSettings.cs:64)
bl_PlayerSettings:Awake() (at Assets/MFPS/Scripts/Network/Player/bl_PlayerSettings.cs:46)
UnityEngine.GameObject:SetActive(Boolean)
NullReferenceException: Object reference not set to an instance of an object
bl_PlayerVoice.Awake () (at Assets/MFPS/Scripts/Network/Player/bl_PlayerVoice.cs:39)
UnityEngine.GameObject:SetActive(Boolean)
Photon.Pun.PhotonNetwork:NetworkInstantiate(InstantiateParameters, Boolean, Boolean) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2507)
Photon.Pun.PhotonNetwork:Instantiate(String, Vector3, Quaternion, Byte, Object[]) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2346)
bl_GameManager:SpawnPlayerModel(Team) (at Assets/MFPS/Scripts/Network/Room/bl_GameManager.cs:249)
bl_GameManager:SpawnPlayer(Team) (at Assets/MFPS/Scripts/Network/Room/bl_GameManager.cs:159)
bl_GameManager:SpawnPlayerWithCurrentTeam() (at Assets/MFPS/Scripts/Network/Room/bl_GameManager.cs:283)
SpeakerPrefab must have a component of type Speaker in its hierarchy.
UnityEngine.Debug:LogError(Object, Object)
Photon.Voice.Unity.VoiceConnection:set_SpeakerPrefab(GameObject) (at Assets/Photon/PhotonVoice/Code/VoiceConnection.cs:198)
Photon.Voice.Unity.Editor.VoiceConnectionEditor:OnInspectorGUI() (at Assets/Photon/PhotonVoice/Code/Editor/VoiceConnectionEditor.cs:71)
Photon.Voice.PUN.Editor.PhotonVoiceNetworkEditor:OnInspectorGUI() (at Assets/Photon/PhotonVoice/Code/PUN/Editor/PhotonVoiceNetworkEditor.cs:34)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
Post Reply