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
TurretConfig
Moved
Total Downloads: 4,361 - First Release: Nov 3, 2015 - Last Update: May 13, 2017
- 5/5, 24 likes
-
Calytic Community Admin Community Mod
Calytic updated TurretConfig with a new update entry:
0.0.41
-
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.) -
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 -
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. -
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.
-
Calytic Community Admin Community Mod
Calytic updated TurretConfig with a new update entry:
0.0.42
-
Well, no errors on first install of plugin time will tell once it targets someone
-
Calytic Community Admin Community Mod
Calytic updated TurretConfig with a new update entry:
0.0.5
-
Getting the below spamming in console
10:09 AM [Warning] Calling hook CanBeTargeted resulted in a conflict between the following plugins: Vanish, TurretConfig -
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.
-
-
(13:15:13) | [Oxide] 1:15 PM [Warning] Calling hook CanBeTargeted resulted in a conflict between the following plugins: TurretConfig, Vanish
-
Calytic Community Admin Community Mod
-
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.
-
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
-
Calytic Community Admin Community Mod
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 }); }
Code:bool HasFriend(string playerId, string friendId) { if (lib == null) return false; return (bool)hasFriend.Invoke(lib, new object[] { playerId, friendId }); }
-
Calytic Community Admin Community Mod
Calytic updated TurretConfig with a new update entry:
0.0.6
-
Thanks a lot, will test this now.
-