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:278,386
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-10-14, 07:15 PM  
Barcrawl
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
So Confused

Hey, apparently im not getting something. I keep getting the "Failed to load Sequences.lua or contains no macros, create the file from ExampleSequences.lua and restart the game" error. I have the newest version, I have changed the name of the file to Sequences.lua, I have tried both LUAEdit and Notepad++, and I have disabled all other addons. I have input this:

local _, Sequences = ... -- Don't touch this

Sequences["Ret"] = {
PreMacro = [[
/targetenemy [noharm][dead]
]],
[[/cast Judgment]],
[[/cast Crusader Strike]],
[[/cast Exorcism]],
[[/cast !Avenging Wrath]],
[[/cast !Execution Sentence]],
[[/cast Templar's Verdict]],
[[/cast Hammer of Wrath]],
}

Still no workey... If you have any advice please let me know, I really want to use Gnomesequencer. It seems really fun.
Report comment to moderator  
Reply With Quote
Unread 11-10-14, 07:33 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: So Confused

Originally Posted by Barcrawl
Hey, apparently im not getting something. I keep getting the "Failed to load Sequences.lua or contains no macros, create the file from ExampleSequences.lua and restart the game" error. I have the newest version, I have changed the name of the file to Sequences.lua, I have tried both LUAEdit and Notepad++, and I have disabled all other addons. I have input this:

local _, Sequences = ... -- Don't touch this

Sequences["Ret"] = {
PreMacro = [[
/targetenemy [noharm][dead]
]],
[[/cast Judgment]],
[[/cast Crusader Strike]],
[[/cast Exorcism]],
[[/cast !Avenging Wrath]],
[[/cast !Execution Sentence]],
[[/cast Templar's Verdict]],
[[/cast Hammer of Wrath]],
}

Still no workey... If you have any advice please let me know, I really want to use Gnomesequencer. It seems really fun.
I would double check that the file is actually called Sequences.lua, some operating systems hide the file extension so it might be named Sequences.lua.lua or something, but I don't see any problems with what you have written.

You will have to restart the game for it to load the file if you change the file name.
Report comment to moderator  
Reply With Quote
Unread 11-10-14, 07:38 PM  
Barcrawl
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: So Confused

Yeah, I double checked that before, and I renamed it to Sequences.lua to make sure I wasn't missing something. In file properties it gives me the correct "Sequences.lua" name. That isn't it. Is there anything else you can think of? I'm at a loss.
Report comment to moderator  
Reply With Quote
Unread 11-10-14, 07:49 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Re: Re: So Confused

Originally Posted by Barcrawl
Yeah, I double checked that before, and I renamed it to Sequences.lua to make sure I wasn't missing something. In file properties it gives me the correct "Sequences.lua" name. That isn't it. Is there anything else you can think of? I'm at a loss.
I'm not sure, when you first install the addon and rename ExampleSequences.lua to Sequences.lua, the addon will load without spitting out that error if you put it in the right place.

The fact that you're getting that error means you're at least loading the addon, but it seems likely to me that you're possibly editing a different copy of it or something, both the default file and the text you posted should load without issue if you put the file in the right spot with the right name.
Report comment to moderator  
Reply With Quote
Unread 11-10-14, 07:53 PM  
Barcrawl
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: Re: Re: So Confused

Originally Posted by semlar
Originally Posted by Barcrawl
Yeah, I double checked that before, and I renamed it to Sequences.lua to make sure I wasn't missing something. In file properties it gives me the correct "Sequences.lua" name. That isn't it. Is there anything else you can think of? I'm at a loss.
I'm not sure, when you first install the addon and rename ExampleSequences.lua to Sequences.lua, the addon will load without spitting out that error if you put it in the right place.

The fact that you're getting that error means you're at least loading the addon, but it seems likely to me that you're possibly editing a different copy of it or something, both the default file and the text you posted should load without issue if you put the file in the right spot with the right name.
I suppose. I have it in C:/Program Files/World of Warcraft/1/Interface/addons/Gnomesequencer

I figure that's right, but I could be horribly wrong.
Report comment to moderator  
Reply With Quote
Unread 11-10-14, 07:57 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Re: Re: Re: Re: So Confused

Originally Posted by Barcrawl
I suppose. I have it in C:/Program Files/World of Warcraft/1/Interface/addons/Gnomesequencer

I figure that's right, but I could be horribly wrong.
Why do you have a 1 in there? It should be in warcraft/interface/addons/gnomesequencer, and you must have it there too or it wouldn't be giving an error in-game.
Last edited by semlar : 11-10-14 at 07:58 PM.
Report comment to moderator  
Reply With Quote
Unread 11-10-14, 08:05 PM  
Barcrawl
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: Re: Re: Re: Re: So Confused

Originally Posted by semlar
Originally Posted by Barcrawl
I suppose. I have it in C:/Program Files/World of Warcraft/1/Interface/addons/Gnomesequencer

I figure that's right, but I could be horribly wrong.
Why do you have a 1 in there? It should be in warcraft/interface/addons/gnomesequencer, and you must have it there too or it wouldn't be giving an error in-game.
Working on it now. It has always had a 1 for me. Hopefully that works.
Report comment to moderator  
Reply With Quote
Unread 11-10-14, 08:36 PM  
Barcrawl
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: Re: Re: Re: Re: Re: So Confused

Originally Posted by Barcrawl
Originally Posted by semlar
Originally Posted by Barcrawl
I suppose. I have it in C:/Program Files/World of Warcraft/1/Interface/addons/Gnomesequencer

I figure that's right, but I could be horribly wrong.
Why do you have a 1 in there? It should be in warcraft/interface/addons/gnomesequencer, and you must have it there too or it wouldn't be giving an error in-game.
Working on it now. It has always had a 1 for me. Hopefully that works.
Yep. You got it. Wonder why that made it error out. Either way, thank you.
Report comment to moderator  
Reply With Quote
Unread 11-14-14, 12:18 PM  
Manifesto
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Step Function

EDIT: Have tried out ingame now, it does function ingame as I was expecting... for my purposes as Enhance I don't need to use the Step Function unless I really wanted to add more keypresses to the higher priority abilities. Great Addon!

Hey Semlar, love the look of the addon and just having a go at writing some sequences before the servers come back up and I can actually test.

Was after some clarification on the StepFunction feature. Using your GnomeExample1 of a Step of 1 and 3 Macros (SpellName1-3) am I correct in thinking the following will occur when you spam the key;

Keypress 1 - SpellName1
Keypress 2 - SpellName1
Keypress 3 - SpellName2
Keypress 4 - SpellName1
Keypress 5 - SpellName2
Keypress 6 - SpellName3
Keypress 7 - Repeat (SpellName1)etc.

So essentially the StepFunction allows you to set up a priority order that mostly works if you can spam the key >#macros times per GCD?
Or am I way off? And it would essentially do what I'm after without using the StepFunction?

I'm macro'ing initially for an Enhance shaman who are pretty easy to 1-button macro because all of their abilities have a cooldown and no resource cost.
Last edited by Manifesto : 11-14-14 at 01:28 PM.
Report comment to moderator  
Reply With Quote
Unread 11-14-14, 10:43 PM  
Wifeaggrosux
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Haaaalp!!!

Sequencer was working spectacular for the two days i had it prior to release. Now it isn't. I did nothing to change the addon. Didn't change the macro icon either. It just stopped working since release. Tried reinstalling. Didnt Help. Disable all other addons. No luck ...any ideas? Vista 64 bit. This is my Sequenses.lua folder. Like i said worked great until release of WoD. Now im stuck. Anyone else having this nightmare?

local _, Sequences = ... -- Don't touch this

----
-- 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.
-- Every entry in the Sequences table defines a single sequence of macros which behave similarly to /castsequence.
-- Sequence names must be unique and contain no more than 16 characters.
-- 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.
----

----
-- Here's a large demonstration sequence documenting the format:
Sequences["GnomeExample1"] = {
-- StepFunction optionally defines how the step is incremented when pressing the button.
-- This example increments the step in the following order: 1 12 123 1234 etc. until it reaches the end and starts over
-- DO NOT DEFINE A STEP FUNCTION UNLESS YOU THINK YOU KNOW WHAT YOU'RE DOING
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],

-- PreMacro is optional macro text that you want executed before every single button press.
-- This is if you want to add something like /startattack or /stopcasting before all of the macros in the sequence.
PreMacro = [[
/run print("-- PreMacro Script --")
/startattack
]],

-- PostMacro is optional macro text that you want executed after every single button press.
-- I don't know what you would need this for, but it's here anyway.
PostMacro = [[
/run print("-- PostMacro Script --")
]],

-- Macro 1
[[
/run print("Executing macro 1!")
/cast SpellName1
]],

-- Macro 2
[[
/run print("Executing macro 2!")
/cast SpellName2
]],

-- Macro 3
[[
/run print("Executing macro 3!")
/cast SpellName3
]],
}

----
-- Here is a short example which is what most sequences will look like
Sequences["GnomeExample2"] = {
-- Macro 1
[[
/run print("Executing macro 1!")
/cast SpellName1
]],

-- Macro 2
[[
/run print("Executing macro 2!")
/cast SpellName2
]],

-- Macro 3
[[
/run print("Executing macro 3!")
/cast SpellName3
]],
}

Sequences['Frost2h'] = {
'/startattack',
"/cast Death's Advance",
'/cast Soul Reaper',
'/cast Outbreak',
'/cast Plague Strike',
'/cast Howling Blast',
'/cast Obliterate',
'/cast Frost Strike',
'/cast Unholy Blight',
'/cast Pillar of Frost',
'/cast Empower Rune Weapon',
'/cast Anti-Magic Shell',
'/cast Dark Simulacrum',
'/cast Remorseless Winter',
}
Last edited by Wifeaggrosux : 11-14-14 at 10:50 PM.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 01:04 AM  
fogyreef
A Defias Bandit

Forum posts: 3
File comments: 12
Uploads: 0
Sequencer killed by Blizzard?

Same here. No response from the addon now. Was working as advertised last night.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 01:18 AM  
Divega
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Decided to take a shot at a basic Tutorial video.

https://www.youtube.com/watch?v=G3lJRQnrO0w
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 01:19 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Sequencer killed by Blizzard?

Originally Posted by fogyreef
Same here. No response from the addon now. Was working as advertised last night.
It still works, I'm not sure why you're experiencing issues.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 01:49 AM  
Divega
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Re: Haaaalp!!!

ignore this
Last edited by Divega : 11-15-14 at 04:16 AM.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 02:03 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Re: Haaaalp!!!

Originally Posted by Divega
Anything that is not a /cast or /castsequence has to be put in a PreMacro or a PostMacro I believe.
Nope, it works exactly like a macro, so you can put anything in there that you could put in a normal macro.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: