Item Search
     
BG-Wiki Search
Page 131 of 302 FirstFirst ... 81 121 129 130 131 132 133 141 181 ... LastLast
Results 2601 to 2620 of 6036

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

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

    http://pastebin.com/yZTYibt6

    To explain again correctly I have two custom functions:
    set_dagger() ==> sets the dagger to be used offhand in my TP sets while /NIN or /DNC
    set_idle_mode(sub_job) ==> sets a few things, among which my idle gear according to my subjob.


    set_dagger gets called from:
    1) set_idle_mode (if sj is /NIN or /DNC)
    2) from two different self commands

    set_idle_mode gets called from:
    1) at the end of function get_sets()
    2) within function sub_job_change


    Can see it for yourself in the pastebin I linked on top.

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

    i could never get dynamic sets to work right so i had to edit the actual table of the set directly just like i do in my smn lua
    Spoiler: show
    Code:
    function get_sets()
    	sets.Engaged = {
    		main="Eminent Pole",
    		sub="Danger Grip",
    		head="Tema. Headband",
    		body="Temachtiani Shirt",
    		hands="Temachtiani Gloves",
    		legs="Temachtiani Pants",
    		feet="Temachtiani Boots",
    		neck={ name="Wivre Gorget", augments={'"Subtle Blow"+4','MP+3',}},
    		waist="Mrc.Cpt. Belt",
    		left_ear="Signal Pearl",
    		right_ear="Ardent Earring",
    		left_ring="Leather Ring",
    		right_ring="Prouesse Ring"
    	}
    	sets.Idle = {
    		main="Eminent Pole",
    		sub="Danger Grip",
    		head="Tema. Headband",
    		body="Temachtiani Shirt",
    		hands="Temachtiani Gloves",
    		legs="Temachtiani Pants",
    		feet="Temachtiani Boots",
    		neck={ name="Wivre Gorget", augments={'"Subtle Blow"+4','MP+3',}},
    		waist="Mrc.Cpt. Belt",
    		left_ear="Signal Pearl",
    		right_ear="Ardent Earring",
    		left_ring="Leather Ring",
    		right_ring="Prouesse Ring"
    	}
    	sets.Resting = {
    		main="Dark Staff",
    		sub="Danger Grip",
    		head="Tema. Headband",
    		body="Temachtiani Shirt",
    		hands="Temachtiani Gloves",
    		legs="Temachtiani Pants",
    		feet="Temachtiani Boots",
    		neck={ name="Wivre Gorget", augments={'"Subtle Blow"+4','MP+3',}},
    		waist="Mrc.Cpt. Belt",
    		left_ear="Sanative Earring",
    		right_ear="Ardent Earring",
    		left_ring="Rajas Ring",
    		right_ring="Prouesse Ring",
    		back="Jester's Cape",
    		}
    	Pettype = {}
    	Pettype.Summon = {}
    	Pettype.Summon.weapon = {
    		['None'] = "Eminent Pole",
    		['Fire'] = "Atar III",
    		['Ice'] = "Vourukasha III",
    		['Wind'] = "Vayuvata III",
    		['Earth'] = "Vishrava III",
    		['Thunder'] = "Apamajas III",
    		['Water'] = "Haoma III",
    		['Light'] = "Arka III",
    		['Dark'] = "Xsaeta III"
    	}
    	Changesumstaff = false --Togle with //gs c tchangeSMNstaff (true for change staves, false for do not change staves)
    end
    function pet_change(pet,gain)
    	if Changesumstaff then
    		if gain then
    			sets.Engaged.main = Pettype.Summon.weapon[pet.element]
    			sets.Idle.main = Pettype.Summon.weapon[pet.element]
    			equip(sets[player.status])
    		else
    			sets.Engaged.main = Pettype.Summon.weapon["None"]
    			sets.Idle.main = Pettype.Summon.weapon["None"]
    			equip(sets[player.status])
    		end
    	end
    end


    i think this is because get_sets() is only called when you first change jobs and even if you call it later it will not change the gear because with somthing like this

    Spoiler: show
    Code:
    	sets.Engaged = {
    		main=pet_weapon,
    		sub="Danger Grip",
    		head="Tema. Headband",
    		body="Temachtiani Shirt",
    		hands="Temachtiani Gloves",
    		legs="Temachtiani Pants",
    		feet="Temachtiani Boots",
    		neck={ name="Wivre Gorget", augments={'"Subtle Blow"+4','MP+3',}},
    		waist="Mrc.Cpt. Belt",
    		left_ear="Signal Pearl",
    		right_ear="Ardent Earring",
    		left_ring="Leather Ring",
    		right_ring="Prouesse Ring"
    	}
    	pet_weapon = "Eminent Pole"
    	Pettype = {}
    	Pettype.Summon = {}
    	Pettype.Summon.weapon = {
    		['None'] = "Eminent Pole",
    		['Fire'] = "Atar III",
    		['Ice'] = "Vourukasha III",
    		['Wind'] = "Vayuvata III",
    		['Earth'] = "Vishrava III",
    		['Thunder'] = "Apamajas III",
    		['Water'] = "Haoma III",
    		['Light'] = "Arka III",
    		['Dark'] = "Xsaeta III"
    	}
    
    
    function pet_change(pet,gain)
    	if Changesumstaff then
    		if gain then
    			pet_weapon = Pettype.Summon.weapon[pet.element]
    			equip(sets[player.status])
    		else
    			pet_weapon = Pettype.Summon.weapon["None"]
    			equip(sets[player.status])
    		end
    	end
    end

    even if you run get_sets() again
    main=pet_weapon,
    is already changed to
    main= "Eminent Pole",
    even if you use //gs r to reset gearswap it will set it back to the default item you have in pet_weapon

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

    Hmm I don't know of course but I'm kinda leaning for a different cause, at least for my case. The player.inventory does work and does update, likewise the var I use to handle the only dynamic field of my sets does seem to work.
    The problem here is in player.inventory. It gets correctly updated if the custom function is called from certain parts of the lua, but not from others.


    I'm not looking for scapegoats but I think the only thing which could possibly cause such a strange issue has be a small somewhere in gearswap

  4. #2604
    BG Content
    Join Date
    Jul 2007
    Posts
    22,396
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    If you are calling it from a raw registered event, it will not be updated. Otherwise it should be current.

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

    Quote Originally Posted by Byrthnoth View Post
    If you are calling it from a raw registered event, it will not be updated. Otherwise it should be current.

    Sechs is calling it from the sub_job_change(new,old) function and the get_sets function

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

    Quote Originally Posted by dlsmd View Post
    Sechs is calling it from the sub_job_change(new,old) function and the get_sets function
    Almost!
    I explained everything HERE in detail.
    Can even check my Lua if the details I wrote are not enough.

    Byrth, does my situation fit your description? (I don't know what a "raw unregistered event" is)

  7. #2607
    BG Content
    Join Date
    Jul 2007
    Posts
    22,396
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Hmmm.... If you open an issue then I will know to look into it. I may not refresh globals before that event is called.

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

    I wad kinda trying to understand if it was an issue with my lua or with GS before opening a ticket, but I'm more confident about that now :D

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

    Yeah, globals aren't being refreshed before that call. Sorry, forgot to post that after yesterday's post.


    On a separate note, I've pushed my revamped library to dev. The updated job files are on the dev branch of my repository. It'll take a bit of work to update your files (for those using my include library), but I also worked out a way to allow them to still function under the old library until they were updated.

    I'll put together some upgrade notes on the wiki.

  10. #2610
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    Just something i thought might be useful to myself:

    Is there a way to have Gear Swap Print out in the chat log how much ammo you have in your bag? Like for example say when i engage a monster it prints out in echo or something "You have 78 Iron Arrows 54 Bullets and 32 Black Bolts." It's Ok if i have to specify which ammo in the code as well.

    Other than having a command to //findall :Mycharacter iron arrow every time i engage.

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

    You don't feel comfortable using specific addons to track ammo on screen? (yes, there is one for Shihei/Cards and afair it should work for whatever ammo you want as well, just need to configure it)

  12. #2612
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    Oh, there is already some addons and such... lemme check for them. As long as it isnt Find (which does what i want, but it always ends up crashing me for I have no idea why).


    EDIT: On looking i didnt see anything in the launcher that does this (not countin find which i know it does but it crashes me, I might try it again cause its been a while maybe its fixed for me.)

    On another note, for weaponskills:
    I have a bunch of specific weaponskill sets that equip(sets.WS[spell.name]) takes care of, but i am not so sure how to do the rest. What i would like is if there was a gear set for that specific WS, i would like it to check if its a dagger or an axe WS and use either equip(sets.WS.Dagger) or equip(sets.WS.Axe). I am jsut not sure the proper terms to use to check which skill type the WS is, can anyone help me?

    Code:
    if spell.type == "WeaponSkill" then
    		if sets.WS[spell.name] then
    			equip(sets.WS[spell.name])
    			send_command('@input /echo <tp> % '..spell.name..' @ <t>!')
    		else
    			equip(sets.WS.Dagger)
    			send_command('@input /echo <tp> % '..spell.name..' @ <t>!')
    		end
    	end

  13. #2613
    Fake Numbers
    Join Date
    Aug 2014
    Posts
    87
    BG Level
    2

    Okay so I'm new to gearswap and lua and I have a question about Kinematics's THF gearswap lua. I'm basically going through it little by little and getting an understanding of how everything works. The first thing I don't get is the Evasion sets or anything Evasion in the lua file. I understand that f9 and alt f9 cycle through ACC/Normal gear for tp/ws but I don't even know how to trigger the evasion set to equip.

    ttp://pastebin.com/NyhdRx7J

    I can't post links I don't have 10 posts.

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

    @Trumpy
    I haven't been using it for quite a while. I used it for Shihei at the time but when messing with it noticed you could use it to on-screen track virtually anything.
    I'm afraid it was Find, just like you said. Not even sure that's even supported any longer =/
    I apologize then.

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

    Quote Originally Posted by Trumpy View Post
    On another note, for weaponskills:
    I have a bunch of specific weaponskill sets that equip(sets.WS[spell.name]) takes care of, but i am not so sure how to do the rest. What i would like is if there was a gear set for that specific WS, i would like it to check if its a dagger or an axe WS and use either equip(sets.WS.Dagger) or equip(sets.WS.Axe). I am jsut not sure the proper terms to use to check which skill type the WS is, can anyone help me?

    Code:
    if spell.type == "WeaponSkill" then
    		if sets.WS[spell.name] then
    			equip(sets.WS[spell.name])
    			send_command('@input /echo <tp> % '..spell.name..' @ <t>!')
    		else
    			equip(sets.WS.Dagger)
    			send_command('@input /echo <tp> % '..spell.name..' @ <t>!')
    		end
    	end
    spell.skill
    Hand-to-Hand
    Dagger
    Sword
    Great Sword
    Axe
    Great Axe
    Scythe
    Polearm
    Katana
    Great Katana
    Club
    Staff
    Archery
    Marksmanship
    Throwing

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

    Quote Originally Posted by Altnob View Post
    Okay so I'm new to gearswap and lua and I have a question about Kinematics's THF gearswap lua. I'm basically going through it little by little and getting an understanding of how everything works. The first thing I don't get is the Evasion sets or anything Evasion in the lua file. I understand that f9 and alt f9 cycle through ACC/Normal gear for tp/ws but I don't even know how to trigger the evasion set to equip.

    ttp://pastebin.com/NyhdRx7J

    I can't post links I don't have 10 posts.
    There are two types of evasion sets: DefenseMode (which is being renamed HybridMode in the next rewrite), which is Ctrl-F9, and PhysicalDefenseMode, which is F10 (may need to cycle the type of physical defense mode with Ctrl-F10), and is turned off with Alt-F12. The basic defense mode is for constructing hybrid TP sets (eg: sets.engaged.Acc.Evasion). The full defense mode overrides all standard TP modes, and remains in place until explicitly turned off (even during idle).

  17. #2617
    Smells like Onions
    Join Date
    Mar 2013
    Posts
    1
    BG Level
    0

    Something weird here.

    Turned on the Gearswap debugging to see what it was doing, got a 'You do not have access to that spell (Hailstorm) message.

    99WHM/SCH, so it's a castable spell.

    images.bluegartr.com/bucket/gallery/3d0928ed2f6684e68c36da88c5b32556.jpg

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

    that is a bug that needs to be reported to byrth

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

    And need to be reported in the bug tracker

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

    @Motenten
    I need to help a nooby friend on GS. I tried to give him all the generic information I could and I guided him to how to use your files, where to find your repository etc.
    He's asking me other things I have no clue about (how to create sidecar files, where to find a list of commands/hotkeys to cycle and swap through sets and modes etc).
    Do you have a generic or specific guide for your files somewhere so I can point him to that?

Page 131 of 302 FirstFirst ... 81 121 129 130 131 132 133 141 181 ... LastLast

Similar Threads

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