Download
(4Kb)
Download
Updated: 08-31-17 04:23 AM
Pictures
File Info
Compatibility:
Shadows of Argus (7.3.0)
Tomb of Sargeras (7.2.0)
Updated:08-31-17 04:23 AM
Created:10-29-14 03:51 AM
Downloads:277,699
Favorites:125
MD5:

GnomeSequencer  Popular! (More than 5000 hits)

Version: 7.3.0.1
by: semlar [More]

This is a small addon that allows you create a sequence of macros to be executed at the push of a button.

Like a /castsequence macro, it cycles through a series of commands when the button is pushed. However, unlike castsequence, it uses macro text for the commands instead of spells, and it advances every time the button is pushed instead of stopping when it can't cast something.

This means if a spell is on cooldown and you push the button it will continue to the next item in the list with each press until it reaches the end and starts over.

When you first install the addon you will need to rename "ExampleSequences.lua" to "Sequences.lua" and open the file in a text editor to add your own sequences.

The Sequences file contains a couple examples to get you started with writing your own sequences, I'll post its entirety here.

Lua Code:
  1. local _, Sequences = ... -- Don't touch this
  2.  
  3. ----
  4. -- Rename this file to Sequences.lua before you get started, it uses a different file name so as not to overwrite your existing file with a future update.
  5. -- Every entry in the Sequences table defines a single sequence of macros which behave similarly to /castsequence.
  6. -- Sequence names must be unique and contain no more than 16 characters.
  7. -- To use a macro sequence, create a blank macro in-game with the same name you picked for the sequence here and it will overwrite it.
  8. ----
  9.  
  10. ----
  11. -- Here's a large demonstration sequence documenting the format:
  12. Sequences["GnomeExample1"] = {
  13.     -- StepFunction optionally defines how the step is incremented when pressing the button.
  14.     -- This example increments the step in the following order: 1 12 123 1234 etc. until it reaches the end and starts over
  15.     -- DO NOT DEFINE A STEP FUNCTION UNLESS YOU THINK YOU KNOW WHAT YOU'RE DOING
  16.     StepFunction = [[
  17.         limit = limit or 1
  18.         if step == limit then
  19.             limit = limit % #macros + 1
  20.             step = 1
  21.         else
  22.             step = step % #macros + 1
  23.         end
  24.     ]],
  25.    
  26.     -- PreMacro is optional macro text that you want executed before every single button press.
  27.     -- This is if you want to add something like /startattack or /stopcasting before all of the macros in the sequence.
  28.     PreMacro = [[
  29. /run print("-- PreMacro Script --")
  30. /startattack   
  31.     ]],
  32.    
  33.     -- PostMacro is optional macro text that you want executed after every single button press.
  34.     -- I don't know what you would need this for, but it's here anyway.
  35.     PostMacro = [[
  36. /run print("-- PostMacro Script --")
  37.     ]],
  38.    
  39.     -- Macro 1
  40.     [[
  41. /run print("Executing macro 1!")
  42. /cast SpellName1
  43.     ]],
  44.    
  45.     -- Macro 2
  46.     [[
  47. /run print("Executing macro 2!")
  48. /cast SpellName2
  49.     ]],
  50.    
  51.     -- Macro 3
  52.     [[
  53. /run print("Executing macro 3!")
  54. /cast SpellName3
  55.     ]],
  56. }
  57.  
  58. ----
  59. -- Here is a short example which is what most sequences will look like
  60. Sequences["GnomeExample2"] = {
  61.     -- Macro 1
  62.     [[
  63. /run print("Executing macro 1!")
  64. /cast SpellName1
  65.     ]],
  66.    
  67.     -- Macro 2
  68.     [[
  69. /run print("Executing macro 2!")
  70. /cast SpellName2
  71.     ]],
  72.    
  73.     -- Macro 3
  74.     [[
  75. /run print("Executing macro 3!")
  76. /cast SpellName3
  77.     ]],
  78. }



If you like one of my addons, feel free to support the cause!

7.2.0.3 - Attempt to avoid a potential infinite loop caused by changing the macro icon
7.2.0.2 - Attempt to set macro icon more aggressively
7.2.0.1 - Fix for icons clearing when zoning (it's unclear what's causing this)
r5 - toc bump for 6.1
r4 - Added a custom error handler and changed how macros are edited to improve support with other macro addons.
r3 - Resolved a minor infinite loop involving UnregisterEvent('UPDATE_MACROS') not taking effect until the next frame.
r2 - Added custom step functionality, pre and post macro text, and made the sequences file (hopefully) easier to understand and edit.
Optional Files (0)


Post A Reply Comment Options
Unread 11-15-22, 06:57 PM  
Platykurtic
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 164
Uploads: 4
It seems that /click is for the moment an epic mess in DragonFlight pre-patch 2, appearing to be related to how the new Evoker class manages the new click-to-charge mechanic. I have however managed to somehow get GnomeSequencer to work - it's a bit of a band-aid solution but appears to work while this mess stabilizes and a more permanent solution can be worked out. The fix as I remember it is ...
  1. Enter '/console ActionButtonUseKeyDown 0' into the chat window.
  2. Modify line 68 of core.lua back to ' EditMacro(macroIndex, nil, nil, '#showtooltip\n/click ' .. name)'

For me GnomeSequencer started to work again. I've - of course - not checked this for interactions with the Evoker class, but it may have shifted the click-to-charge to 'double press' rather than 'hold down' or vice-versa. I'll also need to check other characters to see if step 1 needs to be done on every character.

Credit to this thread: https://us.forums.blizzard.com/en/wo...ken/1361972/19
Report comment to moderator  
Reply With Quote
Unread 10-26-22, 05:13 PM  
Lysaeur
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Originally Posted by Platykurtic
It seems /click has changed in Dragonflight. Currently it appears that /click has changed from ...

/click GSMacroName

to

/click GSMacroName LeftButton

... where GSMacroName is the GnomeSequencer sequence name. A quick fix through using /macro seems to correct the current issue I'm having with it not working.

Credit to https://zlodo.cc/smack/info/6c59a1592a910db2 from doing something similar for the Smack add-on.

Further Edit: A change to line 68 in core.lua to ...
Code:
						EditMacro(macroIndex, nil, nil, '#showtooltip\n/click ' .. name .. ' LeftButton')
... seems to restore my regular GnomeSequencer service. I hope this helps!
You're a savior!! I was giving up hope. It's strange that it was working on Beta w/o those changes but pre-patch broke it again >.>
Report comment to moderator  
Reply With Quote
Unread 10-26-22, 04:17 PM  
Platykurtic
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 164
Uploads: 4
It seems /click has changed in Dragonflight. Currently it appears that /click has changed from ...

/click GSMacroName

to

/click GSMacroName LeftButton

... where GSMacroName is the GnomeSequencer sequence name. A quick fix through using /macro seems to correct the current issue I'm having with it not working.

Credit to https://zlodo.cc/smack/info/6c59a1592a910db2 from doing something similar for the Smack add-on.

Further Edit: A change to line 68 in core.lua to ...
Code:
						EditMacro(macroIndex, nil, nil, '#showtooltip\n/click ' .. name .. ' LeftButton')
... seems to restore my regular GnomeSequencer service. I hope this helps & many thanks to Semlar for this amazing add-on!
Last edited by Platykurtic : 10-26-22 at 05:19 PM.
Report comment to moderator  
Reply With Quote
Unread 10-20-22, 07:45 AM  
Lysaeur
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Re: Re: Re: original Gnomesequencer code

Originally Posted by semlar
Originally Posted by Lysaeur
Any update on if this addon might get a fix?
This seems to be a bug on the beta caused by “frame:IsProtected()” not returning true for its second argument.

I’m afraid Blizzard is the only one who can fix this, but I believe that they are aware of it and should hopefully release a hotfix for it in a future update!
thx! Hope they don't break it for good! Only way I can play the game anymore
Report comment to moderator  
Reply With Quote
Unread 10-04-22, 02:56 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Re: original Gnomesequencer code

Originally Posted by Lysaeur
Any update on if this addon might get a fix?
This seems to be a bug on the beta caused by “frame:IsProtected()” not returning true for its second argument.

I’m afraid Blizzard is the only one who can fix this, but I believe that they are aware of it and should hopefully release a hotfix for it in a future update!
Report comment to moderator  
Reply With Quote
Unread 10-03-22, 10:50 PM  
Lysaeur
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Re: original Gnomesequencer code

Originally Posted by Lysaeur
I've been invited to try the Dragonflight beta, so moved my Gnomesequencer folder over to the beta's Interface/Addons and had hoped it would "just work" but it seems, with Dragonflight, something is breaking with the original GS (I don't use GSE, so that's not the issue...I prefer the OG addon)

Any chance you'll be re-visiting the code for Dragonflight or are you done with updating it?
It *could* just be a beta issue and something "not quite right" at the moment.
Can add .lua errors, if that would be helpful

thanks for your consideration

p.s. just in case you were curious about the error I've been getting:

Message: Interface/FrameXML/SecureHandlers.lua:735: Header frame must be explicitly protected
Time: Sat Sep 3 00:53:32 2022
Count: 1
Stack: Interface/FrameXML/SecureHandlers.lua:735: Header frame must be explicitly protected
[string "=[C]"]: ?
[string "@Interface/FrameXML/SecureHandlers.lua"]:735: in function <Interface/FrameXML/SecureHandlers.lua:725>
[string "=(tail call)"]: ?
[string "@Interface/AddOns/GnomeSequencer/Core.lua"]:46: in main chunk

Locals: (*temporary) = "Header frame must be explicitly protected"
Any update on if this addon might get a fix?
Report comment to moderator  
Reply With Quote
Unread 09-03-22, 02:16 AM  
Lysaeur
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
original Gnomesequencer code

I've been invited to try the Dragonflight beta, so moved my Gnomesequencer folder over to the beta's Interface/Addons and had hoped it would "just work" but it seems, with Dragonflight, something is breaking with the original GS (I don't use GSE, so that's not the issue...I prefer the OG addon)

Any chance you'll be re-visiting the code for Dragonflight or are you done with updating it?
It *could* just be a beta issue and something "not quite right" at the moment.
Can add .lua errors, if that would be helpful

thanks for your consideration

p.s. just in case you were curious about the error I've been getting:

Message: Interface/FrameXML/SecureHandlers.lua:735: Header frame must be explicitly protected
Time: Sat Sep 3 00:53:32 2022
Count: 1
Stack: Interface/FrameXML/SecureHandlers.lua:735: Header frame must be explicitly protected
[string "=[C]"]: ?
[string "@Interface/FrameXML/SecureHandlers.lua"]:735: in function <Interface/FrameXML/SecureHandlers.lua:725>
[string "=(tail call)"]: ?
[string "@Interface/AddOns/GnomeSequencer/Core.lua"]:46: in main chunk

Locals: (*temporary) = "Header frame must be explicitly protected"
Last edited by Lysaeur : 09-03-22 at 02:24 AM.
Report comment to moderator  
Reply With Quote
Unread 12-13-17, 05:46 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Pauses, slow downs, and complete stops

Originally Posted by t0lkien
GSE is great, but I'm experiencing slow response on my sequences. It will pause, delay between casts, and require represses of my bind key irregularly. Many times my character will be just standing there, and even re-initiating the sequence with a keypress won't get it to begin casting again, until I've pressed several times (by which time the mob is often dead).
GSE is a fork of my addon by somebody else, I can't help you with it.

This is the original GnomeSequencer addon.
Report comment to moderator  
Reply With Quote
Unread 12-12-17, 09:37 PM  
t0lkien
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 5
Uploads: 1
Pauses, slow downs, and complete stops

GSE is great, but I'm experiencing slow response on my sequences. It will pause, delay between casts, and require represses of my bind key irregularly. Many times my character will be just standing there, and even re-initiating the sequence with a keypress won't get it to begin casting again, until I've pressed several times (by which time the mob is often dead).

In contrast, if I immediately hit my normal bind keys, response is instant (I often have to resort to doing this to "break" the frustrating delays).

I'm using a slightly modified version of a druid macro from WoWLazyMacros which I've pasted below, in combination with a keypress loop on my mouse (which repeats the key bound to the macro on continuous loop while I hold down a button):

Sequences['DarkBoom7.3-ST'] = {
-- This Sequence was exported from GSE 2.2.02.
Author="Darkmanz",
SpecID=102,
Talents = "2???213",
Help = [[Version: s1.7.30 Talents: any Starsurgespec single target]],
Default=1,
Icon='Spell_Nature_StarFall',
MacroVersions = {
[1] = {
Combat=true,
Trinket1=true,
Trinket2=true,
Head=false,
Neck=false,
Belt=false,
Ring1=false,
Ring2=false,
StepFunction = "Sequential",
LoopLimit=8,
KeyPress={
"/use [stance:0/3/5] Moonkin Form",
"/use [stance:1, notalent:3/2] Moonkin Form",
"/use [stance:2, notalent:3/1] Moonkin Form",
"/targetenemy [noharm][dead]",
"/castsequence [stance:4, talent:6/3] reset=combat Blessing of the Ancients, null",
"/cast [combat] Celestial Alignment",
"/cast [combat] Berserking",
"/castsequence [nomod] reset=combat Sunfire, Moonfire, null",
"/castsequence [nomod,combat] reset=target Moonfire, null",
},
PreMacro={
"/cast Sunfire",
},
"/cast [mod:alt] Starsurge",
"/cast [mod:ctrl] Regrowth",
"/cast [mod:shift,@cursor] Starfall",
"/castsequence [nomod] reset=combat Solar Wrath, Solar Wrath, Lunar Strike",
"/cast [nomod] New Moon",
PostMacro={
},
KeyRelease={
},
},
},
}
Last edited by t0lkien : 12-12-17 at 09:41 PM.
Report comment to moderator  
Reply With Quote
Unread 06-17-17, 09:55 AM  
Meresiris
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Exclamation Re: Re: Re: Re: 7.2.5 seems to have broken the addon

Originally Posted by Maarc
Originally Posted by semlar
Originally Posted by MysticalNyte
Change the first line ## Interface: 70200 to ## Interface 70205
They don't appear to have changed the version number with 7.2.5 (they normally only change it for major versions), so this shouldn't have fixed anything.

It's possible just restarting the game fixed whatever the problem was.
There still seems to be a problem with GnomeSequencer, I have unloaded all other AddOns ... to make sure there were no conflicts and then tested the macros I've been using previously successfully. GnomeSequencer works fine for a few moments the freezes WoW completely requiring it to be closed and restarted.

Is there anything I can do to help you narrow down the cause of this problem?
The copy of GSE downloaded from Curse Indicates ## Interface: 70250. This appears to be the current version. Should the # Interface: 70205 be changed to be the same OR vice Versa OR does it not matter. Currently I can't load the addon at all. It says it is "out of date". Where did you get ##Interface 70205 from?
Report comment to moderator  
Reply With Quote
Unread 06-14-17, 05:35 AM  
Maarc
A Kobold Labourer
 
Maarc's Avatar

Forum posts: 0
File comments: 1
Uploads: 0
Re: Re: Re: 7.2.5 seems to have broken the addon

Originally Posted by semlar
Originally Posted by MysticalNyte
Change the first line ## Interface: 70200 to ## Interface 70205
They don't appear to have changed the version number with 7.2.5 (they normally only change it for major versions), so this shouldn't have fixed anything.

It's possible just restarting the game fixed whatever the problem was.
There still seems to be a problem with GnomeSequencer, I have unloaded all other AddOns ... to make sure there were no conflicts and then tested the macros I've been using previously successfully. GnomeSequencer works fine for a few moments the freezes WoW completely requiring it to be closed and restarted.

Is there anything I can do to help you narrow down the cause of this problem?
Report comment to moderator  
Reply With Quote
Unread 06-13-17, 07:48 PM  
Dalvand
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Re: Re: Re: 7.2.5 seems to have broken the addon

Originally Posted by semlar
Originally Posted by MysticalNyte
Change the first line ## Interface: 70200 to ## Interface 70205
They don't appear to have changed the version number with 7.2.5 (they normally only change it for major versions), so this shouldn't have fixed anything.

It's possible just restarting the game fixed whatever the problem was.
Well, I restarted (technically, servers went down), but it still didn't work. Made this change, and it went back to working exactly as before.
Report comment to moderator  
Reply With Quote
Unread 06-13-17, 06:22 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Re: 7.2.5 seems to have broken the addon

Originally Posted by MysticalNyte
Change the first line ## Interface: 70200 to ## Interface 70205
They don't appear to have changed the version number with 7.2.5 (they normally only change it for major versions), so this shouldn't have fixed anything.

It's possible just restarting the game fixed whatever the problem was.
Report comment to moderator  
Reply With Quote
Unread 06-13-17, 04:50 PM  
Dalvand
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Re: Re: 7.2.5 seems to have broken the addon

Originally Posted by MysticalNyte
Originally Posted by Dalvand
Semlar-

Great work on the addon, it is easily my favorite in the game. However, 7.2.5 seems to have broken it completely, as in macros simply do not fire off. Would it possible for you to have a look? I know GSE still works, but I prefer yours if possible.
Go into your GS Folder.
Then go to the file "GnomeSequencer.toc" and right click and open it up in notepad, notepad+, etc.
Change the first line ## Interface: 70200 to ## Interface 70205.
Then click the save button!

This was posted on page six here and I remembered it as my wife still uses this addon and it just worked for her. I just changed it to work for the current patch 7.2.5.
Worked perfect! Thanks for the quick help.
Report comment to moderator  
Reply With Quote
Unread 06-13-17, 03:00 PM  
MysticalNyte
A Murloc Raider

Forum posts: 4
File comments: 14
Uploads: 0
Re: 7.2.5 seems to have broken the addon

Originally Posted by Dalvand
Semlar-

Great work on the addon, it is easily my favorite in the game. However, 7.2.5 seems to have broken it completely, as in macros simply do not fire off. Would it possible for you to have a look? I know GSE still works, but I prefer yours if possible.
Go into your GS Folder.
Then go to the file "GnomeSequencer.toc" and right click and open it up in notepad, notepad+, etc.
Change the first line ## Interface: 70200 to ## Interface 70205.
Then click the save button!

This was posted on page six here and I remembered it as my wife still uses this addon and it just worked for her. I just changed it to work for the current patch 7.2.5.
Last edited by MysticalNyte : 06-13-17 at 03:02 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: