Jump to content

NRE SPAM

Closed 1.8.3

Covfefe
Covfefe

Posted (edited)

I get nre spam the moment i /pnpc and spawn one

Quote

NullReferenceException: Object reference not set to an instance of an object

NullReferenceException: Object reference not set to an instance of an object

NullReferenceException: Object reference not set to an instance of an object

NullReferenceException: Object reference not set to an instance of an object

NullReferenceException: Object reference not set to an instance of an object

NullReferenceException: Object reference not set to an instance of an object

I also gave the bot the new shield and weapons. Could that be it?

Edited by Covfefe
walkinrey

Posted

can i see your config? i haven't tested it with new items

Covfefe

Posted

On 2/7/2025 at 9:38 AM, walkinrey said:

can i see your config? i haven't tested it with new items

Quote

{
  "Control setup": {
    "Which button will assign tasks to the bot, kill/get/collect, etc. (MIDDLE_MOUSE, SECOND_MOUSE, E, RELOAD, SPRINT)": "SECOND_MOUSE",
    "Use point gesture instead of button?": false,
    "Range of the task assignment button": 99.0,
    "Display 3D arrows over a target?": true,
    "Show 3D text if owner attacking his bot? (lang key is 'Bot_Notice_HitByOwner')": true,
    "Text display duration": 2,
    "Arrow display duration": 2,
    "Distance between owner and bot in follow state": 2.0,
    "Distance between owner and bot to recover": 3.0,
    "Distance between bot and collectable entity to pickup": 2.0,
    "Distance between bot and item to pickup": 2.0,
    "Distance between bot and loot container to loot": 2.0,
    "Distance between bot and tree/ore to gather": 3.0,
    "Distance between bot and seat to mount": 3.0,
    "Distance between bot and enemy": 3.0,
    "Maximum distance bot will remember target": 30.0,
    "Spawn personal bot on player connect?": true,
    "Block bot spawn in safezones": false,
    "Cooldown on PNPC commands": 0.5,
    "Block bot spawn in ZoneManager zones (enter zone id belove)": [],
    "Chat commands to execute on player connect (works only if you have enabled spawn personal bot on connect)": [
      "pnpc combat"
    ],
    "Chat commands to execute on /pnpc (on personal npc spawn)": [
      "pnpc combat"
    ]
  },
  "GUI customization": {
    "How many seconds to update the GUI?": 6.0,
    "Panel layer (Hud, Overlay, Overall, Hud.Menu, Under)": "Overlay",
    "Send commands to local chat? (required for hardcore mode, where global chat is disabled)": false,
    "Panel position adjustment": {
      "type": "RectTransform",
      "anchormin": "1 1",
      "anchormax": "1 1",
      "offsetmin": "-170 -104",
      "offsetmax": "-10 -10"
    },
    "1 panel color": "#7f8c8d",
    "2 panel color": "#bdc3c7",
    "Health bar color": "#2ecc71",
    "Remove UI material": false,
    "Show shortcut buttons when bot is spawned?": false,
    "Lock shortcut buttons?": false,
    "Hide (minimize) GUI on bot spawn?": false,
    "Shortcut buttons": [
      {
        "Text on button": "Auto-Farm Trees",
        "Executable chat commands": [
          "pnpc auto-farm wood",
          "pnpc auto-farm enable"
        ]
      },
      {
        "Text on button": "Auto-Farm Rocks",
        "Executable chat commands": [
          "pnpc auto-farm stone",
          "pnpc auto-farm enable"
        ]
      },
      {
        "Text on button": "Auto-Loot",
        "Executable chat commands": [
          "pnpc loot-all"
        ]
      },
      {
        "Text on button": "Open Inventory",
        "Executable chat commands": [
          "pnpc inventory"
        ]
      }
    ]
  },
  "Bot settings by permission": {
    "personalnpc.bot1": {
      "Bot spawn delay": 1.0,
      "The name of the bot to be selected through the command when spawning": "bot1",
      "Bot name": "%OWNER_NAME%'s Slave",
      "Bot appearance (0 - random)": 0,
      "Maximum health": 150.0,
      "Bot speed (slowest, slow, normal, fast)": "normal",
      "Enable infinite ammo for the bot?": true,
      "Disable item condition loss for weapons?": false,
      "Enable display of the bot on the map? (frankenstein icon)": true,
      "Drop active item on death?": false,
      "Can player open bot's inventory through '/pnpc inventory' command?": true,
      "Can other players loot bot's corpse?": false,
      "Lock bot's corpse main container?": false,
      "Lock bot's corpse belt container?": false,
      "Lock bot's corpse wear container?": false,
      "Teleport bot to owner when clicking follow?": true,
      "Teleport bot to destination if no path is found?": false,
      "Steam ID for chat icon (leave 0 if not needed)": "",
      "Start kit": [
        {
          "Item name": "",
          "Item shortname": "wooden.shield",
          "Item skin": 0,
          "Item amount": 1,
          "In which container to place? (belt, main, wear)": "wear"
        },
        {
          "Item name": "",
          "Item shortname": "salvaged.sword",
          "Item skin": 0,
          "Item amount": 1,
          "In which container to place? (belt, main, wear)": "wear"
        },
        {
          "Item name": "",
          "Item shortname": "",
          "Item skin": 0,
          "Item amount": 1,
          "In which container to place? (belt, main, wear)": "wear"
        },
        {
          "Item name": "",
          "Item shortname": "",
          "Item skin": 0,
          "Item amount": 1,
          "In which container to place? (belt, main, wear)": "wear"
        },
        {
          "Item name": "",
          "Item shortname": "",
          "Item skin": 0,
          "Item amount": 1,
          "In which container to place? (belt, main, wear)": "wear"
        },
        {
          "Item name": "",
          "Item shortname": "",
          "Item skin": 0,
          "Item amount": 1,
          "In which container to place? (belt, main, wear)": "wear"
        }
      ],
      "Functions setup": {
        "Can a bot loot crates?": true,
        "Can the bot mine trees and stones?": true,
        "Can the bot pick up resources? (wood, sulfur and metal ore, stones)": true,
        "Should the bot protect the owner?": true,
        "Should the bot defend itself?": true,
        "Can the bot travel by car/copter and other vehicles?": true,
        "Can the bot pick up dropped items?": true,
        "Recover the owner from a wounded state": {
          "Can the bot recover the owner if he is in a wounded state?": true,
          "Recover time": 6.0,
          "Can spawn personal bot while owner downed?": false
        },
        "Target Setup for Combat mode (/pnpc combat)": {
          "Can bot attack NPC in combat mode?": true,
          "Can bot attack players in combat mode?": false,
          "Whitelist of entity prefabs that's allowed to attack in combat mode": [],
          "Blacklist of entity prefabs that's not allowed to attack in combat mode": []
        },
        "PVP Mode (/pnpc pvp)": {
          "Enable PVP mode (attack all bots and players in radius, /pnpc pvp)": false,
          "Detect radius": 10.0,
          "Ignore bots?": false,
          "Ignore personal npc bots?": true,
          "Ignore players?": true,
          "Ignore by short prefab name": []
        },
        "Loot All (/pnpc loot-all)": {
          "Enable Loot All command (/pnpc loot-all)": true,
          "Resources detect radius": 15.0,
          "Loot containers?": true,
          "Loot corpses?": true,
          "Loot dropped items?": true
        },
        "Self Heal": {
          "Should bot heal himself?": false,
          "Bot will heal himself when his health is below this value": 20.0,
          "Items to heal (you can set list by priority)": [
            "largemedkit",
            "syringe.medical",
            "bandage"
          ]
        },
        "Can the bot attack other people's buildings?": true,
        "Can a bot attack its owner's buildings?": false,
        "Can the bot collect resources within a radius of 50 meters? (/pnpc auto-pickup)": true,
        "Can the bot farm resources within a radius of 50 meters? (/pnpc auto-farm)": true,
        "Enable bot's inventory?": true,
        "Lock bot's wear slots?": false,
        "Lock bot's main slots?": false,
        "Lock bot's equipment slots?": false,
        "Can the bot fly on helicopters? (PNPC Heli AI Addon plugin)": true,
        "Can the bot drive cars? (PNPC Addon Car AI plugin)": false,
        "Can the bot drive boats? (PNPC Addon Boat AI plugin)": false,
        "Can bot collect DeployableNature entities manually?": true,
        "Can bot gather DeployableNature entities manually?": true,
        "Can bot collect DeployableNature entities in auto-pickup mode?": true,
        "Can bot gather DeployableNature entities in auto-farm mode?": true
      },
      "Gather setup": {
        "Shortname of items that can harvest trees": [
          "hatchet",
          "chainsaw",
          "hammer.salvaged",
          "stonehatchet",
          "axe.salvaged"
        ],
        "Shortname of items that can mine stones and ore": [
          "pickaxe",
          "stone.pickaxe",
          "hammer.salvaged",
          "jackhammer",
          "icepick.salvaged"
        ],
        "Setting up mining rates": {
          "stones": 2.0,
          "wood": 5.0
        },
        "Radius to collect/gather resources in auto-mode": 50.0,
        "Chainsaw fuel consumption rate": 1.0,
        "Gather resources to owner's inventory?": false
      },
      "Damage and interactions setup": {
        "Bot damage rate": 2.0,
        "Bot recive damage rate": 0.5,
        "Can players damage the bot?": false,
        "Can the bot damage players?": false,
        "Can bot damage other personal npc bots?": false,
        "Enable no damage to bot's clothes & armor?": false,
        "Can turrets target and kill a bot? (all turrets will not be able to damage the bot)": true,
        "Can BradleyAPC target bot?": true,
        "Prevent bot owner turrets from aiming and killing the bot? (bot owner's turrets will not be able to damage the bot)": true,
        "Cooldown before switching to another target (useful when bot is being attacked from multiple enemies)": 3.0,
        "Disable drowning damage? (will disable for all Frankensteins on the server too)": true,
        "Disable damage to other players buildings?": true,
        "Disable damage to owner buildings?": true,
        "Target visibility settings": {
          "Visibility distance": "Infinity",
          "Bot center point offset": {
            "x": 0.0,
            "y": 0.0,
            "z": 0.0
          },
          "Target center point offset": {
            "x": 0.0,
            "y": 0.0,
            "z": 0.0
          },
          "Obstacle layers": [
            "Default",
            "Deployed",
            "Construction",
            "World",
            "Tree",
            "Terrain",
            "Clutter",
            "Debris",
            "Tree"
          ]
        },
        "Attack aim offset": {
          "x": 0.0,
          "y": -0.5,
          "z": -0.3
        },
        "Aim offset when player is wounded": {
          "x": 0.0,
          "y": 1.0,
          "z": 0.0
        },
        "When attacked ignore all targets except players & NPCs?": true,
        "Blacklist of objects that the bot will ignore when owner selecting a target (short prefab name)": [
          "barricade.sandbags"
        ],
        "BossMonster names to prevent targeting them (if you've BossMonster plugin)": []
      },
      "Death Marker (marker will be only visible for owner)": {
        "Show marker on bot's death position?": true,
        "Display name on map": "SLAVE DIED HERE",
        "Marker radius": 0.35,
        "Outline color (hex)": "00FFFFFF",
        "Main color (hex)": "00FFFF",
        "Alpha": 0.5,
        "Duration": 99
      },
      "Black list of items that cannot be put into the inventory of the bot": [
        "rocket.launcher"
      ],
      "List of prefabs that the bot will ignore if they attack it": [
        "assets/prefabs/deployable/bear trap/beartrap.prefab"
      ]
    }
  },
  "Bot install by item": [
    {
      "Item name": "PersonalNPC",
      "Item shortname": "furnace",
      "Item skin": 2741314889,
      "Return item back if player have despawned the PersonalNPC via command or GUI?": false,
      "Bot info": {
        "Bot spawn delay": 300.0,
        "The name of the bot to be selected through the command when spawning": "bot1",
        "Bot name": "Personal bot of player %OWNER_NAME%",
        "Bot appearance (0 - random)": 0,
        "Maximum health": 150.0,
        "Bot speed (slowest, slow, normal, fast)": "normal",
        "Enable infinite ammo for the bot?": true,
        "Disable item condition loss for weapons?": false,
        "Enable display of the bot on the map? (frankenstein icon)": true,
        "Drop active item on death?": false,
        "Can player open bot's inventory through '/pnpc inventory' command?": false,
        "Can other players loot bot's corpse?": false,
        "Lock bot's corpse main container?": false,
        "Lock bot's corpse belt container?": false,
        "Lock bot's corpse wear container?": false,
        "Teleport bot to owner when clicking follow?": true,
        "Teleport bot to destination if no path is found?": false,
        "Steam ID for chat icon (leave 0 if not needed)": "",
        "Start kit": [
          {
            "Item name": "",
            "Item shortname": "shoes.boots",
            "Item skin": 0,
            "Item amount": 1,
            "In which container to place? (belt, main, wear)": "wear"
          },
          {
            "Item name": "",
            "Item shortname": "pants",
            "Item skin": 0,
            "Item amount": 1,
            "In which container to place? (belt, main, wear)": "wear"
          },
          {
            "Item name": "",
            "Item shortname": "hoodie",
            "Item skin": 0,
            "Item amount": 1,
            "In which container to place? (belt, main, wear)": "wear"
          },
          {
            "Item name": "",
            "Item shortname": "mask.bandana",
            "Item skin": 0,
            "Item amount": 1,
            "In which container to place? (belt, main, wear)": "wear"
          },
          {
            "Item name": "",
            "Item shortname": "hat.boonie",
            "Item skin": 0,
            "Item amount": 1,
            "In which container to place? (belt, main, wear)": "wear"
          },
          {
            "Item name": "",
            "Item shortname": "sunglasses",
            "Item skin": 0,
            "Item amount": 1,
            "In which container to place? (belt, main, wear)": "wear"
          }
        ],
        "Functions setup": {
          "Can a bot loot crates?": true,
          "Can the bot mine trees and stones?": true,
          "Can the bot pick up resources? (wood, sulfur and metal ore, stones)": true,
          "Should the bot protect the owner?": true,
          "Should the bot defend itself?": true,
          "Can the bot travel by car/copter and other vehicles?": true,
          "Can the bot pick up dropped items?": true,
          "Recover the owner from a wounded state": {
            "Can the bot recover the owner if he is in a wounded state?": true,
            "Recover time": 6.0,
            "Can spawn personal bot while owner downed?": false
          },
          "Target Setup for Combat mode (/pnpc combat)": {
            "Can bot attack NPC in combat mode?": true,
            "Can bot attack players in combat mode?": true,
            "Whitelist of entity prefabs that's allowed to attack in combat mode": [],
            "Blacklist of entity prefabs that's not allowed to attack in combat mode": []
          },
          "PVP Mode (/pnpc pvp)": {
            "Enable PVP mode (attack all bots and players in radius, /pnpc pvp)": false,
            "Detect radius": 10.0,
            "Ignore bots?": false,
            "Ignore personal npc bots?": true,
            "Ignore players?": true,
            "Ignore by short prefab name": []
          },
          "Loot All (/pnpc loot-all)": {
            "Enable Loot All command (/pnpc loot-all)": false,
            "Resources detect radius": 15.0,
            "Loot containers?": true,
            "Loot corpses?": true,
            "Loot dropped items?": true
          },
          "Self Heal": {
            "Should bot heal himself?": false,
            "Bot will heal himself when his health is below this value": 20.0,
            "Items to heal (you can set list by priority)": []
          },
          "Can the bot attack other people's buildings?": true,
          "Can a bot attack its owner's buildings?": false,
          "Can the bot collect resources within a radius of 50 meters? (/pnpc auto-pickup)": true,
          "Can the bot farm resources within a radius of 50 meters? (/pnpc auto-farm)": true,
          "Enable bot's inventory?": true,
          "Lock bot's wear slots?": false,
          "Lock bot's main slots?": false,
          "Lock bot's equipment slots?": false,
          "Can the bot fly on helicopters? (PNPC Heli AI Addon plugin)": false,
          "Can the bot drive cars? (PNPC Addon Car AI plugin)": false,
          "Can the bot drive boats? (PNPC Addon Boat AI plugin)": false,
          "Can bot collect DeployableNature entities manually?": true,
          "Can bot gather DeployableNature entities manually?": true,
          "Can bot collect DeployableNature entities in auto-pickup mode?": true,
          "Can bot gather DeployableNature entities in auto-farm mode?": true
        },
        "Gather setup": {
          "Shortname of items that can harvest trees": [
            "hatchet",
            "chainsaw",
            "hammer.salvaged",
            "stonehatchet",
            "axe.salvaged"
          ],
          "Shortname of items that can mine stones and ore": [
            "pickaxe",
            "stone.pickaxe",
            "hammer.salvaged",
            "jackhammer",
            "icepick.salvaged"
          ],
          "Setting up mining rates": {
            "stones": 2.0,
            "wood": 5.0
          },
          "Radius to collect/gather resources in auto-mode": 50.0,
          "Chainsaw fuel consumption rate": 1.0,
          "Gather resources to owner's inventory?": false
        },
        "Damage and interactions setup": {
          "Bot damage rate": 2.0,
          "Bot recive damage rate": 0.5,
          "Can players damage the bot?": true,
          "Can the bot damage players?": true,
          "Can bot damage other personal npc bots?": false,
          "Enable no damage to bot's clothes & armor?": false,
          "Can turrets target and kill a bot? (all turrets will not be able to damage the bot)": false,
          "Can BradleyAPC target bot?": true,
          "Prevent bot owner turrets from aiming and killing the bot? (bot owner's turrets will not be able to damage the bot)": true,
          "Cooldown before switching to another target (useful when bot is being attacked from multiple enemies)": 3.0,
          "Disable drowning damage? (will disable for all Frankensteins on the server too)": false,
          "Disable damage to other players buildings?": false,
          "Disable damage to owner buildings?": false,
          "Target visibility settings": {
            "Visibility distance": "Infinity",
            "Bot center point offset": {
              "x": 0.0,
              "y": 0.0,
              "z": 0.0
            },
            "Target center point offset": {
              "x": 0.0,
              "y": 0.0,
              "z": 0.0
            },
            "Obstacle layers": [
              "Default",
              "Deployed",
              "Construction",
              "World",
              "Tree",
              "Terrain",
              "Clutter",
              "Debris",
              "Tree"
            ]
          },
          "Attack aim offset": {
            "x": 0.0,
            "y": -0.5,
            "z": -0.3
          },
          "Aim offset when player is wounded": {
            "x": 0.0,
            "y": 1.0,
            "z": 0.0
          },
          "When attacked ignore all targets except players & NPCs?": false,
          "Blacklist of objects that the bot will ignore when owner selecting a target (short prefab name)": [
            "barricade.sandbags"
          ],
          "BossMonster names to prevent targeting them (if you've BossMonster plugin)": []
        },
        "Death Marker (marker will be only visible for owner)": {
          "Show marker on bot's death position?": false,
          "Display name on map": "Bot's death marker",
          "Marker radius": 0.35,
          "Outline color (hex)": "00FFFFFF",
          "Main color (hex)": "00FFFF",
          "Alpha": 0.5,
          "Duration": 20
        },
        "Black list of items that cannot be put into the inventory of the bot": [
          "rocket.launcher"
        ],
        "List of prefabs that the bot will ignore if they attack it": [
          "assets/prefabs/deployable/bear trap/beartrap.prefab"
        ]
      }
    }
  ],
  "How many seconds will the bot update the information? (affects the performance and operation of the bot)": 0.01,
  "Spawn a backpack with his items when a bot dies? (otherwise his corpse will spawn)": false,
  "Disable bot's backpack/corpse despawn?": false,
  "Despawn bot’s items when owner disconnects?": false,
  "Enable ExtraSeating plugin support?": false,
  "Clear console of 'ownerPlayer is not player' spam?": true,
  "List of prefabs that the bot can loot (useful if the bot attacks loot instead of looting it)": [
    "vehicle_parts"
  ]
}

 

walkinrey

Posted

Hi, it's because you have empty item shortnames and you're putting weapons into wear container. Also, new clothes from Primitive update are supported by PersonalNPC
 

        {
          "Item name": "",
          "Item shortname": "salvaged.sword",
          "Item skin": 0,
          "Item amount": 1,
          "In which container to place? (belt, main, wear)": "wear" // sword in wear container ?
        },
        {
          "Item name": "",
          "Item shortname": "", // shouldn't be empty here
          "Item skin": 0,
          "Item amount": 1,
          "In which container to place? (belt, main, wear)": "wear"
        },

Screenshot2025-04-04at00_11_26.png.23a1c10cff608307c84c78ac688779e0.png

1.7m

Downloads

Total number of downloads.

7.9k

Customers

Total customers served.

119.5k

Files Sold

Total number of files sold.

2.4m

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.