You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In autobattle I got different result in autobattle in debug version (debug = 5460) and the original one.
In original I don't lose unit(also my archers get morale):
dont.lose.units.in.original.version.mp4
In debug version I loose unit:
lose.unit.in.debug.version.mp4
Sure I understand that lose of units is caused by random damage of units, but in original one I can play it 100 times and never get my unit killed, and in the second one (in debug version, when archers get luck) I always get my unit killed.
The bug is in different luck in original fheroes and debug version.
In debug version I don't get luck.
The bug is in different luck in original fheroes and debug version.
What do you mean by "original fheroes"? If the "original fheroes" is the binary from our Releases section and "debug version" is the one that you built yourself from our sources, then it is inevitable for two reasons:
The logic of AI operation in newer sources may differ. AI makes different decisions during the battle, and it affects everything, including random events (including damage, luck and morale);
The operation of the random number generator may be different depending on the flavor and version of the compiler. That is, MSVC 2019, MSVC 2022, Clang and GCC all may give different chains of pseudo-random numbers for the same seed.
Hi @ihhub if debug and release versions are built from the different set of sources (or using different compilers) then this is inevitable due to reasons described above.
Preliminary checks
Platform
Windows
Describe the bug
In autobattle I got different result in autobattle in debug version (debug = 5460) and the original one.
In original I don't lose unit(also my archers get morale):
dont.lose.units.in.original.version.mp4
In debug version I loose unit:
lose.unit.in.debug.version.mp4
Sure I understand that lose of units is caused by random damage of units, but in original one I can play it 100 times and never get my unit killed, and in the second one (in debug version, when archers get luck) I always get my unit killed.
The bug is in different luck in original fheroes and debug version.
In debug version I don't get luck.
Save file
autobattle - morale.zip
Additional info
version 1.09
The text was updated successfully, but these errors were encountered: