TurretConfig

Moved

Total Downloads: 4,361 - First Release: Nov 3, 2015 - Last Update: May 13, 2017

5/5, 24 likes
  1. Code:
    [Oxide] 7:11 PM [Error] Failed to call hook 'CanBeTargeted' on plugin 'TurretConfig v0.0.4' (InvalidCastException: Cannot cast from source type to destination type.)
    [Oxide] 7:11 PM [Debug]  at Oxide.Plugins.TurretConfig.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo 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 hookname, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  2. Calytic

    Calytic Community Admin Community Mod

    Calytic updated TurretConfig with a new update entry:

    0.0.41

     
  3. Still has an error
    [11/6/2015 12:36:30 PM] [Oxide] 12:36 PM [Error] Failed to call hook 'CanBeTargeted' on plugin 'TurretConfig v0.0.41' (InvalidCastException: Cannot cast from source type to destination type.)
     
  4. Hi, sorry,I usedtranslator: translate.yandex.ru
    The pluginconflicts with the helicopter:
    Code:
    9:53 PM [Error] Failed to call hook 'CanBeTargeted' on plugin 'TurretConfig v0.0.41' (InvalidCastException: Cannot cast from source type to destination type.)
    9:53 PM [Debug]  at Oxide.Plugins.TurretConfig.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo 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 hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    9:53 PM [Warning] CallHook 'CanBeTargeted' on plugin 'TurretConfig v0.0.41' took: 750ms
    9:53 PM [Warning] CallHook 'CanBeTargeted' on plugin 'TurretConfig v0.0.41' took average: 959ms
    9:53 PM [Error] Failed to call hook 'CanBeTargeted' on plugin 'TurretConfig v0.0.41' (InvalidCastException: Cannot cast from source type to destination type.)
    9:53 PM [Debug]  at Oxide.Plugins.TurretConfig.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo 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 hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    9:53 PM [Info] Unloaded plugin TurretConfig v0.0.41 by Calytic
    Если отключить плагин все хорошо
     
    Last edited by a moderator: Nov 7, 2015
  5. A suggestion to either add to this plugin or port to a new plugin.
    My players whinge about offline raiding, this might be a possible solution.
    Is it possible to make a turret more powerful after a user goes offline.

    Maybe as follows when all users authorised on turret go offline:
    X is variable for each choice in Config
    - Timer starts and waits for X seconds before activating Offline Protection.
    - Turret is X% stronger or invincible once activated
    - Turret has X more bullets or unlimited once activated
    - If an authorised user joins Turret back to normal

    Would be an awesome addition to this plugin as you already have the ability to change the turret power.
     
  6. Wulf

    Wulf Community Admin

    @Calytic, you should be checking if the turret is AutoTurret, else returning. Both hooks share the same name, but the 2nd parameter varies.
     
  7. Calytic

    Calytic Community Admin Community Mod

    Calytic updated TurretConfig with a new update entry:

    0.0.42

     
  8. Well, no errors on first install of plugin time will tell once it targets someone
     
  9. Calytic

    Calytic Community Admin Community Mod

    Calytic updated TurretConfig with a new update entry:

    0.0.5

     
  10. Getting the below spamming in console

    10:09 AM [Warning] Calling hook CanBeTargeted resulted in a conflict between the following plugins: Vanish, TurretConfig
     
  11. When adding friends with /friend add name , they are not spared from the turrets. Can this be done? I think its the clans or friendsAPI plugin.
     
  12. If you add the clan plugin then there is a setting in this config for clan override
     
  13. (13:15:13) | [Oxide] 1:15 PM [Warning] Calling hook CanBeTargeted resulted in a conflict between the following plugins: TurretConfig, Vanish
     
  14. Calytic

    Calytic Community Admin Community Mod

    This was fixed in version 0.0.7.
     
    Last edited: Nov 14, 2015
  15. This plugin isn't affecting turrets at all. Changed range, health, ammo type, cone, nothing was affected. Even restarted the server, still nothing. And of course I used oxide.reload TurretConfig after making changes.
     
  16. I noticed if you set clanOverride to true it will not shoot at anyone in a clan even if they go to another clans base the turrets will not shoot them this needs changed so it wont target anyone in the clan that the turret belongs to and will kill all other clans also the default health is 750 not 500 as you have set in the script
     
  17. Calytic

    Calytic Community Admin Community Mod

    You can't change turret settings mid-stream. I'll push an update which (I hope) fixes this.

    Ugh, Dcode made the HasFriend method private.

    Here, change the following code from
    Code:
    private bool HasFriend(string playerId, string friendId) {
                if (lib == null) return false;
                return (bool)hasFriend.Invoke(lib, new object[] { playerId, friendId });
            }
    to..
    Code:
    bool HasFriend(string playerId, string friendId) {
                if (lib == null) return false;
                return (bool)hasFriend.Invoke(lib, new object[] { playerId, friendId });
            }
     
  18. Calytic

    Calytic Community Admin Community Mod

    Calytic updated TurretConfig with a new update entry:

    0.0.6

     
  19. Thanks a lot, will test this now.
     
  20. Does this works now? Because it is implemented in the plugin. What Change does works sucessfully ingame? Tested it, and nothing worked for me. So: For what do we Need this? or got it fixed now?