BotSpawn

Moved

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

5/5, 81 likes
  1. yeah its pve. I just started trying to learn how to do this on a machine at home. So still trying to understand using plugins and how to set them up and all. Simpler is better for me right now but its apparent that this one isnt that simple. I will keep puttering at it until I get it. Thanks for the plugin info and that will be my next effort.
     
  2. So I installed the plugin you suggested. Works great for pve but I am back to when I shoot the zombies it hurts me.
     
  3. if u use plugin truepve u dont need server.pve true set it to false
     
  4. I did that but I will run it again to make sure
     
  5. and u need add some rules to the truepve config like this search and add the missing npcs

    {

    "name": "npcs",

    "members": "NPCPlayerApex, BradleyAPC, NPCMurderer, NPCScientist, murderer, scientist",

    "exclusions": ""

    },
     
    Last edited by a moderator: Jan 31, 2018
  6. That wasw already there. But apparently my server resets the pve tru flag now when I restart it and that was the issue. Working on it.
     
  7. Just the one question thanks, in relation to:
    Bot_Damage - 0.0 - 1 : 1 is normal

    Is this the strength of damage dished out by the Bot, or the damage inflicted on the Bot?
     
  8. It's damage's bot. 1 is normal and 0.5 is /2
     
  9. Just clarifying, so its the damage TO the Bot, right?
     
  10. Damage and accuracy govern their attacks.
    Health is the only option relating to damaged received.
     
  11. Why?

    [Notifier] GoDaDDy disconnected. (Reason: Kicked: RPC Error in OnProjectileAttack)
    NullReferenceException: Object reference not set to an instance of an object
    Scientist.CreateCorpse () BasePlayer.OnKilled (.HitInfo info) NPCPlayerApex.OnKilled (.HitInfo info) BaseCombatEntity.Die (.HitInfo info) BasePlayer.Die (.HitInfo info) BaseCombatEntity.Hurt (.HitInfo info) BasePlayer.Hurt (.HitInfo info) NPCPlayerApex.Hurt (.HitInfo info) BaseCombatEntity.OnAttacked (.HitInfo info) BasePlayer.OnAttacked (.HitInfo info) BasePlayer.OnProjectileAttack (RPCMessage msg) BasePlayer.OnRpcMessage (.BasePlayer player, UInt32 rpc, Network.Message msg) UnityEngine.Debug:LogException(Exception) BasePlayer:OnRpcMessage(BasePlayer, UInt32, Message) BaseEntity:SV_RPCMessage(UInt32, Message) ServerMgr:OnRPCMessage(Message) ServerMgr:OnNetworkMessage(Message) Facepunch.Network.Raknet.Server:ConnectedPacket(Connection) Facepunch.Network.Raknet.Server:Cycle() ServerMgr:Update()
     

  12. Perfect, many thanks.
     
  13. Question: When I set the bot's health to 200 (for all monuments) and then reload the plugin, their health still shows as 100. Am I missing something?
     
  14. Sounds like you may need to run your cfg file through the Code Validator https://jsonlint.com/
    This will highlight which line of coding is missing something like a comma. In fact, when you entered 200, did you add the comma at the end of the number?

    "BotHealth": 200,
     
  15. Yes, everything is fine with the code. The plugin compiles without errors in RCON when reloaded. I found out that they really do have more health, but Adminradar shows 100 next to their names. Seems the game is incapable of displaying more than 100 for the NPC health, but its actually there because when I shoot a murderer, as an example, it will show the damage done when I use /hitinfo, and will say that the NPC has 100 health left until it actually drops below 100.
     
  16. [DOUBLEPOST=1517443597][/DOUBLEPOST]Here's a paste from a comment by this developer on Page 100

    Yes, I'm afraid the health got capped at 100 a little while back.
    I wrote an alternative that, for all intents, gave them as much health as you like, but it didn't display correctly for people use health-display plugs, so I binned it.
    Was looking for an alternative solution but haven't got one yet.

    I may simply introduce a take-damage multiplier so max health is still 100, but if the multiplier was 0.5, for example, health would be equivalent of 200.
    Thoughts welcome....
     
    Last edited by a moderator: Feb 1, 2018
  17. ^^ This.
    If you set bot health to 200, for example, it actually is still 100 behind the scenes, but damaged received is halved.
    If you set it to 300 health remains 100 but damage is 1/3.
     
  18. hi. Sorry but the "peace keeper" option does not work anymore. Whether I put "yes" or "no", the "bots" shoot me whether I have a weapon in my hand or not. :(
     
  19. Bots not spawning. Showing 0 from bot.count.

    Error showing in rcon:

    Failed to call hook 'OnServerInitialized' on plugin 'BotSpawn v1.4.4' (NullReferenceException: Object reference not set to an instance of an object)
    at Oxide.Plugins.BotSpawn.AddProfile (System.String name, Oxide.Plugins.CustomSettings monument, Vector3 pos) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.BotSpawn.FindMonuments () [0x00000] in <filename unknown>:0
    at Oxide.Plugins.BotSpawn.OnServerInitialized () [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

    Have deleted all botspawn files and re downloaded. Is latest version 1.4.4.
    Have tried with add to command line "+nav_disable false +nav_grid true +ai_dormant false" and without.
    Have checked and validated json with The JSON Validator
    I have amended all to "Activate: true" in \oxide\config\BotSpawn.json

    ------------------------------------UPDATE----------------------------------

    I have reinstalled my server and loaded only the AI mod. IT IS WORKING! I am thinking it was either clashing with another mod or I had inadvertently deleted something I shouldn't have.
     
    Last edited by a moderator: Feb 1, 2018