NukeWeapons

Create nuclear ammo for a bunch of different ammo types, full GUI crafting menu and ammo gauge

Total Downloads: 1,194 - First Release: Jul 31, 2016 - Last Update: Jul 29, 2017

5/5, 8 likes
  1. k1lly0u submitted a new resource:

    NukeWeapons - Create nuclear ammo for a bunch of different ammo types, full GUI crafting menu and ammo gauge

    Read more about this resource...
     
  2. k1lly0u updated NukeWeapons with a new update entry:

    0.1.1

     
  3. k1lly0u updated NukeWeapons with a new update entry:

    0.1.2

     
  4. cool but totally destroys lusty map
     
  5. Saw this during testing! It's pretty well done, not gonna lie!
     
  6. k1lly0u updated NukeWeapons with a new update entry:

    0.1.3

     
  7. I auto restart my server every 6 hours and each time the plugin doesn't load on restart, I have to manually reload it with console command after the server is back up
    [DOUBLEPOST=1469975579][/DOUBLEPOST]this is what comes up in the compiler log on server restart

    [SERVER v1.0.23] Console: NukeWeapons.cs(186,29): warning CS0472: The result of comparing value type `UnityEngine.Vector3' with null is always `true'
    NukeWeapons.cs(28,27): warning CS0414: The private field `Oxide.Plugins.NukeWeapons.getFileData' is assigned but its value is never used
    NukeWeapons.cs(1321,24): warning CS0649: Field `Oxide.Plugins.NukeWeapons.PlayerAmmo.Rockets' is never assigned to, and will always have its default value `0'
    NukeWeapons.cs(1322,24): warning CS0649: Field `Oxide.Plugins.NukeWeapons.PlayerAmmo.Mines' is never assigned to, and will always have its default value `0'
    NukeWeapons.cs(1323,24): warning CS0649: Field `Oxide.Plugins.NukeWeapons.PlayerAmmo.Bullets' is never assigned to, and will always have its default value `0'
    NukeWeapons.cs(1324,24): warning CS0649: Field `Oxide.Plugins.NukeWeapons.PlayerAmmo.Explosives' is never assigned to, and will always have its default value `0'
    NukeWeapons.cs(1325,24): warning CS0649: Field `Oxide.Plugins.NukeWeapons.PlayerAmmo.Grenades' is never assigned to, and will always have its default value `0'
     
  8. Those are just warnings, while in normal circumstances they shouldn't really be there but them being there doesn't really cause an issue so you can safely ignore those warnings.
     
  9. Hello, I do not know how or where to enter the console command "nukeicons" ???

    Screenshot_3.png
     
  10. Can you verify that the plugin is loaded?
     

  11. Screenshot_5.png
     
  12. Looks like the plugin didn't load, try reloading the plugin and then try running the console command again. (The comment below also applies to your error)
    ItemDefinitions are currently read in the Loaded() hook which are causing the issue. The Loaded hook runs too soon for the itemdefinitions to be loaded and used by plugins so values using the item definitions should be loaded at a later stage (OnServerInitialized hook), once @k1lly0u moves this initialization to the OnServerInitialized hook everything should be fine.
     

  13. Thanks for help, I'll wait for the fixed version and hope the plugin will remake that would not have to enter this console command and the plugin will start and run without it (sorry for my bad English)
     
  14. Sorry guys, it was way past my bedtime when I wrote this :p
     
  15. Typo - nukeweapons.theres a space herebullet - Grant user access to nuke bullets
     
  16. k1lly0u updated NukeWeapons with a new update entry:

    0.1.4

     
  17. (09:41:16) | [Oxide] 09:40 [Error] Failed to call hook 'OnServerInitialized' on plugin 'NukeWeapons v0.1.4' (NullReferenceException: Object reference not set to an instance of an object)

    (09:41:16) | [Oxide] 09:40 [Debug] at Oxide.Plugins.NukeWeapons.OnServerInitialized () [0x00000] in <filename unknown>:0

    at Oxide.Plugins.NukeWeapons.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  18. k1lly0u updated NukeWeapons with a new update entry:

    0.1.41

     
  19. (06:22:11) | [Oxide] 14:22 [Error] Failed to call hook 'OnRocketLaunched' on plugin 'NukeWeapons v0.1.41' (KeyNotFoundException: The given key was not present in the dictionary.)

    (06:22:11) | [Oxide] 14:22 [Debug] at System.Collections.Generic.Dictionary`2[System.String,System.UInt32].get_Item (System.String key) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.NukeWeapons.AmmoIcon (.BasePlayer player, NukeType type, Int32 number) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.NukeWeapons.CreateAmmoIcons (.BasePlayer player) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.NukeWeapons.OnRocketLaunched (.BasePlayer player, .BaseEntity entity) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.NukeWeapons.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    Its Doing on all the nukes
     
  20. You haven't registered the images using the console command. Follow the instructions in the overview in the part that says ** Important Information**