Wednesday, December 6, 2017

Change Log: 2.58.1104

Color-coded survivors have arrived!
Release 2.58.1104 pushes a bunch of code related to the Alpha Release of The Watcher: in fact, most of what you see in the change log below is directly related to the alpha release, which should be happening...any day now!

This release also includes a the new, subscribers-only feature that lets Survival +5 subscribers color-code their survivors by setting a Survivor Color Scheme from the Campaign Summary view.

Check out the feature demo for that in my last post.

Also, in addition to supporting code for The Watcher and the new color-coding feature, release 2.58.1104 also contains a handful of upgrades/enhancements intended to improve performance.

As I discussed briefly in one of the recent downtime updates, CPU performance is becoming an issue due to the high amounts of traffic we're processing lately (and the large amount of data that goes along with that traffic).

Release 2.58.1104 therefore makes makes a few strategic adjustments to the World daemon, which can be pretty processor-intensive, that should help overall CPU use.

Thanks for using the Manager!

Corrections and Fixes

  1. Fixed a typo that caused the rules for the "Bone Axe" to appear as a list of letters. -ratimir2
  2. Addressed an issue in the API Admin Panel that prevented active users from being highlighted.
  3. Fixed a bug in the legacy app's script that prevented it from getting user OIDs from the API.
  4. Adjusted the exception-capturing code in the legacy webapp's module so that post_JSON_to_route() can attempt to raise an exception including the offending content.
  5. Fixed a bug in the API's where some email addresses, when evaluated by the bson.objectid library, could be coerced to OIDs (and cause user lookups to fail). -M Lang
  6. Addressed a presentation issue where the 'Returning Survivor' bar on the Campaign Summary wasn't positioned correctly at mobile resolution
  7. Fixed a typo that prevented settlement notes from being removed. -Malte

Application Enhancements

  1. Created subscriber-only "Survivor Color Scheme" feature:
    1. Added a picker to the Campaign Summary controls.
    2. Wrote a controller in campaignSummary.js that uses the new API methods for setting a survivor color scheme.
    3. Created four color schemes from the proxy cards (for my single players out there in Manager-land and on /r/kingdomdeath).
    4. Created 10 KD-inspired color schemes based on various things in the KD world.
    5. Updated Survivor Sheet nav bars to reflect the survivor color scheme
  2. Revised the kdmManager.js method for POSTing settlement notes to take advantage of new API defaulting (see below).

API Development

  1. The Admin Panel no longer initializes recent settlements. 
  2. Added a new route /expansion for one-off expansion asset lookups. It works just like /monster or /campaign.
  3. Updated Models.GameAsset.request_response() base class method to be able to dump JSON containing datetime objects (because expansions have release date attributes, unlike all other currently tracked game assets).
  4. Keyed in a handful of new name assets, including settlement names inspired by Grim Dawn.
  5. Models.UserAsset.get_mdb_doc() now fails with a much more descriptive AssetLoadError type exception when it cannot retrieve a user asset.
  6. Updated the World daemon to be less impactful on CPU usage:
    1. now nices the daemon when it starts it.
    2. the daemon now sleeps for 1 second between asset refreshes in order to give a CPU scheduling "break" during the job in case other process are trying to get scheduled.
  7. Configured DNS for and
  8. Enhanced to dump a dictionary to stdout if the method you try to call is just a dictionary.
  9. Created survivor color scheme assets (in and wrote a quick models file for them.
  10. Added survivor color schemes to serialized settlement output.
  11. Created a new method in the Models.AssetCollection class called get_sorted_assets() which returns an OrderedDict version of self.assets that is sorted on asset names.
  12. Created the new models.survivors.Survivor.set_color_scheme() method and the route to it (i.e. /survivor/set_color_scheme/<oid>); wrote the documentation for how to use it.
  13. Survivor weapon proficiency type can now be unset via /survivor/set_weapon_proficiency_type/<oid> using the 'unset' key in the POST body. Updated the docs. -Caleb
  14. Cleaned up the Admin Panel's 'Recent User' display and made some enhancements in so that we don't have to rely on (shitty) JS date calc for user age and latest activity age.
  15. Touched up the docs and did a little presentation/content housekeeping:
    1. Cleaned up the "lookup routes" explainer section and clarified /campaign entry
    2. Added an entry for /expansion
    3. Added an entry for /gear
    4. Bolded GET and POST references in the docs.
    5. Cleaned up the embedded table CSS so that the tables fill their column (and don't have TD overlap issues)
    6. Documented the methods for adding notes to and removing notes from a settlement. -Caleb
  16. Added the BSON library default handling to all of the returns in Models.AssetCollection.request_response() to support lookups for assets with datetimes, etc.
  17. Created defaulting for Lantern Year and author email/login in models.settlements.Settlement.add_settlement_note() to facilitate lazier API calls.
  18. The Settlement class add_settlement_note() method (and the route that goes to it) now return note OID. 

No comments:

Post a Comment