Resolved Crafting Order Crash Beta 1.6.0

正在查看此主题的用户

版本号
1.6.0
分支
Beta
使用过模组或未使用过模组
是的,但我移除了模组。

Ruihan

Recruit
I looked at the stack trace of the crash
In CraftingCampaignBehavior.cs
private void GiveTroopToNobleAtWeaponTier(int tier, Hero noble)
{
CharacterObject characterObject = noble.Culture.BasicTroop;
for (int i = 0; i < tier; i++)
{
characterObject = characterObject.UpgradeTargets.GetRandomElement<CharacterObject>();
}
noble.PartyBelongedTo.AddElementToMemberRoster(characterObject, 1, false);
}
The function that get executed when you craft an item order for a noble leading a party. It gives them a troop of there culture that is upgraded the same number of times as the tier of the item you crafted for them. Weapon can be tier 6, while the standard troop caps at tier 5(4 upgrades). So crafting a tier 5 or 6 weapon cause an error when the GetRandomElement tries to get an element from an array with 0 elements (since tier 5 units have no upgrades).

Seems like a pretty easy fix if you cap tier to 4 or add a break condition in the for loop if characterObject's UpgradeTargets has a length of 0
 
Forwarded to the QA team for further investigation. We will reach out again if we need more information. Thanks for reporting and sorry for any inconvenience!
 
Forwarded to the QA team for further investigation. We will reach out again if we need more information. Thanks for reporting and sorry for any inconvenience!
I think the issue is fixed in 1.6.1
You can update the status as such
thank you
 
后退
顶部 底部