189 ratings
[WOTC] LifetimeStats
File Size
0.229 MB
Sep 4, 2017 @ 9:27pm
Sep 26, 2017 @ 10:01pm
10 Change Notes ( view )

Subscribe to download
[WOTC] LifetimeStats

This is the WOTC version
For the base XCom version, go here
Please note that this version is brand new and may still be buggy! Let me know if you notice any issues

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!

Grenades sometimes do not count for damage stats
May be unable to 'rescue' VIPs in large circles. Fix seems to be working, but still unsure

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\1128399324\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.

September 27th
  • Made the stats panel only show the stats once (firaxis finally fixed their UIPanel issues) for real
  • Changed the way I was detecting if we are currently mid state submit (was preventing valid stats from saving)
  • Stopped LifetimeStats from creating stats while currently submitting states.
  • This should reduce crashes at the cost of not saving stats for units acquired mid mission. Working on better fix.
  • Made LifetimeStats root get initialized via a timer instead of OnInit (fixes Gatecrasher mission failed bug)
  • LifetimeStats now 'modifies' gamestates rather than creates new ones. This should improve memory usage (Under the Avenger)
  • Updated to WotC

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

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


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.

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.

Special Thanks
CarolusIV #Outlaw
Popular Discussions View All (1)
Nov 5, 2017 @ 11:05pm
Chinese translation
< >
Kosmo  [author] May 13 @ 10:42am 
@Def!led, it seems to only occur in conjunction with additional mods. I have found it difficult to recreate.
Def!led May 11 @ 5:39am 
This mod stops the first WoTC missions from working, beware.
大魔王 Feb 23 @ 1:28pm 
That may not matter.
But there ' s really a problem .
大魔王 Feb 23 @ 1:25pm 
I use
Quicker Start
Don't know why the first mission didn't count?
[WOTC] Detailed as Lists
p6kocka Feb 11 @ 1:44pm 
Can the stat panel background transparency be adjusted...? Or disabled?
p6kocka Feb 11 @ 1:42pm 
Yes. Ok. You´ve right. Enabling it pernament solved this problem. Thank you
Kosmo  [author] Feb 11 @ 1:14pm 
It looks like he overrides the shothud -- which makes it difficult for me to do anything about it. You can always set it to be always on in the .ini file if you don't mind it always being there.

That should still work even with both mods enabled.
p6kocka Feb 11 @ 11:04am 
After research your mod is definitely interfering with Extended information mod. Sometimes the stat panel is showinf sometimes not. Could there be a compatibility patch or a way to make those 2 mods compatible ?
p6kocka Feb 11 @ 10:23am 
@Kosmo No. It isn´t working again. Could this mod be incompatible with some mods, maybe UI mods pls?
p6kocka Feb 11 @ 4:44am 
Ok. Deleting Config folder in My games did the trick. It' s working now.