Hey i just wanted to report a few bugs im having. not sure if they are my fault or just a glitch but here they are.
situation, i have added a bunch of new guns and labled then all correctly and associated them with the proper Remote gun.
1) the ammo counter shows 0 ammo yet the gun fires and the slider responds correctly
2) the player is unable to switch to their secondary
A couple bugs
- DylaNemesis
- Regular Member
- Posts: 106
- Joined: Sun Dec 07, 2014 7:05 pm
- Location: canada
My Studio's Website http://www.BeDaGame.ca
- DylaNemesis
- Regular Member
- Posts: 106
- Joined: Sun Dec 07, 2014 7:05 pm
- Location: canada
http://i.gyazo.com/e1a8f7349189987e09078f83ba93e8e3.jpgDylaNemesis wrote:Hey i just wanted to report a few bugs im having. not sure if they are my fault or just a glitch but here they are.
situation, i have added a bunch of new guns and labled then all correctly and associated them with the proper Remote gun.
1) the ammo counter shows 0 ammo yet the gun fires and the slider responds correctly
2) the player is unable to switch to their secondary
http://i.gyazo.com/8ee7cfda8e3c347562a9561dcc1cf1ba.jpg
thats what it looks like. I'm not sure the issue
My Studio's Website http://www.BeDaGame.ca
- DylaNemesis
- Regular Member
- Posts: 106
- Joined: Sun Dec 07, 2014 7:05 pm
- Location: canada
I'm 99% sure I did something wrong but I can't figure out whatdamh0503 wrote:Yes those bugs makes me crazy
My Studio's Website http://www.BeDaGame.ca
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
at first glance I can not tell you did wrong...DylaNemesis wrote:http://i.gyazo.com/e1a8f7349189987e09078f83ba93e8e3.jpgDylaNemesis wrote:Hey i just wanted to report a few bugs im having. not sure if they are my fault or just a glitch but here they are.
situation, i have added a bunch of new guns and labled then all correctly and associated them with the proper Remote gun.
1) the ammo counter shows 0 ammo yet the gun fires and the slider responds correctly
2) the player is unable to switch to their secondary
http://i.gyazo.com/8ee7cfda8e3c347562a9561dcc1cf1ba.jpg
thats what it looks like. I'm not sure the issue
Tell me, you get any error or warning in the console?
- DylaNemesis
- Regular Member
- Posts: 106
- Joined: Sun Dec 07, 2014 7:05 pm
- Location: canada
http://i.gyazo.com/aa174be991d854c960738eedce1429bb.pngLovatto wrote:at first glance I can not tell you did wrong...DylaNemesis wrote:http://i.gyazo.com/e1a8f7349189987e09078f83ba93e8e3.jpgDylaNemesis wrote:Hey i just wanted to report a few bugs im having. not sure if they are my fault or just a glitch but here they are.
situation, i have added a bunch of new guns and labled then all correctly and associated them with the proper Remote gun.
1) the ammo counter shows 0 ammo yet the gun fires and the slider responds correctly
2) the player is unable to switch to their secondary
http://i.gyazo.com/8ee7cfda8e3c347562a9561dcc1cf1ba.jpg
thats what it looks like. I'm not sure the issue
Tell me, you get any error or warning in the console?
NullReferenceException: Object reference not set to an instance of an object
bl_GunManager.Awake () (at Assets/MFPS/Scripts/Weapon/bl_GunManager.cs:61)
UnityEngine.Object:Instantiate(Object, Vector3, Quaternion)
NetworkingPeer:DoInstantiate(Hashtable, PhotonPlayer, GameObject) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:2381)
PhotonNetwork:Instantiate(String, Vector3, Quaternion, Int32, Object[]) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonNetwork.cs:2135)
PhotonNetwork:Instantiate(String, Vector3, Quaternion, Int32) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonNetwork.cs:2079)
bl_GameManager:SpawnPlayer(Team) (at Assets/MFPS/Scripts/Network/bl_GameManager.cs:82)
bl_RoomMenu:MainMenu() (at Assets/MFPS/Scripts/GamePlay/bl_RoomMenu.cs:422)
bl_RoomMenu:OnGUI() (at Assets/MFPS/Scripts/GamePlay/bl_RoomMenu.cs:265)
My Studio's Website http://www.BeDaGame.ca
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
- DylaNemesis
- Regular Member
- Posts: 106
- Joined: Sun Dec 07, 2014 7:05 pm
- Location: canada
foreach (bl_Gun guns in AllGuns)Lovatto wrote:Paste here the line 61 of your bl_GunManager.cs please.
{
guns.gameObject.SetActive(false);
}
TakeWeapon(PlayerEquip[m_Current].gameObject);
PUM = GameObject.Find(bl_PickGunManager.PickUpManagerName).GetComponent<bl_PickGunManager>();
}
My Studio's Website http://www.BeDaGame.ca
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
Ok, the problem is with your new scene, you have not added the PickupGunManager.DylaNemesis wrote:foreach (bl_Gun guns in AllGuns)Lovatto wrote:Paste here the line 61 of your bl_GunManager.cs please.
{
guns.gameObject.SetActive(false);
}
TakeWeapon(PlayerEquip[m_Current].gameObject);
PUM = GameObject.Find(bl_PickGunManager.PickUpManagerName).GetComponent<bl_PickGunManager>();
}
this is located in: Addons -> PickUp -> Prefabs -> PickUpGunManager.
- DylaNemesis
- Regular Member
- Posts: 106
- Joined: Sun Dec 07, 2014 7:05 pm
- Location: canada
OHHHHHHHH!!! ok so im an idiot lolLovatto wrote:Ok, the problem is with your new scene, you have not added the PickupGunManager.DylaNemesis wrote:foreach (bl_Gun guns in AllGuns)Lovatto wrote:Paste here the line 61 of your bl_GunManager.cs please.
{
guns.gameObject.SetActive(false);
}
TakeWeapon(PlayerEquip[m_Current].gameObject);
PUM = GameObject.Find(bl_PickGunManager.PickUpManagerName).GetComponent<bl_PickGunManager>();
}
this is located in: Addons -> PickUp -> Prefabs -> PickUpGunManager.
thanks
My Studio's Website http://www.BeDaGame.ca