Skip to content

Mutilate Options.lua Phase 1 #4713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed

Conversation

syrifgit
Copy link
Collaborator

@syrifgit syrifgit commented Apr 8, 2025

Overview

As discussed, begin refactoring Options.lua. Have fun. :) All functions which have been moved have been fully tested

Options\Options.lua

The first stage was to simply move this file into an Options folder

Archive.lua

Pulled out lots of commented code and moved it into here. It can be sifted through and decided upon later. This file is not loaded or called, but I left it as .lua for syntax sake

ChatCommands.lua

Moved my entire chat command handler system to its own file with very few changes

DevTools.lua

This is where we can put more complex dev/debug/troubleshoot features. For now, I have migrated the following out of Options and into here:

  • Hekili:RunStressTest
  • The Skeleton Generator
    • There are still a few loose ends in order to get 100% of the functionality back, but it still gathers and formats talents, auras, abilities and is usable if needed.
    • I will iterate on this later, and push it to be even a little better than it had been previously. I just need to switch to something else for a bit, my brain hurts.
    • The code is also probably a little goofy, I will slim it down
    • screenshot
      We could add other stuff like snapshotting here, potentially. Or atleast chunks of it.

What's next?

Packs.lua or whatever we want to call it

@syrifgit
Copy link
Collaborator Author

syrifgit commented Apr 14, 2025

@Hekili I finished up the skeleton part, it's back to 100% functionality + improvements

  • Better tooltip cleaning, including raw number substitution
  • Better talent sorting
    • Also increased talent ID padding by 1 to make the spacing consistent with the new 7-digit IDs this expansion

Output: https://pastebin.com/SFLNTB6k

@Hekili
Copy link
Owner

Hekili commented Apr 14, 2025

Can we populate texture and recharge (when charges has a value)?

What is populating max_stack? Is that just based on some dummy time? I could read the code, I suppose. :D

@syrifgit
Copy link
Collaborator Author

Can we populate texture and recharge (when charges has a value)?

Sure

What is populating max_stack? Is that just based on some dummy time? I could read the code, I suppose. :D

The highest stack count seen during the generation if I remember right. Continuously updates if higher stack count is detected.

@syrifgit
Copy link
Collaborator Author

syrifgit commented Apr 15, 2025

Done as requested.

New skeleton of aug evoker: https://pastebin.com/aDEcASW6

Added:

  • texture
  • Spend
  • gcd
  • Support for empowered spells
  • Stop it from taking spells from other specs
  • Adding talent lines if the ability requires a talent
  • Adds a blank handler
  • Sorts the fields more closely to what we actually use

@syrifgit syrifgit marked this pull request as draft April 15, 2025 14:59
@syrifgit
Copy link
Collaborator Author

syrifgit commented Apr 15, 2025

Added more goodies to the skeleton: https://pastebin.com/3fw38MdV

Apparently the cheat code is the longer you let the PR sit, the more I will try to clean it up while waiting. 🙃

  • Now supports register options
    • Reasonable defaults
    • injects package name
    • Decides nameplates based on whether or not the spec is ranged
  • RegisterSpec now passes through whether or not its ranged
  • register pack placeholder
  • Even better tooltip cleaning
  • Removed unused table in Constants.lua
    • Converted/ merged with the other spec table, added a field to indicate whether or not a spec is ranged
    • Philosophy is the same as hero trees, generally something we know but not easily determinable with a simple API call in-game, and something that doesn't generally change .. rip Survival hunter
  • Line up naming conventions for stuff better
  • Try and re-use code better

@syrifgit syrifgit marked this pull request as ready for review April 15, 2025 16:42
@syrifgit
Copy link
Collaborator Author

No longer needed, fresh PR up

@syrifgit syrifgit closed this Apr 15, 2025
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.

2 participants