Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Library of Enlightenment > Thread: PSA: If HoMM II is freezing, restart your machine!
Thread: PSA: If HoMM II is freezing, restart your machine!
Darmani
Darmani


Hired Hero
posted July 23, 2018 01:11 AM

PSA: If HoMM II is freezing, restart your machine!

(Cross-posted from Celestial Heavens.)

We at the Ironfist team just discovered a very nasty bug in the original game, and wanted to warn other players about it.

If your machine was booted more than 25 days ago, HoMM II will freeze for up to 600 hours whenever you pick up an object or defeat a monster.


Explanation: Most of the timing in the game is done through a DelayTillMillis function, which tells the game "Do nothing until time X," where time X is given in milliseconds since your system was booted (the Windows "GetTickCount" function). If HoMM II was properly coded, this would wrap around to 0 after your system has been booted for 49.7 days. However, there's a bug in HoMM II where instead, after 25 days, that number wraps around to -25 days.

For most of the code, this is benign, as most of it is written to e.g.: "wait till 40 milliseconds from now." However, there is one place in the code where it instead waits till "40 milliseconds after your system has booted." Usually, your system booted more than 40 milliseconds ago, and this does nothing. However, when your system booted more than 25 days ago, HoMM II thinks that your system actually booted -25 days ago. And so, it will wait for 25 days...

We're going to be patching this bug in Ironfist, but if you're playing the original game and encounter this: restart your machine!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NimoStar
NimoStar


Responsible
Legendary Hero
Modding the Unmoddable
posted July 23, 2018 06:15 PM

wow

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
King_V
King_V


Hired Hero
posted August 03, 2018 06:00 PM

Whoa!

That's an oddball one to find.  Then again, I'm afraid of ever leaving a Windows-based machine on that long.

Still, an impressive find.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0307 seconds