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



Malkizid

Posted

On 1/22/2024 at 8:23 PM, 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. 

looks like as simple fix. both plugins need to have the desired setting set to the same value, CanEntityTakeDamage  either True or False

Komorebi

Posted

A very useful plugin. There are two questions.
NPCS generated by the various events that depend on this plugin will not attack players who are knocked down. And you can't equip NPCS with time bombs and rocket launchers.

Jbird

Posted

2 hours ago, flysd said:

NPCS generated by the various events that depend on this plugin will not attack players who are knocked down.

Correct they ignore knocked and wounded players until they get up again.

2 hours ago, flysd said:

And you can't equip NPCS with time bombs and rocket launchers.

NPCs can be equipped with Rocket Launchers but only use them when a player is behind defenses or inside their base. They are only used for raiding.

Komorebi

Posted

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

Jbird

Posted

On 1/22/2024 at 2:23 PM, 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. 

1 hour ago, flysd said:

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

 

So there is a config option in BradleyTiers that you have set to true and this causes the conflict error.

    "Bradley Tiers can interact with NPC": false

You can set this to false in BradleyTiers config to align this with NpcSpawn logic and to get rid of the error.

If there is a reason that you want this function to be allowed, if you can give some context to how you would use this, and what the importance is, the developer and I are curious. He has already indicated if there is desire for this to be allowed that he will look further into it and address the request. We just want to know the the intent and importance to understand it well.

Jbird

Posted

Also @Dead Nasty if you do not use BradleyTiers and only use BradleyDrops we can look further into this as well. I think maybe it could be the same or related or maybe in that instance it is actually part of the plugin code instead of being a config option. I see your errors is from BradleyDrops instead so maybe for that instance more might need to be looked into and addressed. But just collecting all the information we can before making any changes. I did not see a similar option in the default config shown in the Description but maybe it has been added and does not show or maybe I missed something.

Komorebi

Posted

12 minutes ago, Jbird said:

 

BradleyTiers中有一个配置选项,您已将其设置为真实的这导致了冲突错误。

    "Bradley Tiers can interact with NPC": false

您可以将此设置为错误的布拉德利捷配置以与此保持一致NPC卒逻辑和摆脱错误。

如果有一个你希望这个功能被允许的原因,如果你能给出一些你将如何使用它的背景,以及它的重要性是什么,开发者和我都很好奇。他已经表示,如果希望允许这样做,他将进一步研究并处理这一请求。我们只是想知道理解它的意图和重要性。

Thank you for your help. But I'm going to disappoint you. I didn't use this feature. I just didn't notice this configuration.

Jbird

Posted

Just now, flysd said:

Thank you for your help. But I'm going to disappoint you. I didn't use this feature. I just didn't notice this configuration.

No disappointment at all. I used to run into things like this all of the time. I always go through a new configuration and make several changes that I think that I want. And I would learn at times that I didn't fully understand what I was changing or something to that effect. It's no problem at all. Simply changing this back to false will remove the error for you.

Thank you for the reply. :classic_smile:

Dead Nasty

Posted

1 hour ago, Jbird said:

Also @Dead Nasty if you do not use BradleyTiers and only use BradleyDrops we can look further into this as well. I think maybe it could be the same or related or maybe in that instance it is actually part of the plugin code instead of being a config option. I see your errors is from BradleyDrops instead so maybe for that instance more might need to be looked into and addressed. But just collecting all the information we can before making any changes. I did not see a similar option in the default config shown in the Description but maybe it has been added and does not show or maybe I missed something.

i do not use brad tiers anymore, after an update a while ago they started taking over bradley drops and it never got fixed to my knowledge.

its been a while now so not sure where the error was from tbh. thanks for looking into tho. 

Jbird

Posted

1 hour ago, Dead Nasty said:

i do not use brad tiers anymore, after an update a while ago they started taking over bradley drops and it never got fixed to my knowledge.

its been a while now so not sure where the error was from tbh. thanks for looking into tho. 

You are welcome. If you see it again, find out more about it, and if it is something you'd like to see the ability added, let us know. But this should be in regards to Bradley tanks being able to target NPCs.

KRUT228

Posted

UP 


 

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

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

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

at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00496] in <771f0d0495dd4243be15a40686095be3>: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 <b6d06fce9e044af4a6ddc8d724bd3b0b>:0

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

[19:32:09]Loaded plugin NpcSpawn v2.6.2 by KpucTaJl

aimacak

Posted (edited)

28 minutes ago, KRUT228 said:

UP 


 

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

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

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

at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00496] in <771f0d0495dd4243be15a40686095be3>: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 <b6d06fce9e044af4a6ddc8d724bd3b0b>:0

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

[19:32:09]Loaded plugin NpcSpawn v2.6.2 by KpucTaJl

but you must make sure manually that all folders are created correctly and in the correct directories
 

        private void OnServerInitialized()
        {
            //CreateAllFolders();
            LoadNavMeshes();
            GenerateSpawnpoints();
            CheckVersionPlugin();
        }

 

Edited by aimacak
  • Like 1
KRUT228

Posted

please tell me in detail how to do it, I have already tried everything, I created all the folders correctly!

aimacak

Posted

15 minutes ago, KRUT228 said:

please tell me in detail how to do it, I have already tried everything, I created all the folders correctly!

open NpcSpawn.cs, find strings from my previous message and comment CreateAllFolders(); with //

KRUT228

Posted

        private void OnServerInitialized()
        {
            CreateAllFolders();
            LoadNavMeshes();
            GenerateSpawnpoints();
            CheckVersionPlugin();
        }
 

Jbird

Posted

1 hour ago, KRUT228 said:

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

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

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

at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00496] in <771f0d0495dd4243be15a40686095be3>: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 <b6d06fce9e044af4a6ddc8d724bd3b0b>:0

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

[19:32:09]Loaded plugin NpcSpawn v2.6.2 by KpucTaJl

Two things you can do. It looks like you have access issues and the host or server is not allowing you to create the folders.

1) You can check this video to setup authorization.

2) You can also instead just create the folders manually and they will already be there. Blocking the folder creation will not help as you'll still not have the folders you need and will run into another error.

data/NpcSpawn/NavMesh
data/NpcSpawn/Preset

Add these two folders then reload and you should be fine.

Jbird

Posted

These are two separate fixes by the way you can do either one and should be able to reload the plugin and continue.

KingSizeKevin

Posted

Can we get option for which NPC is used as the base npc?  Maybe it would be a config option in every plugin, but the npcspawn is the dependency.

For example, our economy pays out the highest $3 per npc kill for killing Heavy Scientists, but that means every NPC from every plugin you guys make pays out the highest amount.  This doesnt make sense for Caravan farmer npcs that are easy.  It would be much more ideal to set a lower $1 payout on RustRewards for this easier NPC.  If possible, we should be able to choose between a few NPC profiles as the base unit for each plugin.

Jbird

Posted

5 minutes ago, KingSizeKevin said:

Can we get option for which NPC is used as the base npc?  Maybe it would be a config option in every plugin, but the npcspawn is the dependency.

For example, our economy pays out the highest $3 per npc kill for killing Heavy Scientists, but that means every NPC from every plugin you guys make pays out the highest amount.  This doesnt make sense for Caravan farmer npcs that are easy.  It would be much more ideal to set a lower $1 payout on RustRewards for this easier NPC.  If possible, we should be able to choose between a few NPC profiles as the base unit for each plugin.

This was already changed in a recent update for NpcSpawn. Go to the config file and you can set the base NPC to whatever you want it to be. Previously this was done in the CS file by changing the path from heavy scientist to something else. But now it is a simple config option so it does not need to be changed again in future updates.

  • Love 1
burbin

Posted (edited)

it cannot be compiled, fix pls

upd:
my bad, fixed

Edited by burbin
TuxGeek

Posted

I have updated to the latest version and have had no issues compiling the plugin on carbon

FoXy

Posted

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

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

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

at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0079b] in <cbf0d7b104264f08ac147f333939d92b>: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 <b6d06fce9e044af4a6ddc8d724bd3b0b>:0

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

aimacak

Posted

On 2/25/2024 at 8:32 PM, aimacak said:

open NpcSpawn.cs, find strings from my previous message and comment CreateAllFolders(); with //

 

48 minutes ago, FoXy said:

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

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

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

at Oxide.Plugins.NpcSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0079b] in <cbf0d7b104264f08ac147f333939d92b>: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 <b6d06fce9e044af4a6ddc8d724bd3b0b>:0

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

 

Jbird

Posted

9 hours ago, FoXy said:

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

This says that it is not allowing access. Look above for the video regarding using an FTP method like Filezilla to allow access to the folders needed. You may also be able to just manually move or create the folders that are provided with the download as perhaps it is just not allowing the folders to be created. But one of these methods should work for you.

 

Thank you @aimacak but those folders are needed so your fix will not help as they will just end up with different errors instead if the folders are not created or moved into the server. Your suggestion may help get around one error but there will likely be other errors instead. The FTP setup method is preferable to fix this issue.

  • Like 1
aimacak

Posted

14 hours ago, Jbird said:

This says that it is not allowing access. Look above for the video regarding using an FTP method like Filezilla to allow access to the folders needed. You may also be able to just manually move or create the folders that are provided with the download as perhaps it is just not allowing the folders to be created. But one of these methods should work for you.

 

Thank you @aimacak but those folders are needed so your fix will not help as they will just end up with different errors instead if the folders are not created or moved into the server. Your suggestion may help get around one error but there will likely be other errors instead. The FTP setup method is preferable to fix this issue.

 

On 2/25/2024 at 8:00 PM, aimacak said:

but you must make sure manually that all folders are created correctly and in the correct directories
 

        private void OnServerInitialized()
        {
            //CreateAllFolders();
            LoadNavMeshes();
            GenerateSpawnpoints();
            CheckVersionPlugin();
        }

 

thank you, that’s why I clarified that you need to manually make sure that all the necessary folders are there 🙂

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.