Skip to content

greghope667/master-rallye-freeze-patcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Master Rallye - Menu freeze patch

About

The PC version of Master Rallye has an annoying bug where the menu transitions freeze for long periods of time, sometimes requiring an alt-tab command to resume the game. This is not a Windows 7/8/10 bug, it's existed on every system I've played the game on. By applying a tiny (1-byte) patch to the executable I was able to bypass this bug. I've made a script to fix this in case anyone else still plays this game.

How to install

  1. Install Master Rally. This script applies to the executable from the 'fix' version of the game found on My Abandonware.

  2. Install Python (any 3.x version should work). On windows, I recommend the Microsoft store for this.

  3. Download this repository. On GitHub, click Code->Download ZIP. Extract the ZIP.

  4. Right-click freeze-patch.py and open with Python.

  5. Select the path to your MRallye.exe executable, press OK. Note that if you installed this game to a Program Files directory you may have to copy the executable elsewhere (e.g. Documents or Desktop) to be able to patch it. (You'll get a permissions error otherwise).

  6. If you copied the executable, move it back to the original install location (overwrite the old, unpatched file).

  7. Play Master Rallye - menu transitions should be much faster now, almost instant!

How this works

The game has an internal flag telling it whether to advance the game/render the screen. During scene transitions this is set to false to avoid any wierd partial renders. The game should set this flag back to true when it is done loading, but doesn't do that very quickly (often taking many seconds, increasing every menu transition). I don't exactly know why, some bug in the loading logic maybe? Alt-tab forces the game to re-render so works around this bug. I edited the executable to skip this check and always re-render. Loads are now almost instant on my machine.

Update 2023-04-17 - Thanks to CookiePLMonster in this issue helped me figure out what causes the bug. In summary: When rendering is disabled (during loading), the game loop runs too quick and elapsed time becomes 0 seconds due to float subtraction underflow. The game thinks no time has elapsed and therefore doesn't do any loading. My fix apparently worked around this by always enabling rendering.

Possible side effects

We've disabled the rendering pause during the load screens so the game may flicker in menu transitions. Potentially increases CPU/GPU load but none that I can measure for my system. Otherwise I've noticed no other side-effects from this.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages