Mock Lua API

Mock Lua API

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Mock Lua API

Post by PicassoCT »

https://github.com/PicassoCT/SpringLuaM ... ree/master

In other news.. if you have a IDE that can integrate librarys- you could integrate the MockUpApi into your project and well..
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Lua error display

Post by Beherith »

Can you suggest an IDE for windows that this works with?
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Lua error display

Post by PicassoCT »

Ide:
https://www.jetbrains.com/idea/

Tutorial for the wow api.
https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Home

PS: Just discovered some Bug in the Api Generator.. please hold the line
MaDDoX
Posts: 77
Joined: 08 Jan 2006, 17:45

Re: Mock Lua API

Post by MaDDoX »

Hey Picasso, that's amazing - if we find out how to put it to use :)

That's what I tried in IntelliJ Idea:

1. File > Project Structure
2. Modules
Click +
Import Module
3. Keep 'Create module from existing sources' selected
4. Leave the module folder checked, click next
5. Leave everything checked again, click finish

But no Spring.xxx command available yet, as if still requiring an import of syncedRead etc..
I also found some errors in LuaSyncedRead, like in Spring.GetModOptions.exampleOption
I'll be glad to fix and enhance the install instructions if you can give some hints on how to run it, not an IntelliJ expert myself - although I've been using it and the LUA extension since early this year.

PS.: BTW, that's not the link to the WoW API tutorial, I did see that once.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Mock Lua API

Post by PicassoCT »

Okay, i tryied several variants - including a near empty file with imports in the wow-style for basic auto-completion.
Seems the LUA IDEA Import even for basic automcompletion is broken.

Sorry about that. I created a single file Api under /SDK/ in the repo if you want to try yourself.

I can give you rights on the repo if you pm me.

Regards Pica
Post Reply

Return to “Lua Scripts”