Jump to content

error spamming in console

Pending 1.7.0

Yaki
Yaki

Posted

Failed to call hook 'CanMoveItem' on plugin 'OwnCasinoPremium v1.7.0' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.OwnCasinoPremium.CanPlaceBet (System.UInt64 ownerid, BasePlayer player) [0x00014] in <7cd24e9ad9a9436daeff140956cad1d7>:0
at Oxide.Plugins.OwnCasinoPremium.CanMoveItem (Item item, PlayerInventory playerLoot, ItemContainerId targetContainerID, System.Int32 targetSlot, System.Int32 amount) [0x0008c] in <7cd24e9ad9a9436daeff140956cad1d7>:0
at Oxide.Plugins.OwnCasinoPremium.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003fb] in <7cd24e9ad9a9436daeff140956cad1d7>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <112d89ea5d3348c8b949af0ab1a866d2>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0
OwnCasinoPremium was compiled successfully in 1406ms

NooBlet

Posted

Can you give me more detail on when this happens . From plugin stuff that gets moved around or in general. 

Yaki

Posted

im pretty sure it comes from any of the casino items, not just items from this plugin. I also use a plugin called place anything that allows me to give casino items to players. 

 

i see the error rather frequently because several players own casino items. just not sure what causes it yet but ill try to get more info on it.

NooBlet

Posted

The canmoveitem hook is used for the bigweel terminals . Have a look at what items are being bett . 

Yaki

Posted

4 minutes ago, NooBlet said:

The canmoveitem hook is used for the bigweel terminals . Have a look at what items are being bett . 

ive only allowed scrap. here is my config

{
  "Allow Owner To bet on Own Casino?": false,
  "Enable HardMode mode?": 45,
  "Use buildin custom bet item": true,
  "Bet Item WhiteList": [
    "scrap"
  ],
  "Punish Exploiters with MLRS?": true,
  "Anounce to Server on Wheel Win?": false,
  "Allow Custom Items to be Recycled?": true,
  "Skin-Specific Yield Items": {
    "wheel": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "metal.fragments",
        "MinAmount": 15,
        "MaxAmount": 30
      },
      {
        "ShortName": "gears",
        "MinAmount": 1,
        "MaxAmount": 1
      }
    ],
    "blackjack": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "tarp",
        "MinAmount": 1,
        "MaxAmount": 1
      }
    ],
    "terminal1": [
      {
        "ShortName": "scrap",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "metal.fragments",
        "MinAmount": 15,
        "MaxAmount": 30
      }
    ],
    "terminal2": [
      {
        "ShortName": "scrap",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "metal.fragments",
        "MinAmount": 15,
        "MaxAmount": 30
      }
    ],
    "slots": [
      {
        "ShortName": "scrap",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "metal.fragments",
        "MinAmount": 15,
        "MaxAmount": 30
      }
    ],
    "chips": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "tarp",
        "MinAmount": 1,
        "MaxAmount": 1
      }
    ],
    "chips4": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "tarp",
        "MinAmount": 1,
        "MaxAmount": 1
      }
    ],
    "chips3": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "tarp",
        "MinAmount": 1,
        "MaxAmount": 1
      }
    ],
    "chips2": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "tarp",
        "MinAmount": 1,
        "MaxAmount": 1
      }
    ],
    "box": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "metal.fragments",
        "MinAmount": 10,
        "MaxAmount": 15
      }
    ]
  }
}

{
  "Allow Owner To bet on Own Casino?": false,
  "Enable HardMode mode?": 45,
  "Use buildin custom bet item": true,
  "Bet Item WhiteList": [
    "scrap"
  ],
  "Punish Exploiters with MLRS?": true,
  "Anounce to Server on Wheel Win?": false,
  "Allow Custom Items to be Recycled?": true,
  "Skin-Specific Yield Items": {
    "wheel": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "metal.fragments",
        "MinAmount": 15,
        "MaxAmount": 30
      },
      {
        "ShortName": "gears",
        "MinAmount": 1,
        "MaxAmount": 1
      }
    ],
    "blackjack": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "tarp",
        "MinAmount": 1,
        "MaxAmount": 1
      }
    ],
    "terminal1": [
      {
        "ShortName": "scrap",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "metal.fragments",
        "MinAmount": 15,
        "MaxAmount": 30
      }
    ],
    "terminal2": [
      {
        "ShortName": "scrap",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "metal.fragments",
        "MinAmount": 15,
        "MaxAmount": 30
      }
    ],
    "slots": [
      {
        "ShortName": "scrap",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "metal.fragments",
        "MinAmount": 15,
        "MaxAmount": 30
      }
    ],
    "chips": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "tarp",
        "MinAmount": 1,
        "MaxAmount": 1
      }
    ],
    "chips4": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "tarp",
        "MinAmount": 1,
        "MaxAmount": 1
      }
    ],
    "chips3": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "tarp",
        "MinAmount": 1,
        "MaxAmount": 1
      }
    ],
    "chips2": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "tarp",
        "MinAmount": 1,
        "MaxAmount": 1
      }
    ],
    "box": [
      {
        "ShortName": "wood",
        "MinAmount": 10,
        "MaxAmount": 20
      },
      {
        "ShortName": "metal.fragments",
        "MinAmount": 10,
        "MaxAmount": 15
      }
    ]
  }
}

 

NooBlet

Posted

Ok . Sorry for the late reply .. we hade a public holiday and was out... ok so can you maybe check if rhe error occurs when moving scap arround in termanal . And if not . Then check if other items can be placed in it

Yaki

Posted

i just tried both. cannot place other items. and no error when moving scrap from terminal slot to terminal slot. i wonder if it happens when theres 2 big wheels next to each other as ive noticed the time remaining until next spin countdown acting weird like its fighting the time for the other wheel on what to display

2m

Downloads

Total number of downloads.

9.3k

Customers

Total customers served.

136.2k

Files Sold

Total number of files sold.

2.9m

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.