Thread Tools Display Modes
01-13-10, 12:58 AM   #1
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 680
More Camera Issues....

DCam updated with a new spiffy GUI, but I forgot about an issue. It seems that once DCam is installed and used, it screws up the camera for the entire game, even if disabled and logged back in.

1) It continuously resets to a view upon movement
2) Scroll zooming stops working.

This has been an issue since the first incarnation of the mod. I just haven't been able to figure out the cause and how to fix/work around it.

To save issues for others, I've opted to pastey the code (in it's entirety, mind you) instead of passing out a mod that's breaking things. If you really want to run the risk, I'll give out the file for testing, but hold no responsibility for it. I'm still trying to get mine back to normal without having to delete the config files.

http://pastey.net/131401
  Reply With Quote
01-13-10, 11:06 AM   #2
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 716
Just by looking at it I see that you set the camera distance and mult to non-existing variables at line 39 and 40.
Code:
SetCVar("cameraDistanceMaxFactor", camMult) 
SetCVar("cameraDistanceMax", camMax)
SHOULD be:
Code:
SetCVar("cameraDistanceMaxFactor", DCam_Var.camMult) 
SetCVar("cameraDistanceMax", DCam_Var.camMax)
And I think that the problem you described perfectly fits the situation of a nil cameraDistanceMax.
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
  Reply With Quote
01-13-10, 02:40 PM   #3
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 680
That was it. Thought I learned last time I tried coding while I was tired.

Thanks!
  Reply With Quote
01-13-10, 05:32 PM   #4
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
Try coding when you were about to pass out three hours ago. Good times.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » More Camera Issues....


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off