Aug 19, 2013

Error Code 12 or Why "Sims 3 Stopped Working".

All the credit for this article is for Twallan from Nraas Industries, the following is just a transcription of it that might help those who have crashes and errors when saving their games. 

ETA: The article was originally in English, then I translated it to spanish, then I searched for the original English version to post in English again, but Twallan's site moved since and I couldn't locate it at his new site, so -  this is an Enlgish  translation fropm the Spanish translation of the original article (if you know what I mean). 

As always I wanto to warn you readers that the method presented here by Twallan is for those simmers who have some knowledge of how to use S3PE (Sims 3 Package Editor), which, if you're interested, can be downloaded aquí.

Now on with Twallan's article:

Error 12:CGeneral Questions FAQ  #Error 12
Error 12 is an "exhausted memory" error, caused either by: 

1. Playing with a very long saved game that requires a lot of  memory from the computer.- The Sims 3 wasn't created with the base data management concept, and as such, the totality of your file-city is loaded in the memory when you load the game. Which means you should have enough memory availabe to do it, or your game will simply crash. Although the "ErrorTrap" mod can perform a bit of cleaning of saved files and reduce the size of the saved game, eventually your city will become simply too big to load. Before that happens, it is recommended that you move your population to a clean and new city. The "Porter" mod can help you with this.

 2. Playing a very long session without restarting the game.- The Sims 3 has countless memory leaks, meaning that while you play, parts of the memory end up stuck or unusable. The longer you play without restarting the game, the more memory is consumed, until you eventually run out of it and the game crashes. To solve this problem, you must limit your game sessions to a certain amount of time, asave and restart the game from the beginning.

The main problem is that The Sims 3 is a 32 bits application, and as such it only has access to a maximum of 4GB of RAM memory (2GB for the power of 32 bits). It's rigid limit that can never be exceeded by the game. In the past, the game was really written to allow only 2GB of memory use, however EA aligned later and took away this restriction. Unfortunately, if you're using  an operative system of 32 bits, you're still limited to 2GB of memory, unless you practice a few adjustments to Windows itself. If you're exectuting a 64 bits operative system, the game is capable of using the 4GB of memory. 

Note: The code for the game itself uses a section of the memory for reference purposes, so even with a 64 bits O/S, the maximum memory you'll be able to use is limited to about 3.7 GB, after which the game will become unstable and crash. 

General Questions FAQ #TravelDB
Several Users have noticed that manually altering the TravelDB.package file from your saved game can improve performance.

Notice that the following is an advanced operation and must be performed only if you are a reasonable adept to altering package files.

-Save your game as a New Game (so you have a backup in case something goes wrong)  
-Open the TravelDB.package file using S3PE 
-Select all the files _IMG inside the packages and delete them.
-Save the TravelDB.package file.

Deleting images drastically the size of the package and reduces the amount of data loaded by the game's memory. Some users have noticed as well that deleting SNAP files from the NHD of your city can improve the loading times, and maybe improve the duration of the saved game too. 

Note that the following is advanced operation and must be performed only if you are a reasonable adept to altering package files.

 -Save your game as a New Game (so you have a backup in case something goes wrong).

-Open the .NHD using S3PE
-Select all the SNAP files inside the package and delete them.
-At the bottom, make sure that the Display Names and Tags boxes are ticked. 
-Also at the bottom, write "SNAP" on the Tag field (without the quotation marks) 
-Click the Set button, you'll see that the SNAP field is copied inside the box below.
-Choose "Filter Active". S3PE now shows only the SNAP resources.
-Highlight all the resources (SNAP) and click Ctrl-A 
-Wait (patiently, depending on your system and the number of SNAPs) until S3PE selects ALL the SNAps 
-Click the Delete button in your keyboard.
-Save the .NHD file. 

Deleting images should drastically reduce the size of the package. However, how this affects the game performance itself is still being debated. The missing images that are required by the game will automatically rebuilt by the system. The effect this has on the amount of memory of your game needs is minimal.

Personal Note: (Not from Twallan's article) The effect on the memory may be minimal, but for the in game performance, in general, you'll notice a lot less lag -a delay when rotating the screen, etc. I apply this method at least each time my TravelDB and .NHD files have exceeded the 200KB, which is very often. ;)

No comments: