Jump to content

Npc Spawn 3.5.1

   (20 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

  • 411.1k
  • 85.2k
  • 2.25 MB
  • Update details
    v3.5.1
    Released
    Download size 2.25 MB
    Total versions 81
    Typical update pace About every 4 days
    Freshness Updated yesterday

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

Recommended Comments



aimacak

Posted

3 minutes ago, GiBr said:

it works fine on one of servers however on another i get this error

160 NpcSpawn - Failed to compile: Expected expression | Line: 6590, Pos: 29

Are you sure it's the latest version too? can you write o.reload NpcSpawn in the server console and show all the messages from the server console after that?

Reb_

Posted

Do you have a tutorial that describes how to use your API to spawn in NPCs? 

Thanks in advance.

aimacak

Posted

2 hours ago, Reb_ said:

Do you have a tutorial that describes how to use your API to spawn in NPCs? 

Thanks in advance.

Hello, is the information on the Details tab not enough for you or have you not seen it?

  • Like 1
Reb_

Posted (edited)

I've looked at those - I was hoping for something like the bare minimum to spawn a bot; using directives, including the plugin, calling the method, adding the position, etc.

Additionally, if I call this 3 times with the same location, will the bots all spawn in the same spot or do I need to create random positions to spread the bots out a bit? - I'm guessing the bot preset json sorts all this config for the spawn? So call it once and the position will be the centre of the preset?

I'll have a play later but right now the one line method call doesn't tell me a lot, probably my own lack of knowledge though.

For instance:

[PluginReference] Plugin NpcSpawn;

void OnCrateHack(HackableLockedCrate crate) {

	Vector3 location = crate.transform.position;

	NpcSpawn.SpawnPreset(location, "Mercenary");

}

 

Edited by Reb_
aimacak

Posted

21 hours ago, Reb_ said:

I've looked at those - I was hoping for something like the bare minimum to spawn a bot; using directives, including the plugin, calling the method, adding the position, etc.

Additionally, if I call this 3 times with the same location, will the bots all spawn in the same spot or do I need to create random positions to spread the bots out a bit? - I'm guessing the bot preset json sorts all this config for the spawn? So call it once and the position will be the centre of the preset?

I'll have a play later but right now the one line method call doesn't tell me a lot, probably my own lack of knowledge though.

For instance:

[PluginReference] Plugin NpcSpawn;

void OnCrateHack(HackableLockedCrate crate) {

	Vector3 location = crate.transform.position;

	NpcSpawn.SpawnPreset(location, "Mercenary");

}

 

Of course, I'm not a developer, but in your example, everything seems to be simple. When hacking hackablecrate starts, an NPC from NpcSpawn with the Mercenary preset will be created at its coordinates, which should be located in oxide/data/NpcSpawn/Preset/Mercenary.json, you can setup it via chat command from NpcSpawn plugin: /preset

Je_Re_My

Posted

[NpcSpawn] Image grassskirt-underwear-male download is complete
at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.BasePlayer.UpdateActiveItem_Patch2(BasePlayer,ItemId)
at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipItem (Item weapon) (at /home/container/carbon/plugins/NpcSpawn.cs:2461)
at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) (at /home/container/carbon/plugins/NpcSpawn.cs:2449)
at Oxide.Plugins.NpcSpawn+CustomScientistNpc.UpdateTick () (at /home/container/carbon/plugins/NpcSpawn.cs:1705)
at InvokeHandlerBase1[T].DoTick () (at <7eecead73d934cacab2b6342d0cde29c>:0) at InvokeHandlerBase1[T].LateUpdate () (at <7eecead73d934cacab2b6342d0cde29c>:0)
NullReferenceException: Object reference not set to an instance of an object
at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.BasePlayer.UpdateActiveItem_Patch2(BasePlayer,ItemId)
at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipItem (Item weapon) (at /home/container/carbon/plugins/NpcSpawn.cs:2461)
at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) (at /home/container/carbon/plugins/NpcSpawn.cs:2449)

 

 

Soller

Posted (edited)

After the update, the endless spam of this error began.

[91mNullReferenceException: Object reference not set to an instance of an object[0m
NullReferenceException: Object reference not set to an instance of an object
at BasePlayer.UpdateActiveItem (ItemId itemID) [0x00035] in <ba6272a5951747a68986252fad12d96e>:0
at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipItem (Item weapon) [0x00046] in <89f6542a0b09469a89da30e348c3aef3>:0
at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) [0x00043] in <89f6542a0b09469a89da30e348c3aef3>:0
at Oxide.Plugins.NpcSpawn+CustomScientistNpc.UpdateTick () [0x0001b] in <89f6542a0b09469a89da30e348c3aef3>:0
at InvokeHandlerBase`1[T].DoTick () [0x00120] in <1dcadb7ed27947e38dd9c9123cc44350>:0
at InvokeHandlerBase`1[T].LateUpdate () [0x0002b] in <1dcadb7ed27947e38dd9c9123cc44350>:0

All plugins updated.

Edited by Soller
aimacak

Posted

7 hours ago, Soller said:

After the update, the endless spam of this error began.

[91mNullReferenceException: Object reference not set to an instance of an object[0m
NullReferenceException: Object reference not set to an instance of an object
at BasePlayer.UpdateActiveItem (ItemId itemID) [0x00035] in <ba6272a5951747a68986252fad12d96e>:0
at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipItem (Item weapon) [0x00046] in <89f6542a0b09469a89da30e348c3aef3>:0
at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) [0x00043] in <89f6542a0b09469a89da30e348c3aef3>:0
at Oxide.Plugins.NpcSpawn+CustomScientistNpc.UpdateTick () [0x0001b] in <89f6542a0b09469a89da30e348c3aef3>:0
at InvokeHandlerBase`1[T].DoTick () [0x00120] in <1dcadb7ed27947e38dd9c9123cc44350>:0
at InvokeHandlerBase`1[T].LateUpdate () [0x0002b] in <1dcadb7ed27947e38dd9c9123cc44350>:0

All plugins updated.

Hello, at what point does spam start? Can you send your date files and configuration files? You can send it to dm if you want.

Soller

Posted

8 minutes ago, aimacak said:

Hello, at what point does spam start? Can you send your date files and configuration files? You can send it to dm if you want.

This has already stopped after restarting the server again. It is strange that the errors occurred after the first restart when I was updating the plugins.

LoremIpsum

Posted

2 hours ago, aimacak said:

Hello, at what point does spam start? Can you send your date files and configuration files? You can send it to dm if you want.

Im also getting  this one

 

Quote

NullReferenceException: Object reference not set to an instance of an object
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.BasePlayer.UpdateActiveItem_Patch2(BasePlayer,ItemId)
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipItem (Item weapon) (at /home/container/carbon/plugins/NpcSpawn.cs:2461)
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) (at /home/container/carbon/plugins/NpcSpawn.cs:2449)
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.UpdateTick () (at /home/container/carbon/plugins/NpcSpawn.cs:1705)
  at InvokeHandlerBase`1[T].DoTick () (at <7eecead73d934cacab2b6342d0cde29c>:0)
  at InvokeHandlerBase`1[T].LateUpdate () (at <7eecead73d934cacab2b6342d0cde29c>:0)
NullReferenceException: Object reference not set to an instance of an object
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.BasePlayer.UpdateActiveItem_Patch2(BasePlayer,ItemId)
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipItem (Item weapon) (at /home/container/carbon/plugins/NpcSpawn.cs:2461)
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.EquipWeapon (System.Boolean skipDeployDelay) (at /home/container/carbon/plugins/NpcSpawn.cs:2449)
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.UpdateTick () (at /home/container/carbon/plugins/NpcSpawn.cs:1705)
  at InvokeHandlerBase`1[T].DoTick () (at <7eecead73d934cacab2b6342d0cde29c>:0)
  at InvokeHandlerBase`1[T].LateUpdate () (at <7eecead73d934cacab2b6342d0cde29c>:0)
NullReferenceException: Object reference not set to an instance of an object

 

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 26
  • Love 13

User Feedback

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
3.3m
Total downloads
Customers
12.4k
Customers served
Files Sold
176.3k
Total sales
Payments
3.9m
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.