This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
What steps will reproduce the problem?1. Open menu2. "Player Scripts"3. Click "New Menu"4. Enter name, click accept
What is the expected output? What do you see instead?Expect the window to clear and the menu listing to be created. Error pops up, window remains, no menu created.
What version of the product are you using?0.8
Do you have an error log of what happened?
2x ArbitraryCommands\ac.lua:363: Argument to :RegisterMenu tries to index a menu that doesn't exist yet[C]: in function `assert'ArbitraryCommands\ac.lua:363: in function `getparent'ArbitraryCommands\ac.lua:669: in function `RegisterMenu'ArbitraryCommands\editor.lua:158: in function <ArbitraryCommands\editor.lua:147>(tail call): ?FrameXML\StaticPopup.lua:3945: in function `StaticPopup_OnClick'[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>
Locals:self = <table> { defaults = <table> { } minimap_icon_right_click = <function> defined @ArbitraryCommands\editor.lua:107 EnableModule = <function> defined @Alts\Libs\AceAddon-3.0\AceAddon-3.0.lua:363 modules = <table> { } ClearCommands = <function> defined @ArbitraryCommands\ac.lua:656 IterateEmbeds = <function> defined @Alts\Libs\AceAddon-3.0\AceAddon-3.0.lua:473 OnChatCommand = <function> defined @ArbitraryCommands\ac.lua:341 gen_submenu = <function> defined @ArbitraryCommands\ac.lua:534 added_menu_name_map = <table> { } Printf = <function> defined @Alts\Libs\AceConsole-3.0\AceConsole-3.0.lua:69 SetDefaultModulePrototype = <function> defined @Alts\Libs\AceAddon-3.0\AceAddon-3.0.lua:440 defaultModuleState = true IsEnabled = <function> defined @Alts\Libs\AceAddon-3.0\AceAddon-3.0.lua:482 DisableModule = <function> defined @Alts\Libs\AceAddon-3.0\AceAddon-3.0.lua:381 script_tree = <table> { } GetArgs = <function> defined @Alts\Libs\AceConsole-3.0\AceConsole-3.0.lua:144 KEYSEP = " " get_menu_offset = <function> defined @ArbitraryCommands\ac.lua:395 db = <table> { } SetEnabledState = <function> defined @Alts\Libs\AceAddon-3.0\AceAddon-3.0.lua:455 enabledState = true populate_data_tables = <function> defined @ArbitraryCommands\ac.lua:490 OnEnable = <function> defined @ArbitraryCommands\ac.lua:264 top_menu = <table> { } Enable = <function> defined @Alts\Libs\AceAddon-3.0\AceAddon-3.0.lua:325 RegisterChatCommand = <function> defined @Alts\Libs\AceConsole-3.0\AceConsole-3.0.lua:85 build_main_window = <function> defined @ArbitraryCommands\editor.lua:91 GetModule = <function> defined @Alts\Libs\AceAddon-3.0\AceAddon-3.0.lua:241 defaultModuleLibraries = <table> { } helptext = <table> { } getparent = <function> defined @ArbitraryCommands\ac.lua:349 UnregisterChatCommand = <function> defined @Alts\Libs\AceConsole-3.0\AceConsole-3.0.lua:111 RegisterCommand = <function> defined @ArbitraryCommands\ac.lua:683 dropdownframe = ArbitCommDropDownMenu { } find = <function> defined @ArbitraryCommands\ac.lua:428 GetMenuLocations = <function> defined @ArbitraryCommands\ac.lua:334 orderedModules = <table> { } Disable = <function> defined @Alts\Libs\AceAddon-3.0\AceAddon-3.0.lua:345 blizOptionsFrame = <unnamed> { } BackRegister = <function> defined @ArbitraryCommands\ac.lua:729 RefreshConfig = <function> defined @ArbitraryCommands\ac.lua:554 Print = <function> defined @Alts\Libs\AceConsole-3.0\AceConsole-3.0.lua:54 static_script_tree = <table> { } IsModule = <function> defined @Alts\Libs\AceAddon-3.0\AceAddon-3.0.lua:499 SetOption = <function> defined @ArbitraryCommands\ac.lua:207 SetDefaultModuleState = <function> defined @Alts\Libs\AceAddon-3.0\AceAddon-3.0.lua:418 SetDefaultModuleLibraries = <function> defined @Alts\Libs\AceAddon-3.0\AceAddon-3.0.lua:398 NewModule = <function> defined @Alts\Libs\AceAddon-3.0\AceAddon-3.0.lua:266 RegisterMenu = <function> defined @ArbitraryCommands\ac.lua:661 commands = <table> { } gen_tree_entry = <function> defined @ArbitraryCommands\ac.lua:528 RunScript = <function> defined @ArbitraryCommands\ac.lua:610 is_slash = <table> { } gen_menu_entry = <function> defined @ArbitraryCommands\ac.lua:516 ToggleEnable = <function> defined @ArbitraryCommands\ac.lua:321 options = <table> { } get_submenu = <function> defined @ArbitraryCommands\ac.lua:403 GetName = <function> defined @Alt
I think I know why this happened. I didn't have a 'selection' when i clicked "new menu". I tried it for a third time but happened to have previously clicked another script listing and it worked with no error.
To post a comment, please login or register a new account.