Jump to content

When attacking the AI, the game reports an error: "RPC Error in OnProjectileAttack," and then disconnects.

Pending 1.8.8

xingmouren
xingmouren

Posted

攻击 AI 时,游戏会报告错误:“OnProjectileAttack 中的 RPC 错误”,然后断开连接。

xingmouren

Posted

The administrator backend displays an error message in red font: "NullReferenceException: Object reference not set to an instance of an object."

Razor

Posted

I will look into this r you using any other npc plugins like better npc or anything?

Mike6FO

Posted (edited)

Seeing this too (The RPC error in OnProjectileAttack message).  Here is full error I'm seeing:

ArgumentException: An item with the same key has already been added. Key: 382
  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000dd] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at Oxide.Plugins.NpcRaiders+NpcRaider.CreateCorpse (BasePlayer+PlayerFlags flagsOnDeath, UnityEngine.Vector3 posOnDeath, UnityEngine.Quaternion rotOnDeath, System.Collections.Generic.List`1[T] triggersOnDeath, System.Boolean forceServerSide) [0x002c8] in <986556986be4472ead4af4ff56962a4f>:0 
  at BasePlayer.OnDied (HitInfo info) [0x002f7] in <f90c4b5933db4169a6173f882d3df598>:0 
  at BaseCombatEntity.Die (HitInfo info) [0x0008b] in <f90c4b5933db4169a6173f882d3df598>:0 
  at BasePlayer.Die (HitInfo info) [0x000ce] in <f90c4b5933db4169a6173f882d3df598>:0 
  at BaseCombatEntity.Hurt (HitInfo info) [0x002b8] in <f90c4b5933db4169a6173f882d3df598>:0 
  at BasePlayer.Hurt (HitInfo info) [0x0047f] in <f90c4b5933db4169a6173f882d3df598>:0 
  at Oxide.Plugins.NpcRaiders+NpcRaider.Hurt (HitInfo info) [0x000b8] in <986556986be4472ead4af4ff56962a4f>:0 
  at BaseCombatEntity.OnAttacked (HitInfo info) [0x00023] in <f90c4b5933db4169a6173f882d3df598>:0 
  at BasePlayer.OnAttacked (HitInfo info) [0x000e5] in <f90c4b5933db4169a6173f882d3df598>:0 
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.BasePlayer.OnProjectileAttack_Patch0(BasePlayer,BaseEntity/RPCMessage)
  at BasePlayer.OnRpcMessage (BasePlayer player, System.UInt32 rpc, Network.Message msg) [0x009b3] in <f90c4b5933db4169a6173f882d3df598>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
BasePlayer:OnRpcMessage(BasePlayer, UInt32, Message)
BaseEntity:SV_RPCMessage(UInt32, Message)
ServerMgr:OnRPCMessage(Message)
ServerMgr:OnNetworkMessage(Message)
Facepunch.Network.Raknet.Server:ProcessRead(NetRead)
MonoMod.Utils.DynamicMethodDefinition:Network.BaseNetwork.Cycle_Patch0(BaseNetwork)
MonoMod.Utils.DynamicMethodDefinition:ServerMgr.Update_Patch0(ServerMgr)

 

Also seeing this a lot.  Looks like the 2nd error reported above:

NullReferenceException: Object reference not set to an instance of an object.
  at Oxide.Plugins.NpcRaiders+NpcRaiderBrain+BaseLauncherState+<WeaponFireTest>d__12.MoveNext () [0x00136] in <986556986be4472ead4af4ff56962a4f>:0 

Edited by Mike6FO
xingmouren

Posted

Error message displayed in the administrator's cmd background: ArgumentException: An item with the same key has already been added. Key: 62. This Key '62' is sometimes an arbitrary number.

xingmouren

Posted

14 hours ago, Razor said:

I will look into this r you using any other npc plugins like better npc or anything?

No related mods are being used. My server currently only has basic plugins such as perms, no green, etc., making it virtually identical to a fresh server.

Razor

Posted (edited)

3 minutes ago, xingmouren said:

No related mods are being used. My server currently only has basic plugins such as perms, no green, etc., making it virtually identical to a fresh server.

I have been trying to reproduce this and have not been able to yet. can you send me your config also r you using any loot plugins? cause it seems the error is coming form CreateCorpse

Edited by Razor
xingmouren

Posted

How to send it to you? What does the configuration refer to? If it's NPCraider, then below:

{

"Random settings": {

"Chat command": "raidme",

"The Maxum amount of raid events that can go on at once": 6,

"Cooldown before you can call in another raid": 60,

"Cooldown after authorising on a tc be for you can start a raid": 60,

"The maxum amount of time a rocket will fly before exploding": 4.0,

"Limit the damage to players building": false,

"Npc spawn damage delay": 2.0,

"Log raidme buy chat command": false,

"Use GameTip messages": true,

"Use chat messages": true

},

"All Raid Types": {

"Raid types must be in lowercase": {

"easy": {

"The Permission": "npcraiders.easy",

"Total npcs per wave": 10,

"How many extra waves": 2,

"Seconds untell next wave": 120,

"Npc fires Mlrs at base": false,

"Mlrs waves and amounts": {

"1": 6

},

"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": [],

"Spawn health of the npc": 100.0,

"Rocket damage scale": 1.0,

"Player damage scale from npc": 1.0,

"Auto turret damage scale to npc": 1.0,

"External Tc Scan Range": 150.0,

"Explosive item shortnames": [

"explosive.timed",

"explosive.satchel"

],

"Names to give the npcs": [

"Cobalt Scientist"

],

"Spawn kits for the npcs": [],

"NPC aimConeScale default 2.0": 2.0

},

"medium": {

"The Permission": "npcraiders.medium",

"Total npcs per wave": 15,

"How many extra waves": 3,

"Seconds untell next wave": 120,

"Npc fires Mlrs at base": false,

"Mlrs waves and amounts": {

"1": 6

},

"Total event time in seconds": 900,

"Block event players from repairing": false,

"Npc drop loot on death": true,

"AlphaLoot profile names For Npc Loot": [],

"Npc drop loot config names": [],

"Spawn health of the npc": 200.0,

"Rocket damage scale": 1.0,

"Player damage scale from npc": 1.0,

"Auto turret damage scale to npc": 1.0,

"External Tc Scan Range": 150.0,

"Explosive item shortnames": [

"explosive.timed",

"explosive.satchel"

],

"Names to give the npcs": [

"Cobalt Scientist"

],

"Spawn kits for the npcs": [],

"NPC aimConeScale default 2.0": 2.0

},

"hard": {

"The Permission": "npcraiders.hard",

"Total npcs per wave": 20,

"How many extra waves": 4,

"Seconds untell next wave": 120,

"Npc fires Mlrs at base": false,

"Mlrs waves and amounts": {

"1": 6

},

"Total event time in seconds": 1200,

"Block event players from repairing": false,

"Npc drop loot on death": true,

"AlphaLoot profile names For Npc Loot": [],

"Npc drop loot config names": [],

"Spawn health of the npc": 400.0,

"Rocket damage scale": 1.0,

"Player damage scale from npc": 1.0,

"Auto turret damage scale to npc": 1.0,

"External Tc Scan Range": 150.0,

"Explosive item shortnames": [

"explosive.timed",

"explosive.satchel"

],

"Names to give the npcs": [

"Cobalt Scientist"

],

"Spawn kits for the npcs": [],

"NPC aimConeScale default 2.0": 2.0

},

"expert": {

"The Permission": "npcraiders.expert",

"Total npcs per wave": 30,

"How many extra waves": 4,

"Seconds untell next wave": 120,

"Npc fires Mlrs at base": false,

"Mlrs waves and amounts": {

"1": 6

},

"Total event time in seconds": 1500,

"Block event players from repairing": false,

"Npc drop loot on death": true,

"AlphaLoot profile names For Npc Loot": [],

"Npc drop loot config names": [],

"Spawn health of the npc": 400.0,

"Rocket damage scale": 1.0,

"Player damage scale from npc": 1.0,

"Auto turret damage scale to npc": 1.0,

"External Tc Scan Range": 150.0,

"Explosive item shortnames": [

"explosive.timed",

"explosive.satchel"

],

"Names to give the npcs": [

"Cobalt Scientist"

],

"Spawn kits for the npcs": [],

"NPC aimConeScale default 2.0": 2.0

},

"nightmare": {

"The Permission": "npcraiders.nightmare",

"Total npcs per wave": 30,

"How many extra waves": 5,

"Seconds untell next wave": 120,

"Npc fires Mlrs at base": false,

"Mlrs waves and amounts": {

"1": 6

},

"Total event time in seconds": 2100,

"Block event players from repairing": false,

"Npc drop loot on death": true,

"AlphaLoot profile names For Npc Loot": [],

"Npc drop loot config names": [],

"Spawn health of the npc": 400.0,

"Rocket damage scale": 1.0,

"Player damage scale from npc": 1.0,

"Auto turret damage scale to npc": 1.0,

"External Tc Scan Range": 150.0,

"Explosive item shortnames": [

"explosive.timed",

"explosive.satchel"

],

"Names to give the npcs": [

"Cobalt Scientist"

],

"Spawn kits for the npcs": [],

"NPC aimConeScale default 2.0": 2.0

}

}

},

"Raid Buy Options": {

"BuyOptions": {

"easy": {

"BuyType": "-932201673",

"BuyAmmount": 500

},

"medium": {

"BuyType": "-932201673",

"BuyAmmount": 1000

},

"hard": {

"BuyType": "-932201673",

"BuyAmmount": 1500

},

"expert": {

"BuyType": "-932201673",

"BuyAmmount": 1500

},

"nightmare": {

"BuyType": "-932201673",

"BuyAmmount": 1500

}

}

},

"Raid Reward Options": {

"RewardOptions": {

"easy": {

"enabled": false,

"rewardAll": false,

"RewardType": "-932201673",

"RewardAmmount": 500

},

"medium": {

"enabled": false,

"rewardAll": false,

"RewardType": "-932201673",

"RewardAmmount": 1000

},

"hard": {

"enabled": false,

"rewardAll": false,

"RewardType": "-932201673",

"RewardAmmount": 1500

},

"expert": {

"enabled": false,

"rewardAll": false,

"RewardType": "-932201673",

"RewardAmmount": 1500

},

"nightmare": {

"enabled": false,

"rewardAll": false,

"RewardType": "-932201673",

"RewardAmmount": 1500

}

}

},

"Raid Vip Options": {

"VipOptions": {}

},

"Block raid in colider": {

"Blocked": [

"iceberg",

"ice_berg",

"ice_sheet",

"icesheet",

"prevent moving",

"cliff"

]

},

"Version": {

"Major": 1,

"Minor": 8,

"Patch": 8

}

}

微信图片_2025-11-08_112030_584.png

xingmouren

Posted

If possible, you could even come and try it out on my server; I'll grant you administrator permissions. However, since I'm unsure of your country, you might need a gaming network accelerator to optimize the connection to China.

Mike6FO

Posted

I'll send my config via private as well.

Also. the NRE error is still scrolling in console after unloading plugin.  Restarting it now without plugin loaded to hopefully clear that up.

Razor

Posted

37 minutes ago, Mike6FO said:

I'll send my config via private as well.

Also. the NRE error is still scrolling in console after unloading plugin.  Restarting it now without plugin loaded to hopefully clear that up.

the nre ya seeing spaming whats the full error?

Mike6FO

Posted

NullReferenceException: Object reference not set to an instance of an object.
  at Oxide.Plugins.NpcRaiders+NpcRaiderBrain+BaseLauncherState+<WeaponFireTest>d__12.MoveNext () [0x00136] in <986556986be4472ead4af4ff56962a4f>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <935634f5cc14479dbaa30641d55600a9>:0 

2m

Downloads

Total number of downloads.

9.6k

Customers

Total customers served.

140.1k

Files Sold

Total number of files sold.

3m

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.