Azeroth Pilot Reloaded

Azeroth Pilot Reloaded

2M Downloads

[ISSUE] - APR is failing to load properly without Route Recorder installed

misosoup7 opened this issue · 3 comments

commented

Description

If you don't have Route Recorder installed, then APR fails with this error once updated to the latest versions:

Error occured in: Global Count: 14 Message: Interface/AddOns/APR/APR-Core/QuestHandler.lua line 139: attempt to index global 'AprRCData' (a nil value) Debug: [C]: ? [Interface/AddOns/APR/APR-Core/QuestHandler.lua]:139: in function 'UpdateStep' [Interface/AddOns/APR/APR-Core/QuestHandler.lua]:1071: in function 'func' [Interface/AddOns/APR/APR-Core/QuestHandler.lua]:1081: Interface/AddOns/APR/APR-Core/QuestHandler.lua:1060

AprRCData isn't defined in APR-Core and only shows up in Azeroth Pilot Reloaded - Route Recorder. What's interesting is that once you install Route Recorder, even if you disable it, APR loads fine...

World of Warcraft Flavor

Retail (Default)

APR Status

{{"Class","Priest"},{"Continent","Khaz Algar"},{"Time & Date","Sat Mar 15 15:56:33 2025"},{"Language","enUS"},{"Name","Lorenovo"},{"Realm","Tichondrius"},{"World Coordinates","-4009.40, -4.00"},{"Level","80"},{"AddOn Version","v4.9.2"},{"Faction","Horde"},{"Coordinates","60.42, 79.73"},{"Client Build","59679"},{"Client Version","11.1.0"},{"Index, Step","49, PickUp"},{"Route","2248-TWW-Lingering-Shadow-Storyline"},{"Zone","The Ringing Deeps"}}

Tested with only APR

  • Yes
  • No

Lua Error

Date: 2025-03-15 15:40:31
ID: -1
Error occured in: Global
Count: 14
Message: Interface/AddOns/APR/APR-Core/QuestHandler.lua line 139:
   attempt to index global 'AprRCData' (a nil value)
Debug:
   [C]: ?
   [Interface/AddOns/APR/APR-Core/QuestHandler.lua]:139: in function 'UpdateStep'
   [Interface/AddOns/APR/APR-Core/QuestHandler.lua]:1071: in function 'func'
   [Interface/AddOns/APR/APR-Core/QuestHandler.lua]:1081:
      Interface/AddOns/APR/APR-Core/QuestHandler.lua:1060
Locals:

AddOns:
  Swatter, v11.x.BETA.4 (TheWarWithBlizzardAPIs)
  ACP, v3.5.14
  APR, vv4.8.7
  AskMrRobot, v152
  AstralKeys, v4.24
  Auctioneer, v11.x.BETA.4 (TheWarWithBlizzardAPIs)
  AuctioneerStatsOverTime, v11.x.BETA.4 (TheWarWithBlizzardAPIs)
  AuctioneerUtilDealFinder, v11.x.BETA.4 (TheWarWithBlizzardAPIs)
  AuctioneerUtilValuer, v11.x.BETA.4 (TheWarWithBlizzardAPIs)
  BagBrother, v
  Bagnon, v11.1.7
  Clique, vv4.1.0-release
  CrossGambling, vv4
  DBMCore, v11.1.9
  DBMStatusBarTimers, v11.1.9
  DBMVPVEM, vdd4a319
  Decursive, v2.7.25
  DeModal, v0.8.4
  Details, v#Details.20250311.13444.162
  DetailsCompare2, v
  DetailsElitism, vv2.15.1
  DetailsEncounterDetails, v
  DetailsRaidCheck, v
  DetailsStreamer, v
  DetailsTinyThreat, v
  DetailsVanguard, v
  Dominos, v11.1.1
  DominosCast, v
  DominosProgress, v
  DominosRoll, v
  GatherMate2, v1.50.3.1
  Grid2, v2.8.75
  Grid2LDB, v2.8.75
  Grid2RaidDebuffs, v2.8.75
  HandyNotes, vv1.6.22
  HandyNotesBattleForAzeroth, v115
  HandyNotesBattleForAzerothTreasures, vv34
  HandyNotesBrokenShore, vv1.52
  HandyNotesBurningCrusade, vv9
  HandyNotesDraenor, v4.5
  HandyNotesDragonflight, v115
  HandyNotesDragonflightTreasures, vv66
  HandyNotesDungeonLocations, v2.7.9
  HandyNotesShadowlands, v116
  HandyNotesShadowlandsTreasures, vv86
  HandyNotesTheWarWithin, v116
  HandyNotesTreasureHunter, vv38
  Informant, v11.x.BETA.4 (TheWarWithBlizzardAPIs)
  InstanceAchievementTracker, v5.20.0
  LibSharedMedia30, v3.0-156
  Mapster, v1.12.4
  MyMacros, v25.03.13
  MythicDungeonTools, v5.3.6
  OmniCC, v11.0.7
  OPie, vÅnd 4
  OribosExchange, v1.1.20250314
  Pawn, v2.10.11
  PitBull4, vv4.2.41
  Plater, vPlater-v603-Retail
  Postal, vv4.2.5
  Prat30, v3.9.65
  RaiderIO, v11.1.0 (v202503150600)
  RaiderIODBUSF, v11.1.0 (v202503150600)
  RaiderIODBUSM, v11.1.0 (v202503150600)
  RaiderIODBUSR, v11.1.0 (v202503150600)
  Rarity, v1.0 (r741-release)
  sct, v11.0_2
  sctd, v11.0_2
  SharedMediaCausese, v
  Simulationcraft, v11.1.0-02
  SlideBar, v11.x.BETA.4 (TheWarWithBlizzardAPIs)
  Stubby, v11.x.BETA.4 (TheWarWithBlizzardAPIs)
  WeakAuras, v5.19.5
  BlizRuntimeLib v11.1.0.59679(US) <enUS>
  (ck=863)

Reproduction Steps

  1. Have only APR installed
  2. Update from 4.9.0 to 4.9.2
  3. Open game and get error where there is no next step in the main frame.
  4. Install Route Recorder and the problem disappears.

Screenshots

No response

Any additional information?

Once it loads with Route Recorder, even if you disable Route Recorder, the addon loads fine after the fact.

commented

I agree, the or should stop evaluating as soon as you get a true. I wonder
if the first one somehow got stuck on false somehow... I think I will look
through the swatter logs to see when the first instance of the issue
happened. Maybe something else triggered it just installing route recorder
fixed it somehow.

I found out what's happening. If a translation is missing in the locale files, it doesn't find the corresponding value for the ExtraLineText key. So, it falls into the second condition to check if it's present in the custom translations of the Route Recorder

I made a Python script to parse the files and check for errors like this. And indeed, there's an issue with the route you're using .. we're missing some translations on our side, and we didn't add it on CurseForge, which is causing the bug.

So, I'll fix it to prevent the error if you don't have AprRc and add the missing translations if I can find the recorded file on our Discord (otherwise, RIP the bonus indications xD)

commented

Weird, you should have passed through the first condition and therefore not had a check on this variable.
I'll add a verification to prevent this error, but I'll also take a look the route to see if there’s an error in the route step.
Thanks for reporting the bug!

The fix will be available in version 4.9.3.

commented