Quantcast
Download
(4 Kb)
Download
Updated: 02-24-15 06:56 AM
Pictures
File Info
Compatibility:
The Adventure Continues (6.1)
Warlords of Draenor (6.0.3)
Updated:02-24-15 06:56 AM
Created:10-29-14 03:51 AM
Downloads:221,256
Favorites:136
MD5:

GnomeSequencer  Popular! (More than 5000 hits)

Version: r5
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!

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)


Archived Files (4)
File Name
Version
Size
Author
Date
r4
4kB
semlar
01-25-15 08:20 PM
r3
3kB
semlar
10-31-14 01:52 AM
r2
3kB
semlar
10-30-14 10:29 PM
r1
3kB
semlar
10-29-14 03:51 AM


Post A Reply Comment Options
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: 1001
File comments: 180
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: 50
File comments: 98
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: 1001
File comments: 180
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: 27
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: 2
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
Post A Reply



Category Jump: