-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcvars.lua
More file actions
285 lines (272 loc) · 11.7 KB
/
Copy pathcvars.lua
File metadata and controls
285 lines (272 loc) · 11.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
-- TODO. There really should be two sets of CVars: those that are important for the UI to behave correctly and those
-- that are just my preferences.
local addonName, addon = ...
setfenv(1, addon)
--[[--------------------------------------------------------------------------------------------------------------------
wowprogramming.com/docs/cvars
wow.gamepedia.com/Console_variables
wowprogramming.com/utils/xmlbrowser/test/SharedXML/GraphicsQualityLevels.lua
GetDefaultVideoQualityOption("cvar", [, qualityLevel] [, defaultValue] [, isRaid])
wow.gamepedia.com/Console_variables/Complete_list (hopelessly outdated, 4.0.3a)
www.ownedcore.com/forums/world-of-warcraft/world-of-warcraft-bots-programs/wow-memory-editing/496760-cvar-list-build-x86
-19034-tips.html
--]]--------------------------------------------------------------------------------------------------------------------
function addon:setCVars()
_G.assert(not _G.InCombatLockdown())
print("CVars set to non-default values but not listed:")
for _, cVar in _G.pairs(allCVars) do
-- TODO: check if the CVar exists first? Probably unnecessary; causing a Lua error is fine in that case.
if not cVars[cVar] and not otherCVars[cVar] and _G.GetCVar(cVar) ~= _G.GetCVarDefault(cVar) then
print(cVar, _G.GetCVar(cVar))
end
end
print("CVars set to default values explicitly:")
for cVar, value in _G.pairs(cVars) do
if value == _G.GetCVarDefault(cVar) then
print(cVar, value)
end
_G.SetCVar(cVar, value)
end
-- These CVars are set to their default values.
for cVar, _ in _G.ipairs(otherCVars) do
_G.SetCVar(cVar, _G.GetCVarDefault(cVar))
end
end
-- TODO: set these: synchronizeBindings, synchronizeChatFrames, synchronizeConfig, synchronizeMacros,
-- synchronizeSettings. And these: bnWhisperMode, whisperMode?
cVars = {
----------------------------------------------------------------------------------------------------------------------
-- Global CVars; these appear in WTF/Config.wtf ----------------------------------------------------------------------
gxTripleBuffer = "0",
gxFixLag = "1",
gxCursor = "1",
maxFPS = "0",
maxfpsbk = "30",
DesktopGamma = "1",
useUiScale = "0",
hdPlayerModels = "0",
-- "View Distance" drop down -----------------------------------------------------------------------------------------
farclip = "600", -- "Fair" preset
wmoLodDist = "200", -- Don't know what this does. Using "Low" preset
terrainLodDist = "0", -- 0 disables it. Terrain further than terrainLodDist looks fine when terrainTextureLod is 0,
-- but it looks pretty bad when the textures change. 200 seems to be the minumum.
terrainTextureLod = 0, -- 1 makes terrain further than terrainLodDist look REALLY bad; default is 0.
----------------------------------------------------------------------------------------------------------------------
-- "Ground Clutter" drop down ----------------------------------------------------------------------------------------
groundEffectDist = "50", -- "Low" preset
groundEffectDensity = "16",
----------------------------------------------------------------------------------------------------------------------
environmentDetail = "75", -- "Fair" preset for "Environment Detail" drop down.
-- "Particle Density" drop down --------------------------------------------------------------------------------------
particleDensity = "20", -- "Low" preset is 10, "Good" is 50.
weatherDensity = "0", -- "Low" preset.
----------------------------------------------------------------------------------------------------------------------
ssao = "0", -- "SSAO" drop down. Disabled (default).
-- "Shadow Quality" drop down --------------------------------------------------------------------------------------
shadowMode = "3", -- "High" preset.
shadowTextureSize = "1024", -- Default. "Low" and "Fair" preset. Only other option is 2048.
----------------------------------------------------------------------------------------------------------------------
-- "Texture Resolution" drop down ------------------------------------------------------------------------------------
terrainMipLevel = "1", -- Default is 0.
componentTextureLevel = "0", -- 1 (default) or 2 make character textures look ugly. Can't be set to 2 with the GUI.
worldBaseMip = "0", -- Default. Highest texture resolution.
----------------------------------------------------------------------------------------------------------------------
projectedTextures = "1", -- "Projected Textures" drop down. What does this do exacly?
textureFilteringMode = "4", -- 8x Anisotropic
-- "Liquid Detail" drop down -----------------------------------------------------------------------------------------
waterDetail = "1", -- "Fair" preset
reflectionMode = "0", -- "Fair" preset
rippleDetail = "0", -- Not set by "Fair" and "Low"?
----------------------------------------------------------------------------------------------------------------------
sunshafts = "0", -- "Sunshafts" drop down.
refraction = "0", -- Default is 0. Removed from GUI?
SSAOBlur = "0", -- wow.gamepedia.com/CVar_ssaoblur
Sound_NumChannels = "64",
Sound_EnableMusic = "0",
Sound_EnableAmbience = "0",
Sound_EnablePetBattleMusic = "0",
Sound_EnablePetSounds = "0",
Sound_EnableErrorSpeech = "0",
Sound_EnableDSPEffects = "0",
Sound_EnableSoundWhenGameIsInBG = "1",
Sound_MasterVolume = "0.12",
Sound_SFXVolume = "0.16",
Sound_DialogVolume = "0.16",
FootstepSounds = "0",
threatPlaySounds = "0",
repositionfrequency = "0", -- wow.gamepedia.com/CVar_repositionfrequency
screenshotFormat = "jpg", -- Should this support PNG. I don't think it does. Maybe on Macs?
screenshotQuality = "9",
checkAddonVersion = "0",
movieSubtitle = "1",
gxDisableStencil = "1",
groundEffectFade = "7",
ffxGlow = "0",
showfootprintparticles = "0",
graphicsQuality = "1",
engineSurvey = "1", -- What's this? Default is "0"...
DepthBasedOpacity = "0",
OutlineEngineMode = "1",
lightMode = "0",
RAIDsettingsEnabled = "0",
----------------------------------------------------------------------------------------------------------------------
-- Account-wide CVars; these appear in WTF/Account/<AccountName>/config-cache.wtf ------------------------------------
nameplateMotion = "1",
deselectOnClick = "1",
autoDismountFlying = "1",
interactOnLeftClick = "0",
showTargetOfTarget = "0",
spellActivationOverlayOpacity = "0",
reducedLagTolerance = "1",
maxSpellStartRecoveryOffset = "150",
rotateMinimap = "1",
scriptErrors = "1",
screenEdgeFlash = "0",
displayFreeBagSlots = "0",
autoQuestWatch = "0",
profanityFilter = "0",
spamFilter = "0",
chatBubbles = "0",
chatBubblesParty = "0",
removeChatDelay = "1",
guildShowOffline = "0",
guildMemberNotify = "0",
chatStyle = "classic",
wholeChatWindowClickable = "0",
conversationMode = "inline",
showTimestamps = "%H:%M ",
secureAbilityToggle = "0",
UnitNameOwn = "0",
UnitNameEnemyPetName = "1",
UnitNameEnemyPlayerName = "1",
UnitNameEnemyTotemName = "1",
UnitNamePlayerGuild = "0",
UnitNamePlayerPVPTitle = "0",
UnitNameEnemyGuardianName = "1",
UnitNameFriendlyPetName = "0",
UnitNameGuildTitle = "0",
CombatDamageStyle = "1", -- "Base Mode" item from the display mode dropdown ("Floating Combat Text" panel). Default
-- value. The description says that the other value has extremely poor performance.
CombatHealingAbsorbSelf = "0",
enableCombatText = "0",
fctReactives = "0",
fctLowManaHealth = "0",
fctSpellMechanics = "0", -- "Effects" checkbox in the "Floating Combat Text" panel. Default value. "Snared" spam is
-- annoying.
fctSpellMechanicsOther = "0", -- "Show for other players' targets" checkbox. Default value.
playerStatusText = "1",
targetStatusText = "1",
statusTextDisplay = "PERCENT",
showToastWindow = "0",
cameraPitchMoveSpeed = "135",
cameraYawMoveSpeed = "270",
cameraYawSmoothSpeed = "270",
cameraSmoothStyle = "0",
cameraPivot = "0",
cameraDistanceMax = "35",
cameraDistanceMaxFactor = "1",
UberTooltips = "0",
showTutorials = "0",
showNPETutorials = "0",
Outline = "3",
----------------------------------------------------------------------------------------------------------------------
-- Character-specific CVars; these appear in WTF/Account/<AccountName>/<RealmName>/CharacterName>/config-cache.wtf ---
autoLootDefault = "1",
autoSelfCast = "0",
stopAutoAttackOnTargetChange = "0",
displaySpellActivationOverlays = "0",
lossOfControl = "0",
lossOfControlFull = "0",
lossOfControlInterrupt = "0",
lossOfControlSilence = "0",
lossOfControlDisarm = "0",
lossOfControlRoot = "0",
minimapZoom = "3",
lockedWorldMap = "0",
mapFade = "0",
showPartyPets = "0",
showArenaEnemyFrames = "0",
showArenaEnemyCastbar = "0",
showArenaEnemyPets = "0",
consolidateBuffs = "0",
nameplateShowEnemies = "1",
nameplateShowEnemyGuardians = "1", -- Shadow Reflection
nameplateShowEnemyMinus = "0",
nameplateShowFriendlyPets = "0",
nameplateShowFriendlyGuardians = "0",
nameplateShowFriendlyTotems = "0",
ShowClassColorInNameplate = "1",
characterFrameCollapsed = "0",
activeCUFProfile = "Primary",
lastVoidStorageTutorial = "3",
lastGarrisonMissionTutorial = "8",
showVKeyCastbarSpellName = "1",
----------------------------------------------------------------------------------------------------------------------
-- Other CVars; I'm not sure where these would be saved but all of them are set to their default values --------------
ActionButtonUseKeyDown = "1",
shadowCull = "1",
shadowInstancing = "1",
shadowScissor = "1",
Sound_EnableSoftwareHRTF = "0",
Sound_EnableSFX = "1",
Sound_EnableEmoteSounds = "1",
Sound_EnableReverb = "0",
Sound_ListenerAtCharacter = "1",
enableMouseSpeed = "0",
scriptProfile = "0",
--------------------------------------------------------------------------------------------------------------------
-- Removed CVars; I think these were removed, but am not sure --------------------------------------------------------
--Sound_OutputQuality = "2",
--mapQuestDifficulty = "1",
--enterWorld = "1",
--useWeatherShaders = "0",
--mapShadows
}
-- We set these to their default values.
otherCVars = {
----------------------------------------------------------------------------------------------------------------------
-- Global CVars; these appear in WTF/Config.wtf ----------------------------------------------------------------------
Sound_MusicVolume = true,
Sound_AmbienceVolume = true,
ChatMusicVolume = true,
ChatSoundVolume = true,
ChatAmbienceVolume = true,
Gamma = true,
RAIDgraphicsQuality = true,
RAIDsettingsInit = true,
RAIDfarclip = true,
RAIDWaterDetail = true,
RAIDSSAOBlur = true,
RAIDterrainLodDist = true,
RAIDwmoLodDist = true,
RAIDtextureFilteringMode = true,
RAIDprojectedTextures = true,
RAIDenvironmentDetail = true,
RAIDreflectionMode = true,
RAIDrippleDetail = true,
RAIDparticleDensity = true,
RAIDrefraction = true,
RAIDcomponentTextureLevel = true,
RAIDOutlineEngineMode = true,
RAIDparticleMTDensity = true,
RAIDLightMode = true,
RAIDweatherDensity = true,
RAIDDepthBasedOpacity = true,
RAIDgroundEffectDist = true,
RAIDshadowMode = true,
RAIDterrainMipLevel = true,
RAIDgroundEffectDensity = true,
RAIDgroundEffectFade = true,
RAIDshadowTextureSize = true,
RAIDSSAO = true,
RAIDsunShafts = true,
RAIDterrainTextureLod = true,
RAIDworldBaseMip = true,
MSAAAlphaTest = true,
RenderScale = true,
VoiceActivationSensitivity = true,
uiScale = true,
-- Other CVars; I'm not sure where these would appear ----------------------------------------------------------------
mouseSpeed = true,
}
-- vim: tw=120 sts=2 sw=2 et