BotSpawn

Moved

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

5/5, 81 likes
  1. Scratch that. brb.
    [DOUBLEPOST=1528072620][/DOUBLEPOST]@kektus - Hoping this might resolve it.
    Would you mind testing?
     

    Attached Files:

  2. Seems good so far!
     
  3. The BotSpawn zombies still hesitate to chase you (as circled in red) but regular rust murderers will chase you as much as they can (circled in green)
    botspawn vs rust.jpg
     
  4. Think this is the same problem as above.
    Got a fix for it last night.

    Thanks, all the same.
     
  5. Is there any way to remove the random names?
    I already have all my botnames
    "BotNames": [],
    but it's still giving out random names, and my DeathNotes already tells your the NPC name before anything else, so I set the prefix to the location instead, but the random name still shows after.
    bsname.JPG

    Edit: Just found out that if I leave the prefix alone, then it won't give a random name
     
    Last edited by a moderator: Jun 4, 2018
  6. Code:
    "BotNames": [],
    BotSpawn should generate a random name if there's no name entry, or an intentionally blank entry is chosen.
    If you had "BotNames": ["Jim", "", ""Andy], and the middle one got picked, you'd get a server-generated random name.

    Prefix shouldn't have any bearing on the main name. If it does you've found an error. ;)
     
  7. Just updated to latest version but getting this in my compiler log:

    Code:
    [SERVER v1.0.20] Got Message: Compile
    [SERVER v1.0.20] Console: BotSpawn.cs(236,17): warning CS0219: The variable `idleTimeout' is assigned but its value is never used
    BotSpawn.cs(325,42): warning CS0219: The variable `contentList' is assigned but its value is never used
    BotSpawn.cs(1048,28): warning CS0219: The variable `attackerheldEntity1' is assigned but its value is never used
    BotSpawn.cs(1569,25): error CS1061: Type `NPCPlayerApex' does not contain a definition for `utilityAiComponent' and no extension method `utilityAiComponent' of type `NPCPlayerApex' could be found. Are you missing an assembly reference?
    /home/rust/server/Assembly-CSharp.dll (Location of the symbol related to previous error)
    BotSpawn.cs(1803,17): warning CS0472: The result of comparing value type `UnityEngine.Vector3' with null is always `false'[SERVER v1.0.20] Connection closed.
    [SERVER v1.0.20] Shutdown
     
  8. The message about 1569 suggests your oxide isn't up to date.
    The rest I can tidy up. Thanks.
     
    Last edited by a moderator: Jun 4, 2018
  9. Cool - bots are appearing but seem to be ignoring Kits... any changes there?
     
  10. Nope. What kits version are you on?
     
  11. Latest version - I'll try restarting server again, see if something changes.
     
  12. Would it be possible to edit the config in such a way so that I can have zombies spawn at monuments along side scientists?
     
  13. No, still getting default blue scientist or murderer.
    [DOUBLEPOST=1528125198][/DOUBLEPOST]
    You could do that with custom locations, might be easier to manage in the future as well as Steenamaroo seems to be implementing some kind of monument following feature for custom locations (Unless I dreamt I read that).
     
  14. Yeah, I just don't want to fly to every single monument to create a spawn location every wipe lol
     
  15. Any relevant console output?
    I'm not aware of any kit related issues right now, and they're working fine for me.

    You didn't dream it. Migration is automatic in the version I'm running right now.

    You wont have to after next update.
    There'll be an option in data profiles to set Parent_Monument = "Dome", for example.
     
  16. Sshhhheeeetttt.....

    I copied the wrong kit json file to the server and overwrote my kits :( lost 'em all.

    Oh well, thanks for the great plugin, guess I know what my future holds for me :p
     
  17. Error while compiling: BotSpawn.cs(1569,25): error CS1061: Type `NPCPlayerApex' does not contain a definition for `utilityAiComponent' and no extension method `utilityAiComponent' of type `NPCPlayerApex' could be found. Are you missing an assembly reference?
     
  18. You need to update oxide.
     
  19. Oxide.Rust 2.0.3929

    Code:
    20:01 [Error] Failed to call hook 'OnEntitySpawned' on plugin 'BotSpawn v1.6.5' (KeyNotFoundException: The given key was not present in the dictionary.)
      at System.Collections.Generic.Dictionary`2[System.String,Oxide.Plugins.BotSpawn+MonumentSettings].get_Item (System.String key) [0x00000] in <filename unknown>:0
      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
    20:01 [Error] Failed to call hook 'OnEntitySpawned' on plugin 'BotSpawn v1.6.5' (KeyNotFoundException: The given key was not present in the dictionary.)
      at System.Collections.Generic.Dictionary`2[System.String,Oxide.Plugins.BotSpawn+MonumentSettings].get_Item (System.String key) [0x00000] in <filename unknown>:0
      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 
     
  20. Did you get that on server start up?
    I saw it a few times on mine, then couldn't get it to happen again when I wanted it to!
    [DOUBLEPOST=1528142676][/DOUBLEPOST]Never mind - Found and fixed.
    Thanks.