Page 1 of 1

facing problem in weapon system

Posted: Wed Sep 01, 2021 2:03 pm
by aviral
I was adding some more weapons from animated hand pack which you mentioned and all thing went extremly well but in the last when the player was picking the weapon at that time weapon got dissaper their is no weapon with the player but it is displaying weapon image in loadout

Re: facing problem in weapon system

Posted: Fri Sep 03, 2021 5:01 am
by aviral
Admin please help It's urgent

Re: facing problem in weapon system

Posted: Fri Sep 03, 2021 7:29 am
by Lovatto
Hi,

Sorry but I'm having troubles to picture the problem, can you show me a short video of it,
also, do you receive any error log in the console when that happens?

Re: facing problem in weapon system

Posted: Mon Sep 06, 2021 12:18 am
by aviral
The weapon 14 is not listed in this player prefab.
UnityEngine.Debug:LogWarning (object)
bl_GunManager:PickUpGun (GunPickUpData) (at Assets/MFPS/Scripts/Weapon/Main/bl_GunManager.cs:500)
bl_GunPickUpManager:NetworkPickUp (ExitGames.Client.Photon.Hashtable) (at Assets/MFPS/Scripts/Weapon/PickUp/bl_GunPickUpManager.cs:144)
bl_GunPickUpManager:OnNetworkCall (ExitGames.Client.Photon.Hashtable) (at Assets/MFPS/Scripts/Weapon/PickUp/bl_GunPickUpManager.cs:37)
bl_PhotonNetwork:OnEventCustom (ExitGames.Client.Photon.EventData) (at Assets/MFPS/Scripts/Network/Lobby/bl_PhotonNetwork.cs:76)
Photon.Realtime.LoadBalancingClient:OnEvent (ExitGames.Client.Photon.EventData) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:3384)
Photon.Pun.PhotonNetwork:RaiseEvent (byte,object,Photon.Realtime.RaiseEventOptions,ExitGames.Client.Photon.SendOptions) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2303)
bl_PhotonNetwork:SendDataOverNetwork (byte,ExitGames.Client.Photon.Hashtable) (at Assets/MFPS/Scripts/Network/Lobby/bl_PhotonNetwork.cs:91)
bl_GunPickUpManager:SendPickUp (string,int,bl_GunPickUp/m_Info) (at Assets/MFPS/Scripts/Weapon/PickUp/bl_GunPickUpManager.cs:118)
bl_GunPickUp:Pickup () (at Assets/MFPS/Scripts/Weapon/PickUp/bl_GunPickUp.cs:210)
bl_GunPickUp:OnUpdate () (at Assets/MFPS/Scripts/Weapon/PickUp/bl_GunPickUp.cs:195)
MFPS.Internal.bl_UpdateManager:Update () (at Assets/MFPS/Scripts/Internal/General/bl_UpdateManager.cs:184)

Re: facing problem in weapon system

Posted: Mon Sep 06, 2021 12:18 am
by aviral
The error Im facing now

Re: facing problem in weapon system

Posted: Mon Sep 06, 2021 10:03 am
by aviral
adimn please help I have release my game PLease help

Re: facing problem in weapon system

Posted: Thu Sep 09, 2021 2:14 pm
by Lovatto
The error stack trace that you shared means that you have not set up the Weapon 14 in one or more of your player prefabs, 14 is the index of the weapon info in GameData -> All Weapons.