Forum Index » Technical Support »

Post a reply

shayotan
Posted 06:00AM, Friday, March 19, 2010 (1 year, 10 months ago)
#0
for some reason my CTVP will not retain settings. if i log out or change toons or even do a /reload it always defaults back to full screen. so details:
1. im running win7.
2. yes my mod is installed correctly.
3. NO the directory is NOT read only.
4. Yes i start wow as "run as" admin
5. NO i do not have a virus or malware ( i am absolutely sure)
6. YES it is completely irritating.

so everytime i login i have to do /ctvp then choose apply. my settings are there already its just they dont apply for some reason.

~Shay
shayotan
Posted 06:04AM, Friday, March 19, 2010 (1 year, 10 months ago)
#1
as a matter of fact if i go to the saved variable for one of my toons and open the lua this is what is in it:

CT_Viewport_Saved = {
49.99978445820466, -- [1]
349.9999692083147, -- [2]
120.0001557336523, -- [3]
129.9995676342033, -- [4]
0, -- [5]
0, -- [6]
0, -- [7]
}

so i know it is writing my settings. i just have to MANUALLY apply them every time.
dargen
Posted 04:17PM, Friday, March 19, 2010 (1 year, 10 months ago)
#2
I tested it using Windows XP (as an administrator) and Windows 7 (as an administrator and as a non-administrator), and each time I logged in or reloaded the UI, the game always automatically re-applied the most recent changes that I had made to my viewport settings.

As a test, try disabling all of your other addons except for CT_Viewport, and then see if it will work.
shayotan
Posted 05:44AM, Saturday, March 20, 2010 (1 year, 10 months ago)
#3
ok so i logged onto my auctioneer and disabled everything but auctioneer, ctmod, titan panel, and spartanui (if i disable those too it screws things up for my other toons); after doing that i tested ctvp and it failed again. it will not automatically load the settings... i have to /ctvp accept for it to load the settings.

dargen
Posted 12:54PM, Saturday, March 20, 2010 (1 year, 10 months ago)
#4
Once I installed the addons that you listed, I began having the same problem with the viewport settings not being re-applied correctly.

As it turns out, CT_Viewport is re-applying the viewport settings correctly when you login or reload your UI. However, after CT_Viewport has updated the viewport, another addon, SpartanUI, alters the position of the bottom right corner of the viewport. After disabling the SpartanUI addon, the problem with the viewport went away.

SpartanUI either attaches the bottom right corner of the viewport to the bottom right corner of your screen, or it attaches it to the top right corner of the SpartanUI bottom bar (the large grey area at the bottom of your screen). This overrides the position that CT_Viewport previously set for the bottom right corner of the viewport. The top left corner of the viewport is ok, since SpartanUI does not alter that.

SpartanUI does have a command (/sui viewport) that you can use to enable or disable what they call a "Dynamic Viewport". This command controls whether the viewport's bottom right corner is attached to the bottom right of the screen or to the top right of their bottom bar. However, since this command always alters the viewport (even if you didn't previously enable their "dynamic viewport"), it won't prevent the issue that you are having.

SpartanUI does not seem to provide any way to prevent their addon from making changes to the viewport. Their command to disable their viewport seems to presume that you are not using a separate viewport addon.

I will look into modifying CT_Viewport in order to try and prevent (or override) other addons from making changes to the size and position of the viewport.

Update:

In the mean time, if you want to modify SpartanUI (version 2.6.1) to prevent it from changing the viewport, you can use a text editor (such as Notepad) to make the following changes to the "BottomBar.lua" file located in the "Interface\AddOns\SpartanUI\global" folder.

Change line 38 from this:
		WorldFrame:SetPoint("BOTTOMRIGHT",frame,"TOPRIGHT",0,-5);

to this:
--		WorldFrame:SetPoint("BOTTOMRIGHT",frame,"TOPRIGHT",0,-5);


Change line 40 from this:
		WorldFrame:SetPoint("BOTTOMRIGHT");

to this:
--		WorldFrame:SetPoint("BOTTOMRIGHT");


By adding the two hyphens at the start of both of those lines it will prevent SpartanUI from altering the bottom right corner of the viewport. Save the modified file, and reload your UI or logout/login.
Last updated by dargen
shayotan
Posted 03:21PM, Sunday, March 21, 2010 (1 year, 10 months ago)
#5
right on... so i made those changes and it took so that rocks but... as soon as i look at the World Map it resets the Viewport again. i am not running any map mods. so maybe there is another line in the lua for the map?
dargen
Posted 03:32PM, Sunday, March 21, 2010 (1 year, 10 months ago)
#6
Yes, there's one more line in the same file that needs to be changed as follows:

Change line 48 from this:
		hooksecurefunc(UIParent,"Hide",function() WorldFrame:SetPoint("BOTTOMRIGHT"); end);


to this:
--		hooksecurefunc(UIParent,"Hide",function() WorldFrame:SetPoint("BOTTOMRIGHT"); end);

shayotan
Posted 05:24PM, Sunday, March 21, 2010 (1 year, 10 months ago)
#7
awesome thank you
dargen
Posted 02:11PM, Tuesday, March 23, 2010 (1 year, 10 months ago)
#8
With version 3.301 of CT_Viewport you should no longer need to make those changes.

Quick Reply

You cannot reply to this topic. Try logging in first.