tmg-pub / crossrp

addon to help talking to the stinky horde
2 stars 3 forks source link

Fixed LUA error sometimes occurring with foreign players #10

Closed LenweSaralonde closed 7 months ago

LenweSaralonde commented 9 months ago

Fixes :

2x CrossRP/CrossRP.lua:339: attempt to concatenate local 'relation' (a nil value)
[string "@CrossRP/CrossRP.lua"]:339: in function `TouchTest'
[string "@CrossRP/CrossRP.lua"]:379: in function <CrossRP/CrossRP.lua:367>
[string "@CrossRP/timer.lua"]:98: in function <CrossRP/timer.lua:94>

Locals:
unit = "target"
time = 2524625.214000
fullname = "Shalyndra-KirinTor"
faction = "A"
relation = nil
(*temporary) = <table> {
 Lenwë-KirinTor = "A:1:2524059.723"
 Gauvain-KirinTor = "A:1:2523916.128"
 Sangriana-LesSentinelles = "H:3:2524005.557"
 Shalyndra-KirinTor = "A:1:2524624.057"
 Oditoryum-LesSentinelles = "A:3:2524450.322"
 Jiiune-ConseildesOmbres = "A:3:2524318.021"
 Izquierda-KirinTor = "H:1:2524289.972"
 Arthésøte-KirinTor = "A:1:2523953.89"
 Phoènix-ConfrérieduThorium = "A:3:2523820.742"
 Wÿrnna-ConseildesOmbres = "A:3:2523935.407"
 Gartholn-ConfrérieduThorium = "H:3:2524006.788"
 Eruky-LesSentinelles = "A:3:2524252.839"
 Enistraza-KirinTor = "H:1:2524064.156"
 Shanyâ-LesSentinelles = "H:3:2524002.072"
 Hoth-LaCroisadeécarlate = "A:3:2523960.408"
}
(*temporary) = "A"
(*temporary) = ":"
(*temporary) = nil
(*temporary) = ":2524625.214"
(*temporary) = "2524625.214"
(*temporary) = "attempt to concatenate local 'relation' (a nil value)"
Me = <table> {
 MinimapMenu = <table> {
 }
 AddTraffic = <function> defined @CrossRP/traffic.lua:99
 MSP = <table> {
 }
 NodeSet = <table> {
 }
 Timer_Cancel = <function> defined @CrossRP/timer.lua:105
 SecureHook = <function> defined @AdiBags/libs/AceHook-3.0/AceHook-3.0.lua:335
 GetVersionCode = <function> defined @CrossRP/CrossRP.lua:96
 GetTrafficSmooth = <function> defined @CrossRP/traffic.lua:115
 SetDefaultModulePrototype = <function> defined @AdiBags/libs/AceAddon-3.0/AceAddon-3.0.lua:405
 TouchingHorde = <function> defined @CrossRP/CrossRP.lua:349
 IsEnabled = <function> defined @AdiBags/libs/AceAddon-3.0/AceAddon-3.0.lua:447
 OnChatMsgBnWhisper = <function> defined @CrossRP/CrossRP.lua:760
 RegisterMessage = <function> defined @AdiBags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
 UnregisterMessage = <function> defined @AdiBags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
 MapTest = <function> defined @CrossRP/map.lua:393
 hooks = <table> {
 }
 Bubbles_Update = <function> defined @CrossRP/bubbles.lua:104
 Timer_NotOnCD = <function> defined @CrossRP/timer.lua:23
 db = <table> {
 }
 SetupHordeWhisperButton = <function> defined @CrossRP/CrossRP.lua:925
 SetEnabledState = <function> defined @AdiBags/libs/AceAddon-3.0/AceAddon-3.0.lua:420
 Bubbles_FindFromOrcish = <function> defined @CrossRP/bubbles.lua:242
 player_guids = <table> {
 }
 OnEnable = <function> defined @CrossRP/CrossRP.lua:145
 horde_touched = -2144706.409000
 GopherChatQueue = <function> defined @CrossRP/CrossRP.lua:885
 touched_users = <table> {
 }
 OnChatMsg = <function> defined @CrossRP/CrossRP.lua:501
 MapDataProvider = <table> {
 }
 NewModule = <function> defined @AdiBags/libs/AceAddon-3.0/AceAddon-3.0.lua:231
 GopherChatNew = <function> defined @CrossRP/CrossRP.lua:856
 Locale = <table> {
 }
 fullname = "Lenwë-KirinTor"
 GetName = <function> defined @AdiBags/libs/AceAddon-3.0/AceAddon-3.0.lua:275
 FormatUptime = <function> defined @CrossRP/minimapbutton.lua:112
 PackCoord = <function> defined @CrossRP/packcoord.lua:22
 SetActive = <function> defined @CrossRP/CrossRP.lua:430
 ldb = <table> {
 }
 UnitHasElixir = <function> defined @CrossRP/CrossRP.lua:312
 Disable = <function> defined @AdiBags/libs/AceAddon-3.0/AceAddon-3.0.lua:310
 CheckFiles = <function> defined @CrossRP/CrossRP.lua:1032
 Sha256Data = <function> defined @CrossRP/libs/sha256.lua:98
 data_channel = "crossrp"
 Unhook = <function> defined @AdiBags/libs/AceHook-3.0/AceHook-3.0.lua:417
 Print = <function> defined @CrossRP/CrossRP.lua:901
 SimulateChatMessage = <function> defined @Interface
tmg-pub commented 7 months ago

lgtm