Item Search
     
BG-Wiki Search
Page 94 of 302 FirstFirst ... 44 84 92 93 94 95 96 104 144 ... LastLast
Results 1861 to 1880 of 6036

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

  1. #1861
    Melee Summoner
    Join Date
    Jun 2008
    Posts
    24
    BG Level
    1
    FFXI Server
    Ramuh

    Ok... I encountered a new problem with Motes SCH file, when I use Sublimation to regain MP, it switches into Sublimation mode, aka puts gown/mboard/earring on altho Sub is not active... when Sub is full and turns to blue bubble symbol, it goes back to normal mode but the 30 sec between regain MP > reactivating Sub it does not work correctly.

    Guess this might actually have to do with some error in the base files

  2. #1862
    Sea Torques
    Join Date
    Sep 2012
    Posts
    736
    BG Level
    5
    FFXI Server
    Leviathan

    Quote Originally Posted by Sechs View Post
    Hmm, and I'm able to use an "IF" inside there too, right?
    So I could like:

    If condition1 or condition2 then
    var = X
    else
    var = Y
    end

    and it would get run only once, the time it gets loaded up, correct?
    Correct. It also works if you write it anywhere outside of a function.

  3. #1863
    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
    Not quite that far yet! But I've sure come a long way.
    And I have to thank you, dlsmd, motenten and everybody else being fantastic teachers in this thread


    Anyway, finished my BRD lua and I'm pretty happy but there's one thing that I'd like to improve, the function midcast part for buff songs.
    I could only think of 2 different methods to do this, but maybe there's a third that I couldn't think of

    1. Single lines while defining midcast sets, multiple lines into the function midcast (see spoiler1 for example)
    2. Slightly more Dynamic system: single line into function midcast, multiple lines while defining midcast sets (see spoiler2 for example)


    Spoiler: show

    Code:
    	sets.midcast.buff = {...}
    	sets.midcast.debuff = {...}
    	sets.midcast.debuffstring = set_combine(sets.midcast.debuff, {range="Daurdabla", feet="Bihu Slippers +1"})
    	sets.midcast.scherzo = set_combine(sets.midcast.buff, {feet="Aoidos' Cothurnes +2"})
    	sets.midcast.minuet = set_combine(sets.midcast.buff, {body="Aoidos' Hongreline +2"})
    	sets.midcast.march = set_combine(sets.midcast.buff, {hands="Aoidos' manchettes +2"})
    	sets.midcast.ballad = set_combine(sets.midcast.buff, {legs="Aoidos' Rhingrave +2"})
    	sets.midcast.paeon = set_combine(sets.midcast.buff, {head="Brioso Roundlet +1"})
    	sets.midcast.madrigal = set_combine(sets.midcast.buff, {head="Aoidos' Calot +2"})
    	sets.midcast.sirvente = set_combine(sets.midcast.buff, {head="Bihu Roundlet +1"})
    	sets.midcast.dirge = set_combine(sets.midcast.buff, {})
    
    ...
    
    	elseif spell.type == "BardSong" then
    		if debuff:contains(spell.name) then
    			equip(sets.midcast.debuff)
    		elseif spell.english:startswith('Horde') then
    			equip(sets.midcast.debuffstring)
    		elseif spell.english:startswith('Sentinel') then
    			equip(sets.midcast.scherzo)
    		elseif spell.english:startswith('Valor') then
    			equip(sets.midcast.minuet)
    		elseif spell.english:endswith('March') then
    			equip(sets.midcast.march)
    		elseif spell.english:startswith('Mage') then
    			equip(sets.midcast.ballad)
    		elseif spell.english:startswith('Army') then
    			equip(sets.midcast.paeon)
    		elseif spell.english:endswith('Madrigal') then
    			equip(sets.midcast.madrigal)
    		elseif spell.english:endswith('Sirvente') then
    			equip(sets.midcast.sirvente)
    		elseif spell.english:endswith('Dirge') then
    			equip(sets.midcast.dirge)
    		else
    			equip(sets.midcast.buff)
    		end


    Spoiler: show

    Code:
    	sets.midcast.buff = {...}
    	sets.midcast['Valor Minuet'] = set_combine(sets.midcast.buff, {body="Aoidos' Hongreline +2"})
    	sets.midcast['Valor Minuet II'] = set_combine(sets.midcast['Valor Minuet'], {})
    	sets.midcast['Valor Minuet III'] = set_combine(sets.midcast['Valor Minuet'], {})
    	...
    	sets.midcast["Mage's Ballad"] = set_combine(sets.midcast.buff, {legs="Aoidos' Rhingrave +2"})
    	sets.midcast["Mage's Ballad II"] = set_combine(sets.midcast["Mage's Ballad"], {})
    
    ...
    
    	elseif spell.type == "BardSong" then
    		if debuff:contains(spell.name) then
    			equip(sets.midcast.debuff)
    		elseif spell.english:startswith('Horde') then
    			equip(sets.midcast.debuffstring)
    		elseif spell.english[spell.english] then
    			equip(sets.midcast[spell.english])
    		else
    			equip(sets.midcast.buff)
    		end


    Now you see what I mean I hope.
    Between those two I like 1) more, but again, is there a third solution that puts together the pros of these 2 solutions without any of the cons?
    guess you are getting a bit complicated with the sets,
    your base casting(buff) set doesn't already have most of that gear equipped?

    I have 2 sets 5/5 Empy(for the set bonus) and a +Duration Set(that probably is the only one I use lately), and the duration set still have 3/5 Empy gear, just legs and feets are swapped. so in both case dont have to make a specific rule for Minuet/March.

    Only have them for, Ballad, Scherzo, Paeon, Sirvente (I dont have the other merited song ~.~)

    This is an old lua(that I had in my USB) http://pastebin.com/meAi1MPZ, (check line 247-256 so can check how I manage the others songs that need specific gear) Dont really have it "public" it's a mess(probably) lol since use it for personal and "it works", so made few things w/ trial and error method.. like implementing some Byrth's Code

    The Current I use the only difference I recall is a -Recast Song Set for Finale

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

    Quote Originally Posted by JSHidaka View Post
    guess you are getting a bit complicated with the sets,
    your base casting(buff) set doesn't already have most of that gear equipped?
    Atm yes. Only exceptions would be Scherzo (I normally buff with Brioso Slippers +1), Ballad (I normally have Marduk's Shalwar +1) and Paeon (I normally use AF3+2). But lolpaeon, I don't remember the last time I had to use it.
    So in a sense yes, I don't need all those.
    But let's say I created the lua mechanisms thinking about the future, considering the overriding of many of those sets just a lucky but temporary coincidence produced by the currently limited gearing options.

    For instance back in the Abyssea Days I only had 3 sets I think. Precast, Debuff and Buff, period.
    Actually I think I had precast built-in with my idle, so you could say I only had debuff and buff lol, and those two had a lot of pieces in common.
    It's the same for the merited songs, atm I have neither, but in the future (june?) they're raising the merit cap, they MIGHT (unlikely, but who knows) raise also the cap into the job specific categories, and if that happens I'll definitely be getting both Sirvente and Dirge.

    I'll give a look at your file nonetheless.
    I used to have a specific -recast set for Finale but I haven't bothered with that in quite some months. With reforged AF3+2 legs and Gessho boots you shouldn't even need one though, tbf.

  5. #1865
    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
    . With reforged AF3+2 legs and Gessho boots you shouldn't even need one though, tbf.
    Hmmm will check those boots... Brd was the first lua I did.... I started to update it... But did remember, "if it's working don't fix it."

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

    Hey Sech found something that could make what you want to do "easier", but we might need help from the Windower Dev( Arcon, Byrth... and others )

    I was messing w/ the res. and went to spell.lua and modified the minuet line to this:
    Code:
        [394] = {id=394,en="Valor Minuet",ja="猛者のメヌエット",de="Mut-Menuett",fr="Menuet vaillant",cast_time=32,element=0,icon_id=-1,icon_id_nq=32,levels={[10]=3},mp_cost=0,prefix="/song",range=12,recast=96,recast_id=796,requirements=0,skill=40,targets=1,type="BardSong", group="Minuet"},
    did add whats in bold (group="Minuet")

    then went to my brd.lua and in precast did add

    Code:
    	add_to_chat(100,'=================> Group:'..spell.group)
    and this are the results:
    http://i93.photobucket.com/albums/l5...529_141244.png

    then of course for w/e other spell that doesnt have group will give me an error so did change the code to this
    Code:
    	if spell.group then
    		add_to_chat(100,'=================> Group:'..spell.group)
    	end
    so for the gear set could do somethign like
    Code:
    	if spell.group and sets.precast[spell.group] then
                  equip(sets.precast[spell.group]) 
            end
    now why the help of the development team?... coz yea we can edit the res and make it work... but whenever they update the resource our change will be gone, so is more likely if they would like to add another option to brd songs (and probably others JA/Spells for others job) to group them

    another example could be the Cure spells, We know they are Healing Skills, Light Magic, but cant difference them from Curaga's for example...

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

    I think we are trying to pare down the extraneous crap that we have hardcoded into the resources. If you want something like your spell.group, just do:
    Code:
    spell_groups = {[393] = 'Minuet',
        [394] = 'Minuet', -- etc
     }
    Then reference it like:
    Code:
    spell_groups[spell.id]

  8. #1868
    Old Odin
    Join Date
    Oct 2006
    Posts
    6,198
    BG Level
    8
    FFXI Server
    Asura

    gearswap isnt recognizing gear difined by augments anymore, doesnt swap in any hagondes I defined via augments. Works fine if I dont define the gear via augments, but this makes it so that some hagondes pieces cant be used ¬.¬. noticed this just recently, everything was workign fine 1 week ago

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

    Quote Originally Posted by Byrthnoth View Post
    I think we are trying to pare down the extraneous crap that we have hardcoded into the resources. If you want something like your spell.group, just do:
    Code:
    spell_groups = {[393] = 'Minuet',
        [394] = 'Minuet', -- etc
     }
    Then reference it like:
    Code:
    spell_groups[spell.id]
    so in the end...

    Code:
    spell_groups = {[394] = 'Minuet', [395] = 'Minuet', [396] = 'Minuet', [397] = 'Minuet', [398] = 'Minuet', [386] = 'Ballad', [387] = 'Ballad', [388] = 'Ballad', [378] = 'Paeon', [379] = 'Paeon', [380] = 'Paeon', [381] = 'Paeon', [382] = 'Paeon', [383] = 'Paeon', [384] = 'Paeon', [385] = 'Paeon',}
    
    if spell_groups[spell.id] then
    		add_to_chat(100,'=================> Group:'..spell_groups[spell.id] )
    end
    so equip(sets.precast[spell_groups[spell.id]])

  10. #1870
    BG Content
    Join Date
    Jul 2007
    Posts
    22,360
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Quote Originally Posted by Damane View Post
    gearswap isnt recognizing gear difined by augments anymore, doesnt swap in any hagondes I defined via augments. Works fine if I dont define the gear via augments, but this makes it so that some hagondes pieces cant be used ¬.¬. noticed this just recently, everything was workign fine 1 week ago
    Sorry, I changed how the augment system works. I posted it both places, but announcements get lost here due to the long nature of the threads. Here's the FFXIAH version:
    http://www.ffxiah.com/forum/topic/43...0860-augments/

  11. #1871
    Old Odin
    Join Date
    Oct 2006
    Posts
    6,198
    BG Level
    8
    FFXI Server
    Asura

    gearswap refuses to aknowledge ele rules for thunder

    no obi swaping, no correct weapon swaping, anything that is defined by spell.element = day/weather etc element doesnt work with thunder as a spell element. works fine with all other elements

    this applies to all spells, stun, nukes everything.

    all other elements are fine

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

    Quote Originally Posted by Damane View Post
    gearswap refuses to aknowledge ele rules for thunder

    no obi swaping, no correct weapon swaping, anything that is defined by spell.element = day/weather etc element doesnt work with thunder as a spell element. works fine with all other elements

    this applies to all spells, stun, nukes everything.

    all other elements are fine
    its Lightning not thunder

  13. #1873
    Old Odin
    Join Date
    Oct 2006
    Posts
    6,198
    BG Level
    8
    FFXI Server
    Asura

    Quote Originally Posted by dlsmd View Post
    its Lightning not thunder
    .... the rule: is equip (set_combine(sets.midcast.ElementalMagic[sets.midcast.ElementalMagic.index[ElementalMagic_ind]],sets.staves.damage[spell.element]))
    if spell.element == world.weather_element or spell.element == world.day_element then
    equip(sets.Obi[spell.element])
    end

    it worked before unless byrth changed the elemental description from thunder to lightning

    EDIT: well that did the trick

  14. #1874
    BG Content
    Join Date
    Jul 2007
    Posts
    22,360
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    It has been Lightning in the resources for a few months now. IIRC we announced it before we did it.

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

    Quote Originally Posted by Byrthnoth View Post
    It has been Lightning in the resources for a few months now. IIRC we announced it before we did it.
    i think he is using your lua found in
    \addons\GearSwap\beta_examples_and_information

    most of the ones you have there do not include the change from Thunder to Lightning

  16. #1876
    Hydra
    Join Date
    Feb 2014
    Posts
    131
    BG Level
    3
    FFXI Server
    Quetzalcoatl

    Quote Originally Posted by JSHidaka View Post
    Hey Sech found something that could make what you want to do "easier", but we might need help from the Windower Dev( Arcon, Byrth... and others )

    I was messing w/ the res. and went to spell.lua and modified the minuet line to this:
    Code:
        [394] = {id=394,en="Valor Minuet",ja="猛者のメヌエット",de="Mut-Menuett",fr="Menuet vaillant",cast_time=32,element=0,icon_id=-1,icon_id_nq=32,levels={[10]=3},mp_cost=0,prefix="/song",range=12,recast=96,recast_id=796,requirements=0,skill=40,targets=1,type="BardSong", group="Minuet"},
    did add whats in bold (group="Minuet")

    then went to my brd.lua and in precast did add

    Code:
    	add_to_chat(100,'=================> Group:'..spell.group)
    and this are the results:
    http://i93.photobucket.com/albums/l5...529_141244.png

    then of course for w/e other spell that doesnt have group will give me an error so did change the code to this
    Code:
    	if spell.group then
    		add_to_chat(100,'=================> Group:'..spell.group)
    	end
    so for the gear set could do somethign like
    Code:
    	if spell.group and sets.precast[spell.group] then
                  equip(sets.precast[spell.group]) 
            end
    now why the help of the development team?... coz yea we can edit the res and make it work... but whenever they update the resource our change will be gone, so is more likely if they would like to add another option to brd songs (and probably others JA/Spells for others job) to group them

    another example could be the Cure spells, We know they are Healing Skills, Light Magic, but cant difference them from Curaga's for example...
    You could do something similar to what Mote does in Mote-Mappings.lua. (assuming you aren't including his libs)

    Code:
    spell_maps = {
    	['Cure']='Cure',['Cure II']='Cure',['Cure III']='Cure',['Cure IV']='Cure',['Cure V']='Cure',['Cure VI']='Cure',
    	['Cura']='Curaga',['Cura II']='Curaga',['Cura III']='Curaga',
    	['Curaga']='Curaga',['Curaga II']='Curaga',['Curaga III']='Curaga',['Curaga IV']='Curaga',['Curaga V']='Curaga',
    	['Valor Minuet']='Minuet',['Valor Minuet II']='Minuet',['Valor Minuet III']='Minuet',['Valor Minuet IV']='Minuet',['Valor Minuet V']='Minuet',
    	["Mage's Ballad"]='Ballad',["Mage's Ballad II"]='Ballad',["Mage's Ballad III"]='Ballad',
    	["Army's Paeon"]='Paeon',["Army's Paeon II"]='Paeon',["Army's Paeon III"]='Paeon',["Army's Paeon IV"]='Paeon',["Army's Paeon V"]='Paeon',["Army's Paeon VI"]='Paeon',
    }
    
    -- Then you can do something like this in precast, midcast, etc. 
    spellMap = spell_maps[spell.english]
    
    if spellMap and sets.midcast[spellMap] then
        equip(sets.midcast[spellMap]
    end
    He's also got a handy user function for adding arbitrary mappings on a per-job basis.

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

    Quote Originally Posted by Sechs View Post
    Anyway, finished my BRD lua and I'm pretty happy but there's one thing that I'd like to improve, the function midcast part for buff songs.
    I could only think of 2 different methods to do this, but maybe there's a third that I couldn't think of

    1. Single lines while defining midcast sets, multiple lines into the function midcast (see spoiler1 for example)
    2. Slightly more Dynamic system: single line into function midcast, multiple lines while defining midcast sets (see spoiler2 for example)


    <snip>

    Now you see what I mean I hope.
    Between those two I like 1) more, but again, is there a third solution that puts together the pros of these 2 solutions without any of the cons?
    Look at spell_maps in Mote-Mappings in my repository. A short snippet:

    Code:
    spell_maps = {
    	['Valor Minuet']='Minuet',['Valor Minuet II']='Minuet',['Valor Minuet III']='Minuet',['Valor Minuet IV']='Minuet',['Valor Minuet V']='Minuet',
    	["Knight's Minne"]='Minne',["Knight's Minne II"]='Minne',["Knight's Minne III"]='Minne',["Knight's Minne IV"]='Minne',["Knight's Minne V"]='Minne',
    	['Advancing March']='March',['Victory March']='March',
    	['Sword Madrigal']='Madrigal',['Blade Madrigal']='Madrigal'
    }
    Then you can just use something like:
    Code:
        sets.midcast.Minuet = {}
        sets.midcast.Minne = {}
        sets.midcast.March = {}
        sets.midcast.Madrigal = {}
    
    
    function midcast(spell)
        spell_map = spell_maps[spell.english]
        if sets.midcast[spell_map] then
            equip(sets.midcast[spell_map])
        end
    end
    It's a bit of work to set up at the start, but once done it's just a fast lookup that makes the actual code pretty simple. Also, much easier to deal with than spell id's, I think.


    Edit: ninja'd on my own code..

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

    by the time I made my Brd lua, Mote didnt had BRD, if he had, I would have analyzed his file for sure, it is the main reason that my file have lots of byrth's code.

    Could modify it to make it easier to update... but meh... it works now, If SE add more gear and have to make an specific set for each "Group" of spells @ least now I know what I can do

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

    That's a fantastic Idea, thanks JSH, Orestes, Byrth and Motenten.
    Gonna hardcore all songs in my Lua at start and then use single midcast sets and very simple midcast dynamic code.
    Exciting! :D

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

    really!!! give a #$% option to turn off auto updates.. something got updated that did mess RANGE ATTACK... now GS doesnt detect it... and a nice place to found out that.. in delve... yay!

Page 94 of 302 FirstFirst ... 44 84 92 93 94 95 96 104 144 ... LastLast

Similar Threads

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