Master of Magic

Master of Magic

[Spell] Counter Magic Fix
5 kommentarer
Dorian Gray  [skaper] 14. mai 2024 kl. 19.59 
FYI - Based on the uploaded screen shot, I believe there may be an ordering issue in the combat log where I may be logging changes to the Counter Magic Pool before MOM logs the Counter Magic results.

Will be looking if I can delay the logging.
Dorian Gray  [skaper] 19. feb. 2024 kl. 15.28 
A temp work around is to save and reload the game - which forces a reset of the pools.

This is only an issue if you flee from combat.
Dorian Gray  [skaper] 19. feb. 2024 kl. 15.27 
FYI - Encountered another bug where the CM Pool is not getting cleared when you flee from Battle. This is due to the Game not calling the EndBattleEffect callback when you flee. I have submitted an F8 regarding it.

So, basically it means that the next battle will not begin with CM Pools set to 0, but will continue with what both sides had from last battle. (annoying, I know...)
Dorian Gray  [skaper] 8. feb. 2024 kl. 10.34 
FYI - I am working on using a mana pool for Counter Magic, like the original. but still have more work to do on it. I did update some of the logging and fixed the issue I discovered as disclosed, below.

The scripting APIs are currently undocumented. Which means trying to utilize the variables being passed from the core game requires a lot of "trial & error" as some could be null or lack meaningful values.

Part of the reason for the excessive logging was to help discover this and then adjust as needed.
Dorian Gray  [skaper] 7. feb. 2024 kl. 16.34 
FYI - I have encountered some minor issues with the logging. For example "AI" being listed when it was not an "AI" event. This is being looked at, but is only cosmetic and does not impact the other functionality.