Thread Tools Display Modes
01/01/21, 07:16 AM   #1
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,004
Well, we get the ESOUIDocumentationPxx.txt file where all constants and functions are in.
EmmyLua and no other lua plugin, or even IntelliJ alone, would be able to use this as a source of any API
We need to extract the data from it and create lua files, or any other supported file, that the EmmyLua (or other lua plugins) are able touse AND find properly in the projects.

I also tried to unzip the source folder but EmmyLua/IntelliJ wa snot able to read all files properly to use the sources from there.
Beside that it was very slow as it had to read all the files, and if a new project was addded it re-scanned all the files each time.

So far the only way I found it is supported is create real lua functions, global variables etc. from the documentation files, and that is what the php parser classes do.

So the manual tasks after each new ESOUIDocumentationPxx.txt we get from ZOs (during PTS releases) will be:
1. Parse the txt file and create the api lua files from it
2. Use addon DumpVars and dump the new global constants, create the the api_globals.lua and api_sounds.lua files from it
3. Update the xml json file
4. Optional: Check differences in lua code and remove non-existing functions from static file eso-api_base_Manual_NonGenerated.lua
5. Optional: heck for new functions/globals you wish to add to file eso-api_base_Manual_NonGenerated.lua
6. Create zip file and release to ESOUI addon https://www.esoui.com/downloads/info...Luaplugin.html

Users can use the zip file then and extract it to their libs folder to use the updated API files.

Last edited by Baertram : 01/01/21 at 07:18 AM.
  Reply With Quote
01/03/15, 10:42 AM   #2
parnell
Join Date: Dec 2014
Posts: 1
Nice job Tinuviel. This is awesome. Any chance you would mind putting the sdk on github so we can all keep it up to date as new API are released?

I also am a VS2013/resharper developer so this makes it nice. Any chance you have found a good unit testing framework as well? I'd like to write TDD so that i'm not spending so much time writing calls to d()

Thanks,
  Reply With Quote
11/30/18, 09:39 AM   #3
raycrios
Join Date: Nov 2018
Posts: 5
Definitely try VSCode with Lua extension. It's MUCH faster than IntelliJ, highly customizable, with a LOT of features and great community. Highly recommended.


Last edited by raycrios : 11/30/18 at 09:44 AM.
  Reply With Quote

ESOUI » Developer Discussions » Dev Tools » IntelliJ and sylvanaar


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