Jump to content

Bugged Bad!

Closed 2.0.8

Stampy
Stampy

Posted (edited)

Data Files get a weird bug where chance is set to 0.0 

Upon Killing the NPC Boss The Server Crashes.

 

Failed to call hook 'OnBossKilled' on plugin 'BattlePass v1.0.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.BattlePass.OnBossKilled (ScientistNPC boss, BasePlayer attacker) [0x00000] in <4b2c042b0ddd4c2fab0f88f532f43b15>:0 
  at Oxide.Plugins.BattlePass.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00219] in <4b2c042b0ddd4c2fab0f88f532f43b15>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0 

 

 

{
  "Name": "Clown",
  "Health": 5000.0,
  "Roam Range": 10.0,
  "Chase Range": 50.0,
  "Attack Range Multiplier": 1.0,
  "Sense Range": 50.0,
  "Target Memory Duration [sec.]": 10.0,
  "Scale damage": 0.5,
  "Aim Cone Scale": 1.0,
  "Detect the target only in the NPC's viewing vision cone? [true/false]": false,
  "Vision Cone": 135.0,
  "Speed": 7.5,
  "Minimum time of appearance after death [sec.]": 3000.0,
  "Maximum time of appearance after death [sec.]": 4200.0,
  "Disable radio effects? [true/false]": true,
  "Remove a corpse after death? (it is recommended to use the true value to improve performance) [true/false]": true,
  "Wear items": [
    {
      "ShortName": "metal.facemask",
      "SkinID (0 - default)": 2502755786
    },
    {
      "ShortName": "burlap.shirt",
      "SkinID (0 - default)": 2505372020
    },
    {
      "ShortName": "burlap.gloves",
      "SkinID (0 - default)": 2502759753
    },
    {
      "ShortName": "burlap.trousers",
      "SkinID (0 - default)": 2507111851
    },
    {
      "ShortName": "shoes.boots",
      "SkinID (0 - default)": 2507113985
    }
  ],
  "Belt items": [
    {
      "ShortName": "shotgun.pump",
      "Amount": 1,
      "SkinID (0 - default)": 0,
      "Mods": [],
      "Ammo": "ammo.shotgun.fire"
    },
    {
      "ShortName": "syringe.medical",
      "Amount": 10,
      "SkinID (0 - default)": 0,
      "Mods": [],
      "Ammo": ""
    },
    {
      "ShortName": "grenade.molotov",
      "Amount": 10,
      "SkinID (0 - default)": 0,
      "Mods": [],
      "Ammo": ""
    }
  ],
  "Kit (it is recommended to use the previous 2 settings to improve performance)": "",
  "Marker settings": {
    "Do you use the Marker? [true/false]": true,
    "Radius": 0.2,
    "Transparency": 0.3,
    "Marker color": {
      "r": 0.81,
      "g": 0.25,
      "b": 0.15
    }
  },
  "The amount of economics that is given for killing the boss": {
    "Economics": 1000.0,
    "Server Rewards (minimum 1)": 0,
    "IQEconomic (minimum 1)": 0
  },
  "List of monument locations": [],
  "If the boss ends up below ocean sea level, should the boss return to it's place of appearance? [true/false]": false,
  "Type of navigation grid (0 - used mainly on the island, 1 - used mainly under water or under land, as well as outside the map, can be used on some monuments)": 0,
  "The distance at which you can apply damage to the boss (use 0 at any distance)": 100.0,
  "Notify in a chat about actions with the boss? [true/false]": true,
  "The path to the crate that appears at the place of death (empty - not used)": "",
  "Which loot table should the plugin use? (0 - default; 1 - own; 2 - AlphaLoot; 3 - CustomLoot; 4 - loot table of the Rust objects; 5 - combine the 1 and 4 methods)": 1,
  "Loot table from prefabs (if the loot table type is 4 or 5)": {
    "Minimum number of prefabs": 3,
    "Maximum number of prefabs": 3,
    "Use minimum and maximum values? [true/false]": false,
    "List of prefabs": [
      {
        "Chance probability [0.0-100.0]": 100.0,
        "The path to the prefab": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_heavy.prefab"
      },
      {
        "Chance probability [0.0-100.0]": 100.0,
        "The path to the prefab": "assets/bundled/prefabs/radtown/crate_elite.prefab"
      },
      {
        "Chance probability [0.0-100.0]": 100.0,
        "The path to the prefab": "assets/prefabs/npc/patrol helicopter/heli_crate.prefab"
      }
    ]
  },
  "Own loot table (if the loot table type is 1 or 5)": {
    "Minimum number of items": 2,
    "Maximum number of items": 15,
    "Use minimum and maximum values? [true/false]": true,
    "List of items": [
      {
        "ShortName": "fuse",
        "Minimum": 1,
        "Maximum": 2,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2319473211,
        "Name (empty - default)": "RTX 3070"
      },
      {
        "ShortName": "fuse",
        "Minimum": 1,
        "Maximum": 2,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2366175126,
        "Name (empty - default)": "RAM"
      },
      {
        "ShortName": "fuse",
        "Minimum": 1,
        "Maximum": 2,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2319472024,
        "Name (empty - default)": "RTX 3090"
      },
      {
        "ShortName": "fuse",
        "Minimum": 4,
        "Maximum": 8,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2319470516,
        "Name (empty - default)": "Cooler"
      },
      {
        "ShortName": "fuse",
        "Minimum": 1,
        "Maximum": 4,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2954418951,
        "Name (empty - default)": "CPU"
      },
      {
        "ShortName": "sticks",
        "Minimum": 1,
        "Maximum": 2,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2952482751,
        "Name (empty - default)": "Construction Hire"
      },
      {
        "ShortName": "sticks",
        "Minimum": 1,
        "Maximum": 2,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2952483586,
        "Name (empty - default)": "Large Investment"
      },
      {
        "ShortName": "sticks",
        "Minimum": 1,
        "Maximum": 2,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2952482320,
        "Name (empty - default)": "Building Blueprint"
      },
      {
        "ShortName": "sticks",
        "Minimum": 1,
        "Maximum": 3,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2952484007,
        "Name (empty - default)": "Small Investment"
      },
      {
        "ShortName": "xmas.present.medium",
        "Minimum": 1,
        "Maximum": 1,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2946308838,
        "Name (empty - default)": "PredatorMissile"
      },
      {
        "ShortName": "xmas.present.medium",
        "Minimum": 1,
        "Maximum": 1,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2968637342,
        "Name (empty - default)": "FireTools"
      },
      {
        "ShortName": "xmas.present.medium",
        "Minimum": 1,
        "Maximum": 1,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2960514976,
        "Name (empty - default)": "AC130"
      },
      {
        "ShortName": "xmas.present.medium",
        "Minimum": 1,
        "Maximum": 1,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2960517632,
        "Name (empty - default)": "MiniNuke"
      },
      {
        "ShortName": "xmas.present.medium",
        "Minimum": 1,
        "Maximum": 1,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2966576374,
        "Name (empty - default)": "Mass"
      },
      {
        "ShortName": "xmas.present.medium",
        "Minimum": 1,
        "Maximum": 1,
        "Chance probability [0.0-100.0]": 0.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 2832970382,
        "Name (empty - default)": "NukeStrike"
      },
      {
        "ShortName": "syringe.medical",
        "Minimum": 3,
        "Maximum": 10,
        "Chance probability [0.0-100.0]": 100.0,
        "Is this a blueprint? [true/false]": false,
        "SkinID (0 - default)": 0,
        "Name (empty - default)": ""
      }
    ]
  },
  "All actions that occur with the player within the NPC radius": {
    "Use only one ability at a time? [true/false]": true,
    "Radius (to disable all abilities, set the value to 0)": 50.0,
    "Spikes ability cooldown time (to disable the ability, set the value -1)": -1,
    "Applied damage to player from Spikes": 0.0,
    "FireBall ability cooldown time (to disable the ability, set the value -1)": 60,
    "Applied damage to player from FireBall": 10.0,
    "ElectricShock ability cooldown time (to disable the ability, set the value -1)": -1,
    "Applied damage to player from ElectricShock": 0.0,
    "Wounded ability cooldown time (to disable the ability, set the value -1)": -1,
    "Freeze ability cooldown time (to disable the ability, set the value -1)": -1,
    "Animal Ability Settings": {
      "Ability Cooldown Time (to disable the ability, set the value -1)": -1,
      "Type of animal (Wolf, Bear)": "",
      "Number of animals": 0,
      "Despawn time animals": 0.0
    },
    "NPC Ability Settings": {
      "Ability Cooldown Time (to disable the ability, set the value -1)": -1,
      "NPC Settings": null,
      "Number of NPCs": 0,
      "Despawn time NPCs": 0.0
    },
    "Radiation": 0.0,
    "Temperature": 0.0
  },
  "All actions that occur when applying NPC damage": {
    "Disable all abilities when applying damage? [true/false]": false,
    "Regeneration of health from the applied damage [%]": 0.0,
    "The amount of calories consumed": 0.0,
    "The amount of water consumed": 20.0,
    "The amount of added radiation": 0.0,
    "The amount of added bleeding": 0.0
  },
  "Use the invisibility ability? (use only for bosses with melee weapons) [true/false]": false,
  "Enable damage to the boss with melee weapons only? [true/false]": false
}

 

 

 

----------------------------

EDIT

--------------------------

Server Does not Crash but forces Disconnect

 

Stampy kicked: Packet Flooding: Player Tick
NullReferenceException: Object reference not set to an instance of an object
EAC network packet from invalid connection: 76561198334320942
EAC network packet from invalid connection: 76561198334320942
EAC network packet from invalid connection: 76561198334320942
EAC network packet from invalid connection: 76561198334320942
EAC network packet from invalid connection: 76561198334320942
EAC network packet from invalid connection: 76561198334320942
EAC network packet from invalid connection: 76561198334320942
EAC network packet from invalid connection: 76561198334320942
EAC network packet from invalid connection: 76561198334320942
EAC network packet from invalid connection: 76561198334320942
EAC network packet from invalid connection: 76561198334320942
EAC network packet from invalid connection: 76561198334320942
EAC network packet from invalid connection: 76561198334320942
EAC network packet from invalid connection: 76561198334320942 

Edited by Stampy
miss info
Jbird

Posted

Is there a reason that you are trying to use 0% chance on items @Stampy? This will always cause an issue when those items in the loot table are rolled.

Those should all have at least some probability, otherwise they should be removed from the loot table if you do not want them to drop. Perhaps you are attempting something else but there will still need to be at least some percentage there or you will encounter an error.

If you want to explain what you're trying to do perhaps I can suggest another method.

Stampy

Posted

No im saying im saying when the plugin loads it puts the chance to 0 

KpucTaJl

Posted

Hi, are you trying to give the boss the old configuration before the 2,0,0 update every time you load the plugin, rather than changing the values inside the file

KpucTaJl

Posted

Changed Status from Pending to Closed

Stampy

Posted

sorry been busy it was the recent download new install

Jbird

Posted

Thank you for letting us know @Stampy.

Just to confirm is it working well for you now or are you still having any issues?

Stampy

Posted

going to reinstall it and test it tonight when no ones online 🙂

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

103.4k

Files Sold

Total number of files sold.

2.1m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.