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,794
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 02-25-15, 11:34 AM  
woodgray
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Lag

I updated to patch 6.1. After the update Some of my sequences are producing extreme lag.
Listed below is a snapshot of my seq* file. The first 3 are fine both before and now. The last two produce the lag. They did not prior to the wow update.
Forgive the structure. Its not my strong point.

Sequences['DeMo'] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/targetenemy [noharm][dead]
/petattack [@target,harm]
/petautocastoff [group] Threatening Presence
/petautocaston [nogroup] Threatening Presence
]],
'/use [noform: 0] Metamorphosis',
"/castsequence Hand of Gul\'dan",
"/castsequence [nochanneling] reset=target Corruption,Shadow Bolt,Shadow Bolt,Shadow Bolt,Shadow Bolt,Corruption,Life Tap,Shadow Bolt,Shadow Bolt,Shadow Bolt,Shadow Bolt",
PostMacro = [[
/run UIErrorsFrame:Clear()
]],
}
Sequences['DeMo2'] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/targetenemy [noharm][dead]
/petattack [@target,harm]
/petautocastoff [group] Threatening Presence
/petautocaston [nogroup] Threatening Presence
]],
'/use [noform: 1] Metamorphosis',
'/castsequence reset=target/5 Doom,null',
"/castsequence [nochanneling] reset=target/5 Touch of Chaos,Demonbolt,Demonbolt,Demonbolt,Demonbolt",
'/castsequence Dark Soul: Knowledge',
'/castsequence [combat] Imp Swarm',
PostMacro = [[
/use [combat] Blood Fury
/use [combat]13
/use [combat]14
/run UIErrorsFrame:Clear()
]],
}
Sequences['DeMo3'] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/targetenemy [noharm][dead]
/petattack [@target,harm]
/petautocastoff [group] Threatening Presence
/petautocaston [nogroup] Threatening Presence
]],
'/use [noform: 0] Metamorphosis',
"/castsequence Hand of Gul\'dan",
"/castsequence [nochanneling] reset=target Soul Fire,Soul Fire,Soul Fire,Corruption,Life Tap,Soul Fire,Soul Fire,Soul Fire",
PostMacro = [[
/run UIErrorsFrame:Clear()
]],
}
Sequences['Boomy'] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/targetenemy [noharm][dead]
/use [noform]!Moonkin Form]],
"/castsequence reset=180 Celestial Alignment",
"/castsequence [nochanneling] reset=30/target Starfall, Starfall, Starfall",
"/castsequence [nochanneling] reset=24/target Stellar Flare",
"/castsequence [nochanneling] reset=20/target Moonfire",
"/castsequence [nochanneling] reset=24/target Sunfire",
"/castsequence [nochanneling] reset=15/target Starsurge",
"/castsequence [nochanneling] reset=15/target Starfire",
"/castsequence [nochanneling] reset=15/target Wrath",
"/castsequence reset=60 Barkskin",
PostMacro = [[
/run UIErrorsFrame:Clear()
]],
}
Sequences['Bpvp'] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/targetenemy [noharm][dead]
/use [noform]!Moonkin Form]],
"/castsequence reset=180 Celestial Alignment",
"/castsequence reset=30/target Entangling Roots, Solar Beam",
"/castsequence [nochanneling] reset=30/target Starfall, Starfall, Starfall",
"/castsequence [nochanneling] reset=24/target Stellar Flare",
"/castsequence [nochanneling] reset=20/target Moonfire",
"/castsequence [nochanneling] reset=24/target Sunfire",
"/castsequence [nochanneling] reset=15/target Starsurge",
"/castsequence [nochanneling] reset=15/target Starfire",
"/castsequence [nochanneling] reset=15/target Wrath",
"/castsequence reset=60 Barkskin",
PostMacro = [[
/run UIErrorsFrame:Clear()
]],
}
Report comment to moderator  
Reply With Quote
Unread 02-25-15, 10:44 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Re: Re: R5 not working

Originally Posted by K0DiNE
I have exactly the same problem. I haven't touched the sequences file for a while now and everything worked perfectly before the update.
I don't know what to tell you, the addon still works.

You say you haven't changed anything, but you updated the addon so it's possible you overwrote the directory that contained your previous sequences file.

If there's no syntax error in the chat when you log in then it most likely can't find the Sequences.lua file rather than there being something wrong with its contents.
Report comment to moderator  
Reply With Quote
Unread 02-25-15, 09:07 AM  
K0DiNE
A Kobold Labourer
 
K0DiNE's Avatar

Forum posts: 0
File comments: 19
Uploads: 0
Re: Re: R5 not working

Originally Posted by semlar
Originally Posted by Treesy
I can't seem to get Gnome sequencer to work anymore since updating to the 6.1 version. It was previously working for me before I updated.

I keep getting the "Failed to load sequences.lua or contains no macros..."

All the macros in the sequences.lua worked before the update.

I've tried previous revisions of the addon and still the same result. I have tried manually retyping the macros back into the sequences.lua file and still not working, as well, I have tried word pad instead of notepad and still no go.

Has Blizzard maybe broken this add on some how?
Nothing has changed, you just have something wrong with your sequences file.

If you have a syntax error in your file it should be outputting it to the chat in red.
I have exactly the same problem. I haven't touched the sequences file for a while now and everything worked perfectly before the update.

Report comment to moderator  
Reply With Quote
Unread 02-25-15, 12:13 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: R5 not working

Originally Posted by Treesy
I can't seem to get Gnome sequencer to work anymore since updating to the 6.1 version. It was previously working for me before I updated.

I keep getting the "Failed to load sequences.lua or contains no macros..."

All the macros in the sequences.lua worked before the update.

I've tried previous revisions of the addon and still the same result. I have tried manually retyping the macros back into the sequences.lua file and still not working, as well, I have tried word pad instead of notepad and still no go.

Has Blizzard maybe broken this add on some how?
Nothing has changed, you just have something wrong with your sequences file.

If you have a syntax error in your file it should be outputting it to the chat in red.
Last edited by semlar : 02-25-15 at 12:17 AM.
Report comment to moderator  
Reply With Quote
Unread 02-24-15, 11:55 PM  
jackiekaye89
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
repeat single step

Also, is it possible, and if yes, how would I make it so that it repeats one step continuously until target lost?

aka, as an example, I want to cast Judgement once, and then cast Crusader strike on each click until the target is dead or changed.
Report comment to moderator  
Reply With Quote
Unread 02-24-15, 11:09 PM  
jackiekaye89
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Mutliple sequences?

Any way to make multiple sequence files for each class, and only load the file for that class? Would be handy, and might keep lagg down for those with large sequence files.
Report comment to moderator  
Reply With Quote
Unread 02-24-15, 10:12 PM  
Treesy
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Re: Re: R5 not working

Originally Posted by striderida1
Originally Posted by Treesy
I can't seem to get Gnome sequencer to work anymore since updating to the 6.1 version. It was previously working for me before I updated.

I keep getting the "Failed to load sequences.lua or contains no macros..."

All the macros in the sequences.lua worked before the update.

I've tried previous revisions of the addon and still the same result. I have tried manually retyping the macros back into the sequences.lua file and still not working, as well, I have tried word pad instead of notepad and still no go.

Has Blizzard maybe broken this add on some how?
Did you get an answer to this by chance? I have the same issue even after reinstalling.
No Reply still not working.
Report comment to moderator  
Reply With Quote
Unread 02-24-15, 06:10 PM  
striderida1
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Re: R5 not working

Originally Posted by Treesy
I can't seem to get Gnome sequencer to work anymore since updating to the 6.1 version. It was previously working for me before I updated.

I keep getting the "Failed to load sequences.lua or contains no macros..."

All the macros in the sequences.lua worked before the update.

I've tried previous revisions of the addon and still the same result. I have tried manually retyping the macros back into the sequences.lua file and still not working, as well, I have tried word pad instead of notepad and still no go.

Has Blizzard maybe broken this add on some how?
Did you get an answer to this by chance? I have the same issue even after reinstalling.
Report comment to moderator  
Reply With Quote
Unread 02-24-15, 05:26 PM  
woodgray
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Re: R5 not working

Originally Posted by Treesy
I can't seem to get Gnome sequencer to work anymore since updating to the 6.1 version. It was previously working for me before I updated.

I keep getting the "Failed to load sequences.lua or contains no macros..."

All the macros in the sequences.lua worked before the update.

I've tried previous revisions of the addon and still the same result. I have tried manually retyping the macros back into the sequences.lua file and still not working, as well, I have tried word pad instead of notepad and still no go.

Has Blizzard maybe broken this add on some how?
Not sure that it is broken. I have tremendous lag if i use GS macros. Other macros work fine.
Report comment to moderator  
Reply With Quote
Unread 02-24-15, 04:08 PM  
Treesy
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
R5 not working

I can't seem to get Gnome sequencer to work anymore since updating to the 6.1 version. It was previously working for me before I updated.

I keep getting the "Failed to load sequences.lua or contains no macros..."

All the macros in the sequences.lua worked before the update.

I've tried previous revisions of the addon and still the same result. I have tried manually retyping the macros back into the sequences.lua file and still not working, as well, I have tried word pad instead of notepad and still no go.

Has Blizzard maybe broken this add on some how?
Report comment to moderator  
Reply With Quote
Unread 02-22-15, 07:54 PM  
rkbrumbelow
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Re: Re: I so miss this... please update/fix

Originally Posted by KneazlesKeeper

GS can't perform due to the ' mark added in name

Try "/cast Tiger's Fury",

or [[/cast Tiger's Fury]],

Ether one should work I use the 2nd one with my Druid.

No and no!

Please use one standard through out your sequences.

you need to learn to escape special characters so if you are using ' as a command start then it is:
'tiger\'s fury'

Do not mix in " and [[ it is poor coding practice and leads to problems down the road when someone else has to fix your mistakes.
Last edited by rkbrumbelow : 02-22-15 at 07:58 PM.
Report comment to moderator  
Reply With Quote
Unread 02-22-15, 05:33 AM  
jestercheeser
A Defias Bandit

Forum posts: 2
File comments: 3
Uploads: 0
Re: Re: Re: Got a issue wit h gnome sequencer

Originally Posted by jestercheeser
Originally Posted by semlar
Originally Posted by jestercheeser
not sure what i did wrong but i keeps telling me gnome sequencer fails to load and tells me there is no macros in sequenced.lua when there is

i ahve had this working before i downloaded the v4 of gnome sequencer i got a ton of macros i have been using before this started happening and i use notepad++ for editing my macros
It should be printing a lua error to the chat in bright red when you log in; regardless, post the contents of your sequences.lua file here.
Sent u a private message sir


had to really shorten my macros because it was too long for the message
Report comment to moderator  
Reply With Quote
Unread 02-22-15, 05:32 AM  
jestercheeser
A Defias Bandit

Forum posts: 2
File comments: 3
Uploads: 0
Re: Re: Got a issue wit h gnome sequencer

Originally Posted by semlar
Originally Posted by jestercheeser
not sure what i did wrong but i keeps telling me gnome sequencer fails to load and tells me there is no macros in sequenced.lua when there is

i ahve had this working before i downloaded the v4 of gnome sequencer i got a ton of macros i have been using before this started happening and i use notepad++ for editing my macros
It should be printing a lua error to the chat in bright red when you log in; regardless, post the contents of your sequences.lua file here.
Sent u a private message sir
Report comment to moderator  
Reply With Quote
Unread 02-22-15, 05:15 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Got a issue wit h gnome sequencer

Originally Posted by jestercheeser
not sure what i did wrong but i keeps telling me gnome sequencer fails to load and tells me there is no macros in sequenced.lua when there is

i ahve had this working before i downloaded the v4 of gnome sequencer i got a ton of macros i have been using before this started happening and i use notepad++ for editing my macros
It should be printing a lua error to the chat in bright red when you log in; regardless, post the contents of your sequences.lua file here.
Report comment to moderator  
Reply With Quote
Unread 02-22-15, 05:11 AM  
jestercheeser
A Defias Bandit

Forum posts: 2
File comments: 3
Uploads: 0
Got a issue wit h gnome sequencer

not sure what i did wrong but i keeps telling me gnome sequencer fails to load and tells me there is no macros in sequenced.lua when there is

i ahve had this working before i downloaded the v4 of gnome sequencer i got a ton of macros i have been using before this started happening and i use notepad++ for editing my macros
Last edited by jestercheeser : 02-22-15 at 05:12 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: