Teg_Navanis
King
- Joined
- Jan 21, 2006
- Messages
- 737
current version: 1.53 (June 24, 2009)
Compatible with: v1.74, Warlords v2.13, BtS v3.02 (Unit Statistics 1.45)
Compatible with: BtS v3.19 (Unit Statistics 1.53)
Compatible with: Fall from Heaven 2 (check this thread for newest version)
MP Compatibility: yes
New:
compatible with BtS v3.19
Download
Version 1.45 (compatible with: v1.74, Warlords v2.13, BtS v3.02)
Version 1.53 (compatible with: BtS v3.19)
Description
This mod adds some unit statistics. To see them, simply select a unit and press U. For an overview over the different statistics, check the screen shots.
Installation Instructions
Unzip this into the "civ4_install_folder\Mods\" folder.
Combining this mod with other mods
To incorporate this mod into another one, copy all files into the other mod's corresponding folders.
If there a several files with the same name, check if there are differences between the files. If there aren't, just use one.
If there is already a CvCustomEventManager.py in the other mod, check the example-file CvXXXEventManager
to see how you can modify the CvCustomEventManager file of the other mod to create a file parallel to CvUnitStatisticsEventManager.
You can load this newly created/modified file by adding a single line in this mod's CvCustomEventManager (appr. line 34).
I won't explain how you can merge several CvGameCoreDLL.dll files. It is explained in the CivFanatics Forum, but rather complicated.
For those who know how to do it: The required files are in the SDKfiles folder, all changes have been commented.
search for "// Unit Statistics by Teg Navanis".
Known Issues
Cannot (easily) be merged with any mod that uses the ScriptData functions, but not the SdToolKit (or SdToolKitAdvanced). This includes most of Firaxis own scenarios.
Version Information
----v1.53 ----
- compatible with 3.19
----v1.52-----
- expanded Italian translation
- flanking attacks weren't tracked in 1.51. fixed.
----v1.51-----
will break save games.
- compatible with 3.17
- New set of buttons by xienwolf
- FfH specific improvements: new high scores (most heroes killed, most spells cast)
- Mod is more robust when confronted with units that don't have unitstats information
- fixed some issues with global high scores enabled
----v1.5------
- Compatible with BtS 3.13
- Removed config file and all files necessary to read it. Config values can now only be changed in
UnitStatisticsDefines.py. (System was broken and caused unexpected behaviour). Some values might be
moved to XML files in the future.
- Removed unit naming (untested for a long time, buggy and not needed for the mod since 1.32
- Cleaned up the code and removed obsolete parts of it (popup windows, for example)
- Moved FfH editor to open document format (new macro for OpenOffice).
- Damage is now handled by a single event (combatHit), which means that
more types of damage can be tracked without bloating the code. This also opens up the possibility
of adding spell damage (and spell kill!) tracking in FfH.
The different types of damage are distinguished by a parameter.
# iTypeofAttack
# 0: (empty, reserved for total damage)
# 1: Attacker is hit
# 2: Defender is hit
# 3: Collateral damage (defender is hit)
# 4: Flanking strike (defender is hit)
# 5: Air Strike (defender is hit)
# 6: Other (FfH magic?) (defender is hit)
- Kills with flanking strikes (possible in BtS), collateral damage and
air strikes (not possible in BtS) will also be recorded in the unit log and
are visible in the unit and player statistics (as "other" kills).
- Bugfix: Number of lost air combats is now correctly shown in player statistics.
- Bugfix: Air combats are no longer counted twice if both planes are damaged.
- Disabled some unit stats by default. (movement and fortify tracking)
- Minor improvements concerning high scores and experience tracking when unit retreats.
----v1.45------
- Fixed two issues with BTS SDK:
--- If a unit retreats after reaching its combat limit (siege units), the result will
be registered.
--- If a unit is killed, damage will again be rounded down to the defeated unit's health before the battle.
----v1.44------
- compatibility with Vanilla 1.74, Warlords 2.13 and BtS 3.02.
- New player stats: Average combat odds, average combat results and luck index. The latter compares
your victory probability with the actual outcome and tells you how lucky (or unlucky) you have been
in the game so far.
- some new FfH-specific feature: number of spells and summons survived (optional).
----v1.43b-----
- two small bugfixes
----v1.43------
- warlords: compatible with patch 2.08.
- bugfix: when a unit is upgraded, the new unit is correctly marked as the high score holder.
- some additions for FfH
----v1.42------
- fixed wrong Warlords CvScreensInterface.py (used vanilla one).
- Now also correctly loads games that have been started without unit statistics running.
- fixed bug with top 10 when you have no units left (one of those bugs you wish never to notice )
- added info about whether a battle was offensive or defensive to the unit log.
- added colour coding of active window (taken from Mongoose's mod)
- stores promotions of tracked dead units (taken from Mongoose's mod)
- added tracking of defeat with highest combat odds (taken from Mongoose's mod)
- added victory with lowest combat odds / defeat with highest combat odds to player statistics
- adopted some UI improvements from Mongoose's mod
- activated help panes for the unit statistics screens. They can be disabled in the config file.
- fixed wrong calculation of player experience (thx to Mongoose)
- fixed high score bug with "Global High Score" enabled
- fixed bug when switching between player statistics with "Show All Players" enabled
- fixed some issues with minimap on Top 10 page:
- The minimap won't vanish on Warlords
- The minimap is clickable
- The top 10 units will be correctly displayed on the minimap
(check the readme for older changes)
Major contributors
TheLopez: reworked the code for greater flexibility and added new features.
===Credits & Thanks===
- Roger Bacon
Kill List Mod - this Mod is the core of the Unit Statistics Mod
- TheLopez
Mercenary Mod - the unit statistics screen is based on the mercenary manager screen.
- Stone-D
SD ToolKit
- Gillmer J. Derge
CustomEventManager
INI-Parser
- Zuul, White Rabbit, xienwolf
Buttons
- Kael
FfH Editor
- Mongoose
Mongoose Mod
- ViterboKnight
Italian translation
Screenshots
Compatible with: v1.74, Warlords v2.13, BtS v3.02 (Unit Statistics 1.45)
Compatible with: BtS v3.19 (Unit Statistics 1.53)
Compatible with: Fall from Heaven 2 (check this thread for newest version)
MP Compatibility: yes
New:
compatible with BtS v3.19
Download
Version 1.45 (compatible with: v1.74, Warlords v2.13, BtS v3.02)
Version 1.53 (compatible with: BtS v3.19)
Description
This mod adds some unit statistics. To see them, simply select a unit and press U. For an overview over the different statistics, check the screen shots.
Installation Instructions
Unzip this into the "civ4_install_folder\Mods\" folder.
Combining this mod with other mods
To incorporate this mod into another one, copy all files into the other mod's corresponding folders.
If there a several files with the same name, check if there are differences between the files. If there aren't, just use one.
If there is already a CvCustomEventManager.py in the other mod, check the example-file CvXXXEventManager
to see how you can modify the CvCustomEventManager file of the other mod to create a file parallel to CvUnitStatisticsEventManager.
You can load this newly created/modified file by adding a single line in this mod's CvCustomEventManager (appr. line 34).
I won't explain how you can merge several CvGameCoreDLL.dll files. It is explained in the CivFanatics Forum, but rather complicated.
For those who know how to do it: The required files are in the SDKfiles folder, all changes have been commented.
search for "// Unit Statistics by Teg Navanis".
Known Issues
Cannot (easily) be merged with any mod that uses the ScriptData functions, but not the SdToolKit (or SdToolKitAdvanced). This includes most of Firaxis own scenarios.
Version Information
Spoiler :
----v1.53 ----
- compatible with 3.19
----v1.52-----
- expanded Italian translation
- flanking attacks weren't tracked in 1.51. fixed.
----v1.51-----
will break save games.
- compatible with 3.17
- New set of buttons by xienwolf
- FfH specific improvements: new high scores (most heroes killed, most spells cast)
- Mod is more robust when confronted with units that don't have unitstats information
- fixed some issues with global high scores enabled
----v1.5------
- Compatible with BtS 3.13
- Removed config file and all files necessary to read it. Config values can now only be changed in
UnitStatisticsDefines.py. (System was broken and caused unexpected behaviour). Some values might be
moved to XML files in the future.
- Removed unit naming (untested for a long time, buggy and not needed for the mod since 1.32
- Cleaned up the code and removed obsolete parts of it (popup windows, for example)
- Moved FfH editor to open document format (new macro for OpenOffice).
- Damage is now handled by a single event (combatHit), which means that
more types of damage can be tracked without bloating the code. This also opens up the possibility
of adding spell damage (and spell kill!) tracking in FfH.
The different types of damage are distinguished by a parameter.
# iTypeofAttack
# 0: (empty, reserved for total damage)
# 1: Attacker is hit
# 2: Defender is hit
# 3: Collateral damage (defender is hit)
# 4: Flanking strike (defender is hit)
# 5: Air Strike (defender is hit)
# 6: Other (FfH magic?) (defender is hit)
- Kills with flanking strikes (possible in BtS), collateral damage and
air strikes (not possible in BtS) will also be recorded in the unit log and
are visible in the unit and player statistics (as "other" kills).
- Bugfix: Number of lost air combats is now correctly shown in player statistics.
- Bugfix: Air combats are no longer counted twice if both planes are damaged.
- Disabled some unit stats by default. (movement and fortify tracking)
- Minor improvements concerning high scores and experience tracking when unit retreats.
----v1.45------
- Fixed two issues with BTS SDK:
--- If a unit retreats after reaching its combat limit (siege units), the result will
be registered.
--- If a unit is killed, damage will again be rounded down to the defeated unit's health before the battle.
----v1.44------
- compatibility with Vanilla 1.74, Warlords 2.13 and BtS 3.02.
- New player stats: Average combat odds, average combat results and luck index. The latter compares
your victory probability with the actual outcome and tells you how lucky (or unlucky) you have been
in the game so far.
- some new FfH-specific feature: number of spells and summons survived (optional).
----v1.43b-----
- two small bugfixes
----v1.43------
- warlords: compatible with patch 2.08.
- bugfix: when a unit is upgraded, the new unit is correctly marked as the high score holder.
- some additions for FfH
----v1.42------
- fixed wrong Warlords CvScreensInterface.py (used vanilla one).
- Now also correctly loads games that have been started without unit statistics running.
- fixed bug with top 10 when you have no units left (one of those bugs you wish never to notice )
- added info about whether a battle was offensive or defensive to the unit log.
- added colour coding of active window (taken from Mongoose's mod)
- stores promotions of tracked dead units (taken from Mongoose's mod)
- added tracking of defeat with highest combat odds (taken from Mongoose's mod)
- added victory with lowest combat odds / defeat with highest combat odds to player statistics
- adopted some UI improvements from Mongoose's mod
- activated help panes for the unit statistics screens. They can be disabled in the config file.
- fixed wrong calculation of player experience (thx to Mongoose)
- fixed high score bug with "Global High Score" enabled
- fixed bug when switching between player statistics with "Show All Players" enabled
- fixed some issues with minimap on Top 10 page:
- The minimap won't vanish on Warlords
- The minimap is clickable
- The top 10 units will be correctly displayed on the minimap
(check the readme for older changes)
Major contributors
TheLopez: reworked the code for greater flexibility and added new features.
===Credits & Thanks===
- Roger Bacon
Kill List Mod - this Mod is the core of the Unit Statistics Mod
- TheLopez
Mercenary Mod - the unit statistics screen is based on the mercenary manager screen.
- Stone-D
SD ToolKit
- Gillmer J. Derge
CustomEventManager
INI-Parser
- Zuul, White Rabbit, xienwolf
Buttons
- Kael
FfH Editor
- Mongoose
Mongoose Mod
- ViterboKnight
Italian translation
Screenshots