Jump to content

Npc Spawn 3.1.2

   (5 reviews)
Message added by KpucTaJl,

⚠️ IMPORTANT: Major Update!
Before installing, carefully read the update instructions included inside the archive.
The archive contains two separate guides: one for users who use BetterNpc, and one for those who do not.

⚠️ If you are using BetterNpc — do not update NpcSpawn separately.
Start the update with BetterNpc and follow its instruction — it already includes the NpcSpawn update steps.

1 Screenshot

  • 296.9k
  • 47.8k
  • 2.23 MB

This area is for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments



Jbird

Posted

On 4/24/2025 at 11:33 AM, Razor said:

On Staging (The given key 'Jungle' was not present in the dictionary.)

Not always going to run on staging.

On 4/27/2025 at 2:49 PM, Razor said:

Is here an option to make them not take less damage when mounted?

Not sure I understand this question. They would only be mounted in specific plugins and it would just be based on that NPCs settings.

Razor

Posted

24 minutes ago, Jbird said:

Not always going to run on staging.

Not sure I understand this question. They would only be mounted in specific plugins and it would just be based on that NPCs settings.

When an npc is mounted his damage he takes from bullets is reduced.  DEEFAULT RUST... So i was wondering is there a way around this or do i need to add a method to add more damage cause its scaled by default.

 

  public override void Hurt(HitInfo info)
  {
    if (this.isMounted)
      info.damageTypes.ScaleAll(0.1f);
    base.Hurt(info);
    BaseEntity initiator = info.Initiator;
    if (!((UnityEngine.Object) initiator != (UnityEngine.Object) null) || initiator.EqualNetID((BaseNetworkable) this))
      return;
    this.Brain.Senses.Memory.SetKnown(initiator, (BaseEntity) this, (AIBrainSenses) null);
  }

 

z0z1ch

Posted

Good day. The plugin supports custom navmeshes. Could you advise how to create them? For example, if I want to make my own navmeshes for NPCs at a gas station, what should I do?

Emigo

Posted

2 hours ago, z0z1ch said:

Good day. The plugin supports custom navmeshes. Could you advise how to create them? For example, if I want to make my own navmeshes for NPCs at a gas station, what should I do?

This plugin is a complement of the plugin BetterNpc. Thats the plugin you need to create your own spawn points. This plugin on its own does nothing

z0z1ch

Posted

1 hour ago, Emigo said:

This plugin is a complement of the plugin BetterNpc. Thats the plugin you need to create your own spawn points. This plugin on its own does nothing

What are the purpose of the folders it creates?
data\NpcSpawn\NavMesh
data\NpcSpawn\Preset

Emigo

Posted

12 hours ago, z0z1ch said:

What are the purpose of the folders it creates?
data\NpcSpawn\NavMesh
data\NpcSpawn\Preset

Like i mentioned before, its a complement for BetterNpc. That plugins uses this plugin to spawn the npcs spawn point that it creates

 

Emigo

Posted

12 hours ago, z0z1ch said:

What are the purpose of the folders it creates?
data\NpcSpawn\NavMesh
data\NpcSpawn\Preset

The description explains it:
 

About Npc Spawn

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

 

Supported Plugins

AirEvent

HarborEvent

WaterEvent

Satellite Dish Event

Power Plant Event

Junkyard Event

BossMonster

BetterNpc

Defendable Bases

Defendable Homes

Water Patrol

Convoy

Armored Train

Sputnik

Space

Cobalt Laboratory

XDChinookEvent

IQSphereEvent

IQBoss

Christmas

z0z1ch

Posted

Hello! The game has a built-in sound detection zone, but the plugin currently disables it. Would it be possible to make this feature configurable (with an on/off toggle)? This could greatly improve NPC interactivity. Thanks for your work!

  • Like 1
FandangoChristmas

Posted

Players can easily take out hordes of these NPCs from events with drones. Is there a reason why NPCs from this plugin do not target player drones?

  • Like 1
RICK

Posted

An error occurred during the "DefendableBases" event.

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

at Oxide.Plugins.NpcSpawn+CustomScientistNpc.CanSeeTarget (BaseEntity target) [0x00029] in <9529974d5bc84050959df121cf01f25f>:0

at Oxide.Plugins.NpcSpawn+CustomScientistNpc.CanCombatState () [0x000e4] in <9529974d5bc84050959df121cf01f25f>:0

at Oxide.Plugins.NpcSpawn+CustomScientistBrain+CombatState.GetWeight () [0x00000] in <9529974d5bc84050959df121cf01f25f>:0

at Oxide.Plugins.NpcSpawn+CustomScientistBrain.Think (System.Single delta) [0x00101] in <9529974d5bc84050959df121cf01f25f>:0

at BaseAIBrain.DoThink () [0x0000d] in <bf9e47e5662b46608543e39eed968275>:0

at HumanNPC.ServerThink (System.Single delta) [0x0001a] in <bf9e47e5662b46608543e39eed968275>:0

at NPCPlayer.ServerThink_Internal () [0x0000d] in <bf9e47e5662b46608543e39eed968275>:0

at HumanNPC.TryThink () [0x00000] in <bf9e47e5662b46608543e39eed968275>:0

at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <bf9e47e5662b46608543e39eed968275>:0

Razor

Posted

Sometimes the npc is not equipping the ware item and spawns in naked..

Razor

Posted

On 11/19/2025 at 10:25 AM, Razor said:

Sometimes the npc is not equipping the ware item and spawns in naked..

Also sometimes Item's Held Entity not removed!Scrap -> m39.entity[6631266]

aimacak

Posted

On 11/10/2025 at 6:35 AM, RICK said:

An error occurred during the "DefendableBases" event.

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

at Oxide.Plugins.NpcSpawn+CustomScientistNpc.CanSeeTarget (BaseEntity target) [0x00029] in <9529974d5bc84050959df121cf01f25f>:0

at Oxide.Plugins.NpcSpawn+CustomScientistNpc.CanCombatState () [0x000e4] in <9529974d5bc84050959df121cf01f25f>:0

at Oxide.Plugins.NpcSpawn+CustomScientistBrain+CombatState.GetWeight () [0x00000] in <9529974d5bc84050959df121cf01f25f>:0

at Oxide.Plugins.NpcSpawn+CustomScientistBrain.Think (System.Single delta) [0x00101] in <9529974d5bc84050959df121cf01f25f>:0

at BaseAIBrain.DoThink () [0x0000d] in <bf9e47e5662b46608543e39eed968275>:0

at HumanNPC.ServerThink (System.Single delta) [0x0001a] in <bf9e47e5662b46608543e39eed968275>:0

at NPCPlayer.ServerThink_Internal () [0x0000d] in <bf9e47e5662b46608543e39eed968275>:0

at HumanNPC.TryThink () [0x00000] in <bf9e47e5662b46608543e39eed968275>:0

at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <bf9e47e5662b46608543e39eed968275>:0

Hello, if the problem still exists, please create a ticket in the Support tab and provide your configuration of this plugin.

Dead Nasty

Posted

having to use loot manager now is lame

  • Like 1
  • Haha 1
Rockefeller

Posted (edited)

Is Loot Manager a hard requirement now?  Do I now have to reconfigure all my events or can I NOT use Loot Manager?

Edited by Rockefeller
aimacak

Posted

8 minutes ago, Rockefeller said:

Is Loot Manager a hard requirement now?  Do I now have to reconfigure all my events or can I NOT use Loot Manager?

At the moment, the latest update to NpcSpawn and BetterNpc requires the use of a Loot Manager, in the future all KpucTaJI events will also be transferred to it, do not take it lightly, I also own the server and I am also not very happy about the sudden waste of extra time, but Loot Manager is in fact NpcSpawn, only NpcSpawn controls the NPC in all events, and the Loot Manager will control loot in all events.

Rockefeller

Posted

About ready to dump all these events

  • Like 1
Dead Nasty

Posted (edited)

and theres been so many issues with loot manager, so many updates to everything. this is a giant pain for no reason. 

Edited by Dead Nasty
athlonclub

Posted

I don't understand now that if I use a better NPC, then I always update it, or was it just a one-time thing, and then, as usual, just throw in a new cs ?

aimacak

Posted

3 minutes ago, athlonclub said:

I don't understand now that if I use a better NPC, then I always update it, or was it just a one-time thing, and then, as usual, just throw in a new cs ?

a big update, plugins are fixed as information about any situations becomes available.. You can check your notes when updating and not update them right now. If you have successfully updated, everything is working for you, and these notes are not important to you right now, update when it is convenient for you.

athlonclub

Posted

I've already done an update and all that through the npc betterer, now a new version of npc spawn has been released again and do I need to update again through the npc betterer or just replace npc spawn.cs?

aimacak

Posted

38 minutes ago, athlonclub said:

I've already done an update and all that through the npc betterer, now a new version of npc spawn has been released again and do I need to update again through the npc betterer or just replace npc spawn.cs?

you can install updates, but if you have already switched to new versions according to the instructions, you do not need to use UpdaterNpcSpawn and UpdaterBetterNpc now, just replace the *.cs file, as usual when updating plugins.

athlonclub

Posted

6 minutes ago, aimacak said:

you can install updates, but if you have already switched to new versions according to the instructions, you do not need to use UpdaterNpcSpawn and UpdaterBetterNpc now, just replace the *.cs file, as usual when updating plugins.

in the BetterNpc instructions, step 2 is Step 2. Install the new version of NpcSpawn
1) Download the NpcSpawn plugin archive: 
2) Go to the .../en/data folder in the archive
3) Copy all files and folders from it into the .../oxide/data folder on the server
4) Go to the .../en/plugins folder in the archive
5) Copy the new NpcSpawn plugin file into the .../oxide/plugins folder on the server and I did not use UpdaterNpcSpawncs. I have now uploaded a new version and received this in the server console   Unloaded plugin NpcSpawn v3.1.1 by KpucTaJl
[NpcSpawn] Config update detected! Updating config values...
Could not initialize plugin 'NpcSpawn v3.1.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NpcSpawn.TryUpdateWeapons () [0x0002e] in <aaa0f868a0b1422681da297208077a6f>:0 
  at Oxide.Plugins.NpcSpawn.UpdateConfigValues () [0x00010] in <aaa0f868a0b1422681da297208077a6f>:0 
  at Oxide.Plugins.NpcSpawn.LoadConfig () [0x00030] in <aaa0f868a0b1422681da297208077a6f>:0 
  at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0000f] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Plugins.RustPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0028e] in <8900b33aa9b14e398266dca633691187>:0 
  at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00027] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00035] in <15f61ddda771464d8246ebdce8ff4811>:0 
Rolling back plugin to last good version: NpcSpawn
Failed to call hook 'OnServerInitialized' on plugin 'NpcSpawn v3.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Core.Plugins.Plugin.Subscribe (System.String hook) [0x00006] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Plugins.NpcSpawn.OnServerInitialized () [0x00006] in <2753fc63c76e4b1a853306ffa95778e3>:0 
  at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01fca] in <2753fc63c76e4b1a853306ffa95778e3>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <15f61ddda771464d8246ebdce8ff4811>:0 
Calling 'OnServerInitialized' on 'NpcSpawn v3.1.1' took 1640ms
Loaded plugin NpcSpawn v3.1.1 by KpucTaJl

aimacak

Posted

46 minutes ago, athlonclub said:

in the BetterNpc instructions, step 2 is Step 2. Install the new version of NpcSpawn
1) Download the NpcSpawn plugin archive: 
2) Go to the .../en/data folder in the archive
3) Copy all files and folders from it into the .../oxide/data folder on the server
4) Go to the .../en/plugins folder in the archive
5) Copy the new NpcSpawn plugin file into the .../oxide/plugins folder on the server and I did not use UpdaterNpcSpawncs. I have now uploaded a new version and received this in the server console   Unloaded plugin NpcSpawn v3.1.1 by KpucTaJl
[NpcSpawn] Config update detected! Updating config values...
Could not initialize plugin 'NpcSpawn v3.1.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NpcSpawn.TryUpdateWeapons () [0x0002e] in <aaa0f868a0b1422681da297208077a6f>:0 
  at Oxide.Plugins.NpcSpawn.UpdateConfigValues () [0x00010] in <aaa0f868a0b1422681da297208077a6f>:0 
  at Oxide.Plugins.NpcSpawn.LoadConfig () [0x00030] in <aaa0f868a0b1422681da297208077a6f>:0 
  at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0000f] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Plugins.RustPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0028e] in <8900b33aa9b14e398266dca633691187>:0 
  at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00027] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00035] in <15f61ddda771464d8246ebdce8ff4811>:0 
Rolling back plugin to last good version: NpcSpawn
Failed to call hook 'OnServerInitialized' on plugin 'NpcSpawn v3.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Core.Plugins.Plugin.Subscribe (System.String hook) [0x00006] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Plugins.NpcSpawn.OnServerInitialized () [0x00006] in <2753fc63c76e4b1a853306ffa95778e3>:0 
  at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01fca] in <2753fc63c76e4b1a853306ffa95778e3>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <15f61ddda771464d8246ebdce8ff4811>:0 
Calling 'OnServerInitialized' on 'NpcSpawn v3.1.1' took 1640ms
Loaded plugin NpcSpawn v3.1.1 by KpucTaJl

Didn't you say that you've already upgraded? if you need help, it's better to create a ticket in the Support tab or in the Mad Mappers discord server 🙂

  • Haha 1

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 11

User Feedback

2.2m

Downloads

Total number of downloads.

10.3k

Customers

Total customers served.

148.8k

Files Sold

Total number of files sold.

3.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.