XCOM 2
664 ratings
Lifetime Stats
 
Rate  
Favorite
Favorited
Unfavorite
Tags:  Ui
File Size
Posted
Updated
0.249 MB
Feb 28, 2016 @ 9:45am
Jul 27, 2016 @ 5:46pm
29 Change Notes ( view )

Subscribe to download
Lifetime Stats

Subscribed
Unsubscribe
Description
NOT COMPATIBLE WITH WOTC
For the WotC version, please go here

Tracks and displays the actions and successes of your soldiers throughout their campaign.
Now you can know for sure whether or not your favorite sniper has truely ever missed!

FREQUENTLY ASKED QUESTIONS
Q: Why don't I see the stats panel during combat?
A: The stats panel only shows when you hover your mouse over the Hit% of a shot. You can make it always displayed by editing the INI file.

Q: Why is 'But Probably...' in my shot window? Does this modify my chance to hit?
A: That is a fun way to visualize how lucky this soldier is. It is just a visual change and does not impact actual dice rolls. You can disable it via the INI file.

Q: Why doesn't my Armory stats panel line up right like in your screenshot?
A: Known bug with non 16:9 resolutions. I am looking into it but in the meantime you can offset the window to the right or down by editing the INI file. Suggested panelXOffest=320 for 21:9 (Thanks Dem0nK!)

Q: Can I change what is shown in the tactical/armory stats panel?
A: Yes! You can change which stats get shown and the order for both panels in the INI

Q: Where is this magic INI file you speak of so I can edit all of these things?
A: steamapps\workshop\content\268500\634754304\Config\LifetimeStats.ini

Q: Is Lifetime Stats retroactive? Or do I need to start a new campaign?
A: Unfortunately, I can only track stats after you subscribe with the exception of Kills. If you want true lifetime stats this needs to be enabled from the start of the campaign.

Q: What is Lucky% and how do you compute it?
A: It is how often this soldier beats the RNG. See below for the full algorithm with examples.

VERSION 1.3.0
July 27th
  • Added ability logging so you can see all ability triggers as they occur in the Combat.log file (logAbilities=true in the ini)
    ----
  • Removed ScreenListener restrictions to be compatible with mods that override UITacticalHUD and UIArmory_MainMenu (...Long War Studios)
  • Added Spanish Localization

CURRENT FEATURES
Tracked Data: (can configure order and if they are shown for each panel via INI)
  • Kills - Every kill made by a soldier (not part of mod, already tracked by base game)
  • Shots - Every shot taken by a soldier (includes sword attacks)
  • Hits/Misses - Whether the shot Hit or Missed
  • Hit/Miss Streaks - The current and best Hit and Miss streaks for this soldier
  • Crits - How many shots have Crit
  • Avg Hit % - The average hit chance over all shots taken
  • Avg Crit % - The average crit chance over all shots taken
  • Luck - Luck is computed by comparing Hits to Avg Hit%, see below for more details
  • Tiles Moved - The total number of tiles moved by a soldier
  • Executions - Number of repeater executions
  • Damage - Amount of damage dealt
  • Damage Taken - Amount of damage taken
  • Damage Negated - Amount of damage dealt blocked by armor
  • Damage Absorbed - Amount of damage taken blocked by armor

Tactical Lifetime Stats hover tooltip (or permanent panel via INI tweak)
A new panel has been added to Tactical Combat missions showing all tracked data visible by hovering over the current Hit% of a shot.

Luck Modified ToHit % (can disable in INI)
A new Hit% is now displayed next to the existing Hit% for all shots showing how likely this particular soldier is to hit given the actual hit chance and also their luck.

Armory Stats Screen
A new window located on the soldier screen in the Armory shows the stats of the currently selected soldier

COMPUTED VALUES
Due to popular demand, here are the algorithms I am using to calculate Luck and 'But Probably...'

Luck = Hits / (AverageHit% * Shots) - 1
If this value is less than zero, I show it as positive but 'Unlucky'
Example: AvgHit% = 80, Hits = 10, Shots = 10
Luck = 10 / (10 * 0.80) = 1.25 - 1 = 0.25 or 25% lucky

'But Probably...' = Hit% * (Luck+1)
Example: Hit% = 70%, Luck = 25%
'But Probably...' = 70 * 1.25 = 87.5

PLANNED FEATURES
http://steamcommunity.com/workshop/filedetails/discussion/634754304/412448792349337145/
POSSIBLE FEATURES
http://steamcommunity.com/workshop/filedetails/discussion/634754304/412448792349342862/
DEFAULT SETTING DISCUSSION
http://steamcommunity.com/workshop/filedetails/discussion/634754304/412448792358503724/
BUG REPORTS
http://steamcommunity.com/workshop/filedetails/discussion/634754304/412448792349339624/

KNOWN ISSUES
Resolutions other than 16:9 cause the armory window to display incorrectly. You can manually edit the position of the window in the INI file
as a temporary fix.

COMPATIBILITY
This mod uses UIScreenListeners and events and overrides no classes.
It listens to UITacticalHUD and UIArmory_MainMenu, if a mod overrides these classes there may be issues
I have yet to find an incompatible mod.
Popular Discussions View All (7)
35
Jun 26, 2017 @ 3:17pm
Worlds translations
Stopwars
28
Jan 1 @ 4:21pm
PINNED: Bug Reports
Kosmo
12
Jan 30, 2017 @ 3:27pm
PINNED: Tracking for Custom Classes / INI Tweaks
Kosmo
< >
358 Comments
Solomani May 26 @ 11:47am 
If you have a 21:9 screen... try this in your config:


;Armory Screen
[LifetimeStats.LifetimeStats_Armory_ScreenListener]
;Move the Panel Left/Right (negative/positive)
panelXOffest=329
;Move the Panel Down/Up (negative/positive)
panelYOffset=0




;How big the window will be (then it scrolls to show remaining stats)
armoryWidth=425
armoryHeight=410
macelharen Sep 5, 2017 @ 3:11am 
uhm...i'm getting mission kills listed for 'kills'...anyone else getting this too?
Zyxpsilon Sep 4, 2017 @ 11:39pm 
Thanks.. looking forward to installing it later this week. ;)
Kosmo  [author] Sep 4, 2017 @ 9:40pm 
Added a WotC version: http://steamcommunity.com/sharedfiles/filedetails/?id=1128399324

Please keep in mind I've barely had time to test it. Please be careful using it in any ironman games. It ...should... be fine though.

I did end up having to change more than I thought to get it all working though so let me know if you run into any issues :)
Nigel Thornberry Sep 3, 2017 @ 10:17pm 
@Kosmo
Looking forward to this when its updated. One of my favorites
LikelyARabbit Sep 3, 2017 @ 12:27am 
Also an odd issue with the first reaper mission, not being able to get the objective to get soldiers into the area. Just doesn't appear.
LikelyARabbit Sep 3, 2017 @ 12:02am 
Having an issue with targeting having this mod installed, not really sure what the deal is. Can't target enemies, the small 'barrels' with the Psionic Transmitter mission.
DerpMaster.USA Sep 2, 2017 @ 5:02pm 
IF this was updated to where it doesnt causes any problem id love to use this again, i miss using this in the base before it caused crash problems.
DOX Sep 2, 2017 @ 1:17pm 
Yeh, definately something in this mod breaks scripting in the wotc lost mission, missing objectives, points of interest and cutscenes failing to trigger.
deadmanfrank Sep 1, 2017 @ 5:52pm 
I had the same bug that @untamedwolf