Jump to content

When loading the plugin

Not a Bug 0.1.0



I get this error when i add it to the server and it wont load:

Failed to call hook 'OnServerInitialized' on plugin 'ReputationMaster v0.1.0' (InvalidOperationException: Sequence contains no matching element)
  at System.Linq.Enumerable.Single[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00070] in <c4112faf3ded44a7b1e0b815a3296c25>:0 
  at Oxide.Plugins.ReputationMaster.OnServerInitialized () [0x00106] in <3918ee6cb8fa4d62893e9aaf941ff455>:0 
  at Oxide.Plugins.ReputationMaster.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x004aa] in <3918ee6cb8fa4d62893e9aaf941ff455>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <18d4f19bbc844191b11ed9e69284d09b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <18d4f19bbc844191b11ed9e69284d09b>:0 
Loaded plugin Reputation Master v0.1.0 by IIIaKa

Share this comment


Link to comment

Never Mind it working upon a reload but may i ask im using Simple Status as well any chance we could get it so advanced status goes above ontop of the simple status as atm its like this:

image.png.628882bb2c5079671f213737773069f0.png

Share this comment


Link to comment

ow dam i just checked my console and getting this spammed:

 

Failed to call hook 'OnSendModelState' on plugin 'ReputationMaster v0.1.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ReputationMaster.OnSendModelState (BasePlayer player) [0x00000] in <3918ee6cb8fa4d62893e9aaf941ff455>:0 
  at Oxide.Plugins.ReputationMaster.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0041b] in <3918ee6cb8fa4d62893e9aaf941ff455>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <18d4f19bbc844191b11ed9e69284d09b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <18d4f19bbc844191b11ed9e69284d09b>:0 

Share this comment


Link to comment

As I understood, the plugin couldn't find the bandit camp. I will update the plugin now, and most likely, you will have to set its position manually through the configuration file or using the command /rep banditzone

Share this comment


Link to comment

In case you use the /rep banditzone command, you need to grant yourself the permission reputationmaster.admin and position yourself somewhere in the middle of your bandit zone and type command.

Share this comment


Link to comment

So i don't have a bandit on the map but i do have a safezone via ZoneManager and when i do that command i get this:

image.png.7ca08c666ec8caeac67acc1c167e29e9.png

And i get this spammed error when changing the name of reps:

Failed to call hook 'OnSendModelState' on plugin 'ReputationMaster v0.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ReputationMaster.OnSendModelState (BasePlayer player) [0x00000] in <79d903e32579487992bbac21179edd55>:0 
  at Oxide.Plugins.ReputationMaster.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0041b] in <79d903e32579487992bbac21179edd55>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <18d4f19bbc844191b11ed9e69284d09b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <18d4f19bbc844191b11ed9e69284d09b>:0 
o.unload ReputationMaster

Share this comment


Link to comment

In this case you need set it manually in the config file
 

"Banditcamp custom position(xyz, example: '91.96 36.47 558.32'). Leave it blank to use default.": "-35.76 44.14 -74.76"

 

Share this comment


Link to comment

About overlay Simple Status. I dont know what you can do, but if you want in the config you can set
 


  "UI. Display rank in the status bar(the AdvancedStatus plugin is required)": false,

And set your own position to display 
 

  "UI. Position - AnchorMin": "1 0.9",
  "UI. Position - AnchorMax": "1 0.9",
  "UI. Position - OffsetMin": "-208 -15",
  "UI. Position - OffsetMax": "-16 15",


This way, you can delete AdvancedStatus and display the rank wherever you prefer.

Edited by IIIaKa

Share this comment


Link to comment

is there an easy way to position this without having to trail and error:

"UI. Position - AnchorMin": "1 0.9", "UI. Position - AnchorMax": "1 0.9", "UI. Position - OffsetMin": "-208 -15", "UI. Position - OffsetMax": "-16 15",

 

Share this comment


Link to comment

also it didnt work

[Reputation Master] Your configuration file contains an error. Using default configuration values.
[Reputation Master] An error occurred while attempting to get the BanditCamp position for unknown reasons. It is recommended to specify the position manually (either in the configuration or using a command).
Loaded plugin Reputation Master v0.1.1 by IIIaKa

Share this comment


Link to comment

{
  "ImageLibrary Counter Check": 5,
  "Reputation Master command": "rep",
  "Use GameTip for messages?": true,
  "Use ddraw command, for displaying the rank? NOTE! To use, an administrator flag is required, which is granted before rendering and revoked immediately after issuing the command": true,
  "Is it worth displaying reputation when aiming at a player with a scope (ddraw should be enabled)? NOTE! The player's reputation may be displayed in certain bushes": false,
  "The time of self-defense for a lawman against an attack by another lawman(in minutes).": 15,
  "Forbid bandits from visiting the SafeZone(except for Banditcamp)?": false,
  "The time(in seconds) a bandit can stay in the SafeZone before being killed, and anyone can loot their loot": 10.0,
  "The prefab name of the effect upon killing a bandit in the SafeZone": "assets/prefabs/misc/xmas/advent_calendar/effects/open_advent.prefab",
  "Banditcamp custom position(xyz, example: '91.96 36.47 558.32'). Leave it blank to use default.": "-35.76 44.14 -74.76"
  "The minimum value for fake reputation": -10000,
  "The maximum value for fake reputation": 10000,
  "UI. Display rank in the status bar(the AdvancedStatus plugin is required)": false,
  "UI. Status - Height": 30,
  "UI. Position - Left to Right": true,
  "UI. Position - AnchorMin": "1 0.9",
  "UI. Position - AnchorMax": "1 0.9",
  "UI. Position - OffsetMin": "-100 -15",
  "UI. Position - OffsetMax": "-16 15",
  "UI. Text - Font(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
  "UI. Text - Font Color(empty to use by rank)": "",
  "UI. Text Value - Font Color(empty to use by rank)": "",
  "UI. Text - Font Size": 14,
  "UI. Background - Transparency": 0.6,
  "UI. Reputation Positive Value Image - URL": "https://i.imgur.com/HKqyHO8.png",
  "UI. Reputation Negative Value Image - URL": "https://i.imgur.com/mMdm55h.png",
  "UI. Added Value Sound - Prefab Name": "assets/bundled/prefabs/fx/notice/item.select.fx.prefab",
  "List of available reputations": [
    {
      "MinRange": -3.40282347E+38,
      "MaxRange": -1000.0,
      "Name": "Pure Evil",
      "Reward": 20.0,
      "Penalty": 0.0,
      "IsLawman": false,
      "AllowSafeZone": false,
      "IsDefault": false,
      "ImgURL": "https://i.imgur.com/CdDKpwv.png",
      "Color": "#FF341E"
    },
    {
      "MinRange": -999.99,
      "MaxRange": -600.0,
      "Name": "Evil",
      "Reward": 15.0,
      "Penalty": 0.0,
      "IsLawman": false,
      "AllowSafeZone": false,
      "IsDefault": false,
      "ImgURL": "https://i.imgur.com/XBXToOD.png",
      "Color": "#FF7466"
    },
    {
      "MinRange": -599.99,
      "MaxRange": -300.0,
      "Name": "Hitman",
      "Reward": 10.0,
      "Penalty": 0.0,
      "IsLawman": false,
      "AllowSafeZone": false,
      "IsDefault": false,
      "ImgURL": "https://i.imgur.com/9ZzkdWA.png",
      "Color": "#FF9489"
    },
    {
      "MinRange": -299.99,
      "MaxRange": -100.0,
      "Name": "Bandit",
      "Reward": 4.0,
      "Penalty": 0.0,
      "IsLawman": false,
      "AllowSafeZone": false,
      "IsDefault": false,
      "ImgURL": "https://i.imgur.com/uF1M1DC.png",
      "Color": "#FF9D1E"
    },
    {
      "MinRange": -99.99,
      "MaxRange": -25.0,
      "Name": "Outlaw",
      "Reward": 3.0,
      "Penalty": 0.0,
      "IsLawman": false,
      "AllowSafeZone": true,
      "IsDefault": false,
      "ImgURL": "https://i.imgur.com/e6Th4li.png",
      "Color": "#FFC442"
    },
    {
      "MinRange": -24.99,
      "MaxRange": -5.0,
      "Name": "Thug",
      "Reward": 2.0,
      "Penalty": 0.0,
      "IsLawman": false,
      "AllowSafeZone": true,
      "IsDefault": false,
      "ImgURL": "https://i.imgur.com/SvFePzj.png",
      "Color": "#FFDA89"
    },
    {
      "MinRange": -4.99,
      "MaxRange": 9.99,
      "Name": "Neutral",
      "Reward": 1.0,
      "Penalty": -1.0,
      "IsLawman": true,
      "AllowSafeZone": true,
      "IsDefault": true,
      "ImgURL": "https://i.imgur.com/cgi9T1D.png",
      "Color": "#5EC0CA"
    },
    {
      "MinRange": 10.0,
      "MaxRange": 19.99,
      "Name": "Good",
      "Reward": 2.0,
      "Penalty": -1.0,
      "IsLawman": true,
      "AllowSafeZone": true,
      "IsDefault": false,
      "ImgURL": "https://i.imgur.com/6M1TaL1.png",
      "Color": "#72DCDB"
    },
    {
      "MinRange": 20.0,
      "MaxRange": 79.99,
      "Name": "Trusted",
      "Reward": 3.0,
      "Penalty": -2.0,
      "IsLawman": true,
      "AllowSafeZone": true,
      "IsDefault": false,
      "ImgURL": "https://i.imgur.com/sDxPbEK.png",
      "Color": "#99FFFF"
    },
    {
      "MinRange": 80.0,
      "MaxRange": 249.99,
      "Name": "Nice",
      "Reward": 4.0,
      "Penalty": -15.0,
      "IsLawman": true,
      "AllowSafeZone": true,
      "IsDefault": false,
      "ImgURL": "https://i.imgur.com/MZCEjDD.png",
      "Color": "#66FEFF"
    },
    {
      "MinRange": 250.0,
      "MaxRange": 499.99,
      "Name": "Awesome",
      "Reward": 10.0,
      "Penalty": -40.0,
      "IsLawman": true,
      "AllowSafeZone": true,
      "IsDefault": false,
      "ImgURL": "https://i.imgur.com/RrzkQls.png",
      "Color": "#1EFEFF"
    },
    {
      "MinRange": 500.0,
      "MaxRange": 999.99,
      "Name": "Guardian",
      "Reward": 15.0,
      "Penalty": -60.0,
      "IsLawman": true,
      "AllowSafeZone": true,
      "IsDefault": false,
      "ImgURL": "https://i.imgur.com/OE9Qsti.png",
      "Color": "#00D6D6"
    },
    {
      "MinRange": 1000.0,
      "MaxRange": 3.40282347E+38,
      "Name": "Epiclly Good",
      "Reward": 20.0,
      "Penalty": -125.0,
      "IsLawman": true,
      "AllowSafeZone": true,
      "IsDefault": false,
      "ImgURL": "https://i.imgur.com/6yzrXE0.png",
      "Color": "#0AFBFB"
    }
  ],
  "Version": {
    "Major": 0,
    "Minor": 1,
    "Patch": 1
  }
}

Share this comment


Link to comment

Yes that worked and now i have error

Failed to call hook 'OnSendModelState' on plugin 'ReputationMaster v0.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ReputationMaster.OnSendModelState (BasePlayer player) [0x00000] in <79d903e32579487992bbac21179edd55>:0 
  at Oxide.Plugins.ReputationMaster.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0041b] in <79d903e32579487992bbac21179edd55>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <18d4f19bbc844191b11ed9e69284d09b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <18d4f19bbc844191b11ed9e69284d09b>:0 
o.unload ReputationMaster

Share this comment


Link to comment

Yep that fixed that error but upon reloading it it lagged me out and crashed me:

Failed to call hook 'OnPlayerDisconnected' on plugin 'ReputationMaster v0.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ReputationMaster.OnPlayerDisconnected (BasePlayer player, System.String reason) [0x00012] in <5ea6b38d65224595a1b37bd41b7318d7>:0 
  at Oxide.Plugins.ReputationMaster.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0015e] in <5ea6b38d65224595a1b37bd41b7318d7>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <18d4f19bbc844191b11ed9e69284d09b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <18d4f19bbc844191b11ed9e69284d09b>:0 

Share this comment


Link to comment

yep seems to be all good thank you very much 🙂

But may i ask totally different but how much would it cost for you to make an addon for this so when players see the rep above them is displays what Perm Group there in (not including Default) like ive made perm groups like citizen, cop, thief etc.... i just want it to display the job above them lol 

  • Like 1

Share this comment


Link to comment

It shows when you scope with a gun wich have scope mods, or scoping with a binocularus, rocket launcher or mlrs
Also it must show to other players when you wave them

Edited by IIIaKa

Share this comment


Link to comment

1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.7k

Files Sold

Total number of files sold.

1.6m

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.