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,766
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 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
Unread 07-20-16, 09:56 PM  
sprimm1
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Re: Re: Legion update and GnomeSequencer

Originally Posted by semlar
Originally Posted by sprimm1
I tried the GnomeSequencer this evening since the Legion pre-patch. Every time I attack anything, I get a warning:

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 am hesitant to hit the yes. I do not remember ever getting that message when I started using the program. Is this something that is no longer allowed by Blizzard? I don't want to compromised anything on my account, but I sure do want to use the GnomeSequencer. Please help!!!
They added a warning for the first time you type /run or /script into the chat to run custom lua. Scammers have been attempting to get people to type out lua scripts into their chat box that do various nefarious things.

I don't believe the addon itself is even capable of producing that dialog, but you probably have a /run or /script line in the macro you're trying to execute with it. Once accepted, it won't display the warning again.

You will get the warning from typing any script into the chat, even something as harmless as /run print("some text") which just prints some text to the chat. It's just a reminder that you should trust the source of the code that you're running before trying to run it.
Thank you for the fast response. I will go back and edit out the instances of script in the macros... Should fix it right up.
Last edited by sprimm1 : 07-20-16 at 09:57 PM.
Report comment to moderator  
Reply With Quote
Unread 07-20-16, 09:34 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Legion update and GnomeSequencer

Originally Posted by sprimm1
I tried the GnomeSequencer this evening since the Legion pre-patch. Every time I attack anything, I get a warning:

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 am hesitant to hit the yes. I do not remember ever getting that message when I started using the program. Is this something that is no longer allowed by Blizzard? I don't want to compromised anything on my account, but I sure do want to use the GnomeSequencer. Please help!!!
They added a warning for the first time you type /run or /script into the chat to run custom lua. Scammers have been attempting to get people to type out lua scripts into their chat box that do various nefarious things.

I don't believe the addon itself is even capable of producing that dialog, but you probably have a /run or /script line in the macro you're trying to execute with it. Once accepted, it won't display the warning again.

You will get the warning from typing any script into the chat, even something as harmless as /run print("some text") which just prints some text to the chat. It's just a reminder that you should trust the source of the code that you're running before trying to run it.
Last edited by semlar : 07-20-16 at 09:37 PM.
Report comment to moderator  
Reply With Quote
Unread 07-20-16, 09:13 PM  
sprimm1
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Exclamation Legion update and GnomeSequencer

I tried the GnomeSequencer this evening since the Legion pre-patch. Every time I attack anything, I get a warning:

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 am hesitant to hit the yes. I do not remember ever getting that message when I started using the program. Is this something that is no longer allowed by Blizzard? I don't want to compromised anything on my account, but I sure do want to use the GnomeSequencer. Please help!!!
Report comment to moderator  
Reply With Quote
Unread 07-09-16, 04:09 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Has Gnome Sequencer stopped working?

Originally Posted by xfusionpower
Hey everyone I don't know if it's just me but for some reason the GS stopped working for every toon after I added code, I've done it before and it worked but after adding the new code it doesn't work anymore. Could someone please look at my code and see if there is something that needs to be modified.
For future reference, it outputs to the chat exactly what the problem is in bright red when you have a syntax error in your file.



So if we go to line 557 in your file (ctrl+G in notepad++) we see you have a line break in the middle of your string. If you had this in a normal macro it would be attempting to say "Lightning Bolt, Lightning Bolt" every time you pressed it, but here it's invalid because strings with single-quotes around them can't span multiple lines.



All you have to do is delete the line break so everything is on one line.

Last edited by semlar : 07-09-16 at 04:20 PM.
Report comment to moderator  
Reply With Quote
Unread 07-09-16, 02:28 PM  
xfusionpower
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Has Gnome Sequencer stopped working?

Hey everyone I don't know if it's just me but for some reason the GS stopped working for every toon after I added code, I've done it before and it worked but after adding the new code it doesn't work anymore. Could someone please look at my code and see if there is something that needs to be modified.

Thank you very much,

xFusionPower

download link >> https://drive.google.com/open?id=0B8...VVkbXVXUDFDNDQ
Last edited by xfusionpower : 07-09-16 at 02:30 PM.
Report comment to moderator  
Reply With Quote
Unread 06-15-16, 05:52 PM  
MadMilitia
A Kobold Labourer

Forum posts: 1
File comments: 1
Uploads: 0
Question on multiple sequence files.

Can this be done? I have dozens of characters that have unique macros with player names and such that I hate opening this lone sequence file with over 10k lines in it.

Can I break this up into smaller sequence files?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: