Faction ID's getting scrambled
Posted: Sat Sep 26, 2020 3:13 pm
Hi Tony
I'm seeing an intermittent issue with the faction database. I haven't been able to reproduce it reliably, and my project is huge, so I know troubleshooting is problematic. However, I'm hoping that perhaps you have a suggestion as to how I might resolve the issue.
When I call the method GetAffinity(), it in turn drills down in code to eventually call FindRelationshipTraitRecursive(). At times, this method will go into a recursive loop and bail out with the warning
Love/Hate: FindRelationshipTrait exceeded max parent search depth
When I break on that line and look at the m_factionIDLookup table, I see a mismatch between the value stored in the "Key" field and the "id" in the corresponding faction value field. I've attached a screenshot of one of those mismatches. Note that "Key" is set to 20, but the id is set to 11. This causes the code to return the wrong faction when performing a lookup, and then the parents of the incorrect faction are recursed, eventually bailing on the warning.
If there's something I can send you besides the entire project, let me know and I'll gladly do so. Thanks!
I'm seeing an intermittent issue with the faction database. I haven't been able to reproduce it reliably, and my project is huge, so I know troubleshooting is problematic. However, I'm hoping that perhaps you have a suggestion as to how I might resolve the issue.
When I call the method GetAffinity(), it in turn drills down in code to eventually call FindRelationshipTraitRecursive(). At times, this method will go into a recursive loop and bail out with the warning
Love/Hate: FindRelationshipTrait exceeded max parent search depth
When I break on that line and look at the m_factionIDLookup table, I see a mismatch between the value stored in the "Key" field and the "id" in the corresponding faction value field. I've attached a screenshot of one of those mismatches. Note that "Key" is set to 20, but the id is set to 11. This causes the code to return the wrong faction when performing a lookup, and then the parents of the incorrect faction are recursed, eventually bailing on the warning.
If there's something I can send you besides the entire project, let me know and I'll gladly do so. Thanks!