Item Search
     
BG-Wiki Search
Page 96 of 302 FirstFirst ... 46 86 94 95 96 97 98 106 146 ... LastLast
Results 1901 to 1920 of 6036

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

  1. #1901
    D. Ring
    Join Date
    Jul 2008
    Posts
    4,529
    BG Level
    7
    FFXI Server
    Phoenix

    May need to log in at a different resolution to see in entirely, Lua Error (runtime) - ...x86/Windower4//addons/GearSwap/equip_processing.lua:207: bad argument #1 to "pairs" (table expected, -cuts off here

  2. #1902
    D. Ring
    Join Date
    Jul 2008
    Posts
    4,529
    BG Level
    7
    FFXI Server
    Phoenix

    Lua Error (runtime) - ...x86/Windower4//addons/GearSwap/equip_processing.lua:207: bad argument #1 to "pairs" (table expected, got nil)

  3. #1903
    RIDE ARMOR
    Join Date
    May 2014
    Posts
    10
    BG Level
    1

    Wow, thanks for the swift reply Byrth. And thanks for all the work you and Mote put into this! You guys are awesome.

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

    I'm doing something wrong in these two blocks, first time I'm using player.sub_job

    Code:
    	if player.sub_job == 'NIN' or player.sub_job == 'DNC' then
    		Idlemode = 'dw'
    	else
    		Idlemode = 'normal'
    	end
    Code:
    function sub_job_change(new,old)
    	if new == 'NIN' or new == 'DNC' then
    		Idlemode = 'dw'
    	else
    		Idlemode = 'normal'
    	end
    	add_to_chat(123,'Swapped idle mode to: '..Idlemode)
    end
    First block is at the beginning of my get_sets and should be run only once when the Lua gets loaded.
    Second block is a specific function that should get executed each time I swap my subjob, I think?

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

    Quote Originally Posted by Sechs
    I'm doing something wrong in these two blocks, first time I'm using player.sub_job
    What, exactly, do you think you're doing wrong?
    First block is at the beginning of my get_sets and should be run only once when the Lua gets loaded.
    Correct.
    Second block is a specific function that should get executed each time I swap my subjob, I think?
    Correct.

    Since both are executing the same code, you should make another function to handle it, and call it from the other two locations.

    Code:
    function get_sets()
        set_idle_mode(player.sub_job)
    end
    
    function sub_job_change(new, old)
        set_idle_mode(new)
    end
    
    function set_idle_mode(sub_job)
        if sub_job == 'NIN' or sub_job == 'DNC' then
            Idlemode = 'dw'
        else
            Idlemode = 'normal'
        end
    end

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

    That's smart and avoids useles repetitions, thanks! Will implement it.
    My problem is... it doesn't work lol
    I mean the version I posted.
    I tried to use sub_job_full, then sub_job_id (thinking maybe I typed the short form wrong) but same result. I don't get a Lua error, but nothing happens either.


    But maybe it has something to do with the current Gearswap issues and not with my code.
    I'll try again when I get back home with the pushed Gearswap updates.

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

    Quote Originally Posted by Sechs
    but nothing happens either.
    Nothing happens, as in the add_to_chat() command you had in there doesn't do anything? Or that Idlemode never changes?

  8. #1908
    Salvage Bans
    Join Date
    Oct 2010
    Posts
    948
    BG Level
    5
    FFXI Server
    Valefor

    I seem to be having an issue with GS recognizing my Ghorn90 (yes, I know, those animated horn kills are holding me back...). Everything else works properly in swapping, such as switching to my harp for Horde Lullaby or for third songs, pulling in all my proper midcast gear, etc. However, when it comes to swapping in my Gjallarhorn, it doesn't seem to recognize it at all.

    Here's my GS, if the screw-up is on my part (I wouldn't be surprised if it was something as simple as spelling "Gjallarhorn" wrong, though I'm pretty sure I didn't!): http://pastebin.com/Rd1mqhmr

    Don't mind if it's a bit messy, I'm still learning to code before I learn to clean it up. >_>; But if that ends up not being the problem, what else would do it?

  9. #1909
    Smells like Onions
    Join Date
    Feb 2013
    Posts
    7
    BG Level
    0

    Would some one be so kind as to supply me with code that would lock balrahn's ring to lock in place during salvage? Using mote's bard. lua. Thank you in advance.

  10. #1910
    Hydra
    Join Date
    Feb 2014
    Posts
    131
    BG Level
    3
    FFXI Server
    Quetzalcoatl

    Quote Originally Posted by Byrthnoth View Post
    Mote's most updated library files will also automatically download at that point as well.
    Thanks Byrth & Mote! This really helps a lot.

    I'm sure it will also help you guys, with less issues reported due to outdated includes.

  11. #1911
    D. Ring
    Join Date
    Jul 2008
    Posts
    4,529
    BG Level
    7
    FFXI Server
    Phoenix

    Quote Originally Posted by Kensagaku View Post
    I seem to be having an issue with GS recognizing my Ghorn90 (yes, I know, those animated horn kills are holding me back...). Everything else works properly in swapping, such as switching to my harp for Horde Lullaby or for third songs, pulling in all my proper midcast gear, etc. However, when it comes to swapping in my Gjallarhorn, it doesn't seem to recognize it at all.

    Here's my GS, if the screw-up is on my part (I wouldn't be surprised if it was something as simple as spelling "Gjallarhorn" wrong, though I'm pretty sure I didn't!): http://pastebin.com/Rd1mqhmr

    Don't mind if it's a bit messy, I'm still learning to code before I learn to clean it up. >_>; But if that ends up not being the problem, what else would do it?
    Instrument issue was posted a bit back, byrth said it will be fixed in a resources update.

  12. #1912
    BG Content
    Join Date
    Jul 2007
    Posts
    22,373
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    I would bet it has already been pushed, but I have been busy all day and can't check. If you run launcher and the I'd=2 slot in slots.lua is named "Range", then it is fixed.

    The other bugs should also be fixed, and we squashed one more bug with JP compatibility.

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

    Quote Originally Posted by Motenten View Post
    Nothing happens, as in the add_to_chat() command you had in there doesn't do anything? Or that Idlemode never changes?
    Both things. Idle mode got changed to the dw one for some reason, and wasn't swapping even with a full reload of GS.
    And no chat message whatsoever.
    Anyway, now I'm back home and I'll do some deeper tests, maybe it was just an issue connected to those few GS things that broke up today.


    Quote Originally Posted by Byrthnoth View Post
    If you run launcher and the I'd=2 slot in slots.lua is named "Range", then it is fixed.
    Still ranged for me atm.

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

    Both things.
    If the add_to_chat() isn't running, you have something else broken. The way you have it written, it should be displayed on every single subjob change. My first guess is that you created a second version of the function further down the file, which overwrote the one you're editing.

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

    Quote Originally Posted by Motenten View Post
    If the add_to_chat() isn't running, you have something else broken. The way you have it written, it should be displayed on every single subjob change. My first guess is that you created a second version of the function further down the file, which overwrote the one you're editing.
    Well, let's see if you can spot it.
    It's strange, the custom function we created is clearly ok, because it gets run the first time when the file gets loaded, so that's not the culprit.
    It has to be the function sub_job_change that somehow doesn't work, but the syntax looks ok to me, I don't get where the error could be.

    http://pastebin.com/0KXrwA9w

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

    Quote Originally Posted by Sechs View Post
    Well, let's see if you can spot it.
    It's strange, the custom function we created is clearly ok, because it gets run the first time when the file gets loaded, so that's not the culprit.
    It has to be the function sub_job_change that somehow doesn't work, but the syntax looks ok to me, I don't get where the error could be.

    http://pastebin.com/0KXrwA9w
    Easy to test... the problem is the sub_job_change() function, is not working, remember the old Post I did when found it, the code I used to test isnt working now.

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

    Hmmm, so this kinda hints us to a temporary problem in GS rather than the code?

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

    OK, I got un-lazy and dug into actually testing this. Found the issue: sub_job_change simply isn't being called, because for some reason player.sub_job is being changed before GearSwap gets the 'job change' event. Thus, when 'job change' checks whether the subjob is different, it finds that it's already the same as what the new job is, which naturally implies that no job change happened.

    Have also found where the subjob update happens. It's in the packet monitoring code GearSwap has, which comes in before the job change event from Windower. Will have to bug Byrth on how he wants to fix that.

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

    That's great, thanks for finding this out Mote and JSH

    I'm also still getting random errors on Gearswap.lua and helper_functions.lua, but there's already an open ticket on the issue tracker.


    edit:
    Actually it got closed because it changed and the initial issue got solved but then more came up and those are still active.
    I got the idea that Byrth already knew where the problem was though, so it will probably get solved with the next live push.

  20. #1920
    RIDE ARMOR
    Join Date
    Jan 2014
    Posts
    22
    BG Level
    1

    Any ideas on this error. I am using RNG Lua from here >>> https://github.com/AlanWarren/gearswap

    He uses Moten files.

    I get this error : Lua error .... gearswap.lua: lines 294 and 273

    attempt to index field ? (a nil value)


    thanks

Page 96 of 302 FirstFirst ... 46 86 94 95 96 97 98 106 146 ... LastLast

Similar Threads

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