[v1.7.0+] Addon Versions in Character Sheet

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Zizzo
Sher'Tul Godslayer
Posts: 2521
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

[v1.7.0+] Addon Versions in Character Sheet

#1 Post by Zizzo »

Now, this one is probably so insignificant as to be pointless, but you know me… :oops: :wink: 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 :wink: ), 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:]

Code: Select all

Hooks:
  ToME:​PlayerDumpJSON [to add addon versions to listed addons]
"Blessed are the yeeks, for they shall inherit Arda..."

Post Reply