tw-clothcache the script without focus
tw-clothcache, formerly known as duellstat, is an script/add-on/mod/patch (you are free to use any ill-defined word you fancy) for the browsergame 'The West', and adds a number of functions and statistics.
Important links
- The source code can be found on github.
- Here is the installation link for the latest release.
- This is the pain link for the latest development version. Be careful. This link most likely is not for you.
- JS Event debug helper (you don't need that)
- other scripts is a list of formerly explicitly tolerated scripts (tolerated by the german "the west" support). Essentials, Friends, Collections, TWIR, you name it.
- mobile phone?
javascript:document.body.appendChild(document.createElement('script')).src='https://ohse.de/uwe/tw-duellstat/dev/tw-duellstat.user.js'
Yes, that sucks.
The hacks:
"Hacks" i call a number of scripts i wrote to fix some problems not caused by clothcache. Do not install them if you don't need them.
- math-floatceil. Use this if you see "Math[h] is not a function" in the tw-db.info clothcalc script. Alternatively you can put 'Math.floatceil=function(x) {return Math.ceil(100 * x) / 100};' into the clothcalc script. Or, even better, uninstall clothcalc.
- TW-2.232 compat. Use this only if you have really old scripts running and detect problems with the map handling (centering, waytime calculation. Or, even better, update the scripts.
- TW notwork. Use this only if you either see 429 errors in the devloper tools, or if you suspect network problems. notwork drastically reduces the number of parallel API calls to the game servers, which helps to avoid thundering herd problems when using multiple scripts all doing server requests during the startup.
The script might slowdown the initialization of the game, but i neither could feel or measure that.
This is one script i recommend.
These hacks should be loaded before any other scripts. Use tampermonkey for that. Greasemonkey is a pain today.
Releaseinformation:
Improvements to the job window
- Quick access to equipment set (only if you have the higher income premium). The sets have to be named in the settings.
- Use previously calculated equipment for the job. This is a life saver if you are working on a slow computer and have lots and lots of equipment sets. If clothcalc doesn't work for you anymore, then this is your best alternative (and at least one of us used it a long time before clothcalc broke).
- A measure of the amount of damage one injury can do to you.
- A speculation / guess about how much damage can 9 jobs inflict (this is quite conservative). Note that Murphy is still free to make an appearance and knock you out.
- The current job motivation.
- A meter showing the number of motivation points left until you reach 75/50/25/0 motivation (if you reach them, you'll make less money and experience).
Yes, this makes leveling easier.
Quick functions
A click on the energy bar will open a hotel / barrack selection. It can take some time.
A click on the energy bar will open a buff selection.
A click on money in the bank will allow you to deposit your cash. Use it when you are in a town.
Bonusdisplay
The 'Bonus' tab shows what bonus you current equipment given. Yes, this needs a bit of work.
Duels
This is the duel statistic the script was named for.
A click on the name of an opponent will show a list of duels against that one, and a click on the date in that list will open the duell report.
The Import new duels button will cause the script to go through the available duel reports, and imports them in the database. It pauses every 200 duels for two seconds, and every 500 duels for a minute, to avoid the DDOS protection of the server.
The Delete data deletes… oh well. I hope you don't need it.
Duel equipment values
This display shows the values relevant for duels.
If your currently worn equipment is not in the list, you'll see a button to add it. It will have an awful name, but you can changed that (click on the cryptical name). The mouseover on the name
The calculations are done according to Firetouchs Duellguide (thank you). Shown are the values used, not the base values.
- Aiming (here: Zielen)
- Appearance (here: Auftreten)
- Dodging (here: Ausweichen)
- Tactics (Here: Taktik)
- no surprises here. A mouseover on aiming and dodging shows the chances against different dodging/aiming values.
- DmgMod (SchBo)
- The damage modifier, either vigor or shooting, depending on the weapon type.
- MeeleRes (WNah)
- ShotRes (WFern)
- The resistance against the weapon types. Mouseover show the formula.
- Dmg (here: Schaden)
- The average damage done. A mouseover shows more information. Note that the real damage depends on buffs, hit zone, and resistance.
Note: Damage maker beats resistant fighters, they beat dodgers, and they beat damage makers. Most of the time, at least. There is a certain degree of randomness, and a damager maker might have a hard time against a fighter with the right resistance.
Green / red numbers are better than the average number in the same column.
In the line with the fat letters you see kind of classification of the equipment: attacking / defending (or none), aiming / damage / dodging / resistance. fat means very strong, a normal font denotes better than average, strike very weak, and below average traits are not shown. If the equipment resistance is better against melee than shot, or vice versa, this is shown as well.
Bonus display
The latest item sets of the game have many different bonuses, and in addition bonuses to the items. It is no longer easy to find out which bonuses the current equipment gives. The bonus tab of duellstat is intended to help somethat.
Item sets list
The table lists all item sets the game knows about, with few exceptions.
- it does not show most of the personal or friendship sets made for one person alone (these are honor sets, not practically useful).
- The data is updated as soon as the server is updated, so it's quite current.
- year and event name are inferred from the set key (a quite difficult thing not following any scheme). It might be possibly that the year is missing or the event is unknown.
- Your level will be used for level dependent calculations.
- The rounding for attributes and skills does not follow the standard of the game. The number shown is the rounded sum of attributes / skills, not the sum of the rounded attributes / skills. I might change it in the future.
This is important if you include the items in the calculation.
- You can choose/switch between firearm and melee weapons.
- The filters work subtractive: if you filter for dollar and 2017, you will got the dollar bonus sets of 2017, not all dollar bonus sets plus all sets from 2017.
- "Hide many columns" hides the skills and attributes.
- "Download infiltered table" allows you to download the table in CSV format.
Language support
Right now english (100%) and german (30%) are supported.