Ravenous Mounts

Ravenous Mounts

40k Downloads

Broken `/ravm config`

Soromeister opened this issue · 3 comments

commented

Expected behaviour

Executing /ravm config should show up the config options

Actual behaviour

Executing /ravm config throws LUA Error:

1x ravMounts/functions.lua:197: attempt to index global 'RAV' (a nil value)
[string "@ravMounts/functions.lua"]:197: in function `SetDefaultSettings'
[string "@ravMounts/core.lua"]:25: in function <ravMounts/core.lua:23>

Locals:
self = <table> {
 EnsureMacro = <function> defined @ravMounts/functions.lua:541
 color = "9eb8c9"
 data = <table> {
 }
 PrettyPrint = <function> defined @ravMounts/functions.lua:183
 command = "ravm"
 L = <table> {
 }
 MountListHandler = <function> defined @ravMounts/functions.lua:235
 notes = "Summons optimal mounts based on your Mount Journal Favorites.|n|n|cffbbbbbbSlash command: /ravm|r"
 SetDefaultSettings = <function> defined @ravMounts/functions.lua:188
 CreateSettingsPanel = <function> defined @ravMounts/options.lua:49
 SendVersionUpdate = <function> defined @ravMounts/functions.lua:219
 MountIdentifier = <function> defined @ravMounts/functions.lua:699
 OpenSettings = <function> defined @ravMounts/functions.lua:213
 AttachTooltipLabels = <function> defined @ravMounts/functions.lua:669
 name = "Ravenous Mounts"
 version = "2.11.1"
 CreateOpenSettingsButton = <function> defined @ravMounts/options.lua:27
 PrettyMessage = <function> defined @ravMounts/functions.lua:178
 title = "Ravenous |cff9eb8c9Mounts|r"
 MountUpHandler = <function> defined @ravMounts/functions.lua:432
 IsFlyableArea = <function> defined @ravMounts/LibFlyable.lua:99
}
(*temporary) = nil
(*temporary) = <table> {
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index global 'RAV' (a nil value)"
defaults = <table> {
 passengerMounts = true
 normalSwimmingMounts = false
 vendorMounts = true
 preferDragonRiding = true
 macro = true
 vendorMountModifier = 4
 normalMounts = true
 passengerMountModifier = 3
 clone = 4
 normalMountModifier = 2
 zoneSpecificMounts = true
 travelForm = true
 flexMounts = 2
 swimmingMounts = true
}
RegisterDefaultOption = <function> defined @ravMounts/functions.lua:37
ns = <table> {
 EnsureMacro = <function> defined @ravMounts/functions.lua:541
 color = "9eb8c9"
 data = <table> {
 }
 PrettyPrint = <function> defined @ravMounts/functions.lua:183
 command = "ravm"
 L = <table> {
 }
 MountListHandler = <function> defined @ravMounts/functions.lua:235
 notes = "Summons optimal mounts based on your Mount Journal Favorites.|n|n|cffbbbbbbSlash command: /ravm|r"
 SetDefaultSettings = <function> defined @ravMounts/functions.lua:188
 CreateSettingsPanel = <function> defined @ravMounts/options.lua:49
 SendVersionUpdate = <function> defined @ravMounts/functions.lua:219
 MountIdentifier = <function> defined @ravMounts/functions.lua:699
 OpenSettings = <function> defined @ravMounts/functions.lua:213
 AttachTooltipLabels = <function> defined @ravMounts/functions.lua:669
 name = "Ravenous Mounts"
 version = "2.11.1"
 CreateOpenSettingsButton = <function> defined @ravMounts/options.lua:27
 PrettyMessage = <function> defined @ravMounts/functions.lua:178
 title = "Ravenous |cff9eb8c9Mounts|r"
 MountUpHandler = <function> defined @ravMounts/functions.lua:432
 IsFlyableArea = <function> defined @ravMounts/LibFlyable.lua:99
}
1x ravMounts/functions.lua:215: attempt to index field 'Settings' (a nil value)
[string "@ravMounts/functions.lua"]:215: in function `OpenSettings'
[string "@ravMounts/core.lua"]:107: in function `?'
[string "@FrameXML/ChatFrame.lua"]:5291: in function <FrameXML/ChatFrame.lua:5237>
[string "=[C]"]: in function `ChatEdit_ParseText'
[string "@FrameXML/ChatFrame.lua"]:4948: in function `ChatEdit_SendText'
[string "@FrameXML/ChatFrame.lua"]:4984: in function <FrameXML/ChatFrame.lua:4980>
[string "=[C]"]: in function `ChatEdit_OnEnterPressed'
[string "*ChatFrame.xml:141_OnEnterPressed"]:1: in function <[string "*ChatFrame.xml:141_OnEnterPressed"]:1>

Locals:
self = <table> {
 EnsureMacro = <function> defined @ravMounts/functions.lua:541
 color = "9eb8c9"
 data = <table> {
 }
 PrettyPrint = <function> defined @ravMounts/functions.lua:183
 command = "ravm"
 L = <table> {
 }
 MountListHandler = <function> defined @ravMounts/functions.lua:235
 notes = "Summons optimal mounts based on your Mount Journal Favorites.|n|n|cffbbbbbbSlash command: /ravm|r"
 SetDefaultSettings = <function> defined @ravMounts/functions.lua:188
 CreateSettingsPanel = <function> defined @ravMounts/options.lua:49
 SendVersionUpdate = <function> defined @ravMounts/functions.lua:219
 MountIdentifier = <function> defined @ravMounts/functions.lua:699
 OpenSettings = <function> defined @ravMounts/functions.lua:213
 AttachTooltipLabels = <function> defined @ravMounts/functions.lua:669
 name = "Ravenous Mounts"
 version = "2.11.1"
 CreateOpenSettingsButton = <function> defined @ravMounts/options.lua:27
 PrettyMessage = <function> defined @ravMounts/functions.lua:178
 title = "Ravenous |cff9eb8c9Mounts|r"
 MountUpHandler = <function> defined @ravMounts/functions.lua:432
 IsFlyableArea = <function> defined @ravMounts/LibFlyable.lua:99
}
(*temporary) = <function> defined @SharedXML/Settings/Blizzard_Settings.lua:149
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'Settings' (a nil value)"
ns = <table> {
 EnsureMacro = <function> defined @ravMounts/functions.lua:541
 color = "9eb8c9"
 data = <table> {
 }
 PrettyPrint = <function> defined @ravMounts/functions.lua:183
 command = "ravm"
 L = <table> {
 }
 MountListHandler = <function> defined @ravMounts/functions.lua:235
 notes = "Summons optimal mounts based on your Mount Journal Favorites.|n|n|cffbbbbbbSlash command: /ravm|r"
 SetDefaultSettings = <function> defined @ravMounts/functions.lua:188
 CreateSettingsPanel = <function> defined @ravMounts/options.lua:49
 SendVersionUpdate = <function> defined @ravMounts/functions.lua:219
 MountIdentifier = <function> defined @ravMounts/functions.lua:699
 OpenSettings = <function> defined @ravMounts/functions.lua:213
 AttachTooltipLabels = <function> defined @ravMounts/functions.lua:669
 name = "Ravenous Mounts"
 version = "2.11.1"
 CreateOpenSettingsButton = <function> defined @ravMounts/options.lua:27
 PrettyMessage = <function> defined @ravMounts/functions.lua:178
 title = "Ravenous |cff9eb8c9Mounts|r"
 MountUpHandler = <function> defined @ravMounts/functions.lua:432
 IsFlyableArea = <function> defined @ravMounts/LibFlyable.lua:99
}

Steps to reproduce this behaviour

  1. Have Ravenous Mounts add-on installed
  2. Play with a Druid
  3. Attempt to get the config via /ravm config

@waldenp0nd

commented

Thanks @waldenp0nd. It's now fixed with the latest version.

commented

Running /ravm help also thrown the same LUA error related to the settings.

Using version 2.11.1 of the add-on.

commented

Hey @Soromeister,

Thanks for the bug report and all the detail! 😄

I think I've solved this issue—a stupid typo that I made—and is fixed in the most recent version, 2.11.2. In addition to here on GitHub, it should now be available to download from both CurseForge and WoWInterface.

Let me know if you have any further issues!