Item Search
     
BG-Wiki Search
Page 187 of 302 FirstFirst ... 137 177 185 186 187 188 189 197 237 ... LastLast
Results 3721 to 3740 of 6036

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

  1. #3721
    RIDE ARMOR
    Join Date
    Dec 2008
    Posts
    12
    BG Level
    1
    FFXI Server
    Bismarck

    Appreciate the quick response. Will test tomorrow when I do salvage again and report back.

  2. #3722
    RIDE ARMOR
    Join Date
    Dec 2008
    Posts
    12
    BG Level
    1
    FFXI Server
    Bismarck

    Worked. Thanks again

  3. #3723
    New Merits
    Join Date
    Aug 2007
    Posts
    248
    BG Level
    4
    FFXI Server
    Bismarck

    Quote Originally Posted by Quixacotl View Post
    You could add this in yourself as a fail-safe to cover murphy's law.

    Code:
    -- Define sets and vars used by this job file.
    function init_gear_sets()
        -- stuff
        sets.impetus_body = {body="Tantra Cyclas +2"}
        -- more stuff
    end
    
    -------------------------------------------------------------------------------------------------------------------
    -- User code that supplements standard library decisions.
    -------------------------------------------------------------------------------------------------------------------
    
    
    -- Modify the default melee set after it was constructed.
    function customize_melee_set(meleeSet)
        if buffactive.impetus then
            meleeSet = set_combine(meleeSet, sets.impetus_body)
        end
    
        return meleeSet
    end
    Well, this worked to a certain extent. AF3+2 body is equipped when impetus is up while TPing. Still no dice during WS.

  4. #3724
    Fake Numbers
    Join Date
    Oct 2007
    Posts
    91
    BG Level
    2
    FFXI Server
    Asura

    randomly in the middle of Delve my Gearswap stopped working.

    error is:

    gearswap:lua runtime error: gearswap/flow.lua:295:
    gearswap has detected an error in the user function precast:
    ... files [mywindowerdirectory]/SAM.lua:281: attempt to fix index field '?' (a nil value)

    http://pastebin.com/2JxKTauB - SAM GS file

    http://pastebin.com/2L2Ht0uV - flow.lua

  5. #3725
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Patsu View Post
    randomly in the middle of Delve my Gearswap stopped working.

    error is:

    gearswap:lua runtime error: gearswap/flow.lua:295:
    gearswap has detected an error in the user function precast:
    ... files [mywindowerdirectory]/SAM.lua:281: attempt to fix index field '?' (a nil value)

    http://pastebin.com/2JxKTauB - SAM GS file

    http://pastebin.com/2L2Ht0uV - flow.lua
    delve is a pain in the butt because it causes so many things to happen in a short time
    so this could be the issue

    the only things that could be the issue are
    spell.type
    world.day
    spell.skillchain_a
    or
    check_ws_day[world.day]
    but the only way to figure out what is causing the issue is to change

    Code:
    if spell.type == 'WeaponSkill' and (check_ws_day[world.day]:contains(spell.skillchain_a) 
        or check_ws_day[world.day]:contains(spell.skillchain_b) 
        or check_ws_day[world.day]:contains(spell.skillchain_c)) then       equip (sets.WSDayBonus)
            end
        end
    end
    to
    Code:
    if spell.type == 'WeaponSkill' 
    and (check_ws_day[
    world.day]:contains(
    spell.skillchain_a)
        or check_ws_day[world.day]:contains(spell.skillchain_b)
        or check_ws_day[world.day]:contains(spell.skillchain_c)) then       equip (sets.WSDayBonus)
            end
        end
    end
    but there is a chance that it will error when this is put into your code
    and if it is any of these its probably because of your client getting to many updates to fast
    spell.type
    world.day
    spell.skillchain_a

    but there is one more thing i want to ask what ws are you using??

    and you can cut out the sets.WSDayBonus
    i.e.
    equip (sets.WSDayBonus)
    by using
    equip(head="Gavialis Helm")

  6. #3726
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    Is there a way to launch a windower script txt file from within Gearswap? If so how?

  7. #3727
    Fake Numbers
    Join Date
    Oct 2007
    Posts
    91
    BG Level
    2
    FFXI Server
    Asura

    Quote Originally Posted by dlsmd View Post
    delve is a pain in the butt because it causes so many things to happen in a short time
    so this could be the issue

    the only things that could be the issue are
    spell.type
    world.day
    spell.skillchain_a
    or
    check_ws_day[world.day]
    but the only way to figure out what is causing the issue is to change

    Code:
    if spell.type == 'WeaponSkill' and (check_ws_day[world.day]:contains(spell.skillchain_a) 
        or check_ws_day[world.day]:contains(spell.skillchain_b) 
        or check_ws_day[world.day]:contains(spell.skillchain_c)) then       equip (sets.WSDayBonus)
            end
        end
    end
    to
    Code:
    if spell.type == 'WeaponSkill' 
    and (check_ws_day[
    world.day]:contains(
    spell.skillchain_a)
        or check_ws_day[world.day]:contains(spell.skillchain_b)
        or check_ws_day[world.day]:contains(spell.skillchain_c)) then       equip (sets.WSDayBonus)
            end
        end
    end
    but there is a chance that it will error when this is put into your code
    and if it is any of these its probably because of your client getting to many updates to fast
    spell.type
    world.day
    spell.skillchain_a

    but there is one more thing i want to ask what ws are you using??

    and you can cut out the sets.WSDayBonus
    i.e.
    equip (sets.WSDayBonus)
    by using
    equip(head="Gavialis Helm")
    that fixed it, thanks. I'm not sure why it was broken. I was working before, but then just randomly stopped. Even with unloading and reloading, restarting pol, and even turning on and off the computer. So strange. Thanks for the help!

    I was getting the error with any WS btw. Even ones whose day didn't allign.

  8. #3728
    Old Merits
    Join Date
    Sep 2010
    Posts
    1,094
    BG Level
    6
    FFXI Server
    Ragnarok

    Quote Originally Posted by Sechs View Post
    Is there a way to launch a windower script txt file from within Gearswap? If so how?
    send_command('exec scriptname.txt')

  9. #3729
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Patsu View Post
    that fixed it, thanks. I'm not sure why it was broken. I was working before, but then just randomly stopped. Even with unloading and reloading, restarting pol, and even turning on and off the computer. So strange. Thanks for the help!

    I was getting the error with any WS btw. Even ones whose day didn't allign.
    that wont fix the error just when it happens again it will tell you which one is causing the issue in other words it is actually no different then what was there in the first place

  10. #3730
    New Merits
    Join Date
    Apr 2010
    Posts
    228
    BG Level
    4

    Anyone else here using Mote/Kinematics THF.lua?

    I tried adding a Mug set, which works and equips fine but doesn't do any type of aftercast. Doing a //gs showswaps shows it equipping as precast but that's it. Kinda strange since all my other JA precast sets are working fine with precast and aftercast.
    Here's what the code looks like for that JA. And referencing his THF.lua looks like this is correct. https://github.com/Kinematics/GearSw...master/THF.lua

    Code:
    sets.precast.JA['Mug'] = {
    		ammo="Jukukik Feather",
    		head="Imp. Wing Hair. +1",
    		neck="Moepapa Medal",
    		ear1="Jupiter's Pearl",
    		ear2="Pixie Earring",
    		body="Plunderer's Vest +1",
    		hands="Pill. Armlets +1",
    		ring1="Ramuh Ring +1",
    		ring2="Thundersoul Ring",
    		back="Kayapa Cape",
    		waist="Artful Belt",
    		legs="Manibozho Brais",
    		feet="Plun. Poulaines +1"}

  11. #3731
    Fake Numbers
    Join Date
    Oct 2007
    Posts
    91
    BG Level
    2
    FFXI Server
    Asura

    Quote Originally Posted by dlsmd View Post
    that wont fix the error just when it happens again it will tell you which one is causing the issue in other words it is actually no different then what was there in the first place
    Weird. It still fixed it. weird. Thanks anyway!

  12. #3732
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Patsu View Post
    Weird. It still fixed it. weird. Thanks anyway!
    can you reupload your code??

    and check and see if this works
    Code:
        if spell.type == 'WeaponSkill' then
            if check_ws_day[world.day]:contains(spell.skillchain_a)
                or check_ws_day[world.day]:contains(spell.skillchain_b)
                or check_ws_day[world.day]:contains(spell.skillchain_c) then
                    equip (sets.WSDayBonus)
            end
        end
    if it does it means that the interval between variables is just to fast for the way it was

    also did you change
    equip(sets.WSDayBonus)
    to
    equip(head="Gavialis Helm")

  13. #3733
    Fake Numbers
    Join Date
    Oct 2007
    Posts
    91
    BG Level
    2
    FFXI Server
    Asura

    Quote Originally Posted by dlsmd View Post
    can you reupload your code??

    and check and see if this works
    Code:
        if spell.type == 'WeaponSkill' then
            if check_ws_day[world.day]:contains(spell.skillchain_a)
                or check_ws_day[world.day]:contains(spell.skillchain_b)
                or check_ws_day[world.day]:contains(spell.skillchain_c) then
                    equip (sets.WSDayBonus)
            end
        end
    if it does it means that the interval between variables is just to fast for the way it was

    also did you change
    equip(sets.WSDayBonus)
    to
    equip(head="Gavialis Helm")
    http://pastebin.com/qszMtLqK

    This is interesting. It stopped working again. Even though I did a few Delves and a high tier with it working fine. Now the error is on line 283.

    Attempt to index field '?' (a nil value)

    but then as soon as it turned to light day, it started working again.

  14. #3734
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Patsu View Post
    http://pastebin.com/qszMtLqK

    This is interesting. It stopped working again. Even though I did a few Delves and a high tier with it working fine. Now the error is on line 283.

    Attempt to index field '?' (a nil value)

    but then as soon as it turned to light day, it started working again.
    ok i found the issue replace you code accordingly with this
    Code:
    check_ws_day = {
    Firesday=S{'Liquefaction','Fusion','Light'},
    Earthsday=S{'Scission','Gravitation','Darkness'},
    Watersday=S{'Reverberation','Distortion','Darkness'},
    Windsday=S{'Detonation','Fragmentation','Light'},
    Iceday=S{'Induration','Distortion','Darkness'},
    Lightningsday=S{'Impaction','Fragmentation','Light'},
    Lightsday=S{'Transfixion','Fusion','Light'},
    Darksday=S{'Compression','Gravitation','Darkness'},}
    
        if spell.type == 'WeaponSkill' and check_ws_day[world.day]:contains(spell.skillchain_a)
                or check_ws_day[world.day]:contains(spell.skillchain_b)
                or check_ws_day[world.day]:contains(spell.skillchain_c) then
            equip (sets.WSDayBonus)
        end
    its actually because it was Lightningday when it should have been Lightningsday my bad

  15. #3735
    Puppetmaster
    Join Date
    Jan 2014
    Posts
    59
    BG Level
    2

    I found another way to do it. The only real difference is that the WS elements table is already written in Mote-Mappings so it doesn't need to be added to the main lua.
    Code:
    -- Elements for skillchain names
    skillchain_elements = {}
    skillchain_elements.Light = S{'Light','Fire','Wind','Lightning'}
    skillchain_elements.Darkness = S{'Dark','Ice','Earth','Water'}
    skillchain_elements.Fusion = S{'Light','Fire'}
    skillchain_elements.Fragmentation = S{'Wind','Lightning'}
    skillchain_elements.Distortion = S{'Ice','Water'}
    skillchain_elements.Gravitation = S{'Dark','Earth'}
    skillchain_elements.Transfixion = S{'Light'}
    skillchain_elements.Compression = S{'Dark'}
    skillchain_elements.Liquification = S{'Fire'}
    skillchain_elements.Induration = S{'Ice'}
    skillchain_elements.Detonation = S{'Wind'}
    skillchain_elements.Scission = S{'Earth'}
    skillchain_elements.Impaction = S{'Lightning'}
    skillchain_elements.Reverberation = S{'Water'}
    And here's the check.
    Code:
    sets.Gavialis_Helm = {head="Gavialis Helm"}
    
    -- Run after the general precast() is done.
    function job_post_precast(spell, action, spellMap, eventArgs)
        if spell.type == 'WeaponSkill' and skillchain_elements[spell.skillchain_a]:contains(world.day_element) or skillchain_elements[spell.skillchain_b]:contains(world.day_element) or skillchain_elements[spell.skillchain_c]:contains(world.day_element) then
            equip(sets.Gavialis_Helm)
        end
    end

  16. #3736
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Quixacotl View Post
    I found another way to do it. The only real difference is that the WS elements table is already written in Mote-Mappings so it doesn't need to be added to the main lua.
    Code:
    -- Elements for skillchain names
    skillchain_elements = {}
    skillchain_elements.Light = S{'Light','Fire','Wind','Lightning'}
    skillchain_elements.Darkness = S{'Dark','Ice','Earth','Water'}
    skillchain_elements.Fusion = S{'Light','Fire'}
    skillchain_elements.Fragmentation = S{'Wind','Lightning'}
    skillchain_elements.Distortion = S{'Ice','Water'}
    skillchain_elements.Gravitation = S{'Dark','Earth'}
    skillchain_elements.Transfixion = S{'Light'}
    skillchain_elements.Compression = S{'Dark'}
    skillchain_elements.Liquification = S{'Fire'}
    skillchain_elements.Induration = S{'Ice'}
    skillchain_elements.Detonation = S{'Wind'}
    skillchain_elements.Scission = S{'Earth'}
    skillchain_elements.Impaction = S{'Lightning'}
    skillchain_elements.Reverberation = S{'Water'}
    And here's the check.
    Code:
    sets.Gavialis_Helm = {head="Gavialis Helm"}
    
    -- Run after the general precast() is done.
    function job_post_precast(spell, action, spellMap, eventArgs)
        if spell.type == 'WeaponSkill' and skillchain_elements[spell.skillchain_a]:contains(world.day_element) or skillchain_elements[spell.skillchain_b]:contains(world.day_element) or skillchain_elements[spell.skillchain_c]:contains(world.day_element) then
            equip(sets.Gavialis_Helm)
        end
    end
    thats no good because any ws like Starlight or Moonlight(which have no skill chains) will cause an error when you use them

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

    Quote Originally Posted by dlsmd View Post
    thats no good because any ws like Starlight or Moonlight(which have no skill chains) will cause an error when you use them
    Well it wouldn't cause any error messages only the Helm won't equip for Starlight or moonlight. You do have a good point about elemental WS's that have no skillchains. I didn't think of that. Other WS's that come to mind are Sanguine Blade and Energy Drain.

  18. #3738
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Quixacotl View Post
    Well it wouldn't cause any error messages only the Helm won't equip for Starlight or moonlight. You do have a good point about elemental WS's that have no skillchains. I didn't think of that. Other WS's that come to mind are Sanguine Blade and Energy Drain.
    no trues me it will cause an error to occur because

    skillchain_elements[-is an absolute-]:contains(-is not an absolute-)
    -if something is an absolute it will error if it does not exist
    -if something is not an absolute it will not error if it does not exist

  19. #3739
    Puppetmaster
    Join Date
    Jan 2014
    Posts
    59
    BG Level
    2

    I have to admit you got me there. Thanks for explaining that to me.

  20. #3740
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Quixacotl View Post
    I have to admit you got me there. Thanks for explaining that to me.
    np it took me a little to get bk to you because of life

Page 187 of 302 FirstFirst ... 137 177 185 186 187 188 189 197 237 ... LastLast

Similar Threads

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