42 - Waypoint frame broken on module disable
What steps will reproduce the problem?
1. Open Cartographer configuration options, go to Waypoint module settings.
2. Toggle the enable checkbox, to disable the module.
What is the expected output? What do you see instead?
- The waypoint frame should be removed from the main view, however it remains, fixed in a static state showing the information at moment of disabling.
- LUA error: "Cartographer_Waypoints\Waypoints.lua:875 Library "LibGuild-3.0" not found."
What version of the product are you using?
- Cartographer r2268 w. externals.
Do you have an error log of what happened?
- Unsure how to generate an error log beyond what the console prints to screen, as seen above.
Please provide any additional information below.
- Willing to do further debugging, if anyone can provide a good debugger for WoW/Lua.
| User | When | Change |
|---|---|---|
| AbydosLanti | Tue, 21 Oct 2008 20:44:32 | Changed status from Replied to Fixed |
| AbydosLanti | Tue, 21 Oct 2008 20:44:27 | Changed status from Waiting to Replied |
| AbydosLanti | Tue, 21 Oct 2008 16:26:52 | Changed assigned to from None to AbydosLanti |
| AbydosLanti | Tue, 21 Oct 2008 16:19:09 | Changed status from New to Waiting |
| jmlane1987 | Tue, 21 Oct 2008 01:53:29 | Create |
- 4 comments
- 4 comments
Facts
- Last updated on
- 21 Oct 2008
- Reported on
- 21 Oct 2008
- Status
- Fixed - Developer made requested changes. QA should verify.
- Type
- Defect - A shortcoming, fault, or imperfection
- Priority
- Medium - Normal priority.
- #4
jmlane1987 Tue, 21 Oct 2008 21:19:28Works great now, thanks!
Was the UnregisterAllCallbacks() method depreciated? What benefit is there to using UnregisterAll() as opposed to UnregisterAllCallbacks()?
- #3
AbydosLanti Tue, 21 Oct 2008 20:44:27Ima say this is fixed
- #2
AbydosLanti Tue, 21 Oct 2008 16:18:58This issue should be fixed in the HEAD, please update and test. Thanks for the report!
- #1
jmlane1987 Tue, 21 Oct 2008 02:00:01Looks like the result of a small typo. Possible fix to Cartographer_Waypoints/Waypoints.lua:874:
function Cartographer_Waypoints:OnDisable() - Rock("LibGuild-3.0").UnregisterAllCallbacks(self) + Rock("LibGuild-1.0").UnregisterAllCallbacks(self) -- All hooks, timers and events are automatically disabled waypointFrame:Hide() endThis change generates a new error: "Cartographer_Waypoints\Waypoints.lua:875: attempt to call field 'UnregisterAllCallbacks' (a nil value)".
Not quite sure how to approach this new error. Hopefully someone with a bit more experience with Lua and Cartographer libraries can shed some light on this error.