86 - Add support for missing zones
A route created for Darkmoon Island doesn't work. I can edit it but it doesn't show the route on the minimap.
To fix this I added the following line after Routes.LZName is populated by the for loops:
Routes.LZName["Darkmoon Island"] = {"DarkmoonFaireIsland", 823, -1, 0}
I made a route for the Brood of Alysrazor achievement using the TomTom waypoints from http://www.wowhead.com/achievement=9252
Routes doen't have any slash commands to populate a route so I used the code below after manually creating a dummy route with the achievement name in the Darkmoon Island zone.
local myroute = Routes.db.global.routes["DarkmoonFaireIsland"]["Brood of Alysrazor"].route table.wipe(myroute) local function routeadd (posX, posY) tinsert( myroute, floor(posX * 100 + 0.5) * 10000 + floor(posY * 100 + 0.5) ) end routeadd(45, 69) routeadd(45, 67) routeadd(45, 65) routeadd(45, 62) routeadd(42, 55) routeadd(48, 49) routeadd(51, 43) routeadd(48, 37) routeadd(47, 41) routeadd(45, 38) routeadd(44, 36) routeadd(42, 34) routeadd(41, 43) routeadd(32, 40) routeadd(28, 35) routeadd(22, 32) routeadd(19, 37) routeadd(29, 44) routeadd(29, 51) routeadd(31, 60) routeadd(25, 65) routeadd(27, 67) routeadd(31, 66) routeadd(39, 67) routeadd(35, 72) routeadd(33, 81) routeadd(39, 75) routeadd(44, 78) routeadd(42, 87) routeadd(47, 88) routeadd(54, 87) routeadd(57, 85) routeadd(64, 91) routeadd(65, 84) routeadd(63, 77) routeadd(67, 76) routeadd(67, 80) routeadd(70, 79) routeadd(71, 72) routeadd(75, 68) routeadd(70, 66) routeadd(66, 65) routeadd(71, 59) routeadd(69, 51) routeadd(61, 53) routeadd(63, 44) routeadd(61, 40) routeadd(59, 33) routeadd(54, 45) routeadd(55, 50) routeadd(50, 55) routeadd(55, 58) routeadd(57, 64) routeadd(57, 70) routeadd(52, 72) routeadd(52, 77)
| User | When | Change |
|---|---|---|
| joevt | Nov 03, 2014 at 08:04 UTC | Create |
- 1 comment
- 1 comment
- Reply
- #1
joevt Nov 05, 2014 at 02:32 UTC - 0 likesThe new Routes.LZName line was added to Routes.lua at line 237 (just before the comments for function Routes:getID(x, y)
Before modifying the Darkmoon Fair route, make sure it exists using this slash command:
If "/dump ..." doesn't work then try "/print ...". If /print doesn't work then try "/run print('...')" If it says nil then maybe you used different names or didn't set the Darkmoon Island zone for the route. In that case try dumping Routes.db.global.routes
A new route will have 3 points. The table.wipe(myroute) line will clear it. The routedd lines will add the new points using the routeadd function which needs to be defined first.
If you don't have an addon to execute lua, you can use Paste but you need to add /run to each line and remove the locals and put the function on one line like this: