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 04-10-17, 12:06 AM  
Vailent
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Hi Semlar,

Been using your addon for a LONG time now, and it is a wonderful. I can't tell you how much it has helped with simple things that should have just been built into Blizzard's ui.

I've been having an issue since this new patch though (7.2) the icons default back to question marks when I enter a new zone. Is there a way to prevent this, or a way I can fix it? When I click the button it still functions normally, and the icons will update, but seeing the question mark every time i zone into an instance just annoys me aesthetically.
Last edited by Vailent : 04-10-17 at 12:07 AM.
Report comment to moderator  
Reply With Quote
Unread 01-23-17, 02:06 AM  
gomjabar
A Defias Bandit

Forum posts: 3
File comments: 4
Uploads: 0
Can no longer do multiple conditionals with a /castsequence. i.e. [combat,nochanneling] or [talent:7/2,nochanneling] will both show up as shortened and red. They do still work with /cast.
Report comment to moderator  
Reply With Quote
Unread 01-15-17, 11:37 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: GS no longer works

Originally Posted by xfusionpower
GS no longer works after 7.1.5, does anyone have an ETA on update??
You're probably looking for "Gnome Sequencer Enhanced", which is a copy of my addon that someone else is working on.

It's unlikely that a patch will break the original version of Gnome Sequencer because of how simple it is.
Report comment to moderator  
Reply With Quote
Unread 01-10-17, 03:05 PM  
xfusionpower
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
GS no longer works

GS no longer works after 7.1.5, does anyone have an ETA on update??
Report comment to moderator  
Reply With Quote
Unread 10-03-16, 06:30 AM  
Koldun
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
need a community adwise

Heya m8tes

Here is the problem. Right after 1.3.4 ver. update all me GS macroe are not working at all... so every update i`m checking if something changed here and after all downgrading back to ver 1.3.4. So question is... maybe one of you got same problem and was able to fix this situation with old macroes. Wold really apriciate if you could share the info of how you did it. Thanks in adwance
Report comment to moderator  
Reply With Quote
Unread 10-02-16, 09:26 PM  
gomjabar
A Defias Bandit

Forum posts: 3
File comments: 4
Uploads: 0
This is definitely whats going on after playing with print(step). But I dont dont see an api function to reset it after any duration. Sucks cause this would fix my rotation problem
Report comment to moderator  
Reply With Quote
Unread 10-01-16, 12:40 PM  
gomjabar
A Defias Bandit

Forum posts: 3
File comments: 4
Uploads: 0
Originally Posted by gomjabar
GSStaticpriority sometimes fires the last item in the list first. Is it remembering where it is in the priority from the last time it cycled? If so is there some way I could add a timer so that after say 500 milliseconds it restarts at 1?

This is what ive tried so far but gnome doesnt like it:

StepFunction = [[
local function test_onUpdate(self,elapsed)
if elapsed > 1 then
limit = 1
end
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],

Im out of my depth with these though as I dont know LUA.
Last edited by gomjabar : 10-01-16 at 03:55 PM.
Report comment to moderator  
Reply With Quote
Unread 10-01-16, 11:15 AM  
gomjabar
A Defias Bandit

Forum posts: 3
File comments: 4
Uploads: 0
GSStaticpriority sometimes fires the last item in the list first. Is it remembering where it is in the priority from the last time it cycled? If so is there some way I could add a timer so that after say 500 milliseconds it restarts at 1?
Last edited by gomjabar : 10-01-16 at 11:15 AM.
Report comment to moderator  
Reply With Quote
Unread 09-05-16, 07:51 PM  
Hadronox
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Questions on GS syntax

Hi Semlar,

I have been using GS for years and it has been godsent! I cannot thank you enough.

I just wanted to ask a bit about GS syntax. I've seen a lot of macros and some of them do not work as advertised. It would be really nice if there was a guide about how to use GS properly, what some commands mean, what works and what doesn't. If there is one somewhere, plz point me to it!

In the meantime, I have made some observations about GS syntax:


(1) Pre-macro and post-macro will only cast spells that are NOT on GCD. If you put spells in them that are on the GCD, they will not cast.

(2) In the main macro, /castsequence is not the same as the game macro. For examaple, if you use:

Code:
/Castsquence spell1, spell2
/Castsquence spell3, spell4
... the order of execution is spell 1,3,2,4 (?). So, after spell1, the script falls through to spell3, then up to spell2, then back down to spell4. It is the same as using:

Code:
/cast spell1
/cast spell3
/cast spell2
/cast spell4
(3) Using reset command in /castsequence does nothing.

(4) Using [combat] (cast only if you are in combat) and [nochanneling] (cast only if you are not channeling a spell) DO work as conditionals.

(5) I am not sure if the ! conditional works. (! toggles spell on/off, i.e. cast only if the spell is not already active). I am not sure how it interacts with some spells, for example, if the spell leaves a dot or debuff, does it check for those to determine if the spell is already active?


Please correct me if I am wrong; your input is highly appreciated, or if you want to add anything else!

Thanks again
Last edited by Hadronox : 09-05-16 at 09:21 PM.
Report comment to moderator  
Reply With Quote
Unread 08-26-16, 09:51 AM  
Semaphore1
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Macro Button blank

Hi, First off, Thank you for developing this tool!
My question is, I've edited the sequence.lua to include a user string which I got off the website. When I access the sequence on the /gsse and edit and save, when I look at my macro button, the name shows up but there isint a button to click or transition to my spell bar.

Is this a common error that I can troubleshoot?

Thanks!
Report comment to moderator  
Reply With Quote
Unread 08-16-16, 08:46 AM  
Broteinshake
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
sequencer download

for some reason when I download gnome sequencer my computer keeps saying that I am getting a partial download. I can not get this to work. and help would be appreciated
Report comment to moderator  
Reply With Quote
Unread 08-13-16, 09:46 AM  
Tukah
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
I'm not getting DH Macros

I updated gnome sequencer and the files are indeed loaded. When I check /gs list all in game, I'm seeing the macros for the fury warrior, but not the ones for my DH or Boomkin. I checked /gs showspec and it is showing the DH correctly. Is there something else I need to check?
Report comment to moderator  
Reply With Quote
Unread 08-03-16, 09:51 PM  
elals29
A Wyrmkin Dreamwalker
 
elals29's Avatar

Forum posts: 57
File comments: 97
Uploads: 0
i keep getting

You are attempting to run a custom script.
Running scripts could compromise your
character causing the loss of items or gold.

Allow custom scripts?
yes / no

I'm clicking yes but it keeps giving me the message and I can't get GS to work NVM i got it to work and will update if I keep getting the message.
Report comment to moderator  
Reply With Quote
Unread 07-22-16, 12:51 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 Cholerabob
it outputs everything in chat.... As /blablabla spams the hell out of l"say" chat.
If your macro is being output to the chat it means you have whitespace in front of the slashes, most likely you indented the PreMacro or PostMacro section since none of your quoted strings have spaces in front of them.
Report comment to moderator  
Reply With Quote
Unread 07-21-16, 05:40 PM  
Cholerabob
A Murloc Raider

Forum posts: 4
File comments: 29
Uploads: 0
HUmmm stooped working for me tonight, was ok yesterday. Have to make the macro manually because the title does go in by itself like it used to do. But nothing, even yesterdays macro does nothing, did they change something in today's patch ? Ok got it working was probably syntax error, but now it outputs everything in chat.... As /blablabla spams the hell out of l"say" chat.

This is the macro i am using

Sequences['Protsingle'] = {
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]
]],
"/cast Avenger's Shield",
'/cast Blessed Hammer',
'/cast Consecration',
'/cast Shield of the Righteous',
'/cast Judgment',
'/castsequence reset=6 Hammer of Justice',
'/castsequence reset=7 Consecration,Consecration',
'/cast [@player] Light of the Protector',
PostMacro = [[
/cast Shield of the Righteous
/cast Avenger's Shield
/script UIErrorsFrame:Clear()
]],
}
Last edited by Cholerabob : 07-21-16 at 06:11 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: