Lua Editor
Moderator: Team Members
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Lua Editor
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
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
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
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.
Both windows are hidden at the bottom by default.
Code and exe's are on tools SVN
Code and exe's are on tools SVN
You do not have the required permissions to view the files attached to this post.
- 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
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 
- thefoof
- Retired
- Posts: 630
- Joined: Wed Nov 07, 2012 7:36 pm
- Location: Florida
Re: Lua Editor
Nice Jab, will check this out next time I'm writing scripts 
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Lua Editor
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
New functions for items
I believe this brings the editor up to current with server functionality, updated files on tools svn
New LUA functions
I also updated the auto generated files adding in the new functions the server will callAddProc
AddQuestStepCraft
AddQuestStepHarvest
AddQuestStepProgressAction
AddTransportSpawn
GetItemType
GetSkill
GetSkillMaxValue
GetSkillName
GetSkillValue
HasRecipeBook
RemoveProc
SetSkillMaxValue
SetSkillValue
SpawnMove
New functions for items
New functions for spellsequipped
proc
unequipped
I left "precast" out of the spell script as it will not be commonly used and requires a return value.proc
I believe this brings the editor up to current with server functionality, updated files on tools svn
- 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
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 
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Lua Editor
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
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
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
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
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
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
If a name is not set it will be the old "<author-name>", you can set your name in settings (View->Settings)
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
Few changes, mainly new and missing lua commands
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 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
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Lua Editor
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
Updated EQ2Emu keywords with the new lua functions
GetQuestCompleteCount
GetServerVariable
SetServerVariable
Who is online
Users browsing this forum: No registered users and 1 guest