1. I've been asking about the other way. Without using
    Code:
     [ChatCommand]
    [ConsoleCommand]
    attributes on methods of the plugin.
     
  2. Wulf

    Wulf Community Admin

    That's the proper method, what's wrong it doing it that way?
     
  3. boilerplate copy paste code :)
     
  4. OnCallHook is not supposed to be used by plugins, making it sealed will be added to our todo ;)

    you can use the command library for rust if you want to register chat/console commands without using attributes
    Code:
    var cmd = Interface.Oxide.GetLibrary<Command>();
    cmd.AddConsoleCommand("cmd.test", this, "cmdTestCallback");
    cmd.AddChatCommand("chattest", this, "chatTestCallback");
     
  5. ty for clarification. Could you add an overload method for AddConsoleCommand/AddChatCommand with a strongly typed callback instead of plugin hook name?

    I hadn't really dived into oxide console system code to create pull request :p
    [DOUBLEPOST=1439150400][/DOUBLEPOST]@Wulf
    Could you give access to update plugin feature? Can't upload code with command fixes.
     
  6. Func<ConsoleSystem.Arg, bool> is supported for AddConsoleCommand instead of hook name, however for AddChatCommand you currently can only use hook name...
     
  7. ty, good to know
     
  8. Wulf

    Wulf Community Admin

    Go ahead. ;)
     
  9. baton256 updated AirdropExtended with a new update entry:

    0.3.0


    [DOUBLEPOST=1439153256][/DOUBLEPOST]done :) I've added code to disable the default event system. shallow testing showed it's not calling airdrops by default and admin commands/plugin timer do work. Gonna add more configuration over this soon ;)
     
  10. Code:
    [Oxide] 5:22 AM [Error] Failed to call hook 'SetPlayersCommand' on plugin 'AirdropExtended' (ArgumentException: failed to convert parameters)
    [Oxide] 5:22 AM [Debug]   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [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
    > aire.players 10 1
    [Oxide] 5:23 AM [Error] Failed to call hook 'SetPlayersCommand' on plugin 'AirdropExtended' (ArgumentException: failed to convert parameters)
    [Oxide] 5:23 AM [Debug]   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [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
    [Oxide] 5:23 AM [Info] [Notifier v2.11.1] :: Using an automated management system(AutoBan) server, the administrator never on line, prohibit the use of all the game"s Bug to play, violators will be permanently kicked out of the server, if the offender is a member of the team, will be kicked off all team^_^
    > aire.players 5_1
    [Oxide] 5:23 AM [Error] Failed to call hook 'SetPlayersCommand' on plugin 'AirdropExtended' (ArgumentException: failed to convert parameters)
    [Oxide] 5:23 AM [Debug]   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [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 
    type:aire.players <min_players> Error
     
  11. Hi! Can you modify message "Player {0} started looting the Supply Drop {1}." to get the name not the SteamID (Player 7656xxxxxxxxxxxx started looting the Supply Drop 5517551.)? and the coordonates Supply drop 5517551 has landed at -746.356,158.5325,256.4769 --> with 2 decimals not 3, or no decimals ... :D ?? Thank You!
     
  12. baton256 updated AirdropExtended with a new update entry:

    0.4


    [DOUBLEPOST=1439163411][/DOUBLEPOST]
    got this

    Changed steam_id to nickname at looting. For coordinates replace format string in your settings to:
    Code:
    "Supply drop {0} has landed at {1:0.00},{2:0.00},{3:0.00}"
     
  13. baton256 updated AirdropExtended with a new update entry:

    0.4.1

     
  14. EN:
    I expose to fall into 1 of 14 Aire things - each according to 1. But sometimes falls 11 - 15 and things are repeated with the categories, although I always put limit 1.

    RU:
    Выставил чтобы падало в 1 аире по 14 вещей - каждого по 1. Но иногда падает 11 - 15 и вещи с категорий повторяются, хотя я ставил везде ограничение по 1.
     
  15. The best air drop controlling plug in will allow for full control of the loot to be either random with XX items as BP's, weapons and other things, control over how many spawn at one time, how often the drops are sent and how many crates will drop and at what interval they will drop. I still have not found 1 that can do all that yet and it confuses me as to why no one can put that together. a combination of 2 plug ins used to work awesome for me but one plug in is no longer supported and fails to function any more so now im stuck with trying to find the best air drop controller. This one has promise to it just like the others but we will have to wait and see how it goes.
     
  16. "Supply drop {0} has landed at {1:0.00},{2:0.00},{3:0.00}"

    Hi! I change the coordonates and now i've got :
    (11:22:40) | [Oxide] 10:22 AM [Error] AirdropExtended plugin failed to compile!

    (11:22:40) | [Oxide] 10:22 AM [Error]
    And doesent work anymore!
     
  17. @maksiyshuk Please post your settings file or send it to me in private, I'll check it out.

    According to the current state of oxide, it's really easier to make a few separate mods than maintain one. There're a lot of features requested to control airdrop, and it just takes time to implement and test them. Currently, my most big concern is testing: you need to test all the code by hand, which takes a lot of time. Autotesting is pretty hard, I haven't found a way to run integrated tests to verify that all things work in game.

    You need just to replace format string in settings file you're using, not the plugin code.
    Here's modified part of settings file according to your requirements.

    Code:
    "CommonSettings": {
        "DropFrequency": "01:00:00", - drop frequency in format hh:mm:ss
        "MinimumPlayerCount": 25, -- min player count
        "ConsoleStartOnly": false, -- start airdrop only from console (disable timer)
        "SupplyCrateDespawnTime": "00:05:00", -- airdrop despawn time
        "NotifyOnPlaneSpawned": false, -- notify server chat on plane spawn
        "NotifyOnPlaneSpawnedMessage": "Cargo Plane has been spawned.", -- notify message fo on plane spawn
        "NotifyOnPlaneRemoved": false, -- notify server chat on plane removed
        "NotifyOnPlaneRemovedMessage": "Cargo Plane has been removed, due to insufficient player count: {0}.", -- notify message format on plane removed
        "NotifyOnDropStarted": false, -- notify server chat on cargo drop with coords
        "NotifyOnDropStartedMessage": "Supply Drop {0} has been spawned at {1:0.00},{2:0.00},{3:0.00}.", -- notify server message format on cargo drop with coords
        "NotifyOnPlayerLootingStarted": false, -- notify server chat on player loot
        "NotifyOnPlayerLootingStartedMessage": "Player {0} started looting the Supply Drop {1}.", -- notify message format on player loot
        "NotifyOnCollisionMessage": "Supply drop {0} has landed at {1:0.00},{2:0.00},{3:0.00}", -- notify message format on drop landed
        "NotifyOnCollision": false, -- notify server chat on drop landed
        "NotifyOnDespawnMessage": "Supply drop {0} has been despawned at {1:0.00},{2:0.00},{3:0.00}", -- notify message format for drop despawn    "NotifyOnDespawn": false  -- notify server chat on drop despawn
      }
     
  18. Code:
    [8/10/2015 12:05:07 PM] FileSystem.LoadPrefab - should start with assets/ - events/cargo_plane
    [8/10/2015 12:05:07 PM] [BUNDLE] Not found: events/cargo_plane
    [8/10/2015 12:05:07 PM] Couldn't find prefab "events/cargo_plane"
    AIR not start
    [DOUBLEPOST=1439201700][/DOUBLEPOST]Work if exchange line 1185
    Code:
    var plane = GameManager.server.CreateEntity("assets/bundled/prefabs/events/cargo_plane.prefab", new Vector3(), new Quaternion());
     
  19. After last upgrade AIR not wokr
    Code:
    [8/10/2015 12:05:07 PM] FileSystem.LoadPrefab - should start with assets/ - events/cargo_plane
    [8/10/2015 12:05:07 PM] [BUNDLE] Not found: events/cargo_plane
    [8/10/2015 12:05:07 PM] Couldn't find prefab "events/cargo_plane"
     
  20. What plugin?

    If you can edit the plugin yourself, change the way to "assets/bundled/prefabs/events/cargo_plane.prefab".