Jump to content

Update issues

Closed 2.5.5 2.5.8-beta2

Irish

Hi @Irishwould you mind sending me your config file, any error output (from console or logs in oxide/logs/SmartWarnings) and I'll take a look asap.

Please do so via DM if it contains any sensitive information.

 

Edited by FakeNinja

Share this comment


Link to comment

{
  "Warning Presets": {
    "kos": {
      "Reason": "§1 - KOS Violation",
      "Points": 1,
      "ExpirationDays": 30.0
    },
    "toxic": {
      "Reason": "§2 - Toxic Behavior",
      "Points": 2,
      "ExpirationDays": 14.0
    },
    "sign": {
      "Reason": "§3 - Inappropriate Signage",
      "Points": 2,
      "ExpirationDays": 14.0
    },
    "grief": {
      "Reason": "§4 - Griefing",
      "Points": 4,
      "ExpirationDays": 14.0
    },
    "team": {
      "Reason": "§5 - Team Limit Violation",
      "Points": 5,
      "ExpirationDays": 14.0
    },
    "distance": {
      "Reason": "§6 - Allied Base Distance",
      "Points": 5,
      "ExpirationDays": 14.0
    },
    "raid": {
      "Reason": "§7 - Raid Policy Violation",
      "Points": 8,
      "ExpirationDays": 14.0
    },
    "test": {
      "Reason": "§666 - test",
      "Points": 10,
      "ExpirationDays": 0.0066
    }
  },
  "System Settings": {
    "Max Warnings": 0,
    "Default Warning Expiration time (Days)": 60,
    "Announce Warnings in Global Chat": false,
    "Show players who issued the warning": false,
    "Server Name": "Cali.gg",
    "Clear all Warnings on Server Wipe": false,
    "Use MySQL database - DO NOT USE YET! NOT READY IN THIS VERSION.": false,
    "Warning Popup - GUI Enable - Set to false to use only chat (SAFE FOR VANILLA SERVER)": false,
    "Warning Popup - GUI Icon": null,
    "Warning Popup - GUI Opacity": 0.0,
    "Optional: Send anonymous analytics data about plugin usage": false
  },
  "MySQL Database Settings": {
    "MySQL Host": "",
    "Port": 3306,
    "Database": "",
    "Username": "",
    "Password": ""
  },
  "Battlemetrics Settings": {
    "API Token": "REMOVED",
    "Organization ID": "REMOVED",
    "Server ID": "REMOVED",
    "Banlist ID": "REMOVED"
  },
  "Autoban Settings": {
    "How many points until automatic ban (Set 0 for Disable)": 0,
    "How many warnings until automatic ban (Set 0 for Disable, Recommended: Same as Max Warnings)": 0,
    "How long to ban in minutes (Set 0 for Permanent)": 2880,
    "Clear the players Warnings on AutoBan (Default: True)": false
  },
  "Discord Settings": {
    "Webhook URL - Post Warnings to Discord (Leave blank to Disable)": "REMOVED",
    "Webhook URL - Post Autobans to Discord (Leave blank to Disable)": "REMOVED"
  },
  "AutoMod Settings": null
}

Share this comment


Link to comment

Hi @Irish, there's no issues with your config.

I take it that you didn't send any error logs (from console or log files) because you did not have any errors, or?

If there's any error caused by the plugin there should be output.

 

Share this comment


Link to comment

11:01 [Error] Failed to call hook 'cmdWarnGUI' on plugin 'SmartWarnings v2.5.5' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.SmartWarnings.WarnPlayer (Oxide.Core.Libraries.Covalence.IPlayer targetPlayer, Oxide.Core.Libraries.Covalence.IPlayer adminPlayer, System.String preset) [0x00400] in <ef563797809b4df8a8043c7860d0171d>:0 
  at Oxide.Plugins.SmartWarnings.cmdWarnGUI (Oxide.Core.Libraries.Covalence.IPlayer player, System.String cmd, System.String[] args) [0x00369] in <ef563797809b4df8a8043c7860d0171d>:0 
  at Oxide.Plugins.SmartWarnings.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x004f3] in <ef563797809b4df8a8043c7860d0171d>: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 <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0 

Share this comment


Link to comment

Thanks for that, I'll see if I can reproduce it.

So just to get everything straight, this appeared after enabling the Battlemetrics API? 

Will you please verify these things:

  1. API token scope, what permissions does your API have currently? (See plugin page for info which to set)
  2. What player did you try to warn, does this player exist in BM (identity + steamid exists within your Server + Org in BM)?

The reason for the latter question is that the integration is dependent on the BM identity to be associated with the steam id. The plugin will do a lookup based on the steam id to make sure it is the correct player. The error can occur if the player has never been recorded by BM, or for some reason, the player is not indexed in the org yet.

 

I'll reach out to you in Discord DM to make communication easier for us, if you prefer that

Edited by FakeNinja

Share this comment


Link to comment

@FakeNinja  Yes I have validated the token a couple times now and have only tested this on online players in the servers.

 

We also just had a new incident where a player was stuck frozen in place and no matter how many times they accepted the warning it would not resolve.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

80.8k

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.