Hi
XEPOHAMT, I want to report an issue of
Prima, it looks like this plugin results in the game stuck when AI heroes have a great amount of army. My guess is, this is because the total AI value of AI heroes becomes negative. The AI value calculation of H3 is something like this:
Quote:Total AI value of an AI hero = AI value of creature * creature quantity * AI hero's prima skills
With Prima, the AI heroes could reach very high primary skills. This makes the total AI value of AI hero overflow easily, which stuck the game instantly on making AI hero decision.
daemon_n found the function at 004E567C. This is the function for calculating AI hero's attack and defense coef for AI value. I changed the constant at 004E567C +1 from 250 back to 99 in the game, but the game still stuck, the issue was not resolved.
For the same save game, if I just disable Prima or set all the heroes with 99 primary skills, the issue could be resolved - this is the main reason I thought Prima was the one to blame
.
What do you think about this issue? Could you share your thought about this, and possibly some addresses you suggest to check so I test on my save, please?