Item Search
     
BG-Wiki Search
Page 183 of 302 FirstFirst ... 133 173 181 182 183 184 185 193 233 ... LastLast
Results 3641 to 3660 of 6036

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

  1. #3641
    Hydra
    Join Date
    Jan 2010
    Posts
    100
    BG Level
    3
    FFXI Server
    Ragnarok

    sorry, when copying it to bluegartr i forgot the case. no it was Typ in my gearswap.

    EDIT: full file + full error report.

    http://pastebin.com/3UNysBuJ

    Lua runtime error: /flow.lua:295:
    GearSwap has detected an error in the user function midcast:
    /GEO.lua:337: attempt to index global 'Typ' (a nil value)

    line 337 =
    if not Typ.abilitys:contains(spell.prefix) then
    equip(sets.midcast[spell.element])
    end

    I'm sorry but I have no idea what Typ.abilitys is trying to reference.

  2. #3642
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    @Motenten
    your code to split gs c commands
    Code:
        local commandArgs = command
        if type(commandArgs) == 'string' then
            commandArgs = T(commandArgs:split(' '))
            if #commandArgs == 0 then
                return
            end
        end
    can be done like this making it simpler
    Code:
        local commandArgs = command
        if type(commandArgs) == 'string' and #commandArgs:split(' ') >= 2 then
            commandArgs = T(commandArgs:split(' '))
        end
    how ever it does require that you put the in your commands rules
    Code:
        if type(commandArgs) == 'table' then
            if commandArgs[1]:lower() == 'set' or commandArgs[1]:lower() == 's' then
                --put commands that you want to the set command for example: gs c s armor TP
            elseif commandArgs[1]:lower() == 'cycle' or commandArgs[1]:lower() == 'c' then
                --put commands that you want to the cycle command for example: gs c c armor note: for cycling through all posible variants
            elseif commandArgs[1]:lower() == 'toggle' or commandArgs[1]:lower() == 't' then
                --put commands that you want to the toggle command for example: gs c t armor note: onle needed fot true/false variables
            end
        else
            --put all other commands here example: gs c tarmor note: this is for single string commands
        end

  3. #3643
    Hydra
    Join Date
    Jan 2010
    Posts
    100
    BG Level
    3
    FFXI Server
    Ragnarok

    Quote Originally Posted by Chimerawizard View Post
    sorry, when copying it to bluegartr i forgot the case. no it was Typ in my gearswap.

    EDIT: full file + full error report.

    http://pastebin.com/3UNysBuJ

    Lua runtime error: /flow.lua:295:
    GearSwap has detected an error in the user function midcast:
    /GEO.lua:337: attempt to index global 'Typ' (a nil value)

    line 337 =
    if not Typ.abilitys:contains(spell.prefix) then
    equip(sets.midcast[spell.element])
    end

    I'm sorry but I have no idea what Typ.abilitys is trying to reference.
    Played with it more today, somehow got it to work out with this:
    Code:
    function job_midcast(spell, action, spellMap, eventArgs)
    	if spell.skill == 'Elemental Magic' then
    		equip(sets.midcast[spell.element])
    	end
    end
    I didn't include the _post_ because I wanted it to swap other things from the equipment sets like say impact afterwords. It appears to be working like a charm.

  4. #3644
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Chimerawizard View Post
    Played with it more today, somehow got it to work out with this:
    Code:
    function job_midcast(spell, action, spellMap, eventArgs)
    	if spell.skill == 'Elemental Magic' then
    		equip(sets.midcast[spell.element])
    	end
    end
    I didn't include the _post_ because I wanted it to swap other things from the equipment sets like say impact afterwords. It appears to be working like a charm.
    for this
    if not Typ.abilitys:contains(spell.prefix) then
    equip(sets.midcast[spell.element])
    end
    motes includes does not have a Typ.abilitys table mine does
    Typ = {abilitys = S{'/jobability','/pet','/weaponskill','/monsterskill'},}

  5. #3645
    Smells like Onions
    Join Date
    Jan 2015
    Posts
    7
    BG Level
    0

    New to GS

    Also posted this on AH site, but haven't had an answer. So, I decided to attempt to use a premade gearswap from the shop thread on BG and plug in my gear for WAR. It has been throwing back an error when it doesn't equip my idle gear or switch to my TP gear on mobs after the first mob.

    The error I'm getting is when I have Bravura equipped:
    GearSwap: Lua runtime error: GearSwap/flow.lua:295:
    GearSwap has detected an error in the user function status_change:
    Sulia_WAR.lua:159: attempt to index field 'Bravura' (a nil value)

    The error I get when I have another weapon equipped:
    GearSwap: Lua runtime error: GearSwap/flow.lua:295:
    GearSwap has detected an error in the user function status_change:
    Sulia_WAR.lua:164: attempt to index field 'Razorfury' (a nil value)

    Couldn't post actual hyperlink to URL since I'm a new user on the forum and need 10 posts to put the URL in a post. I'd be willing to provide the PasteBin somehow though. Thank you for your help in advance.

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

    Quote Originally Posted by Sulia View Post
    Also posted this on AH site, but haven't had an answer. So, I decided to attempt to use a premade gearswap from the shop thread on BG and plug in my gear for WAR. It has been throwing back an error when it doesn't equip my idle gear or switch to my TP gear on mobs after the first mob.

    The error I'm getting is when I have Bravura equipped:
    GearSwap: Lua runtime error: GearSwap/flow.lua:295:
    GearSwap has detected an error in the user function status_change:
    Sulia_WAR.lua:159: attempt to index field 'Bravura' (a nil value)

    The error I get when I have another weapon equipped:
    GearSwap: Lua runtime error: GearSwap/flow.lua:295:
    GearSwap has detected an error in the user function status_change:
    Sulia_WAR.lua:164: attempt to index field 'Razorfury' (a nil value)

    Couldn't post actual hyperlink to URL since I'm a new user on the forum and need 10 posts to put the URL in a post. I'd be willing to provide the PasteBin somehow though. Thank you for your help in advance.
    you need to post your code so we can see what is the issue
    if you cant post a link yet just post
    http: // pastebin.com / 1g636EwP
    the 1g636EwP
    like
    pastebin 1g636EwP

  7. #3647
    Smells like Onions
    Join Date
    Jan 2015
    Posts
    7
    BG Level
    0

    pastebin 1HtTkWFC

  8. #3648
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    with this code
    Code:
            if player.equipment.main == 'Bravura' then
                if (buffactive['march'] == 2 and buffactive['haste']) or (buffactive['march'] and buffactive['embrava'] and buffactive['haste']) then
                    sets.TP.Bravura = sets.TP.Bravura.High
                else
                    sets.TP.Bravura = sets.TP.Bravura.Normal
                end
                sets.TP.DD = sets.TP.Bravura
            else
                if (buffactive['march'] == 2 and buffactive['haste']) or (buffactive['march'] and buffactive['embrava'] and buffactive['haste']) then
                    sets.TP.Razorfury = sets.TP.Razorfury.High
                else
                    sets.TP.Razorfury = sets.TP.Razorfury.Normal
                end    
                sets.TP.DD = sets.TP.Razorfury
            end
            
            sets.TP.Engaged = sets.TP.DD
    your rewriting sets.TP.Razorfury and sets.TP.Bravura ware it would only work once because you clearing out all of these sub tables
    sets.TP.Bravura.High
    sets.TP.Bravura.Normal
    sets.TP.Razorfury.High
    sets.TP.Razorfury.Normal
    so i recomend you do this
    Code:
            if player.equipment.main == 'Bravura' then
                if (buffactive['march'] == 2 and buffactive['haste']) or (buffactive['march'] and buffactive['embrava'] and buffactive['haste']) then
                    sets.TP.DD = sets.TP.Bravura.High
                else
                    sets.TP.DD = sets.TP.Bravura.Normal
                end
            else
                if (buffactive['march'] == 2 and buffactive['haste']) or (buffactive['march'] and buffactive['embrava'] and buffactive['haste']) then
                    sets.TP.DD = sets.TP.Razorfury.High
                else
                    sets.TP.DD = sets.TP.Razorfury.Normal
                end    
            end
            sets.TP.Engaged = sets.TP.DD
    the main reason is even if you write you tables like this
    a = {}
    a.b = {}
    a.b.c = {}
    lua still sees it like this
    a = {b = {c = {},},} --one table
    not
    sets.TP.Bravura --table #1
    sets.TP.Bravura.High --table #2
    sets.TP.Bravura.Normal --table #3
    sets.TP.Razorfury --table #4
    sets.TP.Razorfury.High --table #5
    sets.TP.Razorfury.Normal --table #6
    so when you do this
    sets.TP.Bravura = sets.TP.Bravura.High
    it replaces the whole table(including everthing that comes after) sets.TP.Bravura with sets.TP.Bravura.High

    here is some info about lua
    http://pastebin.com/GLdhjSuR

  9. #3649
    Smells like Onions
    Join Date
    Jan 2015
    Posts
    7
    BG Level
    0

    Thank you very much for your help. I didn't edit any of the lua other than what was in the equipment portion of it. Someone may want to remove Toioiz from the list of recommended WAR lua's or ask him to update it in the gearswap shop thread.

  10. #3650
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Sulia View Post
    Thank you very much for your help. I didn't edit any of the lua other than what was in the equipment portion of it. Someone may want to remove Toioiz from the list of recommended WAR lua's or ask him to update it in the gearswap shop thread.
    his is probly using an older version of both gearswap and lua core sence he has not updated it sence feb of 2014

  11. #3651
    Smells like Onions
    Join Date
    Jan 2015
    Posts
    7
    BG Level
    0

    Quote Originally Posted by dlsmd View Post
    his is probly using an older version of both gearswap and lua core sence he has not updated it sence feb of 2014
    So, the error is corrected, but now my idle set is refusing to equip upon disengaging a mob either from killing it or just regular disengage. I'll swap into my idle set if I use a JA while idle, but not going from engaged to disengaged.

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

    Quote Originally Posted by Sulia View Post
    So, the error is corrected, but now my idle set is refusing to equip upon disengaging a mob either from killing it or just regular disengage. I'll swap into my idle set if I use a JA while idle, but not going from engaged to disengaged.
    its because of the
    if buffactive['Weakness'] or buffactive['Doom'] then
    sets.aftercast.TP = set_combine(sets.TP.Engaged,sets.Twilight)
    else
    sets.aftercast.TP = sets.TP.Engaged
    end
    equip(sets.aftercast.TP)
    at the end of
    function status_change(new,old)
    im not sure why that even there

    you could try changing
    line 153: equip(sets.aftercast.Idle)
    to
    line 153: sets.TP.Engaged = sets.aftercast.Idle

    or change the whole function to this
    Code:
    function status_change(new,old)
        local set ={} 
        if T{'Idle','Resting'}:contains(new) then
            set = sets.aftercast.Idle
        elseif new == 'Engaged' then
            if player.equipment.main == 'Bravura' then
                if (buffactive['march'] == 2 and buffactive['haste']) or (buffactive['march'] and buffactive['embrava'] and buffactive['haste']) then
                    set = sets.TP.Bravura.High
                else
                    set = sets.TP.Bravura.Normal
                end
            else
                if (buffactive['march'] == 2 and buffactive['haste']) or (buffactive['march'] and buffactive['embrava'] and buffactive['haste']) then
                    set = sets.TP.Razorfury.High
                else
                    set = sets.TP.Razorfury.Normal
                end
            end
        end    
        if buffactive['Weakness'] or buffactive['Doom'] then
            set = set_combine(set,sets.Twilight)
        end
        equip(set)
    end

  13. #3653
    Smells like Onions
    Join Date
    Jan 2015
    Posts
    7
    BG Level
    0

    Quote Originally Posted by dlsmd View Post
    its because of the
    if buffactive['Weakness'] or buffactive['Doom'] then
    sets.aftercast.TP = set_combine(sets.TP.Engaged,sets.Twilight)
    else
    sets.aftercast.TP = sets.TP.Engaged
    end
    equip(sets.aftercast.TP)
    at the end of
    function status_change(new,old)
    im not sure why that even there

    you could try changing
    line 153: equip(sets.aftercast.Idle)
    to
    line 153: sets.TP.Engaged = sets.aftercast.Idle
    I can remove the lines about the weakness/doom stuff as I'm not concerned about equipping twilight anyway. Also, did you mean line 156?

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

    Quote Originally Posted by Sulia View Post
    I can remove the lines about the weakness/doom stuff as I'm not concerned about equipping twilight anyway. Also, did you mean line 156?
    sence you did not update your file on pastbin im still using the file pre fixes

    but you should be able to post links now

  15. #3655
    Smells like Onions
    Join Date
    Jan 2015
    Posts
    7
    BG Level
    0

    Quote Originally Posted by dlsmd View Post
    sence you did not update your file on pastbin im still using the file pre fixes

    but you should be able to post links now
    Still cannot post them until I hit 10 posts. This is the end of the updated pastebin 5n9EreUa. Thank you again for all your help.

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

    Quote Originally Posted by Sulia View Post
    Still cannot post them until I hit 10 posts. This is the end of the updated pastebin 5n9EreUa. Thank you again for all your help.
    ok yup i guess i ment line 156
    and as long as its working for you thats good

  17. #3657
    Smells like Onions
    Join Date
    Jan 2015
    Posts
    4
    BG Level
    0

    Lua runtime error

    Lua runtime error; GearSwap/refresh.lua:550: "id" is not defined for numbers

    I keep receiving this error and replaced the refresh.lua but to no avail. please help.

    I got my stuff here:
    Kinematics/GearSwap-Jobs

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

    Quote Originally Posted by raliont View Post
    Lua runtime error; GearSwap/refresh.lua:550: "id" is not defined for numbers

    I keep receiving this error and replaced the refresh.lua but to no avail. please help.

    I got my stuff here:
    Kinematics/GearSwap-Jobs
    can you make a post to pase bin of you file all you need to post is the stuff past pastebin.com/
    i.e. if its http://pastebin.com/123456
    post pastebin 123456

  19. #3659
    BG Content
    Join Date
    Jul 2007
    Posts
    22,350
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    His version of gearswap isn't updating for whatever reason. Here's an updated version:
    https://www.dropbox.com/s/xykrch9fs3...rSwap.zip?dl=0

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

    Quote Originally Posted by Byrthnoth View Post
    His version of gearswap isn't updating for whatever reason. Here's an updated version:
    https://www.dropbox.com/s/xykrch9fs3...rSwap.zip?dl=0
    ok i wanted to make sure that it was not his code

Page 183 of 302 FirstFirst ... 133 173 181 182 183 184 185 193 233 ... LastLast

Similar Threads

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