Jump to content

Npc Spawn 2.7.9

   (2 reviews)
Message added by KpucTaJl,

This plugin does not have its own functionality. This plugin is only used as an API for other plugins

1 Screenshot

Recommended Comments



Jbird

Posted

On 9/20/2023 at 7:26 PM, Hwang85 said:

Have now tried going back through all previous versions, still getting this error:

Error while compiling NpcSpawn: Unterminated raw string literal. | Line: 1665, Pos: 81

Anyone any idea?

Sorry for the delayed response. Had you sorted this out?

 

20 hours ago, Dead Nasty said:

getting this in console now: NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipCurrentWeapon (Item weapon) [0x00152] in <f67fc4a177784454a216946df9f75556>:0 [Procedural Map]                      185fps 139gc 4m6s
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) [0x0025c] in <f67fc4a177784454a216946df9f75556>:0
  at NPCPlayer.EquipTest () [0x00000] in <b0c04d68b54a43d3aa3170a9db9b6d6b>:0
  at InvokeHandlerBase`1[T].DoTick () [0x00109] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0

What is happening when that pops up? Could be from a lot but let's narrow down which NPCs are throwing the error and when and go from there. Any changes you've made recently that we can backtrack and check?

Dead Nasty

Posted

been the same config the entire time, just loaded into my  test server to spawn bots and getting this. doesnt affect anything that i can see, just says it every time it loads. 

Jbird

Posted

4 hours ago, Dead Nasty said:

been the same config the entire time, just loaded into my  test server to spawn bots and getting this. doesnt affect anything that i can see, just says it every time it loads. 

Correct but which bots are you spawning in? NpcSpawn is API for other plugins to use. It doesn't spawn bots without another plugin telling it where to spawn them and what their configuration is.

Dead Nasty

Posted

2 hours ago, Jbird said:

Correct but which bots are you spawning in? NpcSpawn is API for other plugins to use. It doesn't spawn bots without another plugin telling it where to spawn them and what their configuration is.

better npc bots, they allspawn fine just get that error. 

Jbird

Posted

On 10/25/2023 at 6:02 PM, Dead Nasty said:

better npc bots, they allspawn fine just get that error. 

It's only on the test server that this is happening? I'd go through checking to make sure everything is the same between the two. It's very easy to let plugins get out of date or to have other version mismatches on a test server if it's not used regularly, or even if it is. I'd start there then I'd look at config changes or backtracking any other recent changes.

BLAZ15

Posted (edited)

will be a fix for the error messages in the console when the NPCs are spawning?

NullReferenceException: Object reference not set to an instance of an object
NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipCurrentWeapon (Item weapon) [0x00152] in <ae57aafaf07c4848b3061146b4100b2f>:0 1/10] BLAZLand Test Server (Local) [Procedural Map]                                     199fps 181gc 1h52m47s
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) [0x0025c] in <ae57aafaf07c4848b3061146b4100b2f>:0
  at NPCPlayer.EquipTest () [0x00000] in <1eb6b258fe9043a497c2ba2a601c6e2c>:0
  at InvokeHandlerBase`1[T].DoTick () [0x00109] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0

NullReferenceException: Object reference not set to an instance of an object
NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipCurrentWeapon (Item weapon) [0x00152] in <ae57aafaf07c4848b3061146b4100b2f>:0 1/10] BLAZLand Test Server (Local) [Procedural Map]                                     199fps 181gc 1h52m47s
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) [0x0025c] in <ae57aafaf07c4848b3061146b4100b2f>:0
  at NPCPlayer.EquipTest () [0x00000] in <1eb6b258fe9043a497c2ba2a601c6e2c>:0
  at InvokeHandlerBase`1[T].DoTick () [0x00109] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0

NullReferenceException: Object reference not set to an instance of an object
NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipCurrentWeapon (Item weapon) [0x00152] in <ae57aafaf07c4848b3061146b4100b2f>:0 1/10] BLAZLand Test Server (Local) [Procedural Map]                                     199fps 181gc 1h52m47s
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) [0x0025c] in <ae57aafaf07c4848b3061146b4100b2f>:0
  at NPCPlayer.EquipTest () [0x00000] in <1eb6b258fe9043a497c2ba2a601c6e2c>:0
  at InvokeHandlerBase`1[T].DoTick () [0x00109] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0

NullReferenceException: Object reference not set to an instance of an object
NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipCurrentWeapon (Item weapon) [0x00152] in <ae57aafaf07c4848b3061146b4100b2f>:0 1/10] BLAZLand Test Server (Local) [Procedural Map]                                     199fps 181gc 1h52m47s
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) [0x0025c] in <ae57aafaf07c4848b3061146b4100b2f>:0
  at NPCPlayer.EquipTest () [0x00000] in <1eb6b258fe9043a497c2ba2a601c6e2c>:0
  at InvokeHandlerBase`1[T].DoTick () [0x00109] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0

NullReferenceException: Object reference not set to an instance of an object
NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipCurrentWeapon (Item weapon) [0x00152] in <ae57aafaf07c4848b3061146b4100b2f>:0 1/10] BLAZLand Test Server (Local) [Procedural Map]                                     199fps 181gc 1h52m47s
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) [0x0025c] in <ae57aafaf07c4848b3061146b4100b2f>:0
  at NPCPlayer.EquipTest () [0x00000] in <1eb6b258fe9043a497c2ba2a601c6e2c>:0
  at InvokeHandlerBase`1[T].DoTick () [0x00109] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0

NullReferenceException: Object reference not set to an instance of an object
NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipCurrentWeapon (Item weapon) [0x00152] in <ae57aafaf07c4848b3061146b4100b2f>:0 1/10] BLAZLand Test Server (Local) [Procedural Map]                                     199fps 181gc 1h52m47s
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) [0x0025c] in <ae57aafaf07c4848b3061146b4100b2f>:0
  at NPCPlayer.EquipTest () [0x00000] in <1eb6b258fe9043a497c2ba2a601c6e2c>:0
  at InvokeHandlerBase`1[T].DoTick () [0x00109] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0

NullReferenceException: Object reference not set to an instance of an object
NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipCurrentWeapon (Item weapon) [0x00152] in <ae57aafaf07c4848b3061146b4100b2f>:0 1/10] BLAZLand Test Server (Local) [Procedural Map]                                     199fps 181gc 1h52m47s
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) [0x0025c] in <ae57aafaf07c4848b3061146b4100b2f>:0
  at NPCPlayer.EquipTest () [0x00000] in <1eb6b258fe9043a497c2ba2a601c6e2c>:0
  at InvokeHandlerBase`1[T].DoTick () [0x00109] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0

NullReferenceException: Object reference not set to an instance of an object
NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipCurrentWeapon (Item weapon) [0x00152] in <ae57aafaf07c4848b3061146b4100b2f>:0 1/10] BLAZLand Test Server (Local) [Procedural Map]                                     199fps 181gc 1h52m47s
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) [0x0025c] in <ae57aafaf07c4848b3061146b4100b2f>:0
  at NPCPlayer.EquipTest () [0x00000] in <1eb6b258fe9043a497c2ba2a601c6e2c>:0
  at InvokeHandlerBase`1[T].DoTick () [0x00109] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <fa7483e0c5c0471b8c233f9a9121b6dc>:0

 

Edited by BLAZ15
Jbird

Posted

2 hours ago, BLAZ15 said:

will be a fix for the error messages in the console when the NPCs are spawning?

No other reports of those errors. Maybe a config or version error.

BLAZ15

Posted (edited)

11 minutes ago, Jbird said:

No other reports of those errors. Maybe a config or version error.

It seems that someone else reports about this error: 

 

Edited by BLAZ15
Jbird

Posted

7 minutes ago, BLAZ15 said:

It seems that someone else reports about this error:

That didn't show me anything specific. I meant recently. I do see what you are saying though near the end of October. I suppose what I mean to say is that if it were a problem with the plugin overall we would be getting a lot more reports.

If you are in the Mad Mapper Discord create a ticket, if not feel free to join. We can help to look into the error. We need as much details as possible the error only tells so much.

  • Like 1
Łukasz Brdak

Posted

I get this error:

 

11.12 16:13:02 [Server] INFO Failed to call hook 'OnEntityTakeDamage' on plugin 'NpcSpawn2 v2.5.6' (KeyNotFoundException: The given key '561115' was not present in the dictionary.)
11.12 16:13:02 [Server] INFO at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <2161c9885dd04ff291b79db9349c4b9b>:0
11.12 16:13:02 [Server] INFO at Oxide.Plugins.NpcSpawn2.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo info) [0x0004b] in <130ffdf1f50642088b655fca0ee6ec5f>:0
11.12 16:13:02 [Server] INFO at Oxide.Plugins.NpcSpawn2.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x005d1] in <130ffdf1f50642088b655fca0ee6ec5f>:0
11.12 16:13:02 [Server] INFO at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
11.12 16:13:02 [Server] INFO at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <18d4f19bbc844191b11ed9e69284d09b>:0
11.12 16:13:02 [Server] INFO at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <18d4f19bbc844191b11ed9e69284d09b>:0

Jbird

Posted

9 hours ago, Łukasz Brdak said:

I get this error:

11.12 16:13:02 [Server] INFO Failed to call hook 'OnEntityTakeDamage' on plugin 'NpcSpawn2 v2.5.6' (KeyNotFoundException: The given key '561115' was not present in the dictionary.)
11.12 16:13:02 [Server] INFO at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <2161c9885dd04ff291b79db9349c4b9b>:0
11.12 16:13:02 [Server] INFO at Oxide.Plugins.NpcSpawn2.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo info) [0x0004b] in <130ffdf1f50642088b655fca0ee6ec5f>:0
11.12 16:13:02 [Server] INFO at Oxide.Plugins.NpcSpawn2.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x005d1] in <130ffdf1f50642088b655fca0ee6ec5f>:0
11.12 16:13:02 [Server] INFO at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
11.12 16:13:02 [Server] INFO at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <18d4f19bbc844191b11ed9e69284d09b>:0
11.12 16:13:02 [Server] INFO at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <18d4f19bbc844191b11ed9e69284d09b>:0

Do you know at all what is happening around the time this error occurs? It may be a config option but only because I'm curious and not sure what the key is referencing there. If you can tell us what happens when the error occurs we might be able to more quickly find out what this is about.

It would also be worth reloading plugins like NpcSpawn and anything that is using it to see if they are loading properly.

Łukasz Brdak

Posted (edited)

1 hour ago, Jbird said:

Do you know at all what is happening around the time this error occurs? It may be a config option but only because I'm curious and not sure what the key is referencing there. If you can tell us what happens when the error occurs we might be able to more quickly find out what this is about.

The server was overloaded. I was getting a lot of errors. Too many plugins.

Edited by Łukasz Brdak
Jbird

Posted

52 minutes ago, Łukasz Brdak said:

The server was overloaded. I was getting a lot of errors. Too many plugins.

Have you fixed the issue? One plugin can start to cause problems with other plugins so that's quite possible.

Łukasz Brdak

Posted

On 12.12.2023 at 05:38, Jbird said:

Czy naprawiłeś problem? Jedna wtyczka może zacząć powodować problemy z innymi wtyczkami, więc jest to całkiem możliwe.

Yes, I fixed it. They changed my server to a more efficient one. The RaidableBases plugin also caused the problem

Jbird

Posted

3 hours ago, Łukasz Brdak said:

Yes, I fixed it. They changed my server to a more efficient one. The RaidableBases plugin also caused the problem

Understood. Glad to hear it's sorted and thank you for letting us know!

carlness

Posted

is this still the latest version? none of my air event or junkyard event npcs are moving or shooting

Jbird

Posted

On 12/23/2023 at 6:42 AM, carlness said:

is this still the latest version? none of my air event or junkyard event npcs are moving or shooting

Yes they are always kept current both here and on the Google drive.

When you reload either of those plugins do you see any error occur during the loading messages?

  • Like 1
carlness

Posted

5 hours ago, Jbird said:

Yes they are always kept current both here and on the Google drive.

When you reload either of those plugins do you see any error occur during the loading messages?

no, no errors

Jbird

Posted

On 12/24/2023 at 9:22 PM, carlness said:

no, no errors

Do you have Discord? Would you be interested in jumping into the Mad Mapper Discord and opening a ticket there? Can look into the files, grab video clips, and figure out what's causing this to happen in your case.

  • Like 1
Malkizid

Posted (edited)

Greetings,  is there a list of which weapon types and / or ammo types  the NPCs can't use ?

For example in Convoy if I equip an npc with a rocket launcher and give it fire rockets it wont attack.
Or the new weapon like the m4 shotgun (but that's fine, I assume its not added yet)

I'm finding the trial and error of equipping different weapons and / or ammo types quite tedious.
Fyi we mainly only use this for Convoy and some of Adem's plugins at the moment.

It would be great to know if its not too much to ask from a lovely free plugin api  🙂

Edited by Malkizid
Jbird

Posted

1 hour ago, Malkizid said:

Greetings,  is there a list of which weapon types and / or ammo types  the NPCs can't use ?

For example in Convoy if I equip an npc with a rocket launcher and give it fire rockets it wont attack.
Or the new weapon like the m4 shotgun (but that's fine, I assume its not added yet)

I'm finding the trial and error of equipping different weapons and / or ammo types quite tedious.
Fyi we mainly only use this for Convoy and some of Adem's plugins at the moment.

It would be great to know if its not too much to ask from a lovely free plugin api  🙂

There are very few, single digits, weapons that might not work. We will look into the new weapon soon. Otherwise there may be one bow type that I can think of that they cannot use.

As to rocket launchers NPCs will use these when the player is inside or behind defenses that they must raid to get to the player. They do not use them for normal attacks.

As to the ammo types I don't recall there being any that do not work.

  • Like 1
Malkizid

Posted (edited)

4 minutes ago, Jbird said:

There are very few, single digits, weapons that might not work. We will look into the new weapon soon. Otherwise there may be one bow type that I can think of that they cannot use.

As to rocket launchers NPCs will use these when the player is inside or behind defenses that they must raid to get to the player. They do not use them for normal attacks.

As to the ammo types I don't recall there being any that do not work.

Hi Jbird, thanks a lot for the hasty and clear reply!

That's great to know.
Okay I will have to experiment a little further and see if there is a restriction within Adem's Convoy plugin then.

Edited by Malkizid
Jbird

Posted

1 minute ago, Malkizid said:

Hi Jbird, thanks a lot for the hasty and clear reply!

That's great to know.
Okay I will have to experiment a little further and see if there is a restriction within Adem's Convoy plugin then.

Happy to help!

Adem's plugins and any other that use NpcSpawn, this is the plugin that gives them their functions and such, so it would likely not be an issue with another plugin. It's possible but unlikely. With that information though it should expedite your tests and give you a clearer idea of expectations.

Let us know if you run into other questions, feel free to drop them here, a support request, or better yet we are quite active in the Mad Mapper Discord as well and have a ticket system.

Have fun with it!

  • Like 1
Dead Nasty

Posted

Calling hook CanEntityTakeDamage resulted in a conflict between the following plugins: BradleyDrops - True (Boolean), NpcSpawn (False (Boolean))

Got this today, just a heads up. 

Jbird

Posted

11 hours ago, Dead Nasty said:
Calling hook CanEntityTakeDamage resulted in a conflict between the following plugins: BradleyDrops - True (Boolean), NpcSpawn (False (Boolean))

Got this today, just a heads up. 

Can you get any context like when that is coming up or what is happening?

Have you pointed this out to the BradleyDrops developer too? Haven't used it myself so don't know what all it does until I have a chance to look into it.

In any case more context like what entity is in question for example could be helpful.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 17
  • Love 10

User Feedback

1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101.5k

Files Sold

Total number of files sold.

2m

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.