HeliControl

Moved

Total Downloads: 35,358 - First Release: Sep 18, 2015 - Last Update: Apr 19, 2018

5/5, 74 likes
  1. Thanks Bro, it has been a bit, I just restarted my server :p

    What code?
    Not sure how to set up a group :(
    Yes Im stupid to computer code :p
     
  2. Sorry, I messed up the formatting. Read the post over again, and this is probably also worth a read: Using Oxide's permission system | Oxide
     
  3. Fantastic, thanks mate, you are the best =D
     
  4. I hate to bring this up again but I've been trying for days to get the loot tables to work properly with HeliControlData.json and nothing I do seems to work. I thought maybe it was a mod conflict but even in disabling the other plugins the issue persists.

    I will upload the custom loot tables that I have created but the main issue is that regardless of how many tables I have, the Helicopter crates only choose 2 of them (usually) and duplicate them 2-3 times. So I will have 2 of 1 loot table and 3 of another loot table (I run 5 crates) instead of having 5 completely unique crates. Also, occasionally I will have some boxes that are completely empty. Anyone have an idea?
     

    Attached Files:

  5. I'm pretty sure it's an actual bug with the code used for the loot, I'll have to check it out when I have time, I've been *really* busy in life and haven't had much time for things aside from working on my own personal server. I believe you can use the plugin "LootConfig" (I think that's the name?) and change the loot for crates there... the only problem is I think you'll have to make tables for everything else too, but I'm not sure, not too familiar with the plugin.

    If I remember correctly, it does allow changing the Heli's loot, and with a better system, at that.
     
  6. Yeah no pressure man. I was just seeing if any one else had a solution. I'll look into LootConfig.
     
  7. Yeah I remember having an issue doing custom loot also. I know that Better Loot Mod buggers the whole thing.
     
  8. I wish that were the case but I have disabled BetterLoot entirely and the issue still persists.
     
  9. Are any of you seeing this in the logs when they are taking down the Heli:

    Code:
    [Oxide] 12:48 [Debug]  at Oxide.Plugins.HeliControl.OnEntitySpawned (.BaseNetwo
    rkable entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.HeliControl.DirectCallHook (System.String name, System.Object
    & ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo metho
    d, 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[]
    
     
  10. Is this the full error? Can you please paste your config? And if you have custom loot, your oxide\data\HeliControlData.json, too? Thanks.
     
  11. I know it is int the list of messages here someplace, but maybe you could make it easier? Just add the lines for loot the admin wants.

    I mean the system is pretty easy to use anyway, but since i just reopened the server and am adding these files again, could you add the code into the jason for us fat lazy base tards :)
    [DOUBLEPOST=1461936122][/DOUBLEPOST]I also do not think it is possible but maybe. . . is there a way for the admin to control the heli? Control the aim the direction rockets the whole mess like the heli was a player.

    Slow the player movements to the speed of the chopper, alt to see there the chopper is shooting on the side, right click for the guns, put a timer on the screen for when rockets are ready and left click for rocket fire. the rest could be edited for strength and hit points in the chopper mod.

    Yeah I know I make it sound so rasy, so why don't do it. . . I know doodoo about programing :p
    [DOUBLEPOST=1461940104][/DOUBLEPOST]I added the loot code, change the custom loot table to true, but the loot has not changed

    I added the json, maybe you can see where I screwed up :/
     

    Attached Files:

  12. The loot file is automatically generated seperated from the config, inside oxide\data\HeliControlData.json - this is where you'd put your loot. Everything below
    Code:
      "UseGlobalDamageModifier": false
    }
    in your json should be inside the Data json, not the config.


    Also, what you described for controlling the Helicopter is nearly impossible, without somehow entirely taking over the AI of the Heli. It would also probably require some client-side editing, which is essentially impossible.

    I already have plans to refine the loot system for the helicopter soon.
     
  13. Hello, i have 1 question
    How congiq Heli time spawn interval ?
     
  14. Sorry if this is something i've completely missed with the core game, but is there any way to use this to configure how quickly the heli respawns and how many players need to be online in order for it to spawn initially? Thanks
     
  15. Put this plugin in and no more patrol helis spawn in.

    Remove the plugin and boom heli's start spawning again.

    No logs or anything as its not an errror as such they just literally stop spawning.
     
  16. Helicopters only spawn every 1-2 hours by default, if I'm not mistaken, so how big is your testing window for both? -- Do you also have them disabled in the config?
     
  17. We've had people in the server most of the day and not one spawned. Removed the plugin just to see and they start spawning every second night.
     
  18. I don't think there's any way this isn't unrelated. Please expand your testing window and get back to me, because aside from the config option for disabling them, there's nothing that should be changing it's spawning behavior.
     
  19. Ok well I'll be in game a fair bit today. I have deleted all files and configs to do with HeliControl, and have re-added plugin. I have left the config as default and shall see what happens.
     
  20. @Shady757 getting this error in console - I have custom loot validatet trough json validator and loot is ok, just this error is keeping up :(

    Code:
    (19:44:16) | [Oxide] 19:44 [Error] Failed to call hook 'OnEntitySpawned' on plugin 'HeliControl v1.0.20' (NullReferenceException: Object reference not set to an instance of an object)
    (19:44:16) | [Oxide] 19:44 [Debug]   at Oxide.Plugins.HeliControl.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.HeliControl.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