hypernormalisation / Scambuster

Addon to alert you of scammers and toxic players, curated by the people who know your realm the best.
GNU General Public License v3.0
3 stars 3 forks source link

Interface/AddOns/Scambuster/core.lua:739: attempt to index local 'u' (a nil value) #16

Closed luttman closed 1 year ago

luttman commented 1 year ago

Message: Interface/AddOns/Scambuster/core.lua:739: attempt to index local 'u' (a nil value) Time: Tue Jan 24 17:03:03 2023 Count: 1 Stack: Interface/AddOns/Scambuster/core.lua:739: attempt to index local 'u' (a nil value) [string "@Interface/AddOns/Scambuster/core.lua"]:739: in function construct_printout_headline' [string "@Interface/AddOns/Scambuster/core.lua"]:885: in functionraise_alert' [string "@Interface/AddOns/Scambuster/core.lua"]:569: in function check_unit' [string "@Interface/AddOns/Scambuster/core.lua"]:956: in function?' [string "@Interface/AddOns/Scambuster/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:109: in function <...ter/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:109>

[string "@Interface/AddOns/Scambuster/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:19: in function <...ter/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15> [string "@Interface/AddOns/Scambuster/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:54: in function `Fire' [string "@Interface/AddOns/Scambuster/Libs/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <...AddOns/Scambuster/Libs/AceEvent-3.0/AceEvent-3.0.lua:119

I have made a own Provider and tested how it works. But get errors. Even tried just to Do edit on golemag one, but same problem.

hypernormalisation commented 1 year ago

Hi, can you describe what you're doing in your testing when you get this error?

And can you link the file you're trying to edit? It's likely there's some improper edit, but I'd still like the addon to be able to catch that.

luttman commented 1 year ago

This is the files i have edited, by following the guidelines.

even uploading full error log

Den ons 25 jan. 2023 kl 03:29 skrev Swedge @.***>:

Hi, can you describe what you're doing in your testing when you get this error?

And can you link the file you're trying to edit? It's likely there's some improper edit, but I'd still like the addon to be able to catch that.

— Reply to this email directly, view it on GitHub https://github.com/hypernormalisation/Scambuster/issues/16#issuecomment-1403012593, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZJ3I37VJVR33EHTXOZ4TTWUCFZNANCNFSM6AAAAAAUFITPY4 . You are receiving this because you authored the thread.Message ID: @.***>

Message: Interface/AddOns/Scambuster/core.lua:744: attempt to index local 'u' (a nil value) Time: Wed Jan 25 07:40:33 2023 Count: 3 Stack: Interface/AddOns/Scambuster/core.lua:744: attempt to index local 'u' (a nil value) [string @./AddOns/Scambuster/core.lua"]:744: in function `construct_printout_headline' [string @./AddOns/Scambuster/core.lua"]:890: in function raise_alert' [string ***@***.***/AddOns/Scambuster/core.lua"]:573: in functioncheck_unit' [string @./AddOns/Scambuster/core.lua"]:961: in function `?' [string @./AddOns/Scambuster/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:109: in function <...ter/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:109>

[string @./AddOns/Scambuster/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:19: in function <...ter/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15> [string @./AddOns/Scambuster/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:54: in function `Fire' [string @.***/AddOns/Scambuster/Libs/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <...AddOns/Scambuster/Libs/AceEvent-3.0/AceEvent-3.0.lua:119>

Locals: self =

{ process_provider = defined @Interface/AddOns/Scambuster/core.lua:360 process_player_by_guid = defined @Interface/AddOns/Scambuster/core.lua:399 register_case_data = defined @Interface/AddOns/Scambuster/core.lua:238 EnableModule = defined @Interface/AddOns/Scambuster/Libs/AceAddon-3.0/AceAddon-3.0.lua:328 modules =
{ } baseName = "Scambuster" IterateEmbeds = defined @Interface/AddOns/Scambuster/Libs/AceAddon-3.0/AceAddon-3.0.lua:438 realm_name = "Ashbringer" build_database = defined @Interface/AddOns/Scambuster/core.lua:291 check_case_fields = defined @Interface/AddOns/Scambuster/core.lua:345 show_stats = defined @Interface/AddOns/Scambuster/core.lua:1079 validate_provider = defined @Interface/AddOns/Scambuster/core.lua:244 check_unit = defined @Interface/AddOns/Scambuster/core.lua:500 SetDefaultModulePrototype = defined @Interface/AddOns/Scambuster/Libs/AceAddon-3.0/AceAddon-3.0.lua:405 send_channel_alert = defined @Interface/AddOns/Scambuster/core.lua:869 defaultModuleState = true IsEnabled = defined @Interface/AddOns/Scambuster/Libs/AceAddon-3.0/AceAddon-3.0.lua:447 query =
{ } incident_counter = 47 DisableModule = defined @Interface/AddOns/Scambuster/Libs/AceAddon-3.0/AceAddon-3.0.lua:346 members =
{ } pending_alerts =
{ } get_opts_db = defined @Interface/AddOns/Scambuster/core.lua:155 colorise_name = defined @Interface/AddOns/Scambuster/core.lua:69 callbacks =
{ } UnregisterMessage = defined @Interface/AddOns/Scambuster/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143 UPDATE_MOUSEOVER_UNIT = defined @Interface/AddOns/Scambuster/core.lua:922 update_UDI = defined @Interface/AddOns/Scambuster/core.lua:676 supported_case_data_fields =
{ } raise_alert = defined @Interface/AddOns/Scambuster/core.lua:885 in_instance = false provider_case_counter = 31 db =
{ } print_chat_alert = defined @Interface/AddOns/Scambuster/core.lua:857 reference_incident_to_player = defined @Interface/AddOns/Scambuster/core.lua:466 dump_incidents = defined @Interface/AddOns/Scambuster/core.lua:1053 SetEnabledState = defined @Interface/AddOns/Scambuster/Libs/AceAddon-3.0/AceAddon-3.0.lua:420 previous_guid_table =
{ } enabledState = true conf =
{ } RegisterEvent = defined @Interface/AddOns/Scambuster/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80 slashcommand_soundcheck = defined @Interface/AddOns/Scambuster/core.lua:1074 tab_dump = defined @Interface/AddOns/Scambust

luttman commented 1 year ago
prisnagka commented 1 year ago

Hi @luttman I'm at Ashbringer myself, so was interested in the progress. It did some experimenting with the files you provided in Error.zip above and got it to work - I think. No errors and a confirmation by Scambuster that it has parsed the blocklist(s). Scambuster:` INFO: Parsing provider list Ashbringer Discord Blocklist... Scambuster: INFO: Parsing provider list Gehennas Discord... Scambuster: Welcome to version 0.1.5

The changes I made:

Hope this helps!

I'm not sure if there's any way to query SB for the actual list, number of entries or similar. That would be great to help verify that it works.

hypernormalisation commented 1 year ago

Solved in latest version (0.1.6), there was an issue with name-only matches trying to use GUID lookups on the user dynamic info table. Silly error but fixed now at least.