Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button.lua line 242 Error #299

Open
evilgodly opened this issue Jan 18, 2023 · 4 comments
Open

Button.lua line 242 Error #299

evilgodly opened this issue Jan 18, 2023 · 4 comments

Comments

@evilgodly
Copy link

Got this right when i logged in.

Date: 2023-01-17 18:03:49
ID: 1
Error occured in: Global
Count: 1
Message: Interface/AddOns/AtlasLootClassic/Button/Button.lua line 242:
attempt to call method 'SetGradientAlpha' (a nil value)
Debug:
[string "@Interface/AddOns/AtlasLootClassic/Button/Button.lua"]:242: Create()
[string "@Interface/AddOns/AtlasLootClassic/GUI/ItemFrame.lua"]:47: Create()
[string "@Interface/AddOns/AtlasLootClassic/GUI/GUI.lua"]:1394: Create()
[string "@Interface/AddOns/AtlasLootClassic/GUI/GUI.lua"]:956: func()
[string "@Interface/AddOns/AtlasLootClassic/AtlasLoot.lua"]:42:
Interface/AddOns/AtlasLootClassic/AtlasLoot.lua:34
Locals:
self =

{
AddChatLink = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:95
GetWoWHeadLocale = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:86
CopyBox_Hide = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1290
GetExtraType = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1021
ExtraItemFrame_GetFrame = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1100
CreateFormatTable = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:90
CreateSecOnly = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:440
CopyBox_Show = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1279
ExtraItemFrame_ClearFrame = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1187
Proto =
{
}
Button_Overlay_SetQualityBorder = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:173
Init = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:62
ExtraItemFrame_Refresh = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1182
API =
{
}
Button_Overlay_SetAchievementBorder = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:188
DisableDescriptionReplaceForce = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1031
FormatItemTableType = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1026
Create = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:215
GetType = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1004
AddIdentifier = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:998
AddType = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:973
AddExtraType = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1009
OpenWoWHeadLink = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:103
}
buttonName = "AtlasLoot_Button_1"
button = AtlasLoot_Button_1 {
0 =
background = AtlasLoot_Button_1_background {
}
highlightBg = AtlasLoot_Button_1_highlightBg {
}
}
(*temporary) = nil
(*temporary) = AtlasLoot_Button_1_highlightBg {
0 =
}
(*temporary) = "HORIZONTAL"
(*temporary) = 1
(*temporary) = 1
(*temporary) = 1
(*temporary) = 0.450000
(*temporary) = 1
(*temporary) = 1
(*temporary) = 1
(*temporary) = 0
(*temporary) = "attempt to call method 'SetGradientAlpha' (a nil value)"
BUTTON_COUNT = 1
CreateFrame = defined =[C]:-1
Button_OnEnter = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:113
Button_OnLeave = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:125
Button_OnClick = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:137
Button_OnMouseWheel = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:150
DEFAULT_BACKGROUND_COLOR =
{
1 = 0.820000
2 = 0.820000
3 = 0.820000
4 = 0.400000
}
Button_Overlay_SetQualityBorder = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:173
Button_Overlay_SetAchievementBorder = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:188
Button_ForceSetText = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:159
Button_SetNormalTexture = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:155
pairs = defined =[C]:-1
Proto =
{
Clear = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:541
SetDifficultyID = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:799
SetExtraType = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:780
SetContentTable = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:604
SetNpcID = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:803
AddEnhancedDescription = <functi
AddOns:
Swatter, v3.4.6837 (SwimmingSeadragon)
WowheadLooter, v30401
Ace3, vr1298
AdvancedInterfaceOptions, v1.8.4
Altoholic, v3.4.002
AskMrRobotClassic, v12
Atlas, vv1.52.05
AtlasLootClassic, vv3.0.7
AtlasLootClassicDungeonsAndRaids, vv3.0.7
DataStore, v2022.12.18
DataStoreCharacters, v2022.12.11
LibSharedMedia30, v3.0-130
LibStub, v
BlizRuntimeLib_enUS v3.4.1.30401
(ck=18d)

@Gogo1951
Copy link

Same, latest version on CurseForge on Wrath.

10x AtlasLootClassic/Button/Button.lua:242: attempt to call method 'SetGradientAlpha' (a nil value)
[string "@AtlasLootClassic/Button/Button.lua"]:242: in function Create' [string "@AtlasLootClassic/GUI/ItemFrame.lua"]:47: in function Create'
[string "@AtlasLootClassic/GUI/GUI.lua"]:1394: in function Create' [string "@AtlasLootClassic/GUI/GUI.lua"]:956: in function func'
[string "@AtlasLootClassic/AtlasLoot.lua"]:42: in function <AtlasLootClassic/AtlasLoot.lua:34>

Locals:
self =

{
AddChatLink = defined @AtlasLootClassic/Button/Button.lua:95
GetWoWHeadLocale = defined @AtlasLootClassic/Button/Button.lua:86
CopyBox_Hide = defined @AtlasLootClassic/Button/Button.lua:1290
GetExtraType = defined @AtlasLootClassic/Button/Button.lua:1021
ExtraItemFrame_GetFrame = defined @AtlasLootClassic/Button/Button.lua:1100
CreateFormatTable = defined @AtlasLootClassic/Button/Button.lua:90
CreateSecOnly = defined @AtlasLootClassic/Button/Button.lua:440
CopyBox_Show = defined @AtlasLootClassic/Button/Button.lua:1279
ExtraItemFrame_ClearFrame = defined @AtlasLootClassic/Button/Button.lua:1187
Proto =
{
}
Button_Overlay_SetQualityBorder = defined @AtlasLootClassic/Button/Button.lua:173
Init = defined @AtlasLootClassic/Button/Button.lua:62
ExtraItemFrame_Refresh = defined @AtlasLootClassic/Button/Button.lua:1182
API =
{
}
Button_Overlay_SetAchievementBorder = defined @AtlasLootClassic/Button/Button.lua:188
DisableDescriptionReplaceForce = defined @AtlasLootClassic/Button/Button.lua:1031
FormatItemTableType = defined @AtlasLootClassic/Button/Button.lua:1026
Create = defined @AtlasLootClassic/Button/Button.lua:215
GetType = defined @AtlasLootClassic/Button/Button.lua:1004
AddIdentifier = defined @AtlasLootClassic/Button/Button.lua:998
AddType = defined @AtlasLootClassic/Button/Button.lua:973
AddExtraType = defined @AtlasLootClassic/Button/Button.lua:1009
OpenWoWHeadLink = defined @AtlasLootClassic/Button/Button.lua:103
}
buttonName = "AtlasLoot_Button_1"
button = AtlasLoot_Button_1 {
0 =
background = AtlasLoot_Button_1_background {
}
highlightBg = AtlasLoot_Button_1_highlightBg {
}
}
(*temporary) = nil
(*temporary) = AtlasLoot_Button_1_highlightBg {
0 =
}
(*temporary) = "HORIZONTAL"
(*temporary) = 1
(*temporary) = 1
(*temporary) = 1
(*temporary) = 0.450000
(*temporary) = 1
(*temporary) = 1
(*temporary) = 1
(*temporary) = 0
(*temporary) = "attempt to call method 'SetGradientAlpha' (a nil value)"
BUTTON_COUNT = 1
CreateFrame = defined =[C]:-1
Button_OnEnter = defined @AtlasLootClassic/Button/Button.lua:113
Button_OnLeave = defined @AtlasLootClassic/Button/Button.lua:125
Button_OnClick = defined @AtlasLootClassic/Button/Button.lua:137
Button_OnMouseWheel = defined @AtlasLootClassic/Button/Button.lua:150
DEFAULT_BACKGROUND_COLOR =
{
1 = 0.820000
2 = 0.820000
3 = 0.820000
4 = 0.400000
}
Button_Overlay_SetQualityBorder = defined @AtlasLootClassic/Button/Button.lua:173
Button_Overlay_SetAchievementBorder = defined @AtlasLootClassic/Button/Button.lua:188
Button_ForceSetText = defined @AtlasLootClassic/Button/Button.lua:159
Button_SetNormalTexture = defined @AtlasLootClassic/Button/Button.lua:155
pairs = defined =[C]:-1
Proto =
{
Clear = defined @AtlasLootClassic/Button/Button.lua:541
SetDifficultyID = defined @AtlasLootClassic/Button/Button.lua:799
SetExtraType = defined @AtlasLootClassic/Button/Button.lua:780
SetContentTable = defined @AtlasLootClassic/Button/Button.lua:604
SetNpcID = defined @AtlasLootClassic/Button/Button.lua:803
AddEnhancedDescription = <functi

@Airstrike1223
Copy link

Same error

Date: 2023-01-17 17:52:59
ID: 1
Error occured in: Global
Count: 1
Message: Interface/AddOns/AtlasLootClassic/Button/Button.lua line 242:
attempt to call method 'SetGradientAlpha' (a nil value)
Debug:
[string "@Interface/AddOns/AtlasLootClassic/Button/Button.lua"]:242: Create()
[string "@Interface/AddOns/AtlasLootClassic/GUI/ItemFrame.lua"]:47: Create()
[string "@Interface/AddOns/AtlasLootClassic/GUI/GUI.lua"]:1394: Create()
[string "@Interface/AddOns/AtlasLootClassic/GUI/GUI.lua"]:956: func()
[string "@Interface/AddOns/AtlasLootClassic/AtlasLoot.lua"]:42:
Interface/AddOns/AtlasLootClassic/AtlasLoot.lua:34
Locals:
self =

{
AddChatLink = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:95
GetWoWHeadLocale = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:86
CopyBox_Hide = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1290
GetExtraType = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1021
ExtraItemFrame_GetFrame = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1100
CreateFormatTable = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:90
CreateSecOnly = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:440
CopyBox_Show = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1279
ExtraItemFrame_ClearFrame = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1187
Proto =
{
}
Button_Overlay_SetQualityBorder = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:173
Init = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:62
ExtraItemFrame_Refresh = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1182
API =
{
}
Button_Overlay_SetAchievementBorder = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:188
DisableDescriptionReplaceForce = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1031
FormatItemTableType = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1026
Create = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:215
GetType = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1004
AddIdentifier = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:998
AddType = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:973
AddExtraType = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:1009
OpenWoWHeadLink = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:103
}
buttonName = "AtlasLoot_Button_1"
button = AtlasLoot_Button_1 {
0 =
background = AtlasLoot_Button_1_background {
}
highlightBg = AtlasLoot_Button_1_highlightBg {
}
}
(*temporary) = nil
(*temporary) = AtlasLoot_Button_1_highlightBg {
0 =
}
(*temporary) = "HORIZONTAL"
(*temporary) = 1
(*temporary) = 1
(*temporary) = 1
(*temporary) = 0.450000
(*temporary) = 1
(*temporary) = 1
(*temporary) = 1
(*temporary) = 0
(*temporary) = "attempt to call method 'SetGradientAlpha' (a nil value)"
BUTTON_COUNT = 1
CreateFrame = defined =[C]:-1
Button_OnEnter = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:113
Button_OnLeave = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:125
Button_OnClick = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:137
Button_OnMouseWheel = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:150
DEFAULT_BACKGROUND_COLOR =
{
1 = 0.820000
2 = 0.820000
3 = 0.820000
4 = 0.400000
}
Button_Overlay_SetQualityBorder = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:173
Button_Overlay_SetAchievementBorder = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:188
Button_ForceSetText = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:159
Button_SetNormalTexture = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:155
pairs = defined =[C]:-1
Proto =
{
Clear = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:541
SetDifficultyID = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:799
SetExtraType = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:780
SetContentTable = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:604
SetNpcID = defined @Interface/AddOns/AtlasLootClassic/Button/Button.lua:803
AddEnhancedDescription = <functi
AddOns:
Swatter, v3.4.6837 (SwimmingSeadragon)
WowheadLooter, v20502
AchievementSound, v1.3
AskMrRobotClassic, v11
AtlasLootClassic, vv3.0.7
AtlasLootClassicDungeonsAndRaids, vv3.0.7
BlizRuntimeLib_enUS v3.4.1.30401
(ck=e5)

@GovtGeek
Copy link

In Button.lua you can change line 242 to this and it should fix that one issue.
button.highlightBg:SetGradient("HORIZONTAL", CreateColor(1, 1, 1, 0.45), CreateColor(1, 1, 1, 0))

@gulvklud
Copy link

gulvklud commented Jan 18, 2023

In additon, to fix the CreateTexture issue change line 350:
button.secButton.icon = button.secButton:CreateTexture(buttonName.."_secButtonIcon", "ARTWORK")
and line 420 to:
button.factionIcon = button:CreateTexture(buttonName.."_factionIcon", "ARTWORK")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants