We've moved! Join us as we continue development on our new site at umod.org!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

BotSpawn

Moved

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

5/5, 81 likes
  1. It seems like the damage is really strange from Bot -> Player. Looks like it might be 10% of what it should be? Might be something I'm doing.
     
  2. Hello Steenamaro this probaly not related to botspawn but i am getting this spamed in console just want to make sure it is not from botspawn.
    NullReferenceException: Object reference not set to an instance of an object
    at NPCPlayerApex.OnAiQuestion (NPCPlayerApex source, Rust.Ai.AiQuestion_ShareEnemyTarget question) [0x000a7] in <9f5b7a9ff0c44ff99aacb86ef56ae396>:0
    at Scientist.AskQuestion (Rust.Ai.AiQuestion_ShareEnemyTarget question, System.Collections.Generic.List`1[Rust.Ai.AiAnswer_ShareEnemyTarget]& answers) [0x0002c] in <9f5b7a9ff0c44ff99aacb86ef56ae396>:0
    at Rust.Ai.SharePlayerTargetComm.Execute (Rust.Ai.PlayerTargetContext c) [0x00018] in <9f5b7a9ff0c44ff99aacb86ef56ae396>:0
    at Apex.AI.ActionBase`1[TContext].Apex.AI.IAction.Execute (Apex.AI.IAIContext context) [0x00001] in <7bc5c1faa2af4095bd4b5e00ae6066c5>:0
    at Apex.AI.CompositeAction.Execute (Apex.AI.IAIContext context) [0x0001e] in <7bc5c1faa2af4095bd4b5e00ae6066c5>:0
    at Apex.AI.Components.UtilityAIClient.Execute () [0x00071] in <7bc5c1faa2af4095bd4b5e00ae6066c5>:0
    at NPCPlayerApex.TickSensorySystem () [0x000c7] in <9f5b7a9ff0c44ff99aacb86ef56ae396>:0
    at NPCPlayerApex.Apex.LoadBalancing.ILoadBalanced.ExecuteUpdate (System.Single deltaTime, System.Single nextInterval) [0x00038] in <9f5b7a9ff0c44ff99aacb86ef56ae396>:0
    at Apex.LoadBalancing.LoadBalancedQueue.Update () [0x000ab] in <bb0a7f1370d1429d8f5843f17f216f71>:0
    at Apex.LoadBalancing.LoadBalancerComponent.Update () [0x00006] in <bb0a7f1370d1429d8f5843f17f216f71>:0

    (Filename: <9f5b7a9ff0c44ff99aacb86ef56ae396> Line: 0)
     
  3. @willj86,
    That's the error we where discussing in previous pages. Set CommunicationRadius in your NPCPlayerApex instance to 0, like so:
    botapex.CommunicationRadius = 0f; //botapex holds the ref to your NPCPlayerApex
     
  4. were exactly do i need to do this sorry to be a pain
     
  5. i think i will wait till botspawn is updated by steenamaroo
     
  6. I would like to express my deepest appreciation for all of your work and willingness in helping resolving this issue because of it i was able to work my first touch at writing code thanks again.
     
    tatoforever likes this.
  7. Apparently I can't post an update?
    Here's the workaround, with thanks to @tatoforever
     

    Attached Files:

    aproposnix and tatoforever like this.
  8. @willj86
    Sorry I just got in, didn't read your message before leaving, @Steenamaroo posted an update with the workaround i found with.
     
  9. how do i fix this..

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

    (02:12:51) | Calling hook OnNpcPlayerTarget resulted in a conflict between the following plugins: ZoneManager - False (Boolean), BotSpawn (True (Boolean))

    (02:12:51) | NullReferenceException: Object reference not set to an instance of an object
     
    Last edited by a moderator: Aug 5, 2018
  10. Hi, Anyone facing the problem of botspawn with compound bow? Cuz everytime they have compound bow on them, my console goes crazy spamming with this message "NullReferenceException: Object reference not set to an instance of an object" and also messed up other custom botspawn spawns as well.
     
  11. Maybe the overdraw on the compound bow causes that? does it do that on the normal bow?
     
  12. I've never recommended anything other than bullet projectile and regular melee weapons.
    Fire, arrows, rockets....I wouldn't bother.
     
    aproposnix likes this.
  13. How do I add scrap to the bot's inventory?
     
  14. Code:
    Failed to run a 2.00 timer in 'BotSpawn v1.7.5' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.BotSpawn.SetRange (NPCPlayerApex npcPlayer) [0x0002f] in <10f4d1863ad14493a19395a4db3d9200>:0 at Oxide.Plugins.BotSpawn.SelectWeapon (NPCPlayerApex npcPlayer) [0x00125] in <10f4d1863ad14493a19395a4db3d9200>:0 at Oxide.Plugins.BotSpawn+c__AnonStorey3.<>m__0 () [0x00000] in <10f4d1863ad14493a19395a4db3d9200>:0 at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in :0
     
    Last edited by a moderator: Aug 6, 2018
    Steenamaroo likes this.
  15. I'm pretty sure you would use Kits for this.
     
    Steenamaroo likes this.
  16. Code:
    NullReferenceException: Object reference not set to an instance of an object
      at NPCPlayerApex.OnAiQuestion (NPCPlayerApex source, Rust.Ai.AiQuestion_ShareEnemyTarget question) [0x000a7] in <9f5b7a9ff0c44ff99aacb86ef56ae396>:0
      at Scientist.AskQuestion (Rust.Ai.AiQuestion_ShareEnemyTarget question, System.Collections.Generic.List`1[Rust.Ai.AiAnswer_ShareEnemyTarget]& answers) [0x0002c] in <9f5b7a9ff0c44ff99aacb86ef56ae396>:0
      at Rust.Ai.SharePlayerTargetComm.Execute (Rust.Ai.PlayerTargetContext c) [0x00018] in <9f5b7a9ff0c44ff99aacb86ef56ae396>:0
      at Apex.AI.ActionBase`1[TContext].Apex.AI.IAction.Execute (Apex.AI.IAIContext context) [0x00001] in <7bc5c1faa2af4095bd4b5e00ae6066c5>:0
      at Apex.AI.CompositeAction.Execute (Apex.AI.IAIContext context) [0x0001e] in <7bc5c1faa2af4095bd4b5e00ae6066c5>:0
      at Apex.AI.Components.UtilityAIClient.Execute () [0x00071] in <7bc5c1faa2af4095bd4b5e00ae6066c5>:0
      at NPCPlayerApex.TickSensorySystem () [0x000c7] in <9f5b7a9ff0c44ff99aacb86ef56ae396>:0
      at NPCPlayerApex.Apex.LoadBalancing.ILoadBalanced.ExecuteUpdate (System.Single deltaTime, System.Single nextInterval) [0x00038] in <9f5b7a9ff0c44ff99aacb86ef56ae396>:0
      at Apex.LoadBalancing.LoadBalancedQueue.Update () [0x000ab] in <bb0a7f1370d1429d8f5843f17f216f71>:0
      at Apex.LoadBalancing.LoadBalancerComponent.Update () [0x00006] in <bb0a7f1370d1429d8f5843f17f216f71>:0 
     
  17. There's no update option right now, presumably because of the site migration,
    so the fix is a handful of posts up ^^.
     
    tatoforever likes this.
  18. so Kits... Excuse my ignorance. Kits is a separate oxide plugin that will work in tandem with botspawn to allow me to make bots drop scrap?
     
  19. That's right, yes.
    There's a link to it in the overview, under optional dependencies.