CraftSim

CraftSim

2M Downloads

Lua error after receiving a whisper

dominiklwn opened this issue ยท 1 comments

commented

After receiving a whisper, every time I get the following error (CraftSim 8.7.0):

1x ...CraftSim/Modules/CustomerHistory/CustomerHistory.lua:34: attempt to compare boolean with number
[string "@CraftSim/Modules/CustomerHistory/CustomerHistory.lua"]:34: in function `?'
[string "@DataStore/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:109: in function <...ore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:109>
[string "=[C]"]: ?
[string "@DataStore/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...ore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
[string "@DataStore/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function `Fire'
[string "@DataStore/libs/AceEvent-3.0-4/AceEvent-3.0.lua"]:120: in function <DataStore/libs/AceEvent-3.0/AceEvent-3.0.lua:119>

Locals:
self = <table> {
 SetDefaultModuleLibraries = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:363
 timeoutSeconds = 5
 Enable = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:290
 NewModule = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:231
 EnableModule = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:328
 modules = <table> {
 }
 GetModule = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:206
 IterateEmbeds = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:438
 UnregisterComm = <function> defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
 defaultModuleLibraries = <table> {
 }
 SetDefaultModulePrototype = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:405
 name = "CraftSim.CUSTOMER_HISTORY"
 IsEnabled = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:447
 orderedModules = <table> {
 }
 DisableModule = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:346
 RegisterMessage = <function> defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
 UnregisterMessage = <function> defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
 FRAMES = <table> {
 }
 baseName = "CraftSim"
 MIGRATIONS = <table> {
 }
 SendCommMessage = <function> defined @DataStore/libs/AceComm-3.0/AceComm-3.0.lua:83
 db = <table> {
 }
 SetDefaultModuleState = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:383
 OnOrderFinished = <function> defined @CraftSim/Modules/CustomerHistory/CustomerHistory.lua:46
 UnregisterAllComm = <function> defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
 SetEnabledState = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:420
 LoadMessages = <function> defined @CraftSim/Modules/CustomerHistory/CustomerHistory.lua:41
 enabledState = true
 Init = <function> defined @CraftSim/Modules/CustomerHistory/CustomerHistory.lua:12
 RegisterEvent = <function> defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
 UnregisterAllMessages = <function> defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
 RegisterComm = <function> defined @DataStore/libs/AceComm-3.0/AceComm-3.0.lua:56
 Disable = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:310
 UnregisterAllEvents = <function> defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
 IterateModules = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:433
 SendMessage = <function> defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:49
 IsModule = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:464
 GetName = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:275
 defaultModuleState = true
 UnregisterEvent = <function> defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
 HandleWhisper = <function> defined @CraftSim/Modules/CustomerHistory/CustomerHistory.lua:24
}
event = "CHAT_MSG_WHISPER"
message = "okai :D let me make an order"
customer = "Veenix-Ravencrest"
(*temporary) = 5
(*temporary) = true
(*temporary) = 5
(*temporary) = 1685993742719
(*temporary) = 1685993742719
(*temporary) = 1685993742719
(*temporary) = "attempt to compare boolean with number"
print = <function> defined @CraftSim/Util/Util.lua:11
commented

Will probably be fixed with 8.8