BotSpawn

Moved

Total Downloads: 11,762 - First Release: Jul 31, 2017 - Last Update: Jul 27, 2018

5/5, 81 likes
  1. Hey @Steenamaroo, I was just testing your plugin when new update rolled in. Thank you for this great work!

    I have a question: since HumanNPC plugin refuses to work correctly (maybe because it was not updated in like a year), I tried to use your plugin to define places where snipers spawn. I did that by building a 2-3 story high 1x1 / 2x2 towers, placing low walls at the top as barriers and creating a 1-radius spawn site for a single bot. Everything works fine until the bot spawns. No matter what config I tried, it just spawns at the top (properly), switches its weapon and then just disappears. Is there a way to fix this behaviour?
     
  2. Hey @NoviQ
    Sorry, I don't think there's a way around this right now.

    Any bot spawned underground or in the air will just be removed after 5 seconds or so, which is why BotSpawn no longer has the parachutes option.
    If it doesn't find itself on, or near, suitable terrain for navigation, Rust will just remove it.

    A lot of existing buildings will work, though, for what it's worth, like the airfield hangars and the launch site buildings.
     
  3. Thanks for the explenation @Steenamaroo

    The Bots that spawns with Airdrop kicks Players by killing those.

    Disconnect reason: RPC Error in OnProjectileAttack
    Error in Console: NullReferenceException: Object reference not set to an instance of an object

    And no hectic, just wanted to let you know :)

    Thanks a lot !
     
  4. I've only ever seen that error when BotSpawn is used in conjunction with LootConfig.
    I guess your Airdrop bots are the only Scientists? I think the issue is specific to them.

    Either way, unloading LootConfig isn't enough - Server restart is also required.
     
  5. any way to keep the murderers from opening doors
     
  6. Ya right i put today this LootConfig Thing to see how it works exactly (Config File)
    I will give a short try, restarting now the Server without this plugin and give Feedback.

    And bots with Chainsaws and Bows working great :D
     
  7. They open doors? lol.Was not aware of that.
    I'll look into it. :)
     
  8. Thanks for hint with LootConfig @Steenamaroo
    No more Kicks by killing Airdrop Bots :)

    You got anything to test?
    I mean if you have changed something on BotSpawn.cs i can test it and Play arround.
     
  9. All good for now, but thanks for the offer.
    It's late here, so I've packed up for the night, but I'll keep it in mind. :)
     
  10. Okay alright, ya same here its rly late in Germany.
    Well i will do a cut for this night, Good Night Dude ;)
     
  11. BotSpawn 1.5.1 doesn't seem to work for me anymore (and neither did 1.5.0 apparently). Getting these errors on reload:

    Code:
    (12:01:53) | BotSpawn was compiled successfully in 2524ms
    (12:01:53) | ExType: JsonSerializationException
    (12:01:53) | Failed to initialize plugin 'BotSpawn v1.5.1' (ArgumentException: Could not cast or convert from System.String to System.Collections.Generic.List`1[System.String].)
      at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable (System.Object value, System.Type initialType, System.Type targetType) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast (System.Object initialValue, System.Globalization.CultureInfo culture, System.Type targetType) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x00000] in <filename unknown>:0
    (12:01:53) | ExType: JsonSerializationException
    (12:01:53) | Failed to initialize plugin 'BotSpawn v1.5.1' (ArgumentException: Could not cast or convert from System.String to System.Collections.Generic.List`1[System.String].)
      at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable (System.Object value, System.Type initialType, System.Type targetType) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast (System.Object initialValue, System.Globalization.CultureInfo culture, System.Type targetType) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x00000] in <filename unknown>:0
    (12:01:53) | Unloaded plugin BotSpawn v1.5.1 by Steenamaroo
    (12:01:53) | No previous version to rollback plugin: BotSpawn
     
  12. How do I remove the bot names? I have a kill feed plugin and everytime a scientist dies, their random name appears in the kill feed. My kill feed is suppose to only show player deaths
     
  13. Mod your kill feed plugin to not show npc deaths?

    Backup your config, wipe the live version, reload the plugin
     
  14. Before the update, I had bots in military tunnels. Not only on the surface, but also in the tunnels themselves. It was cool. Players have made themselves hunting there :) Will it ever come back? They are not there anymore.
     
  15. You've entered your kits incorrectly in config and/or data. Format is in overview.

    Any bots in tunnels were coming from Rust and not BotSpawn.

    I think your startup script needs squadmanager.squad_disable false to allow tunnel bots, but they won't be governed by the settings in this plugin I'm afraid.

    [DOUBLEPOST=1520251598][/DOUBLEPOST]
    What are you using for your kill feed?
    Either your plugin will have an option that you can set, or it would need to be updated to discriminate between human players and scientists.
     
    Last edited by a moderator: Mar 5, 2018
  16. i tried to set a kit for the bots and got this message.... tried it with [], without [], with"." nothings work. any ideas?

    BotSpawn v1.4.7: Failed to load config file (is the config file corrupt?) (Unexpected character encountered while parsing value: k. Path 'Zones.Harbor1.Kit', line 111, position 14.)

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    Failed to initialize plugin 'BotSpawn v1.4.7' (JsonReaderException: Unexpected character encountered while parsing value: k. Path 'Zones.Harbor1.Kit', line 111, position 15.)
    at Newtonsoft.Json.JsonTextReader.ReadStringValue (ReadType readType) [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.JsonTextReader.ReadAsString () [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList (IList list, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    Unloaded plugin BotSpawn v1.4.7 by Steenamaroo

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    Previous version of plugin failed to load: BotSpawn

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
     
  17. Wipe your old BotSpawn config files andUpdate your BotSpawn Plugin, you still using the old one.
     
  18. Done. Now its the same message with another version number

    BotSpawn v1.5.1: Failed to load config file (is the config file corrupt?) (Unexpected character encountered while parsing value: k. Path 'Zones.AirDrop.Kit', line 24, position 14.)

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    Failed to initialize plugin 'BotSpawn v1.5.1' (JsonReaderException: Unexpected character encountered while parsing value: k. Path 'Zones.AirDrop.Kit', line 24, position 15.)
    at Newtonsoft.Json.JsonTextReader.ReadStringValue (ReadType readType) [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.JsonTextReader.ReadAsString () [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList (IList list, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    Unloaded plugin BotSpawn v1.5.1 by Steenamaroo
     
  19. Hello, I have a message :


    (15:30:07) | Unloaded plugin BotSpawn v1.5.1 by Steenamaroo

    (15:30:07) | Loaded plugin BotSpawn v1.5.1 by Steenamaroo

    (15:30:45) | The referenced script on this Behaviour is missing!

    (15:30:45) | The referenced script on this Behaviour is missing!

    (15:30:45) | The referenced script on this Behaviour (Game Object 'junkpile_g') is missing!

    (15:30:45) | The referenced script on this Behaviour (Game Object 'junkpile_g') is missing!

    (15:30:45) | The referenced script on this Behaviour (Game Object 'ScientistSpawner') is missing!

    (15:30:45) | The referenced script on this Behaviour (Game Object 'ScientistSpawner') is missing!

    (15:30:45) | System.NullReferenceException: Object reference not set to an instance of an object

    at JunkPile.ServerInit () [0x00000] in <filename unknown>:0

    at BaseNetworkable.Spawn () [0x00000] in <filename unknown>:0

    at SpawnHandler.Spawn (.SpawnPopulation population, .SpawnDistribution distribution, Vector3 pos, Quaternion rot) [0x00000] in <filename unknown>:0

    at SpawnHandler.Spawn (.SpawnPopulation population, .SpawnDistribution distribution, Int32 targetCount, Int32 numToFill, Int32 numToTry) [0x00000] in <filename unknown>:0

    at SpawnHandler.SpawnRepeating (.SpawnPopulation population, .SpawnDistribution distribution) [0x00000] in <filename unknown>:0

    at SpawnHandler+<SpawnTick>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0


    I don't understand, I have update the new version 1.5.1, and remove the config file, and when a load error message in chat is here.
     
  20. Code:
    (17:37:46) | lilia[2081467/1539969] was killed by SpirituS[49152/*]
    (17:38:14) | Failed to call hook 'OnEntitySpawned' on plugin 'BotSpawn v1.5.1' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.BotSpawn.OnEntitySpawned (.BaseEntity entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    I have this on every bot's kill. It's first plugin usage. Plugin v1.5.1, Oxide v2.0.3851