Machater Machater

[Solution] Out of Memory Crash Fix v1.09b 32 or 64bit OS

[Solution] Out of Memory Crash Fix v1.09b 32 or 64bit OS

works with Elemental v1.09b

READ THIS ENTIRE THING VERY CAREFULLY, UNDERSTAND WHAT YOU ARE DOING BEFORE YOU START MESSING WITH STUFF, ESPECIALLY 32 BIT OPERATING SYSTEM USERS AS THIS CAN REALLY MESS YOUR ENTIRE SYSTEM UP IF YOU ARE NOT CAREFUL

First off, you should have at least 4gb of RAM for this.

Well I'm still getting out of memory issues quite early on in games and rather than wait for the leaks to be fixed I went and just allowed Elemental to use more RAM, which removes the out of memory issues.

If you have a 64bit OS then all you need to do is patch your game. If you have Windows XP then see the bottom of this post, though I haven't tested anything on XP so it may not work at all.

If you have 32bit Vista or Windows 7(IF YOU ARE RUNNING A 64BIT OS DO NOT DO THIS!!!) you need to go into command line and type 

BCDEDIT /set increaseuserva 3072

This may have negative impacts on your overall system, so if you are running a 32bit OS, be aware... If you are running 32bit OS and have less
than 4gb of RAM, doing this is probably bad for your overall system experience.


Copy and paste your Elemental.exe into the folder this .zip extracts to. Elemental.exe must be in the same folder as this patch.
BACK UP YOUR ORIGINAL .EXE BEFORE YOU DO ANYTHING.
http://ai-machater.googlecode.com/files/ElementalRAMPatchzip.zip
After putting your Elemental.exe in this folder, run the file named "RunMe.bat"



On 32bit OS this will give Elemental 1gb more memory addressing space(not to be confused with how much memory the windows task manager says the program is using)

 On 64bit systems this will double the amount of memory Elemental can address, up to 4gb.

You will probably need to repatch your game with this each time Stardock releases a new version. This will work with any version of Elemental.

If you have windows XP you need to change some boot.ini stuff. Refer to this microsoft article. I can't help you however since I haven't done any of this with XP before.
http://www.microsoft.com/whdc/system/platform/server/pae/paemem.mspx


 
190,025 views 60 replies +1 Loading…
Reply #51 Top

bump since its my birthday today

Reply #52 Top

Happy birthday! :beer:

Reply #53 Top

Does this patch work for Win7 64-bit OS Users?

 

Reply #54 Top

Quoting Gene1966, reply 53
Does this patch work for Win7 64-bit OS Users?

 
End of Gene1966's quote
yes if you are getting the dreeded Out Of Memory error.

harpo

 

Reply #55 Top

It works very well in fact. 0 errors with the current version + this patch. (for me anyway)

Reply #56 Top

Bump since the latest patch still causes problems for some people. 

Reply #57 Top

If you have 32bit Vista or Windows 7(IF YOU ARE RUNNING A 64BIT OS DO NOT DO THIS!!!) you need to go into command line and type 
BCDEDIT /set increaseuserva 3072 
End of quote

I keep getting and error mesage when trying this in Win7 32-bit:

C:\>BCDEDIT /set increaseuserva 3072
The boot configuration data store could not be opened.
Access is denied.

I am logged into the machine as the administrator.

 

Reply #58 Top

Hmm, not sure what would cause that, and since I don't have 32bit hard for me to help.

Do you have UAC turned on? You may need to disable that while you do it. Otherwise you might need to start the command prompt with administrator privilege, even though you are already logged in as admin.  

 

Heres a guide on how to open the command prompt with admin rights.

 http://www.mydigitallife.info/2007/02/17/how-to-open-elevated-command-prompt-with-administrator-privileges-in-windows-vista/

Reply #60 Top

1.2 and still having OOM errors.  Going to try this now to see if I can finish a game.  Stardock, any ETA on a fix?