Skip to content

Conversation

@shrugal
Copy link

@shrugal shrugal commented Jan 28, 2026

Description

This is somewhat of a quick-fix for the Midnight changes. Basically all places that caused problems in combat or during M+ dungeons have been wrapped with the new secret value access APIs, and not being able to access values is treated as them being nil or false in most cases.

This does result in some auras starting to become a bit janky when the restrictions kick in (e.g. buffs/debuffs not updating anymore), so I also added an option to unload auras that would cause problems with addon restrictions.

I still get an error message when logging in about calling coroutine.resume and that somehow being prohibited, but I couldn't figure out a solution for this. It doesn't seem to cause any real problems though.

Changes in detail:

  • Update Retail ToC version
  • Wrap places where potentially secret values are read in new secret value access APIs
  • Wrap calls to WeakAuras.GetUnitFrame in pcall, cause the lib behind it can trigger secret value access errors right now
  • Add a load option to load/unload auras based on addon restriction state
  • Replace the Midnight warning on login with one hinting at the new addon restrictions
  • Remove the Midnight force breakage (libsAreOk) and the warning banner at the bottom

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

How Has This Been Tested

  • Using my own auras on Retail, in open world combat and M+ dungeon runs

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

…t value checks, add restricted load condition
@InfusOnWoW
Copy link
Contributor

We have no interest in maintaining that jank.

@InfusOnWoW InfusOnWoW closed this Jan 28, 2026
@shrugal
Copy link
Author

shrugal commented Jan 28, 2026

There's nothing jank about it, it works just fine.

@InfusOnWoW
Copy link
Contributor

Your own words are: "This does result in some auras starting to become a bit janky when the restrictions kick in (e.g. buffs/debuffs not updating anymore), so I also added an option to unload auras that would cause problems with addon restrictions."

And I fully agree with you, that trigger is useless if behaves that way.

@shrugal
Copy link
Author

shrugal commented Jan 28, 2026

You should read the 2nd part, it states that I added a simple solution for that. Auras not quite working correctly when loaded in the wrong circumstances is nothing new. And ofc you could do a better job by e.g. just automatically unloading auras that try to read secret values, but I don't think I understand enough of the overall code to implement that.

And I fully agree with you, that trigger is useless if behaves that way.

I never said anything like that. I have a lot of auras that work absolutely fine with this fix, e.g. custom resource displays and a castbar replacement.

I don't really want to argue with you about this though. If you don't want to merge it then ok, but imo it would restore quite a lot of functionallity that people have grown accustomed to.

@InfusOnWoW
Copy link
Contributor

That solution is pure jank, it requires the user to toggle an setting on a different page, while understanding the internals of WOW's API to figure out whether that trigger works or doesn't. Prediciting whether it works or not is simply impossible for users.

That WA is just a bait for most people, it pretends to work by providing all kind of pratically useless triggers.

There's obviously some functionality of WA that can and still does work, but this is not the way to do that.

@Stanzilla
Copy link
Contributor

Thanks for your PR. And yeah I agree with you and Infus. Yes it would bring certain features back under certain conditions but yes it also is janky and would be very confusing for our users. That's the reason why we did not do these changes ourselves yet and had decided to not maintain WA for Midnight.

@shrugal
Copy link
Author

shrugal commented Jan 28, 2026

Honestly, I'm kinda baffled that you'd rather let the whole thing die than have users toggle a single checkbox for some auras to not stop updating for some time, in an addon that literally requires intimate knowledge of wow events and even lua coding for half its functionallity. But I'll leave you to it, sorry to interrupt. :/

@InfusOnWoW
Copy link
Contributor

Also I should note that WA is open source, you can absolutely fork WA and maintain a midnight compatible version.

If you would do that, we'd ask you to rename it, but otherwise we have zero objections to that.

@shrugal
Copy link
Author

shrugal commented Jan 28, 2026

Hmm ok, I might do that. Ty!

@Stanzilla
Copy link
Contributor

Honestly, I'm kinda baffled that you'd rather let the whole thing die than have users toggle a single checkbox for some auras to not stop updating for some time, in an addon that literally requires intimate knowledge of wow events and even lua coding for half its functionallity. But I'll leave you to it, sorry to interrupt. :/

All good and thanks for your effort again, we just don't want to merge something right now and claim WA is supported for Midnight when we are not really ready to support it and it does not match our expectations.

@shrugal shrugal deleted the main branch January 28, 2026 17:23
@shrugal shrugal restored the main branch January 28, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants