
LUA Error on open Rules
fubaWoW opened this issue ยท 3 comments
Error
1x ...s/Vendor/systems/itemproperties/itempropertyinfo.lua:177: attempt to index field '?' (a nil value)
[string "@Vendor/systems/itemproperties/itempropertyinfo.lua"]:177: in function `IsPropertySupported'
[string "@Vendor/systems/itemproperties/itempropertydocs.lua"]:212: in function <...s/Vendor/systems/itemproperties/itempropertydocs.lua:205>
[string "=(tail call)"]: ?
[string "@Vendor/features/ui_dialogs/EditRule.lua"]:175: in function <...rfaceVendor/features/ui_dialogs/EditRule.lua:163>
[string "=[C]"]: in function `xpcall'
[string "@Vendor/_ui/List.lua"]:417: in function <Vendor/_ui/List.lua:393>
[string "@Vendor/_ui/List.lua"]:667: in function `Update'
[string "@Vendor/_ui/List.lua"]:470: in function <Vendor/_ui/List.lua:462>
[string "@Vendor/ui/dialog.lua"]:57: in function <Vendor/ui/dialog.lua:56>
[string "=[C]"]: in function `Show'
[string "@Vendor/features/ui_dialogs/dialogs.lua"]:49: in function `ShowEditRule'
[string "@Vendor/features/ui_vendor/RuleItem.lua"]:185: in function `Edit'
[string "@Vendor/features/ui_vendor/RuleItem.lua"]:238: in function `?'
[string "@Vendor/_ui/contextmenu.lua"]:82: in function `OnItemClicked'
[string "@Vendor/_ui/contextmenu.lua"]:31: in function <Vendor/_ui/contextmenu.lua:30>
Locals:
self = <table> {
}
name = "PlayerRealm"
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
ITEM_PROPERTIES = <table> {
GUID = <table> {
}
TransmogInfoSource = <table> {
}
TooltipData = <table> {
}
IsUnsellable = <table> {
}
TooltipRight = <table> {
}
IsBagAndSlot = <table> {
}
TooltipLeft = <table> {
}
IsBindOnEquip = <table> {
}
IsAppearanceCollected = <table> {
}
CraftedQuality = <table> {
}
IsPetCollectable = <table> {
}
PetLimit = <table> {
}
PetCount = <table> {
}
PetSpeciesId = <table> {
}
IsUnknownAppearance = <table> {
}
IsConduit = <table> {
}
IsPetTradeable = <table> {
}
Type = <table> {
}
PetType = <table> {
}
Link = <table> {
}
Id = <table> {
}
AppearanceId = <table> {
}
PetName = <table> {
}
IsToy = <table> {
}
IsProfessionEquipment = <table> {
}
IsCraftingReagent = <table> {
}
IsAlreadyKnown = <table> {
}
IsCosmetic = <table> {
}
SourceId = <table> {
}
ExpansionPackId = <table> {
}
IsBindOnUse = <table> {
}
TotalGoldValue = <table> {
}
EquipLoc = <table> {
}
Bag = <table> {
}
TypeId = <table> {
}
IsEquipment = <table> {
}
HasAppearance = <table> {
}
IsEquipped = <table> {
}
UnitValue = <table> {
}
BindType = <table> {
}
IsAzeriteItem = <table> {
}
EquipLocName = <table> {
}
IsUsable = <table> {
}
IsTransmogEquipment = <table> {
}
IsEquippable = <table> {
}
Level = <table> {
}
IsAccountBound = <table> {
}
Quality = <table> {
}
StackSize = <table> {
}
IsWarboundUntilEquip = <table> {
}
IsPet = <table> {
}
TotalValue = <table> {
}
UnitGoldValue = <table> {
}
IsWarbound = <table> {
}
SubType = <table> {
}
IsSoulbound = <table> {
}
IsUpgradeable = <table> {
}
InventoryType = <table> {
}
Name = <table> {
}
MinLevel = <table> {
}
SubTypeId = <table> {
}
HasUseAbility = <table> {
}
Slot = <table> {
}
Count = <table> {
}
}
Addon = <table> {
MerchantButton = <table> {
}
c_Config_Tooltip_Rule = "tooltip_addrule"
RuleType = <table> {
}
DefaultConfig = <table> {
}
c_Config_Tooltip = "tooltip_basic"
c_Config_SellThrottle = "sell_throttle"
RuleConfig = <table> {
}
COMMON_GRAY_COLOR = <table> {
}
IsDebug = false
Systems = <table> {
}
EPIC_PURPLE_COLOR = <table> {
}
RuleManager = <table> {
}
c_Config_MerchantData = "merchantdata"
ActionType = <table> {
}
ruleManager = <table> {
}
IsClassic = false
= <table> {
}
= <table> {
}
Colors = <table> {
}
c_PrintColorCode = "|cffff8040"
eventBroker = <table> {
}
RuleSource = <table> {
}
c_APIMethodColorCode = "|cffffff00"
ComponentManager = <table> {
}
c_ItemSellerThreadName = "ItemSeller"
LEGENDARY_ORANGE_COLOR = <table> {
}
c_Config_ShowItemDialog = "show_item_dialog"
c_Config_AutoSell = "autosell"
Profile = <table> {
}
Public = <table> {
}
c_Config_ThrottleTime = "throttle_time"
= 1
ScriptReference = <table> {
}
c_Config_AutoRepair = "autorepair"
c_Config_MaxSellItems = "max_items_to_sell"
Maps = <table> {
}
SystemListId = <table> {
}
RARE_BLUE_COLOR = <table> {
}
CommonUI = <table> {
}
OnHistoryChanged = <table> {
}
ListType = <table> {
}
Features = <table> {
}
ARTIFACT_GOLD_COLOR = <table> {
}
Extensions = <table> {
}
c_Config_RefreshThrottle = "refresh_throttle"
DependencyInit = <table> {
}
Config = <table> {
}
c_DefaultLocale = "enUS"
Events = <table> {
}
Rules = <table> {
}
c_Config_GuildRepair = "guildrepair"
c_ThrottleTime = 0.150000
HEIRLOOM_BLUE_COLOR = <table> {
}
c_BuybackLimit = 12
c_Config_MinimapData = "minimapdata"
c_Config_SellLimit = "autosell_limit"
UseProfile = <table> {
}
ReleaseNotes = <table> {
}
UNCOMMON_GREEN_COLOR = <table> {
}
}
temporary fix:
open ...\Interface\AddOns\Vendor\systems\itemproperties\itempropertyinfo.lua
and add
PlayerRealm = { Default="", Hide=1, Category="General", Parent=nil, Type="string", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=66 },
PlayerName = { Default="", Hide=1, Category="General", Parent=nil, Type="string", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=67 }
to the ITEM_PROPERTIES
table
or simply replace the whole table ITEM_PROPERTIES
with this:
local ITEM_PROPERTIES = {
-- Core properties
-- GUID is intentionally defaulted to false. If we dont have it, we dont have item properties.
GUID = { Default=false, Hide=1, Category="General", Parent=nil, Type="string", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=1 },
Name = { Default="", Hide=0, Category="General", Parent=nil, Type="string", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=2 },
Id = { Default=0, Hide=0, Category="General", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=3 },
Link = { Default="", Hide=1, Category="General", Parent=nil, Type="string", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=4 },
Count = { Default=0, Hide=0, Category="General", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=5 },
-- Location properties
IsBagAndSlot = { Default=false, Hide=0, Category="Location", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=6 },
Bag = { Default=-1, Hide=0, Category="Location", Parent="IsBagAndSlot", Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=7 },
Slot = { Default=-1, Hide=0, Category="Location", Parent="IsBagAndSlot", Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=8 },
IsEquipped = { Default=false, Hide=0, Category="Location", Parent="IsEquipment", Type="boolean", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=9 },
EquipLoc = { Default="", Hide=0, Category="Equipment", Parent="IsEquipment", Type="string", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=10 },
EquipLocName = { Default="", Hide=0, Category="Equipment", Parent="IsEquipment", Type="string", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=11 },
-- Base properties
Level = { Default=0, Hide=0, Category="General", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=12 },
MinLevel = { Default=0, Hide=0, Category="General", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=13 },
Quality = { Default=0, Hide=0, Category="General", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=14 },
Type = { Default="", Hide=0, Category="Type", Parent=nil, Type="string", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=15 },
TypeId = { Default=0, Hide=0, Category="Type", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=16 },
SubType = { Default="", Hide=0, Category="Type", Parent=nil, Type="string", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=17 },
SubTypeId = { Default=0, Hide=0, Category="Type", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=18 },
StackSize = { Default=0, Hide=0, Category="General", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=19 },
UnitValue = { Default=0, Hide=0, Category="General", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=20 },
IsCraftingReagent = { Default=false, Hide=0, Category="Type", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=21 },
HasUseAbility = { Default=false, Hide=0, Category="Type", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=22 },
IsEquipment = { Default=false, Hide=0, Category="Type", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=23 },
ExpansionPackId = { Default=0, Hide=0, Category="Type", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=24 },
InventoryType = { Default=0, Hide=0, Category="Equipment", Parent="IsEquipment", Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=25 },
IsConduit = { Default=false, Hide=2, Category="Type", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=26 },
IsAzeriteItem = { Default=false, Hide=2, Category="Type", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=27 },
CraftedQuality = { Default=0, Hide=2, Category="General", Parent=nil, Type="number", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=28 },
IsUsable = { Default=false, Hide=0, Category="Type", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=29 },
IsUpgradeable = { Default=false, Hide=0, Category="Type", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=30 },
-- Derived base properties - not given directly by Blizzard
UnitGoldValue = { Default=0, Hide=0, Category="General", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=31 },
TotalValue = { Default=0, Hide=0, Category="General", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=32 },
TotalGoldValue = { Default=0, Hide=0, Category="General", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=33 },
IsUnsellable = { Default=false, Hide=0, Category="Type", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=34 },
IsProfessionEquipment = { Default=false, Hide=0, Category="Equipment", Parent="IsEquipment", Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=35 },
IsEquippable = { Default=false, Hide=0, Category="Equipment", Parent="IsEquipment", Type="boolean", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=36 },
IsPet = { Default=false, Hide=0, Category="Type", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=37 },
-- Bind properties
BindType = { Default=0, Hide=0, Category="Binding", Parent=nil, Type="number", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=38 },
IsSoulbound = { Default=false, Hide=0, Category="Binding", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=39 },
IsBindOnEquip = { Default=false, Hide=0, Category="Binding", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=40 },
IsBindOnUse = { Default=false, Hide=0, Category="Binding", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=41 },
IsWarbound = { Default=false, Hide=0, Category="Binding", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=42 },
IsWarboundUntilEquip = { Default=false, Hide=0, Category="Binding", Parent=nil, Type="boolean", Supported={ Retail=false, Classic=false, RetailNext=true, ClassicNext=false }, Rank=43 },
-- Transmog properties
IsTransmogEquipment = { Default=false, Hide=0, Category="Equipment", Parent="IsEquipment", Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=44 },
IsAppearanceCollected = { Default=false, Hide=0, Category="Transmog", Parent="HasAppearance", Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=45 },
HasAppearance = { Default=false, Hide=0, Category="Transmog", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=46 },
IsUnknownAppearance = { Default=false, Hide=0, Category="Transmog", Parent="HasAppearance", Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=47 },
AppearanceId = { Default=0, Hide=0, Category="Transmog", Parent="HasAppearance", Type="number", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=48 },
SourceId = { Default=0, Hide=0, Category="Transmog", Parent="HasAppearance", Type="number", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=49 },
-- Tooltip-derived Properties (excluding IsAccountBound)
IsCosmetic = { Default=false, Hide=0, Category="Equipment", Parent="IsEquipment", Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=50 },
IsAlreadyKnown = { Default=false, Hide=0, Category="Type", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=51 },
IsToy = { Default=false, Hide=0, Category="Type", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=53 },
-- Pet properties
PetName = { Default="", Hide=0, Category="Pet", Parent="IsPet", Type="string", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=54 },
PetType = { Default=0, Hide=0, Category="Pet", Parent="IsPet", Type="number", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=55 },
IsPetTradeable = { Default=false, Hide=0, Category="Pet", Parent="IsPet", Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=56 },
PetSpeciesId = { Default=0, Hide=0, Category="Pet", Parent="IsPet", Type="number", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=57 },
PetCount = { Default=0, Hide=0, Category="Pet", Parent="IsPet", Type="number", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=58 },
PetLimit = { Default=0, Hide=0, Category="Pet", Parent="IsPet", Type="number", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=59 },
IsPetCollectable = { Default=false, Hide=0, Category="Pet", Parent="IsPet", Type="boolean", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=60 },
-- Aliased properties for compat (hidden)
IsAccountBound = { Default=false, Hide=1, Category="Binding", Parent=nil, Type="boolean", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true } , Rank=61},
-- Deprecated Properties for old Tooltip scanning in classic
TooltipLeft = { Default=nil, Hide=1, Category="System", Parent=nil, Type="table", Supported={ Retail=false, Classic=true, RetailNext=false, ClassicNext=true }, Rank=62 },
TooltipRight = { Default=nil, Hide=1, Category="System", Parent=nil, Type="table", Supported={ Retail=false, Classic=true, RetailNext=false, ClassicNext=true }, Rank=63 },
-- Used for data only
TooltipData = { Default=nil, Hide=1, Category="System", Parent=nil, Type="table", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=64 },
-- Debug properties
TransmogInfoSource = { Default=nil, Hide=0, Category="Debug", Parent=nil, Type="string", Supported={ Retail=true, Classic=false, RetailNext=true, ClassicNext=false }, Rank=65 },
-- Temporary fix
PlayerRealm = { Default="", Hide=1, Category="General", Parent=nil, Type="string", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=66 },
PlayerName = { Default="", Hide=1, Category="General", Parent=nil, Type="string", Supported={ Retail=true, Classic=true, RetailNext=true, ClassicNext=true }, Rank=67 }
}