Jump to content

Spamming in console

Closed 0.4.8 0.4.9

Seezure

Posted

Failed to call hook 'OnPlayerInput' on plugin 'MyMiniCopter v0.4.8' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.MyMiniCopter.OnPlayerInput (BasePlayer player, InputState input) [0x00142] in :0 at Oxide.Plugins.MyMiniCopter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001d7] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

RFC1920

Posted

Please check your config, or send it to me.  It seems like you may be missing something there.

Seezure

Posted

{
  "Global": {
    "allowWhenBlocked": false,
    "allowRespawnWhenActive": true,
    "useCooldown": false,
    "useNoEscape": false,
    "useFriends": false,
    "useClans": false,
    "useTeams": false,
    "copterDecay": false,
    "allowDamage": true,
    "killOnSleep": true,
    "allowFuelIfUnlimited": false,
    "allowDriverDismountWhileFlying": false,
    "allowPassengerDismountWhileFlying": true,
    "debug": false,
    "StopEngineOnGMini": false,
    "stdFuelConsumption": 0,
    "cooldownmin": 60,
    "mindistance": 0,
    "gminidistance": 0,
    "minDismountHeight": 7,
    "startingFuel": 1,
    "Prefix": "[My MiniCopter]: ",
    "TimedHover": false,
    "DisableHoverOnDismount": true,
    "EnableRotationOnHover": true,
    "PassengerCanToggleHover": false,
    "HoverWithoutEngine": false,
    "UseFuelOnHover": false,
    "HoverDuration": 60,
    "UseKeystrokeForHover": true,
    "HoverKey": 134217728
  },
  "Version": {
    "Major": 0,
    "Minor": 4,
    "Patch": 8
  },
  "VIPSettings": {
    "myminicopter.viplevel1": {
      "unlimited": false,
      "canloot": true,
      "stdFuelConsumption": 0,
      "startingFuel": 1,
      "cooldownmin": 5,
      "mindistance": 0,
      "gminidistance": 0
    }
  }
}

RFC1920

Posted (edited)

If you can, try adding this around line 279 in the plugin (not config) as follows:

    BaseHelicopterVehicle mini = player.GetMountedVehicle() as BaseHelicopterVehicle;
    if (mini == null) return; // Add this line
    if (storedData.playerminiID.ContainsKey(player.userID) && mini.net.ID == storedData.playerminiID[player.userID])

Otherwise, wait for the next update...

Edited by RFC1920
RFC1920

Posted

Changed Status from Pending to Closed

Changed Fixed In to 0.4.9

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.