Total RP 3

Total RP 3

4M Downloads

Cannot load addon on fresh install - attempt to index field 'loc' (a nil value)

kynodoxia opened this issue ยท 3 comments

commented

Describe the issue

As title. Minimal other addon interaction, disabled MRP, Plater, Prat, and Kui just to be safe.

image

Expected behaviour

The addon to work. :P More specifically, 'loc' is passing in as null, where it should be set to the locality of my game client.

Issue checklist

Please select any applicable options from the below list.

You can replace the "[ ]" with "[x]" for each option below to tick it.

  • The issue occurs with the latest version of the addon.
  • The issue occurs with Total RP 3 as the only enabled addon.
  • The issue occurs only with other addon(s) enabled (please provide a list). (See above, have tested with those as well.)

image

Steps to reproduce

  1. Log in after freshly installing TRP3 through Curseforge on a fresh install of WoW (have only been playing for a day or two after many years away).
  2. It happens. Swear I'm not trying to be difficult, I do this for a living too, but... it just kind of happens.

Additional files

See above. Thank you.
The line referenced (Locale.lua:11) is shown below.

image


commented

The only way I can see this happening is if there's other errors preventing (or perhaps indicating) that our default locale isn't loading at all. This may just be a case of the CurseForge app screwing up again and not installing files correctly.

Can you confirm that enUS.lua exists in the same directory as Locale.lua and has the following near the end of the file?

TRP3_API.loc = TRP3_API.Ellyb.Localization(L);

Additionally, confirm that the files loaded by Locales.xml matches the following list:

<Include file="enUS.lua"/>
<Include file="deDE.lua"/>
<Include file="esES.lua"/>
<Include file="esMX.lua"/>
<Include file="frFR.lua"/>
<Include file="itIT.lua"/>
<Include file="koKR.lua"/>
<Include file="ptBR.lua"/>
<Include file="ruRU.lua"/>
<Include file="zhCN.lua"/>
<Include file="zhTW.lua"/>
<Include file="Locale.lua"/>

commented

Yeah, here you go. Let's confirm the file exists first:

image

Here's the Locale.lua with the correct line at the end of the file:
image

And then we'll look at the Locales.xml:

image

I had assumed it was a Curseforge issue, but it's hard to say.

commented

Try deleting the totalRP3 folders from _retail_/Interface/AddOns and reinstalling the addon from the client, perhaps something else is screwing up? As far as we can see, this issue shouldn't be possible if everything is properly installed.