I've been asking about the other way. Without using
attributes on methods of the plugin.Code:[ChatCommand] [ConsoleCommand]
Airdrop Extended [Unmaintained]
Discussion in 'Plugin Support' started by Wulf, Jul 14, 2015.
-
Wulf Community Admin
-
boilerplate copy paste code
-
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");
-
I hadn't really dived into oxide console system code to create pull request
[DOUBLEPOST=1439150400][/DOUBLEPOST]@Wulf
Could you give access to update plugin feature? Can't upload code with command fixes. -
Func<ConsoleSystem.Arg, bool> is supported for AddConsoleCommand instead of hook name, however for AddChatCommand you currently can only use hook name...
-
-
Wulf Community Admin
-
baton256 updated AirdropExtended with a new update entry:
0.3.0
[DOUBLEPOST=1439153256][/DOUBLEPOST]doneI'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
-
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
-
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 ...
?? Thank You!
-
baton256 updated AirdropExtended with a new update entry:
0.4
[DOUBLEPOST=1439163411][/DOUBLEPOST]
Code:"Supply drop {0} has landed at {1:0.00},{2:0.00},{3:0.00}"
-
baton256 updated AirdropExtended with a new update entry:
0.4.1
-
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. -
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.
-
"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! -
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 }
-
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"
[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());
-
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"
-
What plugin?
If you can edit the plugin yourself, change the way to "assets/bundled/prefabs/events/cargo_plane.prefab".