BL Coding Issues with replacing CharacterDevelopment Model? (Unpredictable behaviors/bugs)

正在查看此主题的用户

Glowcat

Regular
I've been working on my own xp system and I've been encountering unpredictable behaviors that seem to randomly appear and reappear in certain contexts, and am wondering if people have experienced this and know any work arounds.

Namely, once in a blue moon an xp increase completely maximizes a character's skill level. I've had this happen with scouting, 1-handed weapon skills in tactics autocombat, and my own attempt to fix the instructor perk which grants daily xp. But it doesn't always happen... and I've played for hours without it happening, or reloaded the same save without it happening.

Similarly I've set up a "skill progress reset" that sets folks with too much xp (using the default taleworlds xp growths) back to 0 xp and it *mostly* works... except for some skills on companions on a single character's save. I loaded up 5 different characters who did not have the same problem.

It's hard to figure out what's going wrong and I figure it might be some kind of issue with how the game is dealing with memory so I'm turning to these boards to see if anyone has a solution.
 
Not sure about your issue, i did change a few things in the model with no troubles but in the end chose to not change it and make my modifications in some dedicated behaviors for compatibility issues.
I did modified it as much as you do, but i think you might be careful with this model as many other gameobjects depends on it and that might be where you get your troubles. If i remember well, some of the XP related stuff is also encoded into static methods meaning the game can still access the old model for those particular ones, but i might be wrong.
 
点赞 0
后退
顶部 底部