Majesty 2 Collection

Majesty 2 Collection

Not enough ratings
Fix for the out-of-memory C++ Runtime Crashes
By Raydell
This guide helps you fix the random out-of-memory Runtime Error crashes which happen during play or when trying to save the game, especially prevalent on larger maps.
   
Award
Favorite
Favorited
Unfavorite
Download the fixed Majesty2.exe
If you're experiencing random C++ Runtime Error crashes (as I was) when playing or when trying to save, here's the fix:

Download this zip, which contains a fixed Majesty2.exe. Extract it into your Majesty 2 Collection folder and overwrite the original exe.

https://drive.google.com/file/d/1j_POts284deqD06ULnkW-rqgr6A8OoeR/view?usp=sharing
Alternatively, here's how to fix the exe yourself
You can patch the original exe yourself with a program called "Large Address Aware Switch":

https://www.techpowerup.com/forums/attachments/laa_2_0_4-zip.34392/

Instructions on how to use the tool are available at:

https://www.techpowerup.com/forums/threads/large-address-aware.112556/


The crashes happen because the Majesty2.exe was built on an old 32-bit standard, which restricts it to using only 2GB of memory (RAM), regardless of how much free memory your system has. On larger maps, the game simply runs out of memory as it needs more than 2GB to handle an established kingdom with lots of heroes and enemies.
The solution is to apply the "Large Address Aware" flag to the exe, which removes this 2GB limitation.