Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/06/21, 05:16 PM   #1
marcjordan
AddOn Author - Click to view addons
Join Date: Sep 2020
Posts: 14
GetApiVersion() no longer works?

Howdy,

[edit] Thanks to Baertram it's API, not Api. In my defense the error info wasn't sufficient for my casual lua knowledge and time available
Code:
d(string.format("%s",GetAPIVersion()))
[/edit]

I've been using GetApiVersion for awhile now and in the latest update it seems to have stopped working. I checked the latest release API dox and it's still there and still returns an integer. Here's line 10 of my lua file:

Code:
EsoGrinder.api_version = GetApiVersion()
And here's the BugCatcher log:

Code:
user:/AddOns/EsoGrinder/EsoGrinder.lua:10: function expected instead of nil
stack traceback:
user:/AddOns/EsoGrinder/EsoGrinder.lua:10: in function '(main chunk)'
If I change it so that GetApiVersion is called later:

Code:
EsoGrinder.api_version = 0
...
115: function EsoGrinder.OnSlashCommandApiVersion(extra)
116:     EsoGrinder.api_version = GetApiVersion()
117:     d(EsoGrinder.api_version)
118: end
I get this error:

Code:
user:/AddOns/EsoGrinder/EsoGrinder.lua:116: function expected instead of nil
stack traceback:
user:/AddOns/EsoGrinder/EsoGrinder.lua:116: in function 'EsoGrinder.OnSlashCommandApiVersion'
<Locals> extra = "" </Locals>
EsoUI/Ingame/SlashCommands/SlashCommands_Shared.lua:204: in function 'DoCommand'
<Locals> text = "/egrapiversion", command = "/egrapiversion", arguments = "", fn = user:/AddOns/EsoGrinder/EsoGrinder.lua:115 </Locals>
EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:1785: in function 'SharedChatSystem:SubmitTextEntry'
<Locals> self = [table:1]{allowMultipleContainers = F, shouldMinimizeAfterEntry = F, ignoreTextEntryChangedEvent = F, currentChannel = 31, loaded = T, maxContainerWidth = 2575.2211914063, currentNumNotifications = 1, maxContainerHeight = 1448.5618896484, minContainerHeight = 170, suppressSave = F, numUnreadMails = 23, minContainerWidth = 300, isMinimized = F, lastValidChannel = 0, isAgentChatActive = F}, text = "/egrapiversion", valid = F, prefix = 47 </Locals>
EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:2493: in function 'ZO_ChatTextEntry_Execute'
<Locals> control = ud </Locals>
ZO_ChatWindowTextEntryEditBox_Enter:3: in function '(main chunk)'
<Locals> self = ud </Locals>
(tail call): ?
(tail call): ?

Last edited by marcjordan : 04/10/21 at 02:02 PM.
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » GetApiVersion() no longer works?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off