Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features without permission from or credit to me
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
This mod is opted-in to receive Donation Points
Changelogs
Version 1.17
Slight visual changes.
Most things can now be edited on the unit page, these changes will vanish when reloading a save. To save the changes you can export the unit to .xml. Simply copy the npccharacter to your own mods spnpcharactes.xml or replace the original character in SandBox/ModuleData.
Version 1.16
Added rounding to average values.
Changed "equipment index" to "Battle Equipment" and "Civilian Equipment" so it's easy to distinguish.
Version 1.15
Added some new values
Version 1.14
Updated to 1.5.0 which added bookmark button to encyclopedia pages
Now shows all skills on hero page
Version 1.13
Updated to 1.4.3
Uses the new vanilla equipment info icons.
Adds horse and horse harness to the unit page (Icon is invisible but hovering will show tooltip)
Let's you cycle equipment sets
Moved values to previous equipment tab
Hero module updated to beta
Uses the new vanilla equipment info icons.
Changes skill description to show actual effects
Shows attribute and focus in skill description
Version 1.12
Split troop and hero page into main and optional module.
The same compatibility issues/fixes should work for the hero module.
The main module should have no mod incompatibilities.
Fixed bug that disabled troopId/itemId button
Improved unit tree scaling
The unit tree should now always be fully scrollable, no matter how wide/high.
When equipment set tab is collapsed the unit tree now expands to use the extra space
Version 1.11
Merged stable and beta branches, unless required by future patches mod will now have 1 main file.
Removed optionalUI due to low interest, if you wish to use it merge the UnitPage.xml with the main version.
Removed modders version, is no longer needed.
Added button to toggle unit and item ids
Added button to toggle value and set text
Added button to toggle model in preview
Added button to toggle equipment set tab
Button toggles now persist between unit pages
Version 1.10
Can now toggle values
Added average values. (only counts battle sets)
Version 1.9
Added speed values
Shows the speed multiplier the game uses for units on foot in combat.
Shows the speed and maneuver of mounts.
Removed ItemId from the hero page in the main files
Version 1.8
Can now switch between equipment sets
Shows the current set on the preview character
Updates equipment values per set
Updates relevant skills per set
Skills now show effects when hovered over
Improvements to hero page
Removed bin from the optional for modders file
Updated OptionalUI with above improvements
Removed non module versions of mod
Version 1.7
Fixed last seen location link not working
Updated equipment values on hero page
Added number of battle and civilian sets to unit page
Added optional file for modders. Shows the stringId (the id used in xmls) for heroes, units and items.
Version 1.6
Weight now includes weapons weight (used to only be armor)
Changed equipment values so it will no longer show horse armor or ammo if the unit does not use horses/projectiles
Added skill values. Shows what benefit the unit will get from the skills it can use.
OptionalUi:
Changing version to match main files
Version 1.5
Added stack amount (ammo) to UI
Changed tooltips to use correct usage, it is assumed a troop will use onehanded/twohanded as onehanded if it has a shield, as twohanded without shield, any throwable weapon as thrown
Cleaned/commented xml files so it is easier to see what has been changed.
Added armor values to hero page
Should now use localized text for armor values
Version 1.4
Made the mod into a module.
No longer directly modifies native dll or prefabs
OptionalUI:
Added stack amount (ammo).
Version 1.3
Added equipment to hero page.
OptionalUI:
Changed to depending module to work better with vortex
Version 1.2
Changed preview so it shows full body.
OptionaUI:
Updated for use with module version of mod
Version 1.1
Added horizontal scrollbar to unit tree.
OptionalUI:
Changed preview so it shows full body.
Moved the character form center to left
Removed smoke effect
Version 1.0
First release
For stable branch (1.4.1 09/06/20)
This mod changes the encyclopedia page for units/heroes to show more information such as skill effects and the different equipment sets.
It can also be used to edit units in game, this feature is mostly meant to help modders test changes and help them create troops. Most things can be edited on the unit page, these changes will vanish when reloading a save. To save the changes you can export the unit to a .xml (will show up in the mod folder). Simply copy the npccharacter to your own mods spnpcharactes.xml or replace the original character in SandBox/ModuleData.
As the mod has its own GUI/Prefabs make sure it is below the native modules or the mods UI will not be loaded. To install copy paste the EquipmentInEncyclopedia folder into your Modules folder in the Bannerlord install directory, then simply activate in the launcher. To uninstall, remove the folder you copied.
This mod should be save compatible and safe to add/remove at any time. This mod should work with custom/modded troops and items. This mod should be compatible with all other mods unless they patch the same EncyclopediaPageVM or have their own versions of the GUI/Prefabs.
Please report any bugs/crashes that you believe are connected to this mod on the bug section.
Compatibility Diplomacy Fixes This mod has a slight incompatibility with Diplomacy Fixes as both mods change the hero page. Only the hero page seems to be affected and the other parts of both mods should still work. You will have to choose which hero page you want to use. To use the DF hero page: Remove the EncyclopediaHeroPage.xml file from this mods folder. Then make sure Diplomacy Fixes is BELOW this mod in load order. To use the this mods hero page: Remove the EncyclopediaHeroPage.xml file from Diplomacy Fixes folder. Then make sure this mod is BELOW Diplomacy Fixes in load order.
Telepathy You can use both mods together. Open the EncyclopediaHeroPage in Telepathy/Gui/prefabs/Encyclopedia/EncyclopediaSubPages, you should see <!--Talk button-->, copy everything from <Widget> to </Widget> and paste it in this mods EncyclopediaHeroPage at the same place. Make sure this mod is lowest in load order and both mods will work.
Other modders feel free to do whatever you want with this mod, I honestly just made this as a proof of concept in the hopes someone else can make a better version, because there should be a better way to compare units than searching through xmls. I have added a custom ItemVM, EncyclopediaPageUnitVM and EncyclopediaHeroPageVM, using dnSpy you should easily be able see what I changed. These are then loaded instead of the normal pages by using harmony to patch GetEncyclopediaPageInstance() in EncyclopediaData. This was done to add DataSourceProperties for use in the EncyclopediaUnitPage.xml and the EncyclopediaHeroPage.xml.
To configure the ui, change the EncyclopediaUnitPage.xml/EncyclopediaHeroPage.xml. Using the developer console mod you can use ui.toggle_debug_mode which updates the ui every time you change stuff in the GUI/prefabs, without it you have to restart to see changes.