Resolved Newly generated minor faction heroes are generated with 0 skills, and therefore won't form new clan parties

Users who are viewing this thread

Version number
1.6.0
Branch
Beta
Modded/unmodded
No, I didn't use any mods.
Summary: When a minor faction hero dies, the game will now generate new heroes over time to replace the dead ones. However, when these new heroes are generated, they are given 0 levels in any skills. This is an issue, because when the game is choosing a hero to form a new clan party, it calculates a "Command Score" in order to select the most suitable hero to lead the party, and that Command Score is in part based on the skill levels of certain skills. Since the new hero has 0 levels in any skills, their Command Score will be 0, and they will never be chosen to lead a party and instead sit in town forever.

How to Reproduce: Use the console to kill some members of any minor faction (e.g. the Jawwal). Wait until a new hero is generated for that clan (might take quite some time). Observe that the new hero sits in town and will never form a party.

Relevant Methods:
CreateMinorFactionHeroes
ConsiderSpawningLordParties
GetBestAvailableCommander
GetHeroPartyCommandScore

Have you used cheats and if so which: campaign.kill_hero [hero name]. This is only to speed up the process though.

Media (Screenshots & Video):

ZqqFz.png


GjQy8.png
 
Back
Top Bottom