It works now when I modify and reload, but it doesn't affect turrets placed afterward until I reload the plugin.
TurretConfig
Moved
Total Downloads: 4,361 - First Release: Nov 3, 2015 - Last Update: May 13, 2017
- 5/5, 24 likes
-
thanks for your Feedback, i will try it later..
-
Thanks for the script.....
In a future version, might consider breaking out the individual animal types and/or accounting for pets
Later -
[Oxide] 8:48 AM [Warning] Calling hook CanBeTargeted resulted in a conflict between the following plugins: TurretConfig, Vanish
-
Wulf Community Admin
-
Calytic Community Admin Community Mod
Calytic updated TurretConfig with a new update entry:
0.0.7
-
Hi there.
When I reloaded my mods today (oxide.reload *) I saw this error.
Code:[Oxide] 2:33 AM [Info] Loaded plugin TurretConfig v0.0.7 by Calytic [Oxide] 2:33 AM [Error] Failed to call hook 'OnServerInitialized' on plugin 'TurretConfig v0.0.7' (InvalidCastException: Value is not a convertible object: System.Collections.Generic.List`1[System.Object] to System.Collections.Generic.List`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]) [Oxide] 2:33 AM [Debug] at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0 at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x00000] in <filename unknown>:0 at Oxide.Plugins.TurretConfig.GetConfig[List`1] (System.String name, System.Collections.Generic.List`1 defaultValue) [0x00000] in <filename unknown>:0 at Oxide.Plugins.TurretConfig.OnServerInitialized () [0x00000] in <filename unknown>:0 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
-
-
-
Any way to make this work so it does not do this
[11/14/2015 2:13:05 PM] [Oxide] 2:13 PM [Warning] Calling hook CanBeTargeted resulted in a conflict between the following plugins: Vanish, TurretConfig
[DOUBLEPOST=1447513500][/DOUBLEPOST] -
at 3:40 am for me.
-
can you add option for infinite ammo for folks with permission or Level 2? I have killing zones and I want to have them never run out
-
would'nt that be making it a "hack" instead of an improvement
-
Had to remove this plugin as I got this error on a server restart
Code:[11/16/2015 2:26:42 AM] [Oxide] 2:26 AM [Error] Failed to call hook 'OnServerInitialized' on plugin 'TurretConfig v0.0.7' (InvalidCastException: Value is not a convertible object: System.Collections.Generic.List`1[System.Object] to System.Collections.Generic.List`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]) [11/16/2015 2:26:47 AM] [Oxide] 2:26 AM [Error] Failed to call hook 'CanBeTargeted' on plugin 'TurretConfig v0.0.7' (NullReferenceException: Object reference not set to an instance of an object) [11/16/2015 2:26:47 AM] [Oxide] 2:26 AM [Error] Failed to call hook 'CanBeTargeted' on plugin 'TurretConfig v0.0.7' (NullReferenceException: Object reference not set to an instance of an object) [11/16/2015 2:26:47 AM] [Oxide] 2:26 AM [Error] Failed to call hook 'CanBeTargeted' on plugin 'TurretConfig v0.0.7' (NullReferenceException: Object reference not set to an instance of an object) [11/16/2015 2:26:53 AM] [Oxide] 2:26 AM [Error] Failed to call hook 'CanBeTargeted' on plugin 'TurretConfig v0.0.7' (NullReferenceException: Object reference not set to an instance of an object) [11/16/2015 2:26:54 AM] [Oxide] 2:26 AM [Error] Failed to call hook 'CanBeTargeted' on plugin 'TurretConfig v0.0.7' (NullReferenceException: Object reference not set to an instance of an object) [11/16/2015 2:26:54 AM] [Oxide] 2:26 AM [Error] Failed to call hook 'CanBeTargeted' on plugin 'TurretConfig v0.0.7' (NullReferenceException: Object reference not set to an instance of an object) [11/16/2015 2:26:54 AM] [Oxide] 2:26 AM [Error] Failed to call hook 'CanBeTargeted' on plugin 'TurretConfig v0.0.7' (NullReferenceException: Object reference not set to an instance of an object) [11/16/2015 2:26:54 AM] [Oxide] 2:26 AM [Error] Failed to call hook 'CanBeTargeted' on plugin 'TurretConfig v0.0.7' (NullReferenceException: Object reference not set to an instance of an object)
-
-
I have installed the plugin (which shows on my plugin list) I am getting no errors in my console BUT nothing has changed, the "health"
still shows normal 750 and the "scan" left to right has not increased. Have I made the range/health/or cone too great ?
{
"adminOverride": true,
"animalOverride": false,
"aimCone": 8.0,
"ammoType": "ammo.rifle",
"bulletDamage": 400.0,
"bulletSpeed": 200.0,
"clanOverride": false,
"globalDamageModifier": 5.0,
"health": 1000.0,
"sightRange": 250.0,
"useGlobalDamageModifier": true,
"animals": [
"stag",
"boar",
"chicken",
"horse"
],
} -
If not do that now -
oxide reload turret config would be right ? and do I have to have the server offline at the time, I always thought that once you saved and restarted the server the file would be updated.
ps,
I did check the file with jsonlint but it would not validate it as it says there is an error on line
"horse"
],
}
Says it was "expecting string" -
-