Changes
- Added support for Sweden nation.
- Removed reliance on Wargaming updating their API for Clan Tools to support newly added tanks (or tanks turned to HD).
Also, Friday morning I finished setting up the second server. However, there was a small but noticeable increase in latency (the actual delay appears to vary based on the size of the data returned). This is the expected result, due to the database connection now being remote which adds network latency, plus the (temporal) cost of encryption for that connection.
As such, given that the current server--once I fixed the backend scheduler clobbering it--appears to be more than capable of supporting the current load, I see no reason to degrade performance just because.
Due to reports of Imgur being compromised (which I used to host the images on the site, for the features/help sections), I've temporarily disabled images. I think I will host them on the Clan Tools server to avoid future issues such as this.
There are several new code type options, two of the most interesting ones are designed to address the same request from clans in two different ways.
This, as the name suggests, make all valid codes of that Code Type available to be seen by all clan members by visiting a specific page on Clan Tools. You can get to this page from the Attendance page (Clan Home > Attendance > Valid Public Codes) or Code page (Clan Home > Codes > Valid Public Codes).
Available on the Code Settings tab.
This setting on the other hand allows having auto-creation of codes beyond the current day, up to 7 days. This makes it easy to copy a week's worth of codes for listing someplace else.
Available on the Code Settings tab.
The above three settings are available on the Advanced Settings tab.
Because WG doesn't remember a user's IR data when they leave their clan, and Clan Tools does, a negative value would be reported whenever a player left a clan then rejoined it. Clan Tools now checks the player's join date to detect when this has occured and record the correct delta.
Existing negative IR has also been corrected. If you notice any issues, please contact me: https://clantools.us/contact
Another issue was also fixed, which was Clan Tools for any new member would ignore any IR gained in the first day with the clan.
To be clear, this has no real impact. The interface is a bit cleaner in a few places (known available, which was often zero, is gone and any display of in garage is gone). Tank Locking data will still work as per usual.
As to why? It was unused. In large part because Wargaming requiring an API token from the individual player to access in garage data, every player in a clan would need to provide an API token to Clan Tools. Possible, but it hadn't happened yet.
I've also optimized the clan refreshing method to require one less API request per a clan and reduce the amount of data transmitted.
Intermittent timeout errors was an issue that would spring up every once in a while and didn't make much sense to me when I had looked into it previously. However, I recently had a realization and I believe I've fixed the issue, which appeared to be caused by requests that got stuck waiting due to high server load.
On the topic of server load, I've also reduced the maximum number of simulations requests which can be served. This may seem to be a negative, however I suspect that the grinding to a halt of the entire site encountered a few sundays prior was caused by very high server load which pushed memory usage beyond the amount of available RAM and into the swap file (which slowed everything down). My monitoring indicates that most of the instances were rarely used anyway, so I don't expect this to be noticeable the vast majority of the time either way.
Feedback on this is welcome though; do you notice a change during times of high load?
You can also change the part of the URL that says tz=et to any of the following, or a whole number representing the timezone offset:
Finally, for clans from other servers, where it says provider=na, change NA to EU, RU, ASIA, or KR respectively.
Also, if you are already using the slack integration and your URL starts with https://clantools.us, please change that to https://sv.clantools.us
Clan Wars 1.0 is effectively no more with the NA server being the last to freeze the 1.0 map.
With this in mind, the following changes have been made:
CW1.0 settings in Payouts will remain for some time; however, they too will eventually be removed.
Note: All of these changes only apply to the new method of granting/revoking codes, via the Members list on the Clan Home, Clan Members, or Clan Attendance pages, or via the Grant/Revoke button on the Clan Attendance page.
All groups with Grant or Grant (Advanced) permissions have automatically been granted this new permission.
Two new filtering options have been added, both set by default, to cut down on clutter.
If the code is listed as N/A (and you don't for whatever reason have N, A, and / as code options), then the given Code doesn't have a 'code' that can be used to refer to that code. Otherwise, the Code has a code. Generally there are two reasons a Code won't have a code:
The system creates codes for various reasons; granting linked codes, granting codes from replays, etc... Whenever a code is needed by the system and doesn't need to be submittable (as in, doesn't need a code that users can enter), it is created as system created.
Keep in mind, this doesn't refer to codes automatically created daily. Codes that are "system created" can never be entered.
In either of the above cases, generally, you don't care about seeing those codes, so now they are hidden by default.