ZoopOTheGoop / ffxiv-crafting-solver

A lot of abstract math done on reinforcement learning just to solve crafting in a video game
Other
0 stars 0 forks source link

Add useful Display implementations #9

Open ZoopOTheGoop opened 2 years ago

ZoopOTheGoop commented 2 years ago

CraftingState and StateDelta could probably use some helpful display output, since reading Debug is annoying.

A quick mockup of what we might want for CraftingState:

Progress [          ] 0/1000
Quality   [=====     ] 500/1000 
CP 500/550
Durability 50/75
[5 Inner Quiet] [3 Innovation]

General theme: mimic a lite version of the crafting interface in text, not need for fancy tui libraries. Progress bars are in 10 chunks representing 1/10th of the craft. Calculating QualityMap and also showing that may be good, but is optional. Arguable whether this should also display the contents of the CraftingSimulator, of if that should be standalone.

Only active buffs should be displayed.

For StateDelta, it probably makes sense to simply display any values that deviate from the default (i.e. anything that would actually have a tangible effect on the state). Handling buffs is unclear since a deactivated buff is indistinguishable from an already inactive buff in the Delta format. A StateDeltaDisplayer that takes a state and a corresponding StateDelta that can show the actual difference is one idea.