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

5 hours ago, Marcell Pickard said:

This dependency is stopping all NPC's from moving on the server. Have troubleshooted the issue NPCspawn is 100% the issue.

See what version you have and look at what circumstances you are referring to.

With one of the recent Facepunch updates NPCs use a lot more resources, this has happened in the past but it was a big jump and was causing a lot of serious server lag and issues at certain counts. We had done research and we concluded that most average servers would have a lot of issues if they were to get around 1000 NPCs on the map at once all moving and such.

NPCs outside of active player range will be dormant with the recent versions to combat this. If you are having issues check that you have the current version of NpcSpawn and any plugin that uses them. Is it BetterNpc NPCs that you're referring to?

  • Like 1
Marcell Pickard

Posted

1 hour ago, Jbird said:

See what version you have and look at what circumstances you are referring to.

With one of the recent Facepunch updates NPCs use a lot more resources, this has happened in the past but it was a big jump and was causing a lot of serious server lag and issues at certain counts. We had done research and we concluded that most average servers would have a lot of issues if they were to get around 1000 NPCs on the map at once all moving and such.

NPCs outside of active player range will be dormant with the recent versions to combat this. If you are having issues check that you have the current version of NpcSpawn and any plugin that uses them. Is it BetterNpc NPCs that you're referring to?

Yeah think we got it sorted on the discord ticket thanks for the quick response brother! It is definitely making them still while in vanish 

Jbird

Posted

1 hour ago, Marcell Pickard said:

Yeah think we got it sorted on the discord ticket thanks for the quick response brother! It is definitely making them still while in vanish 

Sick thank you for following up here too so I know it's taken care of!

Rustonauts

Posted

would you please show an example config value that you pass to the api call?  Specifically the hashset for states.

 

 

thanks

Rustonauts

Posted

would you please show an example config value that you pass to the api call?  Specifically the hashset for states.

 

 

thanks

Jbird

Posted (edited)

2 hours ago, Rustonauts said:

would you please show an example config value that you pass to the api call?  Specifically the hashset for states.

API

ScientistNPC SpawnNpc(Vector3 position, JObject configJson)

Creates an NPC

  • position – NPC position on the map
  • configJson - NPC parameters

 

void AddTargetRaid(CustomScientistNpc npc, HashSet<BuildingBlock> foundations)

Sets NPC targets for a raid

  • npc - NPC for which you need to specify the target for the raid
  • foundations - list of foundations, for the NPC raid

 

void AddTargetGuard(CustomScientistNpc npc, BaseEntity target)

Sets an NPC target to guard

  • npc - NPC for whom you need to set a target that he will guard
  • target - an entity that needs to be guarded by an NPC

 

void ChangeHomePosition(CustomScientistNpc npc, Vector3 pos)

Changes the NPC point of the home

  • npc - NPC who needs to change the point of the home
  • pos - new point of the home

 

BasePlayer GetCurrentTarget(CustomScientistNpc npc)

Gets the current target for the NPC

  • npc - NPC who needs to get his current target
Edited by Jbird
FoXy

Posted

[20:55:24]Failed to call hook 'OnServerInitialized' on plugin 'NpcSpawn v2.5.7' (UnauthorizedAccessException: Доступ к системе ограничен, недостаточно прав для использования -> (TYPE)System.IO.Directory)

at Oxide.Plugins.NpcSpawn.CreateAllFolders () [0x00000] in <1bf4db2771a949b88ea3af7ecff2553b>:0

at Oxide.Plugins.NpcSpawn.OnServerInitialized () [0x00000] in <1bf4db2771a949b88ea3af7ecff2553b>:0

at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00496] in <1bf4db2771a949b88ea3af7ecff2553b>:0

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

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

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

lazzerwalf

Posted

from the last update with all your events my server keeps locking up i have removed all events for now until its fixed sorry

 

Jbird

Posted

On 9/13/2023 at 1:56 PM, FoXy said:

[20:55:24]Failed to call hook 'OnServerInitialized' on plugin 'NpcSpawn v2.5.7' (UnauthorizedAccessException: Доступ к системе ограничен, недостаточно прав для использования -> (TYPE)System.IO.Directory)

Возможно, у вашего сервера нет доступа к чему-то. Что происходит, когда возникает эта ошибка? Обновляли ли вы другие плагины, которые использует NpcSpawn, с момента выхода обновления?

 

49 minutes ago, lazzerwalf said:

from the last update with all your events my server keeps locking up i have removed all events for now until its fixed sorry

It was fixed yesterday. Always recommend reading all of the update notes. All you have to do is either use new configs or grab a copy from a backup if you customized them. Or you can even just replace the prefab path. The update was inadvertently clearing the prefab path if you use option 4 or 5 for loot.

BadLandPVE

Posted

hello how can i fix this?


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

Jbird

Posted

3 minutes ago, BadLandPVE said:

hello how can i fix this?

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

What is happening when that error occurs? That helps to answer the question to be honest.

WarKingz

Posted

19 hours ago, lazzerwalf said:

from the last update with all your events my server keeps locking up i have removed all events for now until its fixed sorry

 

i am having the same problem i removed all files and installed it fresh and after so long the hole server just locks up ?

Jbird

Posted

24 minutes ago, WarKingz said:

i am having the same problem i removed all files and installed it fresh and after so long the hole server just locks up ?

Check your versions of NpcSpawn, BetterNpc, or any Events that you updated that day. Likely one or more just need an update and you should be good to go.

WarKingz

Posted

I redownload all of them but it still freezing my server after about 5hrs of the server running I have removed them all for now 

Jbird

Posted

4 minutes ago, WarKingz said:

I redownload all of them but it still freezing my server after about 5hrs of the server running I have removed them all for now 

Here is a list of what you need to check. Check the versions and make sure they are current. Use the plugins command or check them manually. Current at the time of this post.

  • NpcSpawn 2.5.7
  • BetterNpc 1.2.6
  • HarborEvent 2.1.8
  • SatDishEvent 2.1.5
  • JunkyardEvent 2.1.2
  • PowerplantEvent 2.1.2
  • ArcticBaseEvent 1.0.9
  • GasStationEvent 1.1.2
LaernuTairos

Posted (edited)

17 hours ago, WarKingz said:

I redownload all of them but it still freezing my server after about 5hrs of the server running I have removed them all for now 

Kind of the same issue except now its only after the update about 5 hours ago.

Before that everything was running perfect with them all week, massive FPS hit now for some reason. Not 1/2 like WP does, very playable, but lots of banding all of a sudden. Only updated this CS last night. (Water patrol related code responsible? lol) I have WP disabled for now anyway, still, somethings weird. And I kinda screwed myself out of the backup cs just incase. Woops, wish we could grab previous versions.

Example. I set the SFPS to 60 and typically SFPS stays there. Past 5 hours, say Harbor Event fires, fps drops to 45-49 just from that one event now. 1 or 2 more fire from npc spawn and its in the 20s and rubber banding every 2 min or so. Night before I could fire 4 of his events and it would sniff & laugh at 60 still.

Edited by LaernuTairos
Dead Nasty

Posted

4 hours ago, LaernuTairos said:

Kind of the same issue except now its only after the update about 5 hours ago.

Before that everything was running perfect with them all week, massive FPS hit now for some reason. Not 1/2 like WP does, very playable, but lots of banding all of a sudden. Only updated this CS last night. (Water patrol related code responsible? lol) I have WP disabled for now anyway, still, somethings weird. And I kinda screwed myself out of the backup cs just incase. Woops, wish we could grab previous versions.

Example. I set the SFPS to 60 and typically SFPS stays there. Past 5 hours, say Harbor Event fires, fps drops to 45-49 just from that one event now. 1 or 2 more fire from npc spawn and its in the 20s and rubber banding every 2 min or so. Night before I could fire 4 of his events and it would sniff & laugh at 60 still.

you can download previous versions, click changelog and at the bottom of the changelog is a download button. 🙂

  • Like 1
FoXy

Posted

o.reload NpcSpawn

[18:51:43]Unloaded plugin NpcSpawn v2.5.9 by KpucTaJl

[18:51:43]Failed to call hook 'OnServerInitialized' on plugin 'NpcSpawn v2.5.9' (UnauthorizedAccessException: Доступ к системе ограничен, недостаточно прав для использования -> (TYPE)System.IO.Directory)

at Oxide.Plugins.NpcSpawn.CreateAllFolders () [0x00000] in <3715f6cd0f5d4885b8d60d27f9448521>:0

at Oxide.Plugins.NpcSpawn.OnServerInitialized () [0x00000] in <3715f6cd0f5d4885b8d60d27f9448521>:0

at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00496] in <3715f6cd0f5d4885b8d60d27f9448521>:0

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

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

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

[18:51:43]Loaded plugin NpcSpawn v2.5.9 by KpucTaJl

 

 

Я использую конвой ,спутник. Все обновлено!

 

LaernuTairos

Posted

8 hours ago, Dead Nasty said:

you can download previous versions, click changelog and at the bottom of the changelog is a download button. 🙂

Totally missed the little version of "download" lol. TY!! all back to normal, phew.

  • Love 1
Jbird

Posted

On 9/17/2023 at 11:54 AM, FoXy said:

Я использую конвой ,спутник. Все обновлено!

Присоединитесь ли вы к Discord Mad Mapper и создадите для этого билет?

 

On 9/17/2023 at 6:13 PM, LaernuTairos said:

Totally missed the little version of "download" lol. TY!! all back to normal, phew.

Just curious are you using an older version of the plugin now? If you were having issues we wouldn't mind knowing about them. We don't want people to have to revert versions if there are any known issues we can fix.

LaernuTairos

Posted

Ya.

It was minor FPS dips with the new version, but it was enough that people were complaining.

When I got on myself & drove around it was a slight stutter every 2 minutes after updating or so.  Reverting back to last weeks version, there was no stuttering at all. And cost per event running went from 0 (At 60 capped) with old version, to about 5-10 per event. on new one. I didn't do a lot of narrowing, it totally couldve been something else, but I did reboot the server 3 times (With the new version exclusively) and the only change between the first & last reboots was changing back to the old version and the small dips vanished.

Hwang85

Posted

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?

aimacak

Posted (edited)

updates are made to comprehensively improve the product, and not for you to simply download it again, since you are also asking for support for an outdated product) I have been using the plugin since the 1st day of the update and have not experienced any problems, and judging by the fact that there is no million messages from different users, I'm not the only one, thank you, I hope your problem will be solved with the current version 😉

Edited by aimacak
Dead Nasty

Posted

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

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.