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

Re: Lua Editor

Post by Jabantiz » Mon Oct 21, 2013 8:09 pm

Will work on implementing this, can always update later to a better program like you said. The screen I posted was a quick test, still got more to do to make it useful. I did add a compile all though and tested it, came up with 10 errors across all the scripts I have so it does work and found errors I didn't know about. At the very least I need to make the compile all run on its own thread as the program freezes while it runs.

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

Re: Lua Editor

Post by Jabantiz » Mon Oct 21, 2013 9:08 pm

Committed what I have, it is not perfect but it is a start. Two new buttons for compile and compile all, no graphics for them though, compile will just check the current active lua file. Committing now as it doesn't crash, all I can do for the night, and not sure when I will be able to work on this again.

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

Re: Lua Editor

Post by Jabantiz » Wed Oct 30, 2013 11:15 pm

I have been working on the build functions over the past few days when I find the time and have made it far more useful. I added an output window like visual studio has
LuaError1.jpg
Changed the error window to a list view and you can now click on the error to open the file, if it isn't already, and place the caret on the line given by the error.
LuaError2.jpg
Both windows are hidden at the bottom by default.

Code and exe's are on tools SVN
You do not have the required permissions to view the files attached to this post.

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 » Fri Nov 01, 2013 6:32 am

This is one sexy app, Jab. I am jealous I do not have time to build the editor I've been staring at for 2 years :D

User avatar
thefoof
Retired
Posts: 630
Joined: Wed Nov 07, 2012 7:36 pm
Location: Florida

Re: Lua Editor

Post by thefoof » Sun Nov 03, 2013 8:39 pm

Nice Jab, will check this out next time I'm writing scripts :D

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

Re: Lua Editor

Post by Jabantiz » Tue Nov 26, 2013 8:24 pm

Fell behind in keeping the emu keyword list updated, I really should figure out a better way then to do it manually.

New LUA functions
AddProc
AddQuestStepCraft
AddQuestStepHarvest
AddQuestStepProgressAction
AddTransportSpawn
GetItemType
GetSkill
GetSkillMaxValue
GetSkillName
GetSkillValue
HasRecipeBook
RemoveProc
SetSkillMaxValue
SetSkillValue
SpawnMove
I also updated the auto generated files adding in the new functions the server will call

New functions for items
equipped
proc
unequipped
New functions for spells
proc
I left "precast" out of the spell script as it will not be commonly used and requires a return value.

I believe this brings the editor up to current with server functionality, updated files on 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 Nov 27, 2013 8:29 am

I really need to try this tool. It looks amazing. I just get so wrapped up in hammering out spell scripts I forget it's there :D

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

Re: Lua Editor

Post by Jabantiz » Sat Dec 14, 2013 1:30 am

Updated the EQ2Emu keyword list again and added the following
IsEpic
ProcDamage
BreatheUnderwater
BlurVision
SetVision
IsHeroic
LastSpellAttackHit
Resurrect
GetItemCount
SetItemCount
GetItemSkillReq
SetSpeedMultiplier
GetWardAmountLeft
SetIllusion
ResetIllusion

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

Re: Lua Editor

Post by Jabantiz » Tue Dec 17, 2013 3:10 pm

Changed autocomplete around a bit, now all keywords, both lua and emu, will be in auto complete, this includes lua functions that weren't before like the "math" functions. Also fixed an issue where auto complete was staying open after there were no more matches.

Also updated EQ2Emu keywords with the following
IsBehind
IsFlanking
AddThreatTransfer
RemoveThreatTransfer

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

Re: Lua Editor

Post by Jabantiz » Thu Apr 03, 2014 4:09 pm

Updated EQ2Emu keywords with the new lua functions
AddImmunitySpell
AddSpawnSpellBonus
CancelSpell
CheckRaceType
CopySpawnAppearance
CureByControlEffect
CureByType
GetRaceBaseType
GetRaceType
GetSpellTriggerCount
RemoveImmunitySpell
RemoveInvis
RemoveStealth
RemoveTriggerFromSpell
SetSpellSnareValue
SetSpellTriggerCount
StartHeroicOpportunity

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

Re: Lua Editor

Post by Jabantiz » Sun Apr 27, 2014 10:34 pm

Updated EQ2Emu keywords with some details for a couple functions so the tool tip feature will be useful on them. Also added a function I had missed
AddSpellTimer

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

Re: Lua Editor

Post by Jabantiz » Fri Jun 27, 2014 2:41 pm

Few small updates, changed the default back ground color for keywords to transparent, also generated scripts (File->New->Script) will now add the date and author name automatically
LuaEditorHeading.jpg
If a name is not set it will be the old "<author-name>", you can set your name in settings (View->Settings)
LuaEditorSettings.jpg
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 » Sat Jul 12, 2014 6:23 pm

Few changes, mainly new and missing lua commands
Jabantiz wrote: Added: New LUA commands GetQuestFlags, SetQuestFlags
Added: Missing LUA commands SetQuestFeatherColor, SetQuestRepeatable
Fixed: Background color selections are now properly set
Fixed: Unterminated strings will now be the same fore/back color as strings
I did finally figure out why when typing a string out it didn't match the string color settings until you finished, special settings for unterminated strings, changed them to match the string settings.

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

Re: Lua Editor

Post by Jabantiz » Sun May 31, 2015 5:31 pm

Fixed a bug that was preventing the editor from starting if you had already set up the script folder and then moved the folder to another location. Thanks Cynnar for finding this.

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

Re: Lua Editor

Post by Jabantiz » Wed Jul 08, 2015 11:59 pm

Updated EQ2Emu keywords with the new lua functions
GetQuestCompleteCount
GetServerVariable
SetServerVariable

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests