Prat 3.0

Prat 3.0

26M Downloads

History.lua:784: attempt to concatenate a nil value

ChilledTrong opened this issue ยท 6 comments

commented

@ @Describe the bug -

error that occurs every time i log into a character that has the add-on enabled

to reproduce -

every log in, have 10x of them at the moment

10x Prat-3.0-3.9.19/modules/History.lua:784: attempt to concatenate a nil value
[string "@Prat-3.0-3.9.19/modules/History.lua"]:784: in function <Prat-3.0/modules/History.lua:769>
[string "=(tail call)"]: ?
[string "=[C]"]: in function AddHistoryLine' [string "@Prat-3.0-3.9.19/modules/History.lua"]:733: in function addSavedHistory'
[string "@Prat-3.0-3.9.19/modules/History.lua"]:622: in function <Prat-3.0/modules/History.lua:587>
[string "@Prat-3.0-3.9.19/modules/Scrollback.lua"]:77: in function OnModuleEnable' [string "@Prat-3.0-3.9.19/addon/modules.lua"]:189: in function <Prat-3.0/addon/modules.lua:178> [string "=[C]"]: ? [string "@Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <Ace3/AceAddon-3.0/AceAddon-3.0.lua:61> [string "@Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:523: in function EnableAddon'
[string "@Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:536: in function `EnableAddon'
[string "@Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:626: in function <Ace3/AceAddon-3.0/AceAddon-3.0.lua:611>

Locals:
self =

{
OnSubvalueChanged = defined @Prat-3.0/modules/History.lua:682
SetDefaultModuleLibraries = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:363
RestoreLastSession = defined @Prat-3.0/modules/Scrollback.lua:206
Enable = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:290
NewModule = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:231
EnableModule = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:328
modules =
{
}
GetModule = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:206
IterateEmbeds = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:438
SecureHookScript = defined @Ace3/AceHook-3.0/AceHook-3.0.lua:409
defaultModuleLibraries =
{
}
pluginopts =
{
}
Prat_FramesRemoved = defined @Prat-3.0/modules/Scrollback.lua:135
RawHookScript = defined @Ace3/AceHook-3.0/AceHook-3.0.lua:394
GetName = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:275
name = "Prat_History"
IsEnabled = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:447
orderedModules =
{
}
AddMessage = defined @Prat-3.0/modules/Scrollback.lua:142
DisableModule = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:346
db =
{
}
baseName = "Prat-3.0"
AddHistoryLine = defined @Prat-3.0/modules/History.lua:769
Prat_FramesUpdated = defined @Prat-3.0/modules/Scrollback.lua:127
GetEntryAtIndex = defined @Prat-3.0/modules/Scrollback.lua:150
HookScript = defined @Ace3/AceHook-3.0/AceHook-3.0.lua:365
SetDefaultModulePrototype = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:405
UnhookAll = defined @Ace3/AceHook-3.0/AceHook-3.0.lua:476
IsHooked = defined @Ace3/AceHook-3.0/AceHook-3.0.lua:492
addSavedHistory = defined @Prat-3.0/modules/History.lua:726
SecureHook = defined @Ace3/AceHook-3.0/AceHook-3.0.lua:335
IsModule = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:213
saveLine = defined @Prat-3.0/modules/History.lua:739
SetDefaultModuleState = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:383
ConfigureAllChatFrames = defined @Prat-3.0/modules/History.lua:662
OnModuleDisable = defined @Prat-3.0/modules/Scrollback.lua:102
SetEnabledState = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:420
Hook = defined @Ace3/AceHook-3.0/AceHook-3.0.lua:273
enabledState = true
GetDescription = defined @Prat-3.0/modules/History.lua:653
OnModuleEnable = defined @Prat-3.0/modules/Scrollback.lua:76
PL =
{
}
hooks =
{
}
ClearHistory = defined @Prat-3.0/modules/History.lua:758
SetHistory = defined @Prat-3.0/modules/History.lua:720
IterateModules = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:433
OnValueChanged = defined @Prat-3.0/modules/Scrollback.lua:113
RawHook = defined @Ace3/AceHook-3.0/AceHook-3.0.lua:312
Unhook = defined @Ace3/AceHook-3.0/AceHook-3.0.lua:417
moduleName = "History"
defaultModuleState = true
Disable = defined @Ace3/AceAddon-3.0/AceAddon-3.0.lua:310
}
editBox = ChatFrame7EditBox {
0 =
AddHistoryLine = defined =[C]:-1
headerSuffix = ChatFrame7EditBoxHeaderSuffix {
}
rDrag = Frame {

  • Wow Version: Wotlk Classic - 3.4.1 / 47720 / Jan 18 2023 / 30401
  • Prat Version: Prat |3.0| (|3.9.19|)

Addons you are running
If possible list which addons you were using when the bug occurred.

Addon Usage -

Advanced Interface Options
afk full screen warning
ala trade skill
already known
atlast
atlast loot classic
attune
auctionator
bagnon
bis tooltip
blizzmove
breakables
bug grabber
bug sack
cleaner loot messages
daily to do
dejunk
details
gearquipper
grfo
handy notes
healbot
improved loot frame
instant achiev tracker
item lock
leatrix plus
message queue
Mute sound file
pawn
plain automail
postal
prat
profession cooldown tracker
quartz
questie
restocker
spell activated overlay
tocotip
tomtom
weakauras
whats training
where to gather
speed autoloot
wowpro
Dbm
lockout tracker

commented

<3

commented

Can you screenshot your History module settings?
image
This is mine, but the error doesn't trigger.

commented

image

you dont have that error because you have the set lines unticked so i dont believe its saving any only your commands

commented

i think another possible problem could because the addon is called before the memory has finished loading. is there possible a way to set a bigger delay before prat loads as to have time for chat to load first?

commented

I've added a check into Prat that should hopefully prevent the error. Please let me know how it goes. I'll post the file here when it finishes building.