This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Profile Changer Addon
Post Reply
Return to board index
Post by
Ralc
Hi
My problem is that I'm using two monitors on the same computer, and the screen ratio is sligthly different (16:10 and 16:9). I change monitor quite frequently, and its a pain to move UI panels and stuff around each time.
So I'm looking for an addon that will let me change a bunch of addon profiles at the same time, and I hope you can help me out.
Thanks
Ps. i'm wondering if it could be macro'ed? Anyone have experience with that?
Post by
Wanderingfox
To do something like that, you'd have to individually run each profile change function of each specific addon that you're using. It's certainly doable, but I doubt you'd be able to fit it into a macro, you'd probably have to write a simple addon that registers a slash command and run it like that.
Post by
21327
This post was from a user who has deleted their account.
Post by
95464
This post was from a user who has deleted their account.
Post by
Wanderingfox
Or (correct me if I'm wrong) you could save 2 WTF folders and interchange them.
Create one WTF the way you like it for the 16:10 and move it to a safe location then set up one the way you like it for the 16:9.
I could be wrong, but it's worth a shot :)
That would require a reloadui to take effect though :P
Post by
4466
This post was from a user who has deleted their account.
Post by
Wanderingfox
Creating 2 WTF folders and switching between them would actually require a complete restart of the client. Data in the WTF folder is written out when reloading your UI based on what is in the memory buffer. Switching the folders would result in overwriting the "secondary" option set.
There's a few profiler switchers out there, but none of them work flawlessly because they rely on addons behaving in specific ways.
edit: If I understand the OP correctly, you're swapping WoW to a different monitor mid session? Why? Is it really necessary? If not, the suggestion to maintain 2 separate WTF folder makes more sense. It would be fairly simple to write a batch script as a pre-launcher for WoW that would ensure the correct WTF folder is in place.
That's not true. So long as there are no additions of new files you can change the files and reloadui and the changes will take effect. If you don't believe me, take any one of your addons, open it's saved variable .lua file, edit it, save it, and then reloadui and the change will take effect.
Post by
93130
This post was from a user who has deleted their account.
Post by
Wanderingfox
Except that's not what happens. Have you actually tried it?
The file is actually loaded BEFORE it's written. In other words, the following happens.
Initial Login:
Variable1: a
Variable2: a
Variables changed in the client:
Variable1: a
Variable2: b
File changed:
Variable1: b
Variable2: a
reloadui:
Variable1: b
Variable2: b
Now, you're correct in saying that if the SAME value was changed both manually and in the client that the client would overwrite it, but since the way the client creates these files only writes what has changed (either by updating the values stored in the file, or appending new information to it), if you change something that the client does NOT think has changed, the client will simply load it as if it has always been that value.
Completely replacing one savedvariable file with another with completely different values and reloading the UI (assuming that the table in the clients memory has not be altered) will cause all of the changes in the file to load.
Or at least this is how it appears to function, as I'm not a Blizzard dev, I can't tell you for sure, but from simple observation, one can validate that changing a file and reloading the UI does in fact cause that file to update. Granted I've not had to do anything like this for several patches, so maybe it's changed /shrug
Post by
93130
This post was from a user who has deleted their account.
Post by
Wanderingfox
Hmm... That must be the case then, cause I explicitly remember modifying the files when I was tinkering around with an addon I was developing at the time. /shrug
Either way it does appear that it doesn't function like how I remembered it to, so you are correct, it would require at least a character logout for it to take effect.
Post by
4466
This post was from a user who has deleted their account.
Post by
Wanderingfox
Hmm... Maybe I was logging out between the changes and just don't remember doing it then because I know for a fact I've changed savedvariable data before without completely closing the client down.
Post by
Ralc
Hmm, this turned out to be a little more complicated than I thought. By 'frequently' I meant that I change monitors 4-5 times a week, and not necessarily mid-session, I'm sorry if that was somewhat unclear. SetTheory seems nice except that it unfortunately doesn't have modules for any of the addons I'm using.
I did think about switching the WTF folders but I hoped an existing addon could do it for me, lazy me ^^. Hopefully I will figure out how to create a .bat file that does the job.
Thanks for the help everyone :)
Post by
Wanderingfox
Hmm, this turned out to be a little more complicated than I thought. By 'frequently' I meant that I change monitors 4-5 times a week, and not necessarily mid-session, I'm sorry if that was somewhat unclear. SetTheory seems nice except that it unfortunately doesn't have modules for any of the addons I'm using.
I did think about switching the WTF folders but I hoped an existing addon could do it for me, lazy me ^^. Hopefully I will figure out how to create a .bat file that does the job.
Thanks for the help everyone :)
from your world of warcraft directory:
REN WTF WTF3
REN WTF2 WTF
REN WTF3 WTF2
Need the intermediary rename since you can't rename something to an existing folder. The following three commands will leave you with a WTF and a WTF2 folder that swap places each time you hit the .bat file.
Note: Both folders will need to exist initially otherwise it will error.
Disclaimer: I haven't written a windows batch file in years, my information may be rusty XD
Post by
4466
This post was from a user who has deleted their account.
Post by
Wanderingfox
This should work, but I can't guarantee it (I'm on Linux).
See... This was my issue too... Shell scripts I can handle, batch files... not so much.
Post by
SidheKnight
use Reflux
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.