Jump to content

Update issues

Closed 2.5.5 2.5.8-beta2

Irish
Irish

Posted

Notes don't seem to be sending to BattleMetrics and webhooks are no longer reporting after updating to latest version.

FakeNinja

Posted (edited)

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
Irish

Posted

{
  "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
}

FakeNinja

Posted

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.

 

Irish

Posted

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 

FakeNinja

Posted (edited)

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
FakeNinja

Posted (edited)

Changed Status from Pending to Work in Progress

 

Edited by FakeNinja
FakeNinja

Posted (edited)

.

Edited by FakeNinja
Irish

Posted

@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.

FakeNinja

Posted

Changed Status from Work in Progress to Pending

FakeNinja

Posted

Changed Status from Pending to Can't Reproduce

FakeNinja

Posted

Hi, this should be resolved in the latest version.

Let me know if you encounter any issues

FakeNinja

Posted

Changed Status from Can't Reproduce to Closed

Changed Fixed In from 2.5.8-beta to 2.5.8-beta2

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.6k

Files Sold

Total number of files sold.

2.1m

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.