[v1.7.0+] Addon Versions in Character Sheet
Posted: Sun Jul 14, 2024 6:31 pm
Now, this one is probably so insignificant as to be pointless, but you know me…
So, apparently the code that generates JSON character sheet data for your character and sends it to the online vault predates support for addon version numbers, because the version number that you'll see next to each addon name in your online character sheets is just the addon's minimum supported module version, which may or may not be particularly useful in this context.
Well, modifying the JSON on the way out to the server is easy enough (it's not like I haven't done it before, after all
), so I whipped up a quickie addon, Addon Versions in Character Sheet, to modify the addons list in the character sheet. For each addon in the list, if the addon defines both an addon version and a minimum supported module version, we modify its list entry to include both, with the latter in parentheses. I'll try to have an example in the Steam page image by the time you see this.
[And this could easily go into ZOmnibus and ZOmnibus Lite, but it seems like it would be a matter of taste. I'm actually almost inclined to categorize it as a bugfix addon.]
[Implementation notes:]


Well, modifying the JSON on the way out to the server is easy enough (it's not like I haven't done it before, after all

[And this could easily go into ZOmnibus and ZOmnibus Lite, but it seems like it would be a matter of taste. I'm actually almost inclined to categorize it as a bugfix addon.]
[Implementation notes:]
Code: Select all
Hooks:
ToME:PlayerDumpJSON [to add addon versions to listed addons]