Item Search
     
BG-Wiki Search
Page 38 of 302 FirstFirst ... 28 36 37 38 39 40 48 88 ... LastLast
Results 741 to 760 of 6036

Thread: Gearswap Help Thread!     submit to reddit submit to twitter

  1. #741
    Salvage Bans
    Join Date
    Mar 2010
    Posts
    769
    BG Level
    5
    FFXI Server
    Leviathan

    Quote Originally Posted by Martel View Post
    Looks like its reading ear1 as a variable, rather than an equip slot. And ear1 isn't set to anything, so it returns nil. Kinda hard to say what's actually causing that without seeing the file though.
    Sorry, here is the file: http://pastebin.com/NgNazj4k

  2. #742
    BG Content
    Join Date
    Jul 2007
    Posts
    22,372
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    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:
    Code:
    require 'strings.txt'
    Is the same as:
    Code:
    require('strings.txt')
    The lack of ()s is just a shorthand that honestly looks lazy.

  3. #743
    Salvage Bans
    Join Date
    Mar 2010
    Posts
    769
    BG Level
    5
    FFXI Server
    Leviathan

    Quote Originally Posted by Byrthnoth View Post
    Line 132
    ear1"Earthcry Earring"

    Lua allows for single argument function passes without using (), and that's how it is interpreting that line.
    Thanks, I cant believe I missed the =

  4. #744
    D. Ring
    Join Date
    Feb 2007
    Posts
    4,736
    BG Level
    7
    FFXI Server
    Quetzalcoatl

    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
    sets.precast.WS['Blade: Hi'] = set_combine(sets.precast.WS, {neck="Soil Gorget",ear1="Brutal Earring",ear2="Moonshade Earring",
    hands="Hachiya Tekko",ring1="Stormsoul Ring",back="Rancorous Mantle",legs="Kaabnax Trousers"})
    sets.precast.WS['Blade: Hi'].Mod = set_combine(sets.precast.WS['Blade: Hi'], {back="Rancorous Mantle",waist="Soil Belt"})

    sets.precast.WS['Blade: Shun'] = set_combine(sets.precast.WS, {neck="Thunder Gorget",waist="Thunder Belt"})

  5. #745
    BG Content
    Join Date
    Jul 2007
    Posts
    22,372
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    The problem is probably in your rules, rather than your set declaration.

  6. #746
    D. Ring
    Join Date
    Feb 2007
    Posts
    4,736
    BG Level
    7
    FFXI Server
    Quetzalcoatl

    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.

  7. #747
    Sea Torques
    Join Date
    Jul 2010
    Posts
    516
    BG Level
    5
    FFXI Server
    Bahamut

    When I tried calling the set function
    Code:
    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
    end
    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 command
    Code:
    if command=='testvariablenames' then
    		for i,v in pairs(_G) do add_to_chat(15,i .. v) end
              end
    This gave another error: "bad argument #1 to 'pairs' (table expected, got nil)." Am I way off base?

  8. #748
    BG Content
    Join Date
    Jul 2007
    Posts
    22,372
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Quote Originally Posted by TSFFXI View Post
    When I tried calling the set function
    Code:
    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
    end
    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 command
    Code:
    if command=='testvariablenames' then
    		for i,v in pairs(_G) do add_to_chat(15,i .. v) end
              end
    This gave another error: "bad argument #1 to 'pairs' (table expected, got nil)." Am I way off base?
    Hmm... perhaps it's not. Try this instead:
    Code:
    function self_command(command)
        cur_env = getfenv(1)
            if command:sub(1,4) == 'set ' then
                    split_command = string.split(command,' ')
             cur_env[split_command[2]] = tonumber(split_command[3]) or split_command[3]
            end
    end

  9. #749
    Sea Torques
    Join Date
    Jul 2010
    Posts
    516
    BG Level
    5
    FFXI Server
    Bahamut

    "attempt to call global 'getfenv' (a nil value)"

  10. #750
    Sea Torques
    Join Date
    Jun 2012
    Posts
    570
    BG Level
    5
    FFXI Server
    Asura
    WoW Realm
    The Scryers

    Why just don't make a command to change/toggle each var you want? 'Till gs have that function ?

  11. #751
    Salvage Bans
    Join Date
    Mar 2010
    Posts
    769
    BG Level
    5
    FFXI Server
    Leviathan

    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

  12. #752
    RIDE ARMOR
    Join Date
    Oct 2013
    Posts
    18
    BG Level
    1

    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!!

  13. #753
    Cerberus
    Join Date
    Feb 2009
    Posts
    462
    BG Level
    4
    FFXI Server
    Bahamut

    Handling of subjob?

    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!

  14. #754
    CoP Dynamis
    Join Date
    Mar 2013
    Posts
    275
    BG Level
    4
    FFXI Server
    Odin

    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.

  15. #755
    Smells like Onions
    Join Date
    Mar 2014
    Posts
    3
    BG Level
    0

    this is my auto light art and dark art for spellcast
    how u do translate into gearswap.
    ive been trying with no luck.
    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>
    thanks!

  16. #756
    CoP Dynamis
    Join Date
    Mar 2013
    Posts
    275
    BG Level
    4
    FFXI Server
    Odin

    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?

  17. #757
    Puppetmaster
    Join Date
    Jan 2014
    Posts
    59
    BG Level
    2

    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

  18. #758
    So hard we fuck rocks
    Join Date
    Jan 2009
    Posts
    3,043
    BG Level
    7
    FFXI Server
    Sylph

    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

  19. #759
    CoP Dynamis
    Join Date
    Dec 2010
    Posts
    253
    BG Level
    4
    FFXIV Character
    Kari Arisu
    FFXIV Server
    Siren
    FFXI Server
    Shiva

    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.

  20. #760
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    Quote Originally Posted by dannyl View Post
    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!
    In your gear file, where you have the function:

    Code:
    function init_gear_sets()
        -- Put all set definitions here, as well as any other customization that is user-specific.
    end
    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.
        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
    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.

Page 38 of 302 FirstFirst ... 28 36 37 38 39 40 48 88 ... LastLast

Similar Threads

  1. Replies: 6547
    Last Post: 2014-07-08, 22:45