Pet Battle Scripts

Pet Battle Scripts

265k Downloads

Addon.lua:214: attempt to index field '?' (a function value)

Ookami313 opened this issue ยท 2 comments

commented

Running 1.9.3. Tried to import a script from Xu-Fu's and when I go to select the NPC I'm battling (Select the Key), after selecting Rematch from the first dropdown menu, I get the following error and it will not let me continue with the import. Thanks.

16x tdBattlePetScript/Rematch/Addon.lua:214: attempt to index field '?' (a function value)
[string "@tdBattlePetScript/Rematch/Addon.lua"]:214: in function GetTitleByKey' [string "@tdBattlePetScript/UI/Import.lua"]:265: in function menuTable'
[string "@tdBattlePetScript/Libs/tdGUI/Widget/Dropdown.lua"]:124: in function <...Ons/tdBattlePetScript/Libs/tdGUI/Widget/Dropdown.lua:120>
[string "=[C]"]: in function `Click'
[string "@tdBattlePetScript/Libs/tdGUI/Widget/Dropdown.lua"]:41: in function <...Ons/tdBattlePetScript/Libs/tdGUI/Widget/Dropdown.lua:40>

Locals:
self =

{
SetDefaultModuleLibraries = defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:363
UnhookAll = defined @BattlePetCompletionist/Libs/AceHook-3.0/AceHook-3.0.lua:476
Enable = defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:290
NewModule = defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:231
SecureHookScript = defined @BattlePetCompletionist/Libs/AceHook-3.0/AceHook-3.0.lua:409
EnableModule = defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:328
modules =
{
}
GetModule = defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:206
IterateEmbeds = defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:438
_icon = "Interface\AddOns\Rematch\Textures\icon"
SecureHook = defined @BattlePetCompletionist/Libs/AceHook-3.0/AceHook-3.0.lua:335
defaultModuleLibraries =
{
}
hooks =
{
}
_title = "Rematch"
baseName = "tdBattlePetScript"
RawHookScript = defined @BattlePetCompletionist/Libs/AceHook-3.0/AceHook-3.0.lua:394
TeardownUI = defined @tdBattlePetScript/Rematch/UI.lua:215
SendMessage = defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:49
UpdateDBRematch4To5 = defined @tdBattlePetScript/Rematch/Addon.lua:325
ResetEverything = defined @tdBattlePetScript/Rematch/Addon.lua:318
SetDefaultModulePrototype = defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:405
OnImportContinuation = defined @tdBattlePetScript/Rematch/Addon.lua:305
OnImport = defined @tdBattlePetScript/Rematch/Addon.lua:284
OnExport = defined @tdBattlePetScript/Rematch/Addon.lua:267
name = "PetBattleScripts_PluginManager_Rematch"
OnExportImpl = defined @tdBattlePetScript/Rematch/Addon.lua:256
IsEnabled = defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:447
orderedModules =
{
}
OnTooltipFormatting = defined @tdBattlePetScript/Rematch/Addon.lua:220
DisableModule = defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:346
NewClass = defined @tdBattlePetScript/Libs/tdGUI/Libs/LibClass-2.0/Class-2.0.lua:349
GetTitleByKey = defined @tdBattlePetScript/Rematch/Addon.lua:210
IterateKeys = defined @tdBattlePetScript/Rematch/Addon.lua:196
GetCurrentKey = defined @tdBattlePetScript/Rematch/Addon.lua:186
RegisterMessage = defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
UnregisterMessage = defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
OnDisable = defined @tdBattlePetScript/Rematch/Addon.lua:167
OnEnable = defined @tdBattlePetScript/Rematch/Addon.lua:25
IsHooked = defined @BattlePetCompletionist/Libs/AceHook-3.0/AceHook-3.0.lua:492
OnInitialize = defined @tdBattlePetScript/Rematch/Addon.lua:14
GetClass = defined @tdBattlePetScript/Libs/tdGUI/Libs/LibClass-2.0/Class-2.0.lua:359
IsModule = defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:213
_notes = "This script selector will be bound to the Rematch team."
SetDefaultModuleState = defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:383
SetupUI = defined @tdBattlePetScript/Rematch/UI.lua:49
updateFrames = defined @tdBattlePetScript/

commented

image

commented
  • Don't bother using that import dialog. Just right click your team in Rematch and select "create script". That makes it easier to match them as well.
  • This should be fixed with v1.10 which was just released.