Jump to content

Killing an npc disconnects

Pending 1.9.7

ahabulous
ahabulous

Posted

Tested out the plugin solo with a simple base, worked great. then did it as part of a trio, and each time any of us killed an NPC, we were disconnected from the game with a message like "npc projectile error" or something like that, couldn't screencap it fast enough. This only happened on player kills, bots dying from turrets or mines didn't cause issues.

ahabulous

Posted

occurs to me the error might be caused by something disallowed in the loot profile, pasted below. maybe not allowed to drop HV ammo or rockets? or the special armor?

 

{
  "MaxItems": 500
  "MinItems": 6,
  "items": [
    {
      "item": "ammo.rifle.hv",
      "skin": 0,
      "name": null,
      "amountMax": 128,
      "amountMin": 1,
      "location": "containerMain"
    },
    {
      "item": "ammo.rifle.hv",
      "skin": 0,
      "name": null,
      "amountMax": 128,
      "amountMin": 1,
      "location": "containerMain"
    },
    {
      "item": "ammo.rocket.hv",
      "skin": 0,
      "name": null,
      "amountMax": 3,
      "amountMin": 1,
      "location": "containerMain"
    },
    {
      "item": "bandage",
      "skin": 0,
      "name": null,
      "amountMax": 3,
      "amountMin": 1,
      "location": "containerBelt"
    },
    {
      "item": "syringe.medical",
      "skin": 0,
      "name": null,
      "amountMax": 2,
      "amountMin": 1,
      "location": "containerBelt"
    },
    {
      "item": "rifle.ak",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerBelt"
    },
    {
      "item": "hoodie",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "pants",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "tactical.gloves",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "ballistic.helmet",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "ballistic.legarmor",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "largebackpack",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "ballistic.vest",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "shoes.boots",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    }
  ]
}

Razor

Posted

10 hours ago, ahabulous said:

occurs to me the error might be caused by something disallowed in the loot profile, pasted below. maybe not allowed to drop HV ammo or rockets? or the special armor?

 

{
  "MaxItems": 500
  "MinItems": 6,
  "items": [
    {
      "item": "ammo.rifle.hv",
      "skin": 0,
      "name": null,
      "amountMax": 128,
      "amountMin": 1,
      "location": "containerMain"
    },
    {
      "item": "ammo.rifle.hv",
      "skin": 0,
      "name": null,
      "amountMax": 128,
      "amountMin": 1,
      "location": "containerMain"
    },
    {
      "item": "ammo.rocket.hv",
      "skin": 0,
      "name": null,
      "amountMax": 3,
      "amountMin": 1,
      "location": "containerMain"
    },
    {
      "item": "bandage",
      "skin": 0,
      "name": null,
      "amountMax": 3,
      "amountMin": 1,
      "location": "containerBelt"
    },
    {
      "item": "syringe.medical",
      "skin": 0,
      "name": null,
      "amountMax": 2,
      "amountMin": 1,
      "location": "containerBelt"
    },
    {
      "item": "rifle.ak",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerBelt"
    },
    {
      "item": "hoodie",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "pants",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "tactical.gloves",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "ballistic.helmet",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "ballistic.legarmor",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "largebackpack",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "ballistic.vest",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    },
    {
      "item": "shoes.boots",
      "skin": 0,
      "name": null,
      "amountMax": 1,
      "amountMin": 1,
      "location": "containerWear"
    }
  ]
}

Does it only do it if you set loot on them? 

ahabulous

Posted

7 hours ago, Razor said:

Does it only do it if you set loot on them? 

Yes that's correct, I did some more testing to confirm. When no loot profile is set, raiders die with no issue and drop the standard loot. I used the plugin "/raidme loot" command to create the loot profile "loot1" (what I included in the thread above), which is present in the directory. When that loot profile is active, killing a raider disconnects from the game and gives the error "RPC Error in OnProjectileAttack". Reconnecting shows the raid still in progress, but killing any raider disconnects with same result. If you win the raid, raider bodies have no loot (either from the profile or from standard loot).

fyi below in the config is how I entered the loot profile name - let me know if I did that incorrectly. Thanks for your time, really appreciate it -very much enjoying the plugin otherwise.

      },
        "Total event time in seconds": 640,
        "Block event players from repairing": false,
        "Npc drop loot on death": true,
        "AlphaLoot profile names For Npc Loot": [],
        "Npc drop loot config names": [
          "loot1"
        ],

 

 

 

 

 

Razor

Posted (edited)

1 hour ago, ahabulous said:

Yes that's correct, I did some more testing to confirm. When no loot profile is set, raiders die with no issue and drop the standard loot. I used the plugin "/raidme loot" command to create the loot profile "loot1" (what I included in the thread above), which is present in the directory. When that loot profile is active, killing a raider disconnects from the game and gives the error "RPC Error in OnProjectileAttack". Reconnecting shows the raid still in progress, but killing any raider disconnects with same result. If you win the raid, raider bodies have no loot (either from the profile or from standard loot).

fyi below in the config is how I entered the loot profile name - let me know if I did that incorrectly. Thanks for your time, really appreciate it -very much enjoying the plugin otherwise.

      },
        "Total event time in seconds": 640,
        "Block event players from repairing": false,
        "Npc drop loot on death": true,
        "AlphaLoot profile names For Npc Loot": [],
        "Npc drop loot config names": [
          "loot1"
        ],

 

Will look into this.

Edited by Razor
  • Like 1

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.8m
Total downloads
Customers
11.7k
Customers served
Files Sold
167k
Total sales
Payments
3.6m
Processed total
×
×
  • 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.