Page 1 of 4

Lua Editor

Posted: Sat Apr 07, 2012 5:14 pm
by Jabantiz
This is the all in one editors I am working on mainly to help me learn how EQ2 emu works. Right now it is just a lua editor but as I find the time I will add the rest. I would also like to stress I suck with UI's so I am sure this could have a better design.

Setting the script path will look in all folders in that path for .lua files, but it will not check the root path and will probably add folders with no .lua in it. The font and color setting should all work. This program will create a settings.xml file to save all you settings. The keywords.xml file contains every thing to be highlighted (lua keywords as well as EQ2Emu functions). It will probably require .net 4.0 (3.5 at the least)

EDIT: Source is on tools SVN now and you can get udated exe's from there as well.

Re: Lua Editor

Posted: Mon May 27, 2013 6:10 pm
by Jabantiz
Working with lua a lot lately I decided to take another stab at this, despite what the original post says this is now just a lua editor. I used third party libraires this time and the result is far better then the original version here is the basic layout
EQ2EmuLuaEditor.png
Here is a lua file loaded up
EQ2EmuLuaEditor2.png
Added the ability to create blank scripts with all the function that the server can call
EQ2EmuLuaEditor3.png
Here is a new spawn script
EQ2EmuLuaEditor4.png
This is probably far more functional with more features then the last version but haven't done any extensive testing on it yet, still want to add more to it mainly get auto formatting working right and the ability to customize the colors. There is also an auto complete feature in one of the third party libraries but the whole library isn't documented well so might take a while to figure out how to use it. To get the "solution explorer" to work you have to set a path to where the server exe is by going to File->Open Project Folder.

I would appreciate it if any one tests it out and leaves feedback, but be warned this is still early development so use at your own risk.

The attachment on the original post has been updated.

ps - this will be on tools svn (source too) in the future when I am sure it is stable and useable

Re: Lua Editor

Posted: Mon May 27, 2013 6:30 pm
by Jabantiz
Forgot to mention windows are all dockable
EQ2EmuLuaEditor5.png
Solution explorer can also be hidden or closed
EQ2EmuLuaEditor6.png

Re: Lua Editor

Posted: Mon May 27, 2013 9:45 pm
by Jabantiz
New version attached to the first post.

Fixes a couple bugs foof found, also enabled auto complete and added the ability to hit f1 on an eq2emu keyword and open up the wiki page for that function

Re: Lua Editor

Posted: Tue May 28, 2013 4:03 pm
by Jabantiz
New version - adds auto format

Re: Lua Editor

Posted: Wed May 29, 2013 7:21 am
by John Adams
I love tools.

Excellent work, Jab.

Re: Lua Editor

Posted: Fri May 31, 2013 2:29 pm
by Jabantiz
New version on the first post auto format now supports for, while, and repeat until loops. Also added the ability to toggle auto complete and auto format.

Re: Lua Editor

Posted: Wed Jun 05, 2013 1:28 pm
by Jabantiz
New version, fixes a rare null pointer exception in the solution explorer. Can now load files through command line (right click lua file, select open with and browse to the exe). Added the black eq2 icon to the exe.

Re: Lua Editor

Posted: Tue Jul 23, 2013 8:44 pm
by Jabantiz
New version, settings.xml should now be created/saved in the proper folder (same folder you run the exe from).

You should now be able to edit font colors/back ground colors to customize the syntax highlighting. (View -> Settings)

Added some missing and new lua functions to the emu keywords list

If you are replacing an older version you will need to delete the settings.xml file in the folder with the exe.

Updated file attached to the first post.

Re: Lua Editor

Posted: Tue Aug 06, 2013 11:23 pm
by Jabantiz
Source for this tool is now up on the tools svn under my folder.

Re: Lua Editor

Posted: Wed Aug 07, 2013 7:44 am
by John Adams
Thanks, Jab. If you need the folder to be hidden for now, let me know. I know you said you had more work you wanted to do.

Re: Lua Editor

Posted: Wed Aug 07, 2013 11:54 am
by Jabantiz
Its ok to leave it public, I know xinux wanted to poke around in it and I am not finding much time to work on it currently

Re: Lua Editor

Posted: Wed Aug 07, 2013 12:38 pm
by John Adams
Yeah, I had asked to look at it, but you never replied to my PM.

Re: Lua Editor

Posted: Wed Aug 07, 2013 1:52 pm
by Jabantiz
John Adams wrote:Yeah, I had asked to look at it, but you never replied to my PM.
Sorry about that, must of misread the pm thought you were just reminding me about the tools svn.

Re: Lua Editor

Posted: Wed Aug 07, 2013 3:23 pm
by John Adams
I was probably being subtle... you know, like a brick is to glass.