About configuring a different group order when using the Dynamic layout :
There's currently no in-game way to do it (configuration to do it might be a little bit confusing as there's no easy way to implement an ordered list in the Dewdrop framework).
However you can mess with the lua code, in Interface/Addons/GridDynamicLayout/GridDynamicLayout.lua you will find a section going like this :
------------ Locals ------------
local GROUPINDEX_TANK = 1
local GROUPINDEX_HEAL = 2
local GROUPINDEX_RDPS = 3
local GROUPINDEX_MDPS = 4
local GROUPINDEX_PET = 5
local GROUPINDEX_TRASH = 6
You can change the index of each of those to suit your needs (try staying in the 1-6 index range and reorder them based on that).
Adapting the layout to your current activity
Now what you're really asking for is whether you can, in function of the context, adapt the layout you use : simple answer is yes, but there are limitations.
1/ Install GridDynamicZoneSwitch.
2/ Configure your Grid & plugins the way you want it for 40-men BGs. Save that configuration in a profile (for ex : "PvP40").
3/ Reconfigure your Grid & plugins the way you want it for 25-men PvE raids and save that configuration in a profile ("PvE25")
4/ Repeat until all your needs are covered
5/ In Grid / Dynamic Zone Switch define whichever profile to use when being in each zone
The limitations I spoke about is that if you messed with the lua as I described in the first part of this post, you won't be able to save that in a profile (except if I get off my ass and mesh it someway in the configuration UI)...
Maybe Grid itself is misbehaving here - but it only occurs when I turn on GridDynamicLayout.
Given that GDL taps seldom used GridLayout options my money is on a GridLayout bug...
Although I wonder how you're achieving such a layout with GDL, I imagine you tinker with the lua to get this result ?
Yes Grimwood, if you are talking about GridAutoFrameSize the two mods are indeed conflicting (although you can use both, it's just that you need to disable the "Auto Size Raid Frame" toggle in the layout options when using the "DynamicLayout" layout).
Specifically what GridAutoFrameSize does is check whichever of the default "By Group 40", "By Group 25", "By Group 20", "By Group 15" or "By Group 10" layout to use in order to better display your raid (if only three groups are active in your raid it will display "By group 15" for example)... Thus each time someone leaves / enters the raid or is changed of group the layout which was "DynamicLayout" gets changed back to one of the above layouts...
When using DynamicLayout you actually don't need GridAutoFrameSize functionnality as the frame will already automagically expands or shrink based on how many are in your raid (well that's not strictly true but it's close enough)
Thanks a lot for your second stack, I cannot believe I wrote what I did...
Anyway, I believe I have a correction for this. From the symptoms I guess it only happens when you get into a raid, relog in a raid or a raidmember relogs... UnitClass function seems to sometimes returns nil at critical times such as these.
Same deal as before, attached is the corrected file and I'll commit to svn whenever I'll be back...
Hmm I'm looking at the code right now and line 581 is a debug line, I've commented it (but chances are that it will pop an error at line 582 instead :P ) since I'm still in India and don't have the SVN tools installed I attached the corrected file here, can someone test it ?
As for the freezes happening every 10 second : is it because of a real update of the raid layout (a warrior changing stance, a druid changing form etc...) ? Or is it just a random freeze ? If it is the first case I'm afraid I cannot do anything about it, loading a new layout (which is essentially what I do each time I have to update it) is a time consuming operation in Grid (or any raidframe for that matter) and it will freeze your game... What you can do :
- Do not use it in a battleground setting : too much things going on in a chaotic fashion, GridDynamicLayout is tailored for PvE raid use
- Activate statistical analysis (in the Grid/Layout/GridDynamicLayout) options to see if that alleviate the number of updates, it should prevent the feral druid changing form between fights or shadowpriest dropping shadowform to rez people from triggering updates
Thanks a lot to whoever translated in Korean, you made my day sir (or madam :P )