I recently converted to nQuestLog from QuestGuru, but I got used to having an objProgress sound as well, so I set out to add that option to nQuestLog (also added the auction window closing sound to objDoneSounds successfully).
I've hit a snag..
I've gotten the menus to show up and added the sounds, but the problem is when I try to toggle the sounds they won't toggle- as in the checkmark stays in the box.
When I try to toggle, these errors spit out:
[2008/11/07 12:53:59-246-x4]: ...ns\nQuestLog\modules\Notifications\Notifications.lua:145: attempt to perform arithmetic on field '?' (a nil value):
...ns\nQuestLog\modules\Notifications\Notifications.lua:179: in function `setFunc':
Waterfall-1.0-90125 (BigWigs):2514: in function `ToggleChecked'
Waterfall-1.0-90125 (BigWigs):2421: in function <...\AddOns\BigWigs\Libs\Waterfall-1.0\Waterfall-1.0.lua:2418>
[2008/11/07 12:54:01-246-x3]: ...ns\nQuestLog\modules\Notifications\Notifications.lua:142: attempt to perform arithmetic on field '?' (a nil value):
...ns\nQuestLog\modules\Notifications\Notifications.lua:179: in function `setFunc':
Waterfall-1.0-90125 (BigWigs):2514: in function `ToggleChecked'
Waterfall-1.0-90125 (BigWigs):2421: in function <...\AddOns\BigWigs\Libs\Waterfall-1.0\Waterfall-1.0.lua:2418>
I'm wondering if it could be this portion of the code:
--soundType must be "obj" or "quest"
function Notification:NotifySound(soundType)
local args = self.core.mainMenu.args["Notifications"].args.sound.args[soundType.."Done"].args
local x, v, sounds = #(args), self.db.profile[soundType.."DoneSound"], {}
while ( v > 0 ) do
if ( v >= 2^x ) then
tinsert(sounds, x)
v = v - 2^x
end
x = x - 1
end
PlaySoundFile(args[sounds[math.random(1, #(sounds))] + 1].path)
end
It allows for soundtype.."Done" and soundtype.. "DoneSound" but not Progress/ProgressSound, or is this to get the sound to play during actual questing?
Attached is a zip containing my Notifications.lua and enUS.lua from the Notifications module folder, and a screenie of the config dialogue- these are the only 2 files I'ved touched, and I'm attempting this off of the r231 version.
I've hit a snag..
I've gotten the menus to show up and added the sounds, but the problem is when I try to toggle the sounds they won't toggle- as in the checkmark stays in the box.
When I try to toggle, these errors spit out:
I'm wondering if it could be this portion of the code:
It allows for soundtype.."Done" and soundtype.. "DoneSound" but not Progress/ProgressSound, or is this to get the sound to play during actual questing?
Attached is a zip containing my Notifications.lua and enUS.lua from the Notifications module folder, and a screenie of the config dialogue- these are the only 2 files I'ved touched, and I'm attempting this off of the r231 version.
Any help is appreciated. :)