Resolved [1.5.7] Troops with negative carrying capacity

Users who are viewing this thread

Version number
1.5.7
Branch
Main
Modded/unmodded
Yes, but I removed mods.

slaur4

Recruit
Summary: The game uses a negative troops bonus while calculating the party burden.

This seems similar to this thread :

How to Reproduce: I have a party of 200+ troops. I leave most of them in garrison with most of my horses.
At some point I can see that the troops bonus for weight calculation is negative.



Computer Specs:
OS: Windows 10 (64 bits)
GPU: NVIDIA GeForce RTX 2070 SUPER
GPU Driver Version: 456.71
CPU: AMD Ryzen 5 2600X Six-Core
RAM: 16333 M
Motherboard: X470 GAMING PLUS
Storage Device (HDD/SSD): SSD SanDIsk extreme pro 500GB

Edit : relevant save file uploaded


Thank you
 
I tried the 1.5.9 beta branch and still have the issue (that is to say, with my previous saves).

While using a debugger I can see this :

DefaultInventoryCapacityModel.cs
C#:
if (mobileParty.HasPerk(DefaultPerks.Steward.ForcedLabor))
        ofHealthyMembers += party.PrisonRoster.TotalHealthyCount;

I have this perk, but for my party the actual value of PrisonRoster.TotalHealthyCount is negative : -157

In my PrisonRoster object I have these values :
TotalManCount : 0
TotalWoundedHeroes : 157

So I guess these prisoners have escaped or healed and this value was not updated ?
 
I tried the 1.5.9 beta branch and still have the issue (that is to say, with my previous saves).

While using a debugger I can see this :

DefaultInventoryCapacityModel.cs
C#:
if (mobileParty.HasPerk(DefaultPerks.Steward.ForcedLabor))
        ofHealthyMembers += party.PrisonRoster.TotalHealthyCount;

I have this perk, but for my party the actual value of PrisonRoster.TotalHealthyCount is negative : -157

In my PrisonRoster object I have these values :


So I guess these prisoners have escaped or healed and this value was not updated ?
What mods did you use?
 
Back
Top Bottom