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,389
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-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
Unread 02-21-15, 07:07 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Originally Posted by sumoldguy
is there a command to initialize the sequences.lua file without /realod ing the game?

like maybe a script run command?
I'm afraid there's no way to do this easily with the way it's currently designed.
Report comment to moderator  
Reply With Quote
Unread 02-21-15, 01:17 PM  
sumoldguy
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 26
Uploads: 1
is there a command to initialize the sequences.lua file without /realod ing the game?

like maybe a script run command?
Report comment to moderator  
Reply With Quote
Unread 02-19-15, 06:05 PM  
KneazlesKeeper
A Kobold Labourer
 
KneazlesKeeper's Avatar

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

Originally Posted by sumoldguy
*cry*

please make it work again

** edit **

...was 'Tiger's Fury'

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.
Last edited by KneazlesKeeper : 02-19-15 at 06:15 PM.
Report comment to moderator  
Reply With Quote
Unread 02-18-15, 12:21 PM  
sumoldguy
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 26
Uploads: 1
I so miss this... please update/fix

*cry*

please make it work again

** edit **

...was 'Tiger's Fury'

GS can't perform due to the ' mark added in name
Last edited by sumoldguy : 02-18-15 at 12:59 PM.
Report comment to moderator  
Reply With Quote
Unread 02-10-15, 06:22 PM  
KneazlesKeeper
A Kobold Labourer
 
KneazlesKeeper's Avatar

Forum posts: 0
File comments: 21
Uploads: 0
Originally Posted by Cholerabob
Trying to find the right delay on a Naga mouse doing a macro to spam the keyboard key, What are you guys using ? tired 14ms and 50ms , both work, but was wondering if slower is better. 14ms is freaking fast lol.
If you are asking how fast you should manually spam the key it depends on the size of the macro, and the individual skills' cool downs. however I have found a nice steady beat the best.

If you are asking about an delay for the Naga's auto shot function, please be advised you are risking your account by using it. The WoW ToU dose not allow any automation, and while the risk maybe small; I have known players who have had their accounts banned &/or suspended for using them.
Report comment to moderator  
Reply With Quote
Unread 02-10-15, 12:54 PM  
Cholerabob
A Murloc Raider

Forum posts: 4
File comments: 29
Uploads: 0
Trying to find the right delay on a Naga mouse doing a macro to spam the keyboard key, What are you guys using ? tired 14ms and 50ms , both work, but was wondering if slower is better. 14ms is freaking fast lol.
Report comment to moderator  
Reply With Quote
Unread 02-07-15, 02:30 PM  
Lichbane
A Deviate Faerie Dragon
 
Lichbane's Avatar

Forum posts: 16
File comments: 83
Uploads: 0
Edit: Never mind PEBKAC error.
Last edited by Lichbane : 02-07-15 at 02:34 PM.
Report comment to moderator  
Reply With Quote
Unread 02-04-15, 11:06 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Contributions

Originally Posted by Thaize
Is there an easy way to contribute to the project? Source control, something? I'm working on and mostly done with porting the event handling from CastSequenceManager_OnEvent into gnome sequencer. This allows the managing the GnomeSequence step attribute in a way more consistant with macro behavior.

Are you working on anything like this, as I'd hate to duplicate effort?
You can't respond to events in the restricted environment during combat (SetAttribute from unsecure code will be blocked), so duplicating /CastSequence's behavior isn't really possible.

However, I'm always open to new ideas and suggestions for the addon if anyone has something they want to share.
Report comment to moderator  
Reply With Quote
Unread 02-04-15, 10:43 AM  
Thaize
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Contributions

Is there an easy way to contribute to the project? Source control, something? I'm working on and mostly done with porting the event handling from CastSequenceManager_OnEvent into gnome sequencer. This allows the managing the GnomeSequence step attribute in a way more consistant with macro behavior.

Are you working on anything like this, as I'd hate to duplicate effort?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: