Skip to content
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

Parse Spells #152

Merged
merged 31 commits into from
Jun 20, 2022
Merged

Parse Spells #152

merged 31 commits into from
Jun 20, 2022

Conversation

mgeitz
Copy link
Owner

@mgeitz mgeitz commented May 25, 2022

This brings the config.json file into very questionable length territory - my current config is already 2,156 lines long and this feature apparently adds 8,076 x 3 line types to that. The x3 is to account for the different sources or targets: you/you, you/other, other/other, I think you/you captures other/you here. This would amount to an additional 121,140 lines to the config.json with default line_type settings.

Future me update: classic spells in spells_us.txt have ~1700 unique lines to match against. The final update to the config added 8286 lines for spell output, this count was kept down mostly by filtering for classic spells.

Should the configuration for line alert be restructured into different files or directories?

Or is ctrl+f in one absurdly huge config file all thats needed?

I'm going to try splitting it up, this will also save character data from config changes, I don't think there's any other char data worth collecting to add to it.

  1. Restructure config.json
  2. Utility script to convert spells_us.txt to something marginally more useful
  3. Add versioned spell timer data
  4. Parse spell text (1477 spells)
    • Broadly pair common lines
    • Create new default config
    • Set default config values
  • Small fixes

spells

Resolves #149
Resolves #157
Resolves #158
Resolves #52 (I think this could have been resolved ages ago)
Partially resolves #85 (step 2)

- Small /introduce parser fix too, there's an extra space in there
@mgeitz mgeitz added the wip label May 25, 2022
@mgeitz mgeitz force-pushed the feature/abra-kadabra branch from 8e9a1f1 to 1a9bc2f Compare June 11, 2022 03:27
mgeitz added 3 commits June 10, 2022 23:29
- Useful for creating spell text matches, probably going to ignore
everything under other but wanted to ensure this util script would
default to take everything from the txt file
- Cut down spells_us.json generation to just the essentials by default.  Otherwise
its nearly a half-million mostly not useful lines.  Uncomment
accordingly for any other needs.
- Keeping seconds to work with here, not ticks
- Re-order config into separate files
- One caveat with this, the list of line alerts in settings tab is
unordered
- Renames a few paths in settings.json
- Adds path to locate spells_us.txt
- Generate data/spell-timers.json from spells_us.txt
@mgeitz mgeitz force-pushed the feature/abra-kadabra branch from 1a9bc2f to a8f502e Compare June 11, 2022 03:30
- version the spells_us file generation because I don't know if more
needs to be added to it
- /say parser what context, report context
- prepare for the grind
@mgeitz mgeitz force-pushed the feature/abra-kadabra branch from 0c53aed to eccd448 Compare June 12, 2022 22:41
mgeitz added 20 commits June 13, 2022 17:35
- Fixed add_type issue
- Finished 'a' spells
- finished 'b' spells
- About 10% through the spell text matching.  Planning to do another
pass to generalize the returns on shared spell text, for now the first
spell match I wrote for that text is returned
- All spells starting with c and d
- Check spell specific is way too big and definitely will need to be
split up
- Such a mess of elif my linter hits a recursion error
- I feel irresponsible putting this many elif statements into the world
- When I started this I knew there was a lot of spell text, but this is
a _lot_ of spell text
Next up:
  - Remove duplicates
  - Correct returns for all matches associated to multiple spells
  - Organize matches to group broad similarities to cut down on
undetermined checks (starts with you, starts with your, etc)
  - Add config entries
  - Set default config values covering typical raid
alerts
  - Increment version
@mgeitz mgeitz removed the wip label Jun 20, 2022
@mgeitz mgeitz merged commit 16acc4a into master Jun 20, 2022
@mgeitz mgeitz deleted the feature/abra-kadabra branch June 20, 2022 21:34
@mgeitz mgeitz mentioned this pull request Jun 20, 2022
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.

Config Directory Spells to JSON Parse Spells Timers Global
1 participant