Item Search
     
BG-Wiki Search
Page 269 of 302 FirstFirst ... 219 259 267 268 269 270 271 279 ... LastLast
Results 5361 to 5380 of 6036

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

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

    Quote Originally Posted by Trumpy View Post
    I am workin on a SCH file. Is there a way to make it so when you try to cast ERASE, if you aren't /whm or dont have addenum white up to have it automatically use addenum white and then cast erase? Everything I tried just tells me i cant cast Erase (being i need to be sch/whm or have addenum white up to cast it)

    I had a second question but completely forgottered what it was the moment i began writing.

    Also this isnt a Mote file or anything a completely from scratch one.
    the only thing im not sure about is if it goes to filtered_action or not
    but here is a quick example
    Code:
    Error_Spell = ""
    function filtered_action(spell)--if not filtered_action try pretarget or precast
        if spell.en == "Erase" and (player.sub_job ~= "WHM" or not buffactive["Addendum: White"]) then
            cancel_spell()
            Error_Spell = spell.en
            send_command('wait 1.0;input /ja "Addendum: White" <me>')
        end
    end
    
    function aftercast(spell)
        if spell.en == "" and Error_Spell ~= "" then
            send_command('wait 1.0;input /ma "'..Error_Spell..'" <me>')
            Error_Spell = ""
        end
    end

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

    Something strange happened on GS today, first time I see it happening.
    Gendewitha Gages +1, they're augmented but I list them as "Gendewitha gages +1" in my lua since it's the only pair I own.

    I use validate and it says that "Gendewitha gages +1" are not in my inventory.
    Wtf, they are.
    I try to change that "gages" into "Gages" with capital G, save, reload, validate => still can't find them.
    Then I change that into "Gende. Gages +1" and do the process again but nope, doesn't see them.
    I doublecheck by doing //gs equip sets.precast.songs and noooo, doesn't equip them.
    Then I MANUALLY equip them.
    Do validate again and surprise surprise, GS now finds them.

    Wtf?
    And before someone say no, my inventory had loooong finished loading, I had been idle in MH for over 30 mins.

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

    Are they in Wardrobe 3/4?

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

    Nope they were in inventory O.O
    I don't even have 3/4 unlocked, I'm cheap.

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

    try running this to varify what bag its in

    Code:
    function item_to_bag(name)
        for _,bag in ipairs({"inventory","wardrobe","wardrobe2","wardrobe3","wardrobe4"}) do
            local item = player[bag][name]
            if item then
                return bag
            end
        end
    end
    print(item_to_bag("Gende. Gages +1") or "Gende. Gages +1 not found")
    print(item_to_bag("Gendewitha gages +1") or "Gendewitha gages +1 not found")

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

    What's the purpose of that code? I'm probably missing something.

    Validate works now for some reason, and the item was in inventory, I knew that already.
    I just wanted to report the pretty random and apperantly unexplainable occurance

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

    it was just meant to verify that it was not put in the incorrect bag by gearswap and to see if gearswap caught the item on log-in
    but if it did not show up until you heal, changed zones, or do something that causes gearswap to update its data after your initial log-in it's because gearswap currently does not update your items after the server updates your item list

    how ever if you want to add that for your self till gearswap adds it here is the code i use (put this at the top of your gearswap file)(works only with version 0.921(latest) of gearswap)
    http://pasted.co/16f23466
    and after it is added to gearswap you can remove it from your code
    --if you change the above code in any way you will get errors
    --i actually wait to load my gearswap till after the first time this runs after my log-in

    here are all my modded gearswap functions
    http://pasted.co/ce481416

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

    I did heal (when Organizer finished pulling items) and no, didn't change zone.
    What made Gearswap suddenly "see" the item is when I equipped it.
    From that moment for some reason Gearswap was able to see it

    It's the first time I see something like this happening I swear lol
    I could add all that to gearswap etc, but atm it works perfectly so it would be kinda pointless.
    If I ever get the strange error again I'll try to do that to gather more data :D
    Was just, dunno, strange. Wonder what happened.

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

    Quote Originally Posted by Sechs View Post
    I did heal (when Organizer finished pulling items) and no, didn't change zone.
    What made Gearswap suddenly "see" the item is when I equipped it.
    From that moment for some reason Gearswap was able to see it

    It's the first time I see something like this happening I swear lol
    I could add all that to gearswap etc, but atm it works perfectly so it would be kinda pointless.
    If I ever get the strange error again I'll try to do that to gather more data :D
    Was just, dunno, strange. Wonder what happened.
    if it does happen again and this code fixes it (only after the items loading is finished after login)

    http://pasted.co/16f23466

    its because the windower item list does not have it in its database yet so gearswap cant find it

    the posted code forces gearswap to update its item list every time packet 0x01D comes in which happens every time you equip/unequip/or the system modifies any item in any of your bags be it count/exdata for things like xp rings/etc.

    if your already logged in then you reload gearswap after the items get loaded by the server with out this gearswap will find all your items because windower knows all your items now as well

    however if you close FFXI and restart it windower will not know all your items and neither will gearswap untill after the item loading from the server is finished and you do some action that forces gearswap to update your items list but with the above code gearswp will refresh your items after packet 0x01D comes in so you do not have to perform any actions to update your items list in gearswap

    no this is not an issue with windower its with gearswap and i have already let byrth know whats going on and how it can be fixed tho he might want to do it differently

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

    dlsmd I'm experiencing the issue again on BRD.
    Where exactely do I have to put these lines you told me about?


    Code:
    gearswap.parse.i[0x01D] = function (data)
        for i,bag in pairs(gearswap.res.bags) do
            local bag_name = gearswap.to_windower_bag_api(bag.en)
            if gearswap.items[bag_name] then gearswap.player[bag_name] = gearswap.refresh_item_list(gearswap.items[bag_name]) end
        end
    end

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

    Quote Originally Posted by Sechs View Post
    dlsmd I'm experiencing the issue again on BRD.
    Where exactely do I have to put these lines you told me about?


    Code:
    gearswap.parse.i[0x01D] = function (data)
        for i,bag in pairs(gearswap.res.bags) do
            local bag_name = gearswap.to_windower_bag_api(bag.en)
            if gearswap.items[bag_name] then gearswap.player[bag_name] = gearswap.refresh_item_list(gearswap.items[bag_name]) end
        end
    end
    it must be the first thing in your gearswap job file how ever you can do anything(like run organizer) until after the server updates your item list or you put this at the top of your file
    Code:
    gearswap.parse.i[0x01D] = function (data)
        for i,bag in pairs(gearswap.res.bags) do
            local bag_name = gearswap.to_windower_bag_api(bag.en)
            if gearswap.items[bag_name] then gearswap.player[bag_name] = gearswap.refresh_item_list(gearswap.items[bag_name]) end
        end
        if not loaded then
            loaded = true
            include("filename.lua")--replace filename with your job file name if its WAR.lua change filename to WAR if it <playername>_WAR.lua  change filename to <playername>_WAR
        end
    end
    if not loaded then
        return
    end
    yes your gearswap will do nothing until the server updates your gear after login or job change
    this will only happel once on job change or log in

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

    I'm not understanding this at all, sorry
    Please treat me like a 6 years old in a step by step way.

    I've put the lines I posted in my previous post at top of my BRD lua file, I saved it, then I reloaded the Lua.
    When I validate it still doesn't find Gendewitha Gages +1 (even though they're in my inventory)
    I tried swapping job and going back to BRD, but still no change.

    Weren't those lines supposed to provide some additional data to understand what's happening?
    I really have no clue what I'm supposed to do next, sorry D:

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

    Quote Originally Posted by Sechs View Post
    I'm not understanding this at all, sorry
    Please treat me like a 6 years old in a step by step way.

    I've put the lines I posted in my previous post at top of my BRD lua file, I saved it, then I reloaded the Lua.
    When I validate it still doesn't find Gendewitha Gages +1 (even though they're in my inventory)
    I tried swapping job and going back to BRD, but still no change.

    Weren't those lines supposed to provide some additional data to understand what's happening?
    I really have no clue what I'm supposed to do next, sorry D:
    ho do you name your files?? for warrior do you just used WAR.lua??

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

    My BRD file is called BRD.lua, all my lua files are called job.lua, but I don't have lua for all jobs of course.

    http://s17.postimg.org/k8pknv6u7/brdlua.jpg

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

    make this lines 1-14 of your gearswap file
    Code:
    gearswap.parse.i[0x01D] = function (data)
        for i,bag in pairs(gearswap.res.bags) do
            local bag_name = gearswap.to_windower_bag_api(bag.en)
            if gearswap.items[bag_name] then gearswap.player[bag_name] = gearswap.refresh_item_list(gearswap.items[bag_name]) end
        end
        if not loaded then
            loaded = true
            include(player.main_job..".lua")
            send_command("input /echo Gearswap Ready.")
        end
    end
    if not loaded then
        return
    end
    if thats no help post your geearswap file and ill put it in and re-post it

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

    In place of the ones I added before I suppose, right?

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

    if you have already tried adding it in yes just remember to wait till you see "Gearswap Ready." in chat

    its also best to be on a fresh log in once you start using this because you will still need to force gearswap to refresh all items and the best way to do that is with a fresh login

    if you have already logged in this will not help you till you change zones or re-log-in again

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

    I did that but something is wrong.
    Now if I validate I don't get the "cannot find Gendewitha Gages +1" error, but gearswap doesn't work anymore, doesn't see my sets, doesn't swap, nothing is working lol
    Also if I remove items from my inventory on purpose, it still says "no item missing". If I try to equip my sets.precast.songs it says such set doesn't exist, etc.
    It's like he's ignoring My lua entirely. Maybe there's an "end" missing somewhere in the lines you posted above?

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

    Quote Originally Posted by Sechs View Post
    I did that but something is wrong.
    Now if I validate I don't get the "cannot find Gendewitha Gages +1" error, but gearswap doesn't work anymore, doesn't see my sets, doesn't swap, nothing is working lol
    Also if I remove items from my inventory on purpose, it still says "no item missing".
    It's like he's ignoring My lua entirely. Maybe there's an "end" missing somewhere in the lines you posted above?
    you need to log out then log back in this must be in your code before the server updates your item list
    then wait for "Gearswap Ready." in chat

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

    Logging out to charselect screen wasn't enough so I shutdown completely.
    Relogged, waited for gearswap ready message.

    If I validate I get no item missing.
    But then if I remove items on purpose from my inventory and validate again, it still gives me the message that no item is missing.
    If I try to manually equip a set it says the set doesn't exist.
    If I proc a situation where a set swap should occurr (like healing) I get an error with Gearswap lua runtime error /flow.lua:336

Page 269 of 302 FirstFirst ... 219 259 267 268 269 270 271 279 ... LastLast

Similar Threads

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