Sorry, here is the file: http://pastebin.com/NgNazj4k
Sorry, here is the file: http://pastebin.com/NgNazj4k
Line 132
ear1"Earthcry Earring"
Lua allows for single argument function passes without using (), and that's how it is interpreting that line. So it looks at your syntax and thinks that ear1 is a function that is being passed the string argument "Earthcry Earring"
Like:
Is the same as:Code:require 'strings.txt'
The lack of ()s is just a shorthand that honestly looks lazy.Code:require('strings.txt')
I'm noticing my blade hi and blade shun ws sets aren't swapping in. I tested later on and saw that jin still swapped.
Relevant code below:
Spoiler: show
The problem is probably in your rules, rather than your set declaration.
Hmm. ok. Sounds like I might as well redownload the template I got from the shop thread a monthish ago instead. Seems like that would be simpler than trying to find the problem in code that might already be fixed since I now know it wasn't my own mistake.
When I tried calling the set function
I was given an error: "attempt to index global '_G' (a nil value)" which means, I think, that the environment isn't stored in _G? I tried to test this by adding another commandCode:function self_command(command) if command:sub(1,4) == 'set ' then split_command = string.split(command,' ') _G[split_command[2]] = tonumber(split_command[3]) or split_command[3] end endThis gave another error: "bad argument #1 to 'pairs' (table expected, got nil)." Am I way off base?Code:if command=='testvariablenames' then for i,v in pairs(_G) do add_to_chat(15,i .. v) end end
"attempt to call global 'getfenv' (a nil value)"
Why just don't make a command to change/toggle each var you want? 'Till gs have that function ?
Have an issue with my precast/midcast/aftercast sets not firing off; it works on some spells, but not all. The file is based off Mote's WHM.lua, here is the pastbin: http://pastebin.com/HquDFkdz
I have a stupid question, but what are the macro commands to change between acc/hybrid/-dt sets? there was a pastebin on page one for my answer but the link was emptied.
thanks!!
I searched a bit in this thread and didn't find my answer.
I play WHM, both in healing mode if I'm in a party and WHM/NIN when solo~
How do I create my lua files to take that into account?
I have CharName_WHM_Gear which loads wonderfully. What should I do if I want a separate lua for Charname_WHM_NIN_Gear? Because having a lua file name like that doesn't load. (I tested it via export)
Or would I need to replace the 'sets' each time I switch playing styles (this is what I do today)
Thanks!
I was messing around with Motenten's template recently, he has a function which determines the subjob then changes macro page/set. You should be able to write something to use that basis of that function to determine your sets, perhaps. I am just throwing it out there, at work so can't really tinker with it. The function I mentioned was the end of his job specific files, if you were wondering.
this is my auto light art and dark art for spellcast
how u do translate into gearswap.
ive been trying with no luck.
thanks!Code:<!-- Auto Light/Dark Arts --> <if spell="Addendum: White|Penury|Celerity|Rapture|Accession|Perpetuance"> <if notBuffActive="Light Arts|Addendum: White"> <castdelay delay="2" /> <command when="precast">input /raw /ja "Light Arts" Cloud</command> <addtochat color="28">=== [Auto LightArts] ===</addtochat> </if> </if> <elseif spell="Addendum: Black|Parsimony|Ebullience|Alacrity|Manifestation|Immanence"> <if notBuffActive="Dark Arts|Addendum: Black"> <castdelay delay="2" /> <command when="precast">input /raw /ja "Dark Arts" Cloud</command> <addtochat color="28">=== [Auto DarkArts] ===</addtochat> </if> </elseif>
Beginner to GearSwap here, a question for anyone using motenten's library of .lua's.
I downloaded all the gearswap .lua, except the ones specifically for certain jobs. If I am reading it correctly, the spectral jig function (where it would remove sneak before reusing) is under a common .lua file, but it doesn't seem to be working. I have all the files specified by includes, and I am currently using the NIN.lua only. Yes I am using spectra jig as a ninja, and I haven't changed any of the functions inside the NIN.lua, I've only updated the sets and commented out some of the sets that I don't use (making it an empty () or {}). Anyone know what I might be missing?
I dunno about Mort's lua's but here's the code I use.
Code:function midcast(spell,action) if spell.english == 'sneak' or spell.english == 'Spectral Jig' or spell.english:startswith('Monomi') and spell.target.type == 'SELF' then send_command('cancel 71') end end
Apologies if this was recently addressed, or answered but got a couple questions
(also not at home, and working on mine(mote's) lua's at work is ... meh, less than ideal
1) Mote, how would i go about updating your SAM Lua, it seems to work, however, the key bind to use the " ` " key for meditate/seigan doesn't seem to be working (i believe i have your must updated includes, so not sure what's borking it up)
2) In Gearswap, I've ran into the scenario on a couple of jobs (Corsair mainly, but could see it useful for BLU), where I'm subbing a mage (COR/whm) and I'd like to Idle in 5/5 Wayfarer's for the refresh, Would i just setup a variable associated with the ones used with the F9 key? Something that could Cycle through potential Subs? and then just address the gearsets with the correct formating ?
Would casting modes work for this? I.e. Nomagic, WHM, RDM, and i could cycle the casting mode and have it change my idle set? what would the formating be for that? Sets.idle.castingmode=... ?
thanks in advance
Using Mote's luas, is there any way to sidecar changes to Includes/Mappings?
Specifically, I want to have certain gear setups in Salvage.
I have a mapping for areas.Salvage and in the include I have get_current_idle_set changed to also check for Salvage zones after towns.
I like the idea of being able to copy/paste updated Main Files + Include Files without editing it every time. I've already adopted the Job_Gear sidecar setup, but I can't seem to figure out anything for this situation. I thought maybe I could override those functions in the _Gear sidecar, but it seemed to ignore them.
Not the end of the world if I have to paste the changes to Mappings/Include every time I update, but figured I'd ask.
In your gear file, where you have the function:
Add an additional function for your /nin gear sets, and put the following code at the top of the above init function:Code:function init_gear_sets() -- Put all set definitions here, as well as any other customization that is user-specific. end
Then you can put all your norml gear sets in the init_gear_sets() function, and all the /nin gear in the init_nin_gear_sets() function.Code:function init_gear_sets() -- Put all set definitions here, as well as any other customization that is user-specific. if player.sub_job:lower() == 'nin' then init_nin_gear_sets() return end end function init_nin_gear_sets() -- Put all set definitions here (/nin only), as well as any other customization that is user-specific. end