FormatException at GivePackCommandFixed
(18:34:00) | Failed to call hook 'GivePackCommand' on plugin 'Parachute v0.1.1' (FormatException: Input string was not in a correct format.)
  at System.Number.StringToNumber (System.String str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Globalization.NumberFormatInfo info, System.Boolean parseDecimal) [0x00057] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Number.ParseUInt64 (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) [0x00014] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.UInt64.Parse (System.String s, System.IFormatProvider provider) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Convert.ToUInt64 (System.String value) [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Oxide.Plugins.Parachute.GivePackCommand (Oxide.Core.Libraries.Covalence.IPlayer iplayer, System.String command, System.String[] args) [0x0001f] in <8e3e0c70c7bc4e4996fbe87d74ad7c53>:0 
  at Oxide.Plugins.Parachute.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001d2] in <8e3e0c70c7bc4e4996fbe87d74ad7c53>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0

How were you attempting to use it in RCON?

I'm trying running command

parachute.give 76561198203182980​
from RCON and it works.

What did you run?

The error appears when a player provides something other than a ulong with the GivePackCommand method's command. Instead of using Convert.ToUInt64, it'd be better to use ulong.TryParse.

Ok thanks, i've published an updated version which validates the user input using TryParse.

so how does it actually work i have a parachute but how does it open?

If you wear it (as a clothing item) then you take no fall damage (so you do not need to "open" it) and it doesn't actually slow your fall speed.

more like a safety net then a parachute :-)

Yes, but i think there is no way to alter the fall speed as that is set on the client based on the server gravity.  (ie cannot change a specific players physics)

Looks like they've done it quite well.... i might modify this plugin so that it uses chute as a dependency and then use the chute API.

I think this plugin has a purpose also but I would make it more of a Safety net or Inflatable catch think Firefighter Net :-) to save you the SPLAT.. I think the Parachute name implies deployment of some slowing down item.. I wouldnt recommend using chute as an API, what additional items are you adding.. Maybe do a pull request for chute to add those items? Just some thoughts :-) 

The point of this plugin is that it's a wearable item (not a command you run).  But i can use the chute API to get the parachute object and the slow fall.

Merged post

I've upgraded it now to work with Chute, so that it has a better falling experience.

Locked automatically