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

16 hours ago, EvilDips said:

Is the recent update safe to use now or wait for wipe?

Safe to use, have fun with it!

wolvern9

Posted

I have the update and Harbor is updated but here are logs

Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.7.8' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <4a051544aacd484fb3e2a36fd23fa4a7>:0

at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <4a051544aacd484fb3e2a36fd23fa4a7>:0

at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <4a051544aacd484fb3e2a36fd23fa4a7>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <206a0f2c6ee141f38e2ad549cde44d70>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

[Halloween] Failed to spawn npc - scientist is null

 

this is just a small portion-a section so what is wrong?

Jbird

Posted

56 minutes ago, wolvern9 said:

I have the update and Harbor is updated but here are logs

If you are having issues after updating Harbor, check old update notes you may have missed. Most likely you just need a fresh config. Make a backup of the current one if that is something you think you need.

 

1 hour ago, wolvern9 said:

[Halloween] Failed to spawn npc - scientist is null

Look at the last part of the error. This is from another plugin using NpcSpawn. You will need to reach out to that developer.

Moroxeko

Posted (edited)

Getting this error:

(16:53:20) | Error while compiling NpcSpawn: The type or namespace name 'SimpleAIMemory' could not be found (are you missing a using directive or an assembly reference?) | Line: 433, Pos: 26

Edited by Moroxeko
EvilDips

Posted

1 hour ago, Moroxeko said:

Getting this error:

(16:53:20) | Error while compiling NpcSpawn: The type or namespace name 'SimpleAIMemory' could not be found (are you missing a using directive or an assembly reference?) | Line: 433, Pos: 26

Pretty sure it says not to update before the game updates

  • Like 1
Žéŧ

Posted (edited)

🤔

Edited by Žéŧ
Žéŧ

Posted (edited)

true, it's for today's wipe...

Edited by Žéŧ
Jbird

Posted

3 hours ago, Moroxeko said:

Getting this error:

(16:53:20) | Error while compiling NpcSpawn: The type or namespace name 'SimpleAIMemory' could not be found (are you missing a using directive or an assembly reference?) | Line: 433, Pos: 26

Yep as was already stated the update notes state that it is not to be updated until the force wipe update came out.

Let me know if you have any issues, after you've updated your server.

GoodMen

Posted

Error while compiling NpcSpawn: No data contained in .cs file

Jbird

Posted

29 minutes ago, GoodMen said:

Error while compiling NpcSpawn: No data contained in .cs file

Um whut. That's new.

Does the CS file look weird? Try a fresh install?

will007

Posted

Hello, please I have this error after installing the latest version of the plugin, could you give me a tip for best functioning?

Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.7.9' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <5e1fc1ec2e8a4a85be553495117805dc>:0 at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <5e1fc1ec2e8a4a85be553495117805dc>:0 at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <5e1fc1ec2e8a4a85be553495117805dc>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <206a0f2c6ee141f38e2ad549cde44d70>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.7.9' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <5e1fc1ec2e8a4a85be553495117805dc>:0

Jbird

Posted

10 hours ago, will007 said:

Hello, please I have this error after installing the latest version of the plugin, could you give me a tip for best functioning?

Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.7.9' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <5e1fc1ec2e8a4a85be553495117805dc>:0 at Oxide.Plugins.NpcSpawn.SpawnNpc (UnityEngine.Vector3 position, Newtonsoft.Json.Linq.JObject configJson) [0x00008] in <5e1fc1ec2e8a4a85be553495117805dc>:0 at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <5e1fc1ec2e8a4a85be553495117805dc>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <206a0f2c6ee141f38e2ad549cde44d70>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

Failed to call hook 'SpawnNpc' on plugin 'NpcSpawn v2.7.9' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.NpcSpawn.CreateCustomNpc (UnityEngine.Vector3 position, Oxide.Plugins.NpcSpawn+NpcConfig config) [0x0001c] in <5e1fc1ec2e8a4a85be553495117805dc>:0

At what point are you getting the error? You updated the server correct? Does the plugin load properly?

will007

Posted

1 hour ago, Jbird said:

Em que ponto você está recebendo o erro? Você atualizou o servidor corretamente? O plugin carrega corretamente?

Hello, I'm having problems generating NPCs in all events that require NPCs. I've already done all the updates and the error persists.

Oldbtchsgaming

Posted

20 hours ago, will007 said:

Hello, I'm having problems generating NPCs in all events that require NPCs. I've already done all the updates and the error persists.

same  here NPC wont load

 

Oldbtchsgaming

Posted

5 hours ago, Oldbtchsgaming said:

same  here NPC wont load

 

Now NPCspwn loads just have errors and no NC at some events.I have already reached out to those developers but the errors are for NPCspawns

Jbird

Posted

On 11/8/2024 at 5:41 PM, will007 said:

Hello, I'm having problems generating NPCs in all events that require NPCs. I've already done all the updates and the error persists.

Which plugin(s) are you having problems with?

Jbird

Posted

5 hours ago, Oldbtchsgaming said:

same  here NPC wont load

NpcSpawn?

37 minutes ago, Oldbtchsgaming said:

Now NPCspwn loads just have errors and no NC at some events.I have already reached out to those developers but the errors are for NPCspawns

What was the reason it was not loading before?

Which plugin(s) are you having problems with?

will007

Posted

3 minutes ago, Jbird said:

Com qual(is) plugin(s) você está tendo problemas?

the problem is with all the plugins that need to use npc, for example gasstation, supermarket, trainyard, boss among others

Jbird

Posted

1 minute ago, will007 said:

the problem is with all the plugins that need to use npc, for example gasstation, supermarket, trainyard, boss among others

I am asking for a list of all plugins you are having problems with.

It may be best if you can join the Mad Mapper Discord and create a ticket there. You can tag me there.

Corpster

Posted

I also have a second problem which I'm having trouble getting to the bottom of. Below are the logs I'm seeing. Essentially once it gets to the "NullReferenceException", then it goes into an endless loop of these errors and dramatically affects the performance of the server. Once its in its endless loop, it doesn't matter if I unload all the plugins, it just won't stop until I restart the server. I'm running carbon.

 

Destroying components immediately is not permitted during physics trigger/contact, animation event callbacks, rendering callbacks or OnValidate. You must use Destroy instead.
Destroying components immediately is not permitted during physics trigger/contact, animation event callbacks, rendering callbacks or OnValidate. You must use Destroy instead.
Double init of main container!
Double init of belt container!
Double init of wear container!

NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.NpcSpawn+CustomScientistBrain.AddStates () [0x0002a] in C:\Servers\MRS\carbon\plugins\NpcSpawn.cs:1689 
  at BaseAIBrain.Start () [0x00000] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 

(Filename: C:/Servers/MRS/carbon/plugins/NpcSpawn.cs Line: 1689)

<color=#aff>[knife_bone.entity[363591649]] SwitchParent Missed scientist_corpse[363592739]</color>
<color=#aff>[grenade.beancan.entity[363591651]] SwitchParent Missed scientist_corpse[363592739]</color>
Zombie A[5931774] was killed by {omitted} at (295.25, 48.95, 334.22)
Trying to retire an entity without killing it first: assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_heavy.prefab

NullReferenceException
  at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component)
  at BaseEntity.WorldSpaceBounds () [0x00000] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 
  at BasePlayer.WorldSpaceBounds () [0x0006e] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 
  at BaseEntity.CenterPoint () [0x00000] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 
  at BaseEntity.IsVisible (UnityEngine.Vector3 position, System.Single maxDistance) [0x00000] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.HBHFSensor.UpdatePassthroughAmount_Patch0(HBHFSensor)
  at InvokeHandlerBase`1[T].DoTick () [0x00138] in <8e627b78b6e54efa8823e1b0fa070ae3>:0 
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <8e627b78b6e54efa8823e1b0fa070ae3>:0 

 

Jbird

Posted

1 hour ago, Corpster said:

Hey guys, I'm getting a heap of these messages.
 

 Hook conflict while calling 'CanEntityTakeDamage[908746716]': CargoTrainEvent 1.0.18 [True] and NpcSpawn 2.7.9 [False]

The dev of cargotrainevent suggested to reach out npcspawn and referenced https://umod.org/community/rust/49389-hook-conflict-between-two-plugins

hoping someone can help?

This is a link to an old uMod help ticket for Rust it seems I can't even tell what the plugin it was posted on otherwise. But I think wrong link essentially sorry.

Are you able to provide details for what kind of damage is taking place? Need to understand the entity being damage and what's going on in this instance and we can address it.

Jbird

Posted

1 hour ago, Corpster said:

I also have a second problem which I'm having trouble getting to the bottom of. Below are the logs I'm seeing. Essentially once it gets to the "NullReferenceException", then it goes into an endless loop of these errors and dramatically affects the performance of the server. Once its in its endless loop, it doesn't matter if I unload all the plugins, it just won't stop until I restart the server. I'm running carbon.

Destroying components immediately is not permitted during physics trigger/contact, animation event callbacks, rendering callbacks or OnValidate. You must use Destroy instead.
Destroying components immediately is not permitted during physics trigger/contact, animation event callbacks, rendering callbacks or OnValidate. You must use Destroy instead.
Double init of main container!
Double init of belt container!
Double init of wear container!

NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.NpcSpawn+CustomScientistBrain.AddStates () [0x0002a] in C:\Servers\MRS\carbon\plugins\NpcSpawn.cs:1689 
  at BaseAIBrain.Start () [0x00000] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 

(Filename: C:/Servers/MRS/carbon/plugins/NpcSpawn.cs Line: 1689)

<color=#aff>[knife_bone.entity[363591649]] SwitchParent Missed scientist_corpse[363592739]</color>
<color=#aff>[grenade.beancan.entity[363591651]] SwitchParent Missed scientist_corpse[363592739]</color>
Zombie A[5931774] was killed by {omitted} at (295.25, 48.95, 334.22)
Trying to retire an entity without killing it first: assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_heavy.prefab

NullReferenceException
  at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component)
  at BaseEntity.WorldSpaceBounds () [0x00000] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 
  at BasePlayer.WorldSpaceBounds () [0x0006e] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 
  at BaseEntity.CenterPoint () [0x00000] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 
  at BaseEntity.IsVisible (UnityEngine.Vector3 position, System.Single maxDistance) [0x00000] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.HBHFSensor.UpdatePassthroughAmount_Patch0(HBHFSensor)
  at InvokeHandlerBase`1[T].DoTick () [0x00138] in <8e627b78b6e54efa8823e1b0fa070ae3>:0 
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <8e627b78b6e54efa8823e1b0fa070ae3>:0 

Do you have any information by chance leading up to this happening? Something is going crazy there and if you have any details leading up to that it will help diagnose the issue.

Something I want to share. This is the line referenced in the error you shared which is 1689

                if (Npc.Config.States.Contains("RoamState")) AddState(new RoamState(Npc));

I am wondering if you can find what NPCs this might be referring to and check their roam range in your configuration. See if anything looks off there because that is my first guess.

Alternatively if needed we may also check with the Carbon team since I see that you're using Carbon, and just make sure that's not a repeatable issue that's happening on Carbon that we can sort out that way in the back end of stuff.

Corpster

Posted

1 hour ago, Jbird said:

This is a link to an old uMod help ticket for Rust it seems I can't even tell what the plugin it was posted on otherwise. But I think wrong link essentially sorry.

Are you able to provide details for what kind of damage is taking place? Need to understand the entity being damage and what's going on in this instance and we can address it.

Here is some more detail from the dev. "the NpcSpawn is returning the wrong value as non null, thus causing a conflict. Instead of False, it should be returning True (like Cargo Train Event does), according to the Oxide coding standards:"

The coding standards was refering to the umod link.

Corpster

Posted

1 hour ago, Jbird said:

Do you have any information by chance leading up to this happening? Something is going crazy there and if you have any details leading up to that it will help diagnose the issue.

Something I want to share. This is the line referenced in the error you shared which is 1689

                if (Npc.Config.States.Contains("RoamState")) AddState(new RoamState(Npc));

I am wondering if you can find what NPCs this might be referring to and check their roam range in your configuration. See if anything looks off there because that is my first guess.

Alternatively if needed we may also check with the Carbon team since I see that you're using Carbon, and just make sure that's not a repeatable issue that's happening on Carbon that we can sort out that way in the back end of stuff.

I don't have a huge amount of information. I do know that if I add the betternpcnames mod and then reload betternpc that it causes a huge number of errors but im not 100% sure if its related to this.

I also have these errors randomly coming up, but again, im not sure if its related.

Failed to call internal hook 'OnEntitySpawned' on plugin 'CargoTrainEvent v1.0.18' [2949838417] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.CargoTrainEvent.OnEntitySpawned(TrainEngine train) in C:/Servers/MRS/carbon/plugins/CargoTrainEvent.cs:line 126
   at object Oxide.Plugins.CargoTrainEvent.InternalCallHook(uint hook, object[] args) in CargoTrainEvent.cs/Internal:line 279
Failed to call internal hook 'OnEntitySpawned' on plugin 'WaterlessSprinklers v1.0.3' [2949838417] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.WaterlessSprinklers.OnEntitySpawned(Sprinkler sprinkler) in C:/Servers/MRS/carbon/plugins/WaterlessSprinklers.cs:line 101
   at object Oxide.Plugins.WaterlessSprinklers.InternalCallHook(uint hook, object[] args) in WaterlessSprinklers.cs/Internal:line 47
Failed to call internal hook 'OnEntitySpawned' on plugin 'BetterNpc v1.3.1' [2949838417] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.BetterNpc.OnEntitySpawned(HackableLockedCrate crate) in C:/Servers/MRS/carbon/plugins/BetterNpc.cs:line 1422
   at object Oxide.Plugins.BetterNpc.InternalCallHook(uint hook, object[] args) in BetterNpc.cs/Internal:line 365
Failed to call hook 'OnEntitySpawned' on plugin 'DeployableCore v1.0.1' (Object reference not set to an instance of an object)
   at bool Oxide.Ext.RustEdit.DeployableCore.‍‫‬‪‏‬‭‍‏‭‌‍‪‍‬(BaseNetworkable)
   at void Oxide.Ext.RustEdit.DeployableCore.OnEntitySpawned(BaseNetworkable baseNetworkable)
   at object System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
[RustEdit] - OnShopkeeperSpawned
Failed to execute OnFrame callback (Object reference not set to an instance of an object)
   at void Oxide.Plugins.BuildingWorkbench.OnEntitySpawned(Workbench bench)+() => { } in C:/Servers/MRS/carbon/plugins/BuildingWorkbench.cs:line 293
Image batch (GUIShop) has been stored successfully


and also these errors randomly but still not sure if its related. 

System.TypeLoadException: Could not resolve type with token 01000098 from typeref (expected class 'Oxide.Plugins.RustExtensionMethods' in assembly 'Carbon.Common, Version=2.0.155.0, Culture=neutral, PublicKeyToken=null')
  at Oxide.Ext.ChaosNPC.CustomScientistBrain+CustomChaseState.StateThink (System.Single delta, BaseAIBrain brain, BaseEntity entity) [0x0037e] in <3129c5fc080e4a5dab45f11e0cd19457>:0 
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.BaseAIBrain.Think_Patch0(BaseAIBrain,single)
  at Oxide.Ext.ChaosNPC.CustomScientistBrain.Think (System.Single delta) [0x00056] in <3129c5fc080e4a5dab45f11e0cd19457>:0 
  at BaseAIBrain.DoThink () [0x0000d] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 
  at HumanNPC.ServerThink (System.Single delta) [0x0001a] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 
  at Oxide.Ext.ChaosNPC.CustomScientistNPC.ServerThink (System.Single delta) [0x00000] in <3129c5fc080e4a5dab45f11e0cd19457>:0 
  at NPCPlayer.ServerThink_Internal () [0x0000d] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 
  at HumanNPC.TryThink () [0x00000] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 
  at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <f60e248e6f6444ef9f31565ba9ad7cd8>:0 


 

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 18
  • Love 10

User Feedback

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.