BotSpawn

Moved

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

5/5, 81 likes
  1. This error is happening to servers even without botspawn installed i think we need an oxide update since rust servers updated a few hours ago.
     
  2. All, the above issue you're having is from the latest Oxide release, not the plugin. There'll most likely be a patched version soon.
     
  3. Are your Oxide and Server Files up to date?
    Have you wiped your old BotSpawn Config files? Its needed so the Plugin can Write fresh ones.
    Also you have an Error in your Config File:
    Code:
    Unexpected character encountered while parsing value: k. Path 'Zones.AirDrop.Kit', line 24, position 14.)
     
  4. I'll look into preventing this error.
    Do you have any plugins that would be removing corpses, or doing anything to corpses?



    Correct - Anything junk pile related is not coming from BotSpawn

    The error is telling you where the problem is.
    Config file is corrupt - Unexpected character in the kit for Airdrop Bots.
    Double check your syntax there, and reload.

    From overview:
    Kit - [], = no kit.
    Custom looks like ["kit1"], for single or ["kit1","kit2", "kit3"], for many.
     
    Last edited by a moderator: Mar 5, 2018
  5. latest server update
    Code:
    (17:43:32) | Failed to call hook 'cmdDefaultBots' on plugin 'BotSpawn v1.5.1' (NullReferenceException: Object reference not set to an instance of an object)
      at NPCPlayerApex.DoServerDestroy () [0x00000] in <filename unknown>:0
      at Scientist.DoServerDestroy () [0x00000] in <filename unknown>:0
      at BaseNetworkable.DoEntityDestroy () [0x00000] in <filename unknown>:0
      at BaseNetworkable.Kill (DestroyMode mode) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.cmdDefaultBots () [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
    when i run the cmd botspawn.reset.

    currently running oxide version
    2.0.3853
    Protocol: 2062.158.1

    Build Date: 03/04/2018 14:50:41

    Unity Version: 2017.1.3f1

    Changeset: 25787

    Branch: release

     
  6. I see this whenever someone kills an NPC:
    Code:
    XXXX left the server (Reason: Kicked: RPC Error in OnProjectileAttack)
    NullReferenceException: Object reference not set to an instance of an object
    NullReferenceException: Object reference not set to an instance of an object
     
  7. it is not the plugin. I uninstalled it and there are still npc's of facepunch there. if i shoot this, the server kicks me. (Reason: Kicked: RPC Error in OnProjectileAttack)
     
  8. Indeed, i also removed all plugins to check, still kicks players
     
  9. same here, players getting RPC and disconnect on bot kill.
    Code:
    BOT[10409933/6486417] was killed by bradleyapc (entity)NullReferenceException: Object reference not set to an instance of an object
    NPCPlayerApex.OnKilled (.HitInfo info)
    BaseCombatEntity.Die (.HitInfo info)
    BasePlayer.Die (.HitInfo info)
    BaseCombatEntity.Hurt (.HitInfo info)
    BasePlayer.Hurt (.HitInfo info)
    NPCPlayerApex.Hurt (.HitInfo info)
    TriggerHurtEx.DoDamage (.BaseEntity ent, HurtType type, System.Collections.Generic.List`1 damage, .GameObjectRef effect, Single multiply)
    TriggerHurtEx.ProcessQueues ()
    InvokeHandler.DoTick ()
    InvokeHandler.LateUpdate ()
    NullReferenceException: Object reference not set to an instance of an object
    NPCPlayerApex.DoServerDestroy ()
    Scientist.DoServerDestroy ()
    BaseNetworkable.DoEntityDestroy ()
    BaseNetworkable.Kill (DestroyMode mode)
    BaseNetworkable.KillMessage ()
    InvokeHandler.DoTick ()
    InvokeHandler.LateUpdate ()BOT[10409429/8553021] was killed by Titanium |NullReferenceException: Object reference not set to an instance of an object
    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()
    NullReferenceException: Object reference not set to an instance of an object
    NPCPlayerApex.DoServerDestroy ()
    Scientist.DoServerDestroy ()
    BaseNetworkable.DoEntityDestroy ()
    BaseNetworkable.Kill (DestroyMode mode)
    BaseNetworkable.KillMessage ()
    InvokeHandler.DoTick ()
    InvokeHandler.LateUpdate ()
     
  10. Using LootConfig?

    If so, remove and restart server.
    [DOUBLEPOST=1520275648][/DOUBLEPOST]FAQ

    Q: I'm seeing RPC errors when killing bots.
    A: Issues have been reported when using LootConfig and BotSpawn.
    Trying removing LootConfig and restarting your server.
     
  11. also got this on unloading plugin:
    Code:
    Failed to call hook 'Unload' on plugin 'BotSpawn v1.5.1' (NullReferenceException: Object reference not set to an instance of an object)   at NPCPlayerApex.DoServerDestroy () [0x00000] in <filename unknown>:0   at Scientist.DoServerDestroy () [0x00000] in <filename unknown>:0   at BaseNetworkable.DoEntityDestroy () [0x00000] in <filename unknown>:0   at BaseNetworkable.Kill (DestroyMode mode) [0x00000] in <filename unknown>:0   at Oxide.Plugins.BotSpawn.Wipe () [0x00000] in <filename unknown>:0   at Oxide.Plugins.BotSpawn.Unload () [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
     
  12. no, no lootconfig, but magicloot.
     
  13. I should remove that - BotSpawn.reset isn't really a needed command and was added as a one-off fix measure for a fairly massive balls-up a while back.

    If you want to remove all of your bots, reload or unload the plugin.
    [DOUBLEPOST=1520275764][/DOUBLEPOST]
    Did you fully restart the server after removing plugins?
    [DOUBLEPOST=1520276018][/DOUBLEPOST]I'll update oxide now and see if I'm getting any errors.
     
  14. and i never had issue like this, always had magicloot plugin installed along with botspawn.
     
  15. It's happening also without any plugins, so it's not BotSpawn or a loot plugin interfering
     
  16. Sorry to be a burden...

    As others, since the Oxide & Facepunch updates I have been getting the following error codes upon reloading BotSpawn;

    Code:
    Failed to call hook 'Unload' on plugin 'BotSpawn v1.4.6' (NullReferenceException: Object reference not set to an instance of an object)
      at NPCPlayerApex.DoServerDestroy () [0x00000] in <filename unknown>:0
      at Scientist.DoServerDestroy () [0x00000] in <filename unknown>:0
      at BaseNetworkable.DoEntityDestroy () [0x00000] in <filename unknown>:0
      at BaseNetworkable.Kill (DestroyMode mode) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.Wipe () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.Unload () [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
    (19:11:54) | Unloaded plugin BotSpawn v1.4.6 by Steenamaroo
    (19:11:54) | Calling kill - but already IsDestroyed!? Dock Tees Dylan[0/5144312]
    (19:11:54) | Calling kill - but already IsDestroyed!? Boating Bill[0/7075402]
    (19:11:54) | Calling kill - but already IsDestroyed!? Bad News Brian[0/2790520]
    (19:11:54) | Failed to initialize plugin 'BotSpawn v1.4.6' (NullReferenceException: Object reference not set to an instance of an object)
      at NPCPlayerApex.DoServerDestroy () [0x00000] in <filename unknown>:0
      at Scientist.DoServerDestroy () [0x00000] in <filename unknown>:0
      at BaseNetworkable.DoEntityDestroy () [0x00000] in <filename unknown>:0
      at BaseNetworkable.Kill (DestroyMode mode) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.Wipe () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.Init () [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.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    (19:11:54) | Unloaded plugin BotSpawn v1.4.6 by Steenamaroo
    (19:11:54) | Previous version of plugin failed to load: BotSpawn
    (19:12:16) | BotSpawn was compiled successfully in 154ms
    (19:12:16) | Loaded plugin BotSpawn v1.5.1 by Steenamaroo
    (19:12:20) | Failed to call hook 'Unload' on plugin 'BotSpawn v1.5.1' (NullReferenceException: Object reference not set to an instance of an object)
      at NPCPlayerApex.DoServerDestroy () [0x00000] in <filename unknown>:0
      at Scientist.DoServerDestroy () [0x00000] in <filename unknown>:0
      at BaseNetworkable.DoEntityDestroy () [0x00000] in <filename unknown>:0
      at BaseNetworkable.Kill (DestroyMode mode) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.Wipe () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.Unload () [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
    (19:12:20) | Unloaded plugin BotSpawn v1.5.1 by Steenamaroo
    (19:12:20) | Calling kill - but already IsDestroyed!? Dock Tees Dylan[0/3548891]
    (19:12:20) | Calling kill - but already IsDestroyed!? Boating Bill[0/1540662]
    (19:12:20) | Calling kill - but already IsDestroyed!? Bad News Brian[0/3018371]
    (19:12:20) | Failed to initialize plugin 'BotSpawn v1.5.1' (NullReferenceException: Object reference not set to an instance of an object)
      at NPCPlayerApex.DoServerDestroy () [0x00000] in <filename unknown>:0
      at Scientist.DoServerDestroy () [0x00000] in <filename unknown>:0
      at BaseNetworkable.DoEntityDestroy () [0x00000] in <filename unknown>:0
      at BaseNetworkable.Kill (DestroyMode mode) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.Wipe () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.Init () [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.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
     
  17. Ok, I'm seeing the same error with a Rust default scientist and a server with no plugins (after restart).
    Reported in the relevant support thread.

    Thanks people.

    Pretty sure this is all a backlash from the RPC issue.
     
  18. Despite having
    Code:
    "Supply_Enabled": false
    with the airdrop activated, NPCs spawn on airdrops called in by players. Any clue why?