Failed to call hook....

(22:49:48) | Failed to call hook 'OnEntityKill' on plugin 'HeliControl v1.4.2' (ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: heliSpawnTime) at Oxide.Plugins.HeliControl.GetHeliSpawnTimer (System.Single heliSpawnTime) [0x0000b] in <a485f00806964325b7474ab25938d2d4>:0at Oxide.Plugins.HeliControl.OnEntityKill (BaseNetworkable entity) [0x000eb] in <a485f00806964325b7474ab25938d2d4>:0at Oxide.Plugins.HeliControl.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x005dc] in <a485f00806964325b7474ab25938d2d4>:0at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0

This is with the most recent update. Never had any issues with this plugin until now

I'm sorry to hear that! Could you please post a copy of your HeliControl.json configuration file?
Thank you!

I am also having this issue  Failed to call hook 'OnEntityKill' on plugin 'HeliControl v1.4.2' (ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: heliSpawnTime) at Oxide.Plugins.HeliControl.GetHeliSpawnTimer (System.Single heliSpawnTime) [0x0000b] in :0 at Oxide.Plugins.HeliControl.OnEntityKill (BaseNetworkable entity) [0x000eb] in :0 at Oxide.Plugins.HeliControl.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x005dc] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0

 

Here is a copy of my HeliControl.json I did remove all files of helicontrol and installed this new version of HeliControl v1.4.2

{
"Cooldowns": {
"Cooldown.0": 86400.0,
"Cooldown.1": 86400.0,
"Cooldown.2": 86400.0,
"Cooldown.3": 86400.0,
"Cooldown.4": 86400.0,
"Cooldown.5": 86400.0,
"Cooldown.6": 86400.0,
"Cooldown.7": 86400.0,
"Cooldown.8": 86400.0,
"Cooldown.9": 86400.0,
"cooldown.ch47.0": 86400.0,
"cooldown.ch47.1": 86400.0,
"cooldown.ch47.2": 86400.0,
"cooldown.ch47.3": 86400.0,
"cooldown.ch47.4": 86400.0,
"cooldown.ch47.5": 86400.0,
"cooldown.ch47.6": 86400.0,
"cooldown.ch47.7": 86400.0,
"cooldown.ch47.8": 86400.0,
"cooldown.ch47.9": 86400.0,
"Cooldown.ch47.0": 86400.0,
"Cooldown.ch47.1": 86400.0,
"Cooldown.ch47.2": 86400.0,
"Cooldown.ch47.3": 86400.0,
"Cooldown.ch47.4": 86400.0,
"Cooldown.ch47.5": 86400.0,
"Cooldown.ch47.6": 86400.0,
"Cooldown.ch47.7": 86400.0,
"Cooldown.ch47.8": 86400.0,
"Cooldown.ch47.9": 86400.0
},
"Damage - Global damage multiplier": 1.0,
"Gibs - Health of gibs": 500.0,
"Gibs - Time until gibs can be harvested in seconds": 10.0,
"Health - Base CH47 health": 4000.0,
"Health - Base Helicopter health": 25000.0,
"Health - Main rotor health": 3500.0,
"Health - Tail rotor health": 2500.0,
"Limits": {
"Limit.0": 5,
"Limit.1": 5,
"Limit.2": 5,
"Limit.3": 5,
"Limit.4": 5,
"Limit.5": 5,
"Limit.6": 5,
"Limit.7": 5,
"Limit.8": 5,
"Limit.9": 5,
"limit.ch47.0": 5,
"limit.ch47.1": 5,
"limit.ch47.2": 5,
"limit.ch47.3": 5,
"limit.ch47.4": 5,
"limit.ch47.5": 5,
"limit.ch47.6": 5,
"limit.ch47.7": 5,
"limit.ch47.8": 5,
"limit.ch47.9": 5,
"Limit.ch47.0": 5,
"Limit.ch47.1": 5,
"Limit.ch47.2": 5,
"Limit.ch47.3": 5,
"Limit.ch47.4": 5,
"Limit.ch47.5": 5,
"Limit.ch47.6": 5,
"Limit.ch47.7": 5,
"Limit.ch47.8": 5,
"Limit.ch47.9": 5
},
"Loot - Max Crates to drop": 6,
"Loot - Time before unlocking CH47 crates": -1.0,
"Loot - Time before unlocking crates": -1.0,
"Loot - Use Custom loot spawns": false,
"Misc - Helicopter can shoot while dying": true,
"Misc - Helicopter speed": 20.0,
"Misc - Helicopter startup length in seconds": 0.0,
"Misc - Helicopter startup speed": 15.0,
"Misc - Maximum CH47 life time in minutes": 15,
"Misc - Maximum helicopter life time in minutes": 15,
"Misc - Prevent crates from spawning when forcefully killing helicopter": true,
"Rockets - Blunt damage to deal": 175.0,
"Rockets - Explosion damage to deal": 100.0,
"Rockets - Explosion radius": 7.0,
"Rockets - Max helicopter rockets": 30,
"Rockets - Time between each rocket in seconds": 0.1,
"Spawning - Automatically call CH47 between max seconds": 0.0,
"Spawning - Automatically call CH47 between min seconds": 0.0,
"Spawning - Automatically call CH47 if one is already flying": false,
"Spawning - Automatically call helicopter between max seconds": 0.0,
"Spawning - Automatically call helicopter between min seconds": 0.0,
"Spawning - Automatically call helicopter if one is already flying": false,
"Spawning - Chinooks to spawn": 1,
"Spawning - Disable CH47 default spawns": false,
"Spawning - Disable Helicopter": false,
"Spawning - Disable helicopter gibs": false,
"Spawning - Disable helicopter napalm": false,
"Spawning - Disable Rust's default spawns": false,
"Spawning - Helicopters to spawn": 1,
"Spawning - Max active helicopters": -1,
"Spawning - Spawn CH47 after restart": false,
"Spawning - Spawn helicopter after restart": false,
"Spawning - Spawn helicopters directly on target": true,
"Spawning - Use custom helicopter spawns": false,
"Spawning - Use static spawning": false,
"Spawning - Use static spawning for CH47": false,
"Turrets - Helicopter bullet accuracy": 1.0,
"Turrets - Helicopter bullet damage": 35.0,
"Turrets - Helicopter bullet speed": 100,
"Turrets - Max range": 350.0,
"Turrets - Time between turret bursts in seconds": 3.0,
"Turrets - Turret burst length in seconds": 3.0,
"Turrets - Turret fire rate in seconds": 0.1
}

I saw the dupicates of Cooldown.ch47 and limits.ch47 so deleted those. Mine is basically the same config as his, just a little different. 

{
"Cooldowns": {
"Cooldown.0": 172800.0,
"Cooldown.1": 172800.0,
"Cooldown.2": 172800.0,
"Cooldown.3": 172800.0,
"Cooldown.4": 172800.0,
"Cooldown.5": 172800.0,
"Cooldown.6": 172800.0,
"Cooldown.7": 172800.0,
"Cooldown.8": 172800.0,
"Cooldown.9": 172800.0,
"cooldown.ch47.0": 86400.0,
"cooldown.ch47.1": 86400.0,
"cooldown.ch47.2": 86400.0,
"cooldown.ch47.3": 86400.0,
"cooldown.ch47.4": 86400.0,
"cooldown.ch47.5": 86400.0,
"cooldown.ch47.6": 86400.0,
"cooldown.ch47.7": 86400.0,
"cooldown.ch47.8": 86400.0,
"cooldown.ch47.9": 86400.0,
},
"Damage - Global damage multiplier": 1.0,
"Gibs - Health of gibs": 1000.0,
"Gibs - Time until gibs can be harvested in seconds": 0.0,
"Health - Base CH47 health": 20000.0,
"Health - Base Helicopter health": 20000.0,
"Health - Main rotor health": 10000.0,
"Health - Tail rotor health": 10000.0,
"Limits": {
"Limit.0": 5,
"Limit.1": 5,
"Limit.2": 5,
"Limit.3": 5,
"Limit.4": 5,
"Limit.5": 5,
"Limit.6": 5,
"Limit.7": 5,
"Limit.8": 5,
"Limit.9": 5,
"limit.ch47.0": 5,
"limit.ch47.1": 5,
"limit.ch47.2": 5,
"limit.ch47.3": 5,
"limit.ch47.4": 5,
"limit.ch47.5": 5,
"limit.ch47.6": 5,
"limit.ch47.7": 5,
"limit.ch47.8": 5,
"limit.ch47.9": 5,
},
"Loot - Max Crates to drop": 4,
"Loot - Time before unlocking CH47 crates": -1.0,
"Loot - Time before unlocking crates": -1.0,
"Loot - Use Custom loot spawns": true,
"Misc - Helicopter can shoot while dying": true,
"Misc - Helicopter speed": 30.0,
"Misc - Helicopter startup length in seconds": 0.0,
"Misc - Helicopter startup speed": 25.0,
"Misc - Maximum CH47 life time in minutes": 30,
"Misc - Maximum helicopter life time in minutes": 30,
"Misc - Prevent crates from spawning when forcefully killing helicopter": true,
"Rockets - Blunt damage to deal": 250.0,
"Rockets - Explosion damage to deal": 250.0,
"Rockets - Explosion radius": 8.0,
"Rockets - Max helicopter rockets": 35,
"Rockets - Time between each rocket in seconds": 0.2,
"Spawning - Automatically call CH47 between max seconds": 0.0,
"Spawning - Automatically call CH47 between min seconds": 0.0,
"Spawning - Automatically call CH47 if one is already flying": false,
"Spawning - Automatically call helicopter between max seconds": 0.0,
"Spawning - Automatically call helicopter between min seconds": 0.0,
"Spawning - Automatically call helicopter if one is already flying": false,
"Spawning - Chinooks to spawn": 1,
"Spawning - Disable CH47 default spawns": false,
"Spawning - Disable Helicopter": false,
"Spawning - Disable helicopter gibs": false,
"Spawning - Disable helicopter napalm": true,
"Spawning - Disable Rust's default spawns": false,
"Spawning - Helicopters to spawn": 1,
"Spawning - Max active helicopters": -1,
"Spawning - Spawn CH47 after restart": false,
"Spawning - Spawn helicopter after restart": false,
"Spawning - Spawn helicopters directly on target": true,
"Spawning - Use custom helicopter spawns": false,
"Spawning - Use static spawning": false,
"Spawning - Use static spawning for CH47": false,
"Turrets - Helicopter bullet accuracy": 1.0,
"Turrets - Helicopter bullet damage": 15.0,
"Turrets - Helicopter bullet speed": 400,
"Turrets - Max range": 800.0,
"Turrets - Time between turret bursts in seconds": 4.0,
"Turrets - Turret burst length in seconds": 10.0,
"Turrets - Turret fire rate in seconds": 0.125
}

Merged post

Oh, is it because of the   {   at the top there but doesn't have a closing   },?

Merged post

After removing the duplicate items in the config I still get this after loading it...

(10:24:25) | HeliControl was compiled successfully in 2518ms
(10:24:25) | Calling 'Unload' on 'HeliControl v1.4.2' took 260ms
(10:24:25) | Unloaded plugin HeliControl v1.4.2 by Shady
(10:24:26) | Duplicate permission registered 'helicontrol.limit.ch47.0' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.limit.ch47.1' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.limit.ch47.2' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.limit.ch47.3' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.limit.ch47.4' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.limit.ch47.5' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.limit.ch47.6' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.limit.ch47.7' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.limit.ch47.8' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.limit.ch47.9' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.cooldown.ch47.0' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.cooldown.ch47.1' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.cooldown.ch47.2' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.cooldown.ch47.3' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.cooldown.ch47.4' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.cooldown.ch47.5' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.cooldown.ch47.6' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.cooldown.ch47.7' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.cooldown.ch47.8' (by plugin 'HeliControl')
(10:24:26) | Duplicate permission registered 'helicontrol.cooldown.ch47.9' (by plugin 'HeliControl')
(10:24:26) | Loaded plugin HeliControl v1.4.2 by Shady



Merged post

Any update to this yet?

OK I reverted back to v1.4.0. No issues with that one 

Hi, friends. I've been troubleshooting an issue with a user via DMs. It has been persistent, but I am quite sure I've fixed it now. Awaiting testing, and tomorrow I'll upload a new version.

TilcTgfVtXIDJTV.jpg Shady

Hi, friends. I've been troubleshooting an issue with a user via DMs. It has been persistent, but I am quite sure I've fixed it now. Awaiting testing, and tomorrow I'll upload a new version.

Thank you

any fixes for this as of yet? just implemented in my server and am getting fail to call hook "onentityspawn" for helicontrol for the chinook.

uQBjuco9JCIvXtQ.jpg JuanTonCummins

any fixes for this as of yet? just implemented in my server and am getting fail to call hook "onentityspawn" for helicontrol for the chinook.

has been running without problems since last plugin update

uQBjuco9JCIvXtQ.jpg JuanTonCummins

any fixes for this as of yet? just implemented in my server and am getting fail to call hook "onentityspawn" for helicontrol for the chinook.

Same mine has been working since last update as well try to save and then delete your config and reinstall

it works fine it just has annoying failed to call hook messages in the console. i guess it's not "an issue" it's just annoying to see it spamming in the RCON console.

So will/can this be fixed.
I have it too.
Just installed the plugin for the first time and only changed min and max times of heli spawns.