GunGame

GunGame event for EventManager

Total Downloads: 3,871 - First Release: Dec 1, 2015 - Last Update: May 21, 2017

5/5, 18 likes
  1. @k1lly0u did some tracing in the mod to figure out what was throwing a null reference exception. Looks like player.GetComponent<GunGamePlayer>() is throwing the exception in the timer of GiveGear(). Not sure if this is an oxide issue, but thought I'd point it out to help you start looking in the right direction.
    Code:
     private void GiveGear(BasePlayer player)
            {
                if (gameEnding) return;
                player.inventory.Strip();
                timer.In(1, () =>
                {
                    GiveRankKit(player, player.GetComponent<GunGamePlayer>().level);
                    if (!downgradeDisabled)
                    {
                        GiveItem(player, configData.GameSettings.DowngradeWeapon);
                    }
                    foreach (var entry in weaponSet.PlayerGear)
                    {
                        GiveItem(player, entry);
                    }
                });
            }
     
  2. we had an issue today with myself and others having an issue once they were killed in the gungame I had spectate turned off (it's a continual gungame set up under a time limit) and everyone that died in the event went into spectate mode and even had their client freeze up. Those of us that had to /event leave or relog trying to fix it lost their inventory while those that waited for me to /event stop lost their hotbar and their clothing they had before the event the lines of errors were these

    22:36:11) | Failed to run a 1.00 timer in 'GunGame v0.4.22' (NullReferenceException: )
    (22:36:20) | Entity is NULL but is still in saveList - not destroyed properly?
    that last line was repeated for every player that was killed off during the event (and they were the ones that lost their inventory)

    EDIT: Update a server restart fixed the Entity NULL instances but we couldn't fix the inventory restore
     
    Last edited by a moderator: Oct 21, 2017
  3. I have a weapon set where the final weapon is a bow, And twice it has happened where someone has got a shot in with the bow, to fully geared sets, and they win they game, but it didn't actually kill the opponent.. the weirdest part is the combat log states old_hp 100 new_hp 100.. So according to combatlog they took no damage at all.. Am I reading something wrong? Is anyone else having this issue?
     

    Attached Files:

    Last edited by a moderator: Oct 22, 2017
  4. Code:
    Failed to run a 1.00 timer in 'GunGame v0.4.22' (NullReferenceException: )
      at (wrapper managed-to-native) UnityEngine.Component:GetComponentFastPath (System.Type,intptr)
      at UnityEngine.Component.GetComponent[GunGamePlayer] () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GunGame+<GiveGear>c__AnonStorey2.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    Failed to run a 120.00 timer in 'GunGame v0.4.22' (NullReferenceException: )
      at (wrapper managed-to-native) UnityEngine.Component:GetComponentFastPath (System.Type,intptr)
      at UnityEngine.Component.GetComponent[GunGamePlayer] () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GunGame.MacheteNotification (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GunGame+<MacheteNotification>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
     
  5. Code:
    (16:00:18) | at (wrapper managed-to-native) UnityEngine.Component:GetComponentFastPath (System.Type,intptr)
      at UnityEngine.Component.GetComponent[GunGamePlayer] () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GunGame.MacheteNotification (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GunGame+<MacheteNotification>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    Help please!
     
  6. Same problem here........
     
  7. Anyone have figured out the error and have a working version?
     
  8. Any idea to stop spam the chat for all players (just players of the event) with the kills ? Thanks
     
  9. Everthing works great, i just cant seem to figure out how to make infinite ammo in the events. thats possible right?
     
  10. Is it possible to use the salvaged hammer as a downgrade weapon? HitInfo does not register the hammer as HitInfo.PrefabWeapon . As a result, the opponent loses no level when using the salvaged hammer as a downgrade weapon.
     
  11. Ok, my fault. downgrade Weapon dont work with Individual Damage Controller. I tryed to use the downgrade weapon as instant kill weapon, but then this weapon would not lower victims rank... maybe you could add the config with "InstantDowngradeWeapon" true/flase :D
     
  12. Is there anyway to add an entry fee to play using economics? We have a reward option already, the entry would be great please
     
  13. Hi Guys, anyone know how to remove sets that you have created to make a new one ? id like to remove old ones
     
    Last edited by a moderator: Jan 16, 2018
  14. Code:
    (17:25:06) | Failed to run a 1.00 timer in 'GunGame v0.4.22' (NullReferenceException: )
      at (wrapper managed-to-native) UnityEngine.Component:GetComponentFastPath (System.Type,intptr)
      at UnityEngine.Component.GetComponent[GunGamePlayer] () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GunGame+<GiveGear>c__AnonStorey2.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    (17:25:07) | Failed to run a 1.00 timer in 'GunGame v0.4.22' (NullReferenceException: )
      at (wrapper managed-to-native) UnityEngine.Component:GetComponentFastPath (System.Type,intptr)
      at UnityEngine.Component.GetComponent[GunGamePlayer] () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GunGame+<GiveGear>c__AnonStorey2.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    (17:25:07) | Failed to run a 1.00 timer in 'EventManager v3.0.75' (NullReferenceException: )
      at (wrapper managed-to-native) UnityEngine.Behaviour:get_enabled ()
      at Oxide.Plugins.EventManager.AddUI (Oxide.Game.Rust.Cui.CuiElementContainer element) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.UpdateMessages (Boolean destroyed) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.DestroyUpdate () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.DestroyPopupUI (Oxide.Plugins.MessageData element) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager+MessageData.StartDestroy () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager+MessageData.<StartDestroy>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    (17:25:08) | Failed to run a 1.00 timer in 'EventManager v3.0.75' (NullReferenceException: )
      at (wrapper managed-to-native) UnityEngine.Behaviour:get_enabled ()
      at Oxide.Plugins.EventManager.AddUI (Oxide.Game.Rust.Cui.CuiElementContainer element) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.UpdateMessages (Boolean destroyed) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.DestroyUpdate () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.DestroyPopupUI (Oxide.Plugins.MessageData element) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager+MessageData.StartDestroy () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager+MessageData.<StartDestroy>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    (17:25:12) | Failed to run a 1.00 timer in 'GunGame v0.4.22' (NullReferenceException: )
      at (wrapper managed-to-native) UnityEngine.Component:GetComponentFastPath (System.Type,intptr)
      at UnityEngine.Component.GetComponent[GunGamePlayer] () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GunGame+<GiveGear>c__AnonStorey2.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    had this problem too today
     
  15. Is there anyway to add fuel as an ammo source? To use for chainsaw obv.
     
  16. no i was not able to add fuel as ammo when i added the flametrower. i just gave people 5 flamethrowers. when they die they get 5 full flamethrowers again. its a rough workaround but still kinds works. the chance they run out of all the fuel before dieing was pretty low on our server. we had avg of 10 people playing the events. gl
     
  17. Code:
    timer.In(1, () =>
                {
                    Interface.Oxide.LogWarning(player.ToString());
                    Interface.Oxide.LogWarning(player.GetComponent<GunGamePlayer>().ToString());
                    try
                    {
                        GiveRankKit(player, player.GetComponent<GunGamePlayer>().level);
                        if (!downgradeDisabled)
                            GiveItem(player, configData.GameSettings.DowngradeWeapon);
                        foreach (var entry in weaponSet.PlayerGear)
                            GiveItem(player, entry);
                    }
                    catch(Exception e)
                    {
                        Interface.Oxide.LogWarning(e.Message);
                        Interface.Oxide.LogWarning(e.StackTrace);
                    }
                });
    seems that the player doesnt have a GunGamePlayer component for some reason
    i wasnt able to debug it yet fully
     
  18. guys its so obvious........just put the fuel in the BELT container.
    [DOUBLEPOST=1529278061][/DOUBLEPOST]
    put it in the belt..........fuel
     
  19. It wont run...installed emi, eventsmanager and spawndatabase, but get the following error.

    (15:24:48) | Unable to load GunGame. Missing dependencies: EventManager
    (15:24:48) | No previous version to rollback plugin: GunGame

    Eventsmanager is loaded
    Please please help..
     
  20. when i make my own gun set it only gives me one bullet in my gun but but that's it what am i doing wrong???