Thread: Infamy Bug
View Single Post
03/04/15, 09:06 PM   #4
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by merlight View Post
Can you test with http://www.esoui.com/downloads/info7...cterSheet.html 1.4 please? I added a line at the end that should prevent this, but I don't want to become infamous for testing it
Yes that does stop the bug, although it should be (in player activation):
Lua Code:
  1. HUD_INFAMY_METER.oldInfamy = HUD_INFAMY_METER.infamy or 0
  2. -- instead of:
  3. -- HUD_INFAMY_METER.oldInfamy = HUD_INFAMY_METER.oldInfamy or 0

EDIT:
If you want to run it when the code file is loaded, might as well just make it:
HUD_INFAMY_METER.oldInfamy = 0

Because HUD_INFAMY_METER.infamy is not initialized that early (so you can't copy it then) and HUD_INFAMY_METER.oldInfamy is always nil when they reload the UI (thats the problem thats causing the error) so

Lua Code:
  1. HUD_INFAMY_METER.oldInfamy = HUD_INFAMY_METER.oldInfamy or 0
  2.  
  3. -- Is always going to be this anyhow:
  4. HUD_INFAMY_METER.oldInfamy = 0

But yes setting it to 0 does prevent the error. Although unless you initialize oldInfamy to infamy it will prevent the center screen message & sound from playing if their infamy level changes on the first update tick, before they open the UI, because the oldInfamy was not set to the current infamy...although that would be a rare case & I doubt anyone would even notice.


Just fyi unless you murder someone or get caught a lot and rack up a lot of infamy it goes away pretty quickly. Its not permanent. Even then you can pay to make it go away or if you die it goes away...or at least it did when I played with it on PTS. Haven't tested the dying on the live servers.

Last edited by circonian : 03/04/15 at 10:15 PM.
  Reply With Quote