Lua Editor

Topics related to tools created by the Core Team or 3rd-party community members.

Moderator: Team Members

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Lua Editor

Post by Jabantiz » Sat Apr 07, 2012 5:14 pm

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.
You do not have the required permissions to view the files attached to this post.
Last edited by Jabantiz on Thu Aug 29, 2013 3:46 pm, edited 1 time in total.
Reason: svn

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Lua Editor

Post by Jabantiz » Mon May 27, 2013 6:10 pm

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
You do not have the required permissions to view the files attached to this post.

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Lua Editor

Post by Jabantiz » Mon May 27, 2013 6:30 pm

Forgot to mention windows are all dockable
EQ2EmuLuaEditor5.png
Solution explorer can also be hidden or closed
EQ2EmuLuaEditor6.png
You do not have the required permissions to view the files attached to this post.

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Lua Editor

Post by Jabantiz » Mon May 27, 2013 9:45 pm

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

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Lua Editor

Post by Jabantiz » Tue May 28, 2013 4:03 pm

New version - adds auto format

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Lua Editor

Post by John Adams » Wed May 29, 2013 7:21 am

I love tools.

Excellent work, Jab.

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Lua Editor

Post by Jabantiz » Fri May 31, 2013 2:29 pm

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.

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Lua Editor

Post by Jabantiz » Wed Jun 05, 2013 1:28 pm

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.

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Lua Editor

Post by Jabantiz » Tue Jul 23, 2013 8:44 pm

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.

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Lua Editor

Post by Jabantiz » Tue Aug 06, 2013 11:23 pm

Source for this tool is now up on the tools svn under my folder.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Lua Editor

Post by John Adams » Wed Aug 07, 2013 7:44 am

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.

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Lua Editor

Post by Jabantiz » Wed Aug 07, 2013 11:54 am

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

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Lua Editor

Post by John Adams » Wed Aug 07, 2013 12:38 pm

Yeah, I had asked to look at it, but you never replied to my PM.

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Lua Editor

Post by Jabantiz » Wed Aug 07, 2013 1:52 pm

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.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Lua Editor

Post by John Adams » Wed Aug 07, 2013 3:23 pm

I was probably being subtle... you know, like a brick is to glass.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests