Jump to content


Photo

Gearswap : Pet modes and custom modes

gearswappetmode

    No replies to this topic

    #1 Pulsahr

    Pulsahr

      Newbie

    • Members
    • Pip
    • 2 posts

      Posted 24 May 2016 - 10:51 AM

      Hi !

       

      'm trying to customize my gearswap to my liking, but am having hard times figuring out how modes work.

      I am a (web) developper for 8 years, so I have enough programming logic and vocabulary to understand most of lua files. However my knowledge regarding gearswap specifics is very limited, and the lack of exhaustive documentation prevents me to go forward.

       

      Specific case question

       

      Here is my need :

      I'm trying to get some skills about the modes. I managed to customize the options list, and how to cycle them. This is an example for my SMN :

      state.PetMode = M{['description']='Avatar mode', 'DD', 'Tank'}
      send_command('bind f11 gs c cycle PetMode')
      

       

      I'm stuck at the next step : where can I define sets regarding this options ? Or maybe I can't do this ?

       

      I'd like to cycle between 2 sets regarding my avatar situation : need to tank (set will prioritize pet pdt, regen, ...), or can go full dd (prioritizing haste, tp, ...).

      I have no idea where (in the SMN.lua) I have to define this.

      sets.idle.Pet doesn't exist so no sets.idle.Pet.DD.

       

       

      More in-depth understanding questions

       

      The following questions are really technical, but these are the most important to me. If you have the knowledge, please help me :)

       

      I have opened the Mote-included.lua file looking for answers regarding modes stuff, and I saw a lot of sets I never heard of. Here is the complete list I found :

      OffenseMode, HybridMode, RangedMode, WeaponskillMode, CastingMode, IdleMode, RestingMode, DefenseMode, PhysicalDefenseMode, MagicalDefenseMode, Kiting, SelectNPCTargets, PCTargetMode, EquipStop, CombatWeapon, CombatForm

      All properties of the state object (state.OffenseMode, ...).

       

      My main problem is I have no clue on what property is attached to what.

       

      A friend SMN's file contains :

      state.OffenseMode:options('None', 'Normal', 'Acc')
      

      and somewhere in init_gear_set function :

      sets.midcast.Pet.PhysicalBloodPactRage.Acc = {stuff}
      

      My issue is I found nowhere (documentation) to look to understand that the OffenseMode value is a property of the sets.midcast.Pet.MagicalBloodPactRage, which is a customised value returned by job_get_spell_map.

      How or where can I get these informations ? Like what is a property to what ?

      You know, something like :

      - job_get_spell_map returns an object that has the properties xxx, yyy, ... theses properties can be used in sets.midcast.Pet and [...].

      - state.DefenseMode has options that can be used in sets.Idle to alter your idle set according to your option.

      Etc..

       

      Did I miss the right place to look ? Is there maybe someone to contact ? A dedicated forum to Gearswap devs ? An IRC chan ?

       

      Thanks for any help !







      Also tagged with one or more of these keywords: gearswap, pet, mode

      1 user(s) are reading this topic

      0 members, 1 guests, 0 anonymous users