Game guide:Avoiding corruption: Difference between revisions

m
Replaced the link to this site with a link to sims.fandom.com.
imported>Jeanioz
(→‎Known symptoms of corruption: * Sims showing stats, such as Personality, of other Sims of the neighborhood. This can be checked in-game or using SimPE.)
m (Replaced the link to this site with a link to sims.fandom.com.)
 
(16 intermediate revisions by 11 users not shown)
Line 2:
 
:''This tutorial is for [[The Sims 2]] only.''
[[File:Explosion..jpg|thumb|Don'tThe letfamed this"Big happenFirey toBall yourVisible game!!From Space"]]
 
'''Corruption''' in ''The Sims 2'' is when some or all of the game data, whether it is in a neighborhood or in the core game files, become corrupted.glitchy Corruptedor gameunreadable. dataIn issevere a badenough thingcases, andcorruption could make a neighborhood or the entire game unplayable, depending on what type of corruption occurred. This game guide will try to clear upexplains the misconceptiondifference between game corruption and neighborhood (shortened to 'hood') corruption, highlighthighlights known actions that guarantee corruption, and provideprovides solutions to fix existing corruption, and dispels common myths about what's game-breaking and what's not.
 
==The differencebasics between game corruption and hoodon corruption==
===What's corruption? ===
It's common for players to mix up game corruption and hood corruption, and some think all corruption requires a full reinstall.
Corruption is when the files for your game or neighborhood end up with junky, glitchy, or nonsense data that cause problems in your game. This can be limited to one neighborhood ("neighborhood corruption" or "hood corruption"), or it can occur globally across your game ("game corruption"). Corruption varies in severity: some forms of corruption can easily be fixed with third-party tools, other forms will cause the game or neighborhood to become unplayable, and many are somewhere in between.
 
When a neighborhood or game becomes irreversibly corrupted, it is referred to by some players as a "BFBVFS" (<u>B</u>ig <u>F</u>iery <u>B</u>all <u>V</u>isible <u>F</u>rom <u>S</u>pace).<ref>{{Wayback|url=http://wikka.moreawesomethanyou.com/BFBVFS|date=20090917032033|title=BFBVFS - MATYWikka}}</ref>
To clear this misconception up, it's important to know that the game stores information on your computer in TWO different locations, assuming that you installed the game in the default locations.
 
===The difference between game corruption and hood corruption===
The ''C:\Program Files\EA GAMES'' location is where the files that make up the core and backbone of the game are housed. These include the objects.package file, the Sims3D files, audio files, movie files, default items in the game, user interface, graphics, and the game's programming. It also contains the character files for Universal NPCs, such as the [[Grim Reaper]], [[Mrs. CrumpleBottom]], and the [[Therapist]]. The files here are normally never modified, and shouldn't be modified (Mods/hacks '''do''' modify the game's programming, however, it doesn't actually modify the files themselves. The mod loads after the original files, so code from the original files is simply not used, and code that the mod modifies is used instead). There are a few files here that can safely be modified should the player know exactly what they are doing. Corruption that occurs here is known as "Game Corruption".
In discussions about corruption, there are usually two types mentioned: ''game corruption'' and ''neighborhood corruption'' (also called "hood corruption"). New players may mix up game corruption and hood corruption, and some incorrectly think all corruption requires a full reinstall.
 
With ''game corruption'', the corruption occurs within the game's ''installation'' files. These are located on your computer's hard drive—typically <code>C:\Program Files</code> on Windows and <code>Applications</code> on Mac. The installation files are the ones that make up the core and backbone of the game, including the UI, in-game meshes and textures, the Universal NPCs (e.g. [[Grim Reaper]], [[Mrs. CrumpleBottom]]), audio files, and the game's programming itself. These files are normally not modified. If they're modified improperly, the game may begin behaving unpredictably, and the only way to fix it is to reinstall the game, or to replace the modified installation files if you can get access to fresh versions.
The player's saved game data, custom content, lot and houses bin, storytelling images, neighborhood stories, etc. are stored at ''C:\Users\<your user name>\My Documents\EA Games\The Sims 2\'' or ''C:\Documents and Settings\<your user name>\My Documents\EA Games\The Sims 2\'', depending on the version of Windows installed on your computer. Corruption normally occurs in a neighborhood's folder, located in the ''Neighborhoods'' folder. Each neighborhood gets a folder with a unique ID on it (E.g. 'N001') where data relating to the neighborhood, such as Sims, relationships, memories, and lots in the neighborhood are located. Corruption that occurs here is known as "Neighborhood Corruption", and fortunately, it is far less serious than game corruption, but it's also far more common.
 
With ''hood corruption'', the corruption occurs within ''your saved game data''. These are typically located in your Documents folder, and includes your neighborhoods, custom content, lots and houses bin, storytelling images, and so forth. You can typically find these files at:
==Known symptoms of corruption==
*'''Windows:''' <code>Users\<your username>\Documents\EA Games\The Sims 2</code>
[[File:TS2 corruption thought bubbles squiggly lines.jpg|thumb|200px|A possible symptom of corruption - a thought bubble containing distorted text.]]
*'''Mac:''' <code>\Users\<your username>\Library\Containers\com.aspyr.sims2.appstore\Data\Library\Application Support\Aspyr\The Sims 2</code>
This is an '''incomplete list''' of possible symptoms that may indicate corruption. '''Not all symptoms listed here may be a sign of corruption,''' but may be indicators of other problems, such as bad custom content.
 
Corruption normally occurs in a neighborhood's folder, located in the ''Neighborhoods'' folder. Each neighborhood gets a folder with a unique ID on it (e.g. <code>N001</code>) containing data relating to the neighborhood (e.g., Sims, relationships, memories, and lots in the neighborhood). Neighborhood corruption is more common than game corruption, but it's often more easily fixable.
Symptoms include:
* Children and toddlers with long-term wants other than Grow Up.<ref>Certain pre-made Sims, such as [[Daniel Bell]], have these oddities.</ref>
* Wants that don't fit the age group (e.g. a toddler who suddenly wants to go on a date).
* Memories and thought bubbles that contain squiggly lines or stretched or distorted text.
* Memories being lost or totally random.
* Disappearing Sims.
* Disappearing lots.
* Sims losing family members in their family tree.
* Sims becoming unplayable.
* Lots becoming unplayable.
* Buy and Build Mode becoming indefinitely disabled.
* The game crashes frequently or excessively.
* Sims showing stats, such as [[Personality]], of other Sims of the neighborhood. This can be checked in-game or using [[Package editor#SimPE|SimPE]].
 
===What is and isn't corruption===
When a neighborhood or game becomes irreversibly corrupted, it is referred to by some players as a "BFBVFS" (<u>B</u>ig <u>F</u>iery <u>B</u>all <u>V</u>isible <u>F</u>rom <u>S</u>pace).<ref>{{Wayback|url=http://wikka.moreawesomethanyou.com/BFBVFS|date=20090917032033|title=BFBVFS - MATYWikka}}</ref>
This is an '''incomplete list''' of possible symptoms that may or may not indicate corruption. '''Not all symptoms listed here may be a sign of corruption,''' but may be indicators of other problems, such as bad custom content.
 
==Avoiding==Definite gamesigns of corruption====
Symptoms include:
The following actions are known to ''corrupt your game files''. They should ''never'' be attempted, unless you are just happy to have a broken game. ''Actions taken here will not only corrupt your game, but will also corrupt all your neighborhoods, existing and future''. In short: '''Do not try this at all!'''
*Children and toddlers with aspirations other than Grow Up, or long-term wants.
* '''Interact with universal NPCs, such as the [[Grim Reaper]], [[Mrs. CrumpleBottom]], [[Therapist]], [[Pollination Technician]]s, [[ideal plantsim]], etc. in ''any way outside of their in-game designated purposes''.'''
**Some pre-made Sims are an exception to this rule: for instance, [[Daniel Bell]] has a long-term want. However, this only applies to pre-made Sims.
** These Sims do not have playable character data. Their character files are not located in the folder of the neighborhoods, but in the objects.package file in the C:\Program Files location. Modifying them in any way or form that involves hacks, cheats, or [[Package editor#SimPE|SimPE]] will corrupt that file.<ref name="NPC1">[http://www.modthesims.info/showthread.php?t=349317 A thread at MTS that discusses the issue further].</ref>
**If you use cheats to age a teen or older Sim into a child or toddler, they will retain their aspiration and long-term wants. This is ''not'' a sign of corruption.
** [[Game guide:Which NPCs are safe to play as|Here is an incomplete list]] of known NPCs that are safe to play as, and those that aren't.
*Children whose family tree contains [https://i.redd.it/siyqi943soo61.png animals] as their mother or father.
* '''Modify ''any'' file in the C:\Program Files location in ''any way'' or form.'''
*Wants that don't fit the age group (e.g., a toddler who suddenly wants to go on a date. Toddlers wanting to buy a tree or a bush is ''not'' corruption, as this want is allowed for that age group).
** These files were not intended by Maxis/EA for you to tamper with them, and doing so could void your warranty and destroy your game. '''There are a ''few'' files that ''can'' be safely modified ''if you know exactly what you are doing''.''' The [[Game guide:Allmenus cheat|allmenus cheat]] is a perfect example of safely modifying the core game files.
*Memories being lost or totally random.
*Memories displaying <code>$Subject</code> (e.g. "$Subject Got an A+").
*Sims completely disappearing from the neighborhood.
*Disappearing lots. (While some lot types, like secret societies, don't appear in neighborhood view, most lot types should not disappear.)
*Sims losing family members in their family tree.
*Sims showing stats, such as [[Personality]], of other Sims of the neighborhood. This can be checked in-game or using [[Package editor#SimPE|SimPE]].
*Sims losing stats, like suddenly losing all Personality points and skill points.
*Neighborhoods causing the game to crash, even with no custom content installed.
 
==Avoiding==Things neighborhoodthat are not corruption====
The following symptoms or behavior are not desired game behavior, but are not corruption.
The following actions will '''permanently''' corrupt your neighborhood. There are methods of getting a corrupted neighborhood to keep running for a good while longer, but these are not permanent solutions. The best option is to never attempt these actions.
*'''Blank or blue Wants/Fears slots.''' This can be caused by a momentary glitch or certain mods, but it's not corruption.
* '''Delete a Sim in the [[family bin]].'''
*'''"Sim does not exist"/"Incorrect subject instance" or Sim Wants and Fears errors in HoodChecker.''' This usually just means that the relevant relationship, memory, or token is pointing to the wrong location, and can be easily fixed with HoodChecker.
** The in-game delete button doesn't delete the Sim entirely. It shreds off a portion of the Sim's character file and their Sim Description (which is located in the Neighborhoods.package file), unlinks the character file, and leaves a 1KB character file in the "Characters" folder. The game does not properly clean out all references to the Sim, which means that memories, gossip, relationships, Sim Wants and Fears, etc. that involve the deleted Sim ''are now corrupted'', as they point to non-existent data. Even if a Sim was created fresh out of Create-A-Sim, '''it doesn't mean that they are safe to delete via this method'''.
**"Sim does not exist" errors do ''not'' mean that a Sim has been deleted. Deleted Sims will be displayed at the top of the HoodChecker log with the message, "Sim has no Character file."
*** [[Game guide:How to delete a Sim correctly|This page]] shows you how to delete a Sim correctly. It's not perfect, and it still leaves some rubble behind, but it is nonetheless safer than the in-game delete button.
*'''Pink or purple flashing.''' This happens when the game runs out of texture memory and starts dumping textures that are currently in use.<ref>[http://www.leefish.nl/mybb/showthread.php?tid=7909&pid=41063#pid41063 LeeFish: Sims 2 UC Win10 Pink Flashing (Post #2)]</ref> It's not related to corruption.
* '''Delete Character Files from the C:\Documents\EA Games\The Sims 2\Neighborhoods\<Hood>\Characters folder.'''
*'''Blue flashing.''' This usually indicates a missing texture, missing item groups, or a glitchy mod. (Sims with flashing blue faces can be fixed through Change Appearance in the mirror.)
** The neighborhood saves Sim data in two different locations - the Neighborhood.package file, and the character file itself. If you delete the character file without properly cleaning the Neighborhood.package file, '''your hood will be left with half-a-Sim, and will not function properly'''.
*'''Red flashing.''' Red flashing doesn't mean corruption; it just means the game thinks your graphics card or drivers are unsupported.<ref>[https://modthesims.info/wiki.php?title=Game_Help:Red_Flashing_Walls Game Help: Red Flashing Walls (Mod The Sims)]</ref> (It can also be caused by outdated lighting mods.)
*** The character file(s) can be deleted safely once [[Game guide:How to delete a Sim correctly|this]] method is followed.
* '''Delete Lot Files from the C:\Documents\EA Games\The Sims 2\Neighborhoods\<Hood>\Lots folder.'''
** The neighborhood saves lot data in two different locations - the Neighborhood.package file, and the lot file itself. If you delete the lot file without properly cleaning the Neighborhood.package file, '''your hood will be left with half-a-lot, and will not function properly'''.
*** To delete a lot, move all Sims, tombstones, and urns out of it, sell the lot if it is an owned business, use [http://cyjon.net/node/430 Cyjon's Lot Inspector] to verify that it is safe to delete, and then bulldoze it from the neighborhood.
* '''Move an occupied lot or an owned community lot to the lot bin.'''
** The game transfers character data from the neighborhood to the lot bin, but does not completely erase all traces of the Sims from the neighborhood. Sims in the neighborhood may gossip about the missing Sims, spreading the corruption around the hood. Also, moving the lot back into the neighborhood will ''create'' new character files, instead of overwriting the existing ones. Moving the lot into another neighborhood ''will'' introduce the corruption to the hood it is moved into.
*** You can move Sims from one hood to another by [[Game guide:How to extract the appearance of in-game Sims|extracting their appearances]] and then recreating them in [[Create a Sim]] in the new neighborhood. This is the only known method that is 100% safe.
*** Occupied lots that are already in the bin are safe to delete, as the damage has already been done.
* '''Move a previously occupied/owned lot to the lot bin.'''
** Lots that can be lived in or owned by Sims will carry references and tokens that are connected to the Sims that live on/own the lot. If you move the lot into the lot bin, those references go along with it, and '''will corrupt any neighborhood that it is moved into'''.
* '''Install an occupied lot, including downloaded lots that ship with families.'''
** If the sims had any relationships with any sims not living on the same lot in their original neighborhood, placing the lot in your neighborhood will ''create partial character files of all the sims that the lot's residents used to know''. This will cause ''errors in the long run''. You may find some occupied lots available for download which the creator has 'cleaned' to make them safe; the cleaning process is not 100% reliable, ''so you should exercise extreme caution and back up your neighborhoods before installing''. The two occupied lots, [[Kat family|Kat]] and [[Kim family|Kim]], that ship with ''[[The Sims 2: Pets|Pets]]'', are 100% safe.
*** If you want the Sims that come with the lot and not the lot itself, create a new neighborhood, move the occupied lot into the neighborhood, and then extract the appearances of the Sims using [[Game guide:How to extract the appearance of in-game Sims|this method]]. Then re-create the Sims in CAS in the neighborhood you want to move them in. You can delete the corrupted neighborhood if you wish, as you no longer need it.
* '''Use the ''DeleteAllCharacters'' cheat.'''
** This cheat, like the family bin delete button, will destroy part of all the character files in the neighborhood and leaves lots of junk, orphaned information. New Sims created may acquire this corrupted data.
*** If you want to create a neighborhood with no Sims at all, follow [[Game guide:Creating a clean neighborhood|these instructions]].
* '''Delete Tombstones/Urns'''
** Tombstones and urns are treated as Sims by the game. Deleting a tombstone/urn is the same as deleting a Sim using the in-game delete button - ''the character file is damaged'', the Sim unlinked, and the memories, gossip, and references left behind to corrupt the neighborhood.<ref>There are a number of glitches that can delete urns/stones for no apparent reason, which makes dead Sims extremely glitchy and dangerous. Pescado's No Unlink on Delete mod prevents corruption from occurring due to these unpatched bugs.</ref>
*** Install Pescado's [http://www.moreawesomethanyou.com/smf/index.php/topic,2083.0.html No Unlink on Delete] mod '''now''' to avoid corruption caused by the deletion of urns/tombstones. The mod prevents the game from shredding character file data when urns/stones are deleted. As long as the character data is intact, and nothing is unlinked, the references to the Sim are valid and uncorrupted, because they are pointing to ''a Sim that exists''.<ref>Even with the mod, it is still recommended that you do not delete the urn/stone - it is mainly a precaution in case the game deletes the Sim for no reason.</ref>
*** Again, to delete Sims, follow [[Game guide:How to delete a Sim correctly|this method]].
*** If you wish to remove the urns/stones because of the annoying ghosts, create a community lot designated as a cemetery lot, and move the graves over there. Graves there will appear by the pay phone.
*** Graves in apartment lots are extremely unstable. If the last Sim in an apartment slot dies, the grave will be moved to a random community lot, ''but it may also be deleted or moved to a '''non-existent lot'''''. Use the [http://modthesims.info/d/316426 Select Your Cemetery] mod to force the game to give you the option to move the urns to a community lot. If you do not want mods in your game, move all Sims nearing death to houses.
* '''Move lots that have graves to the lot bin.'''
** Exactly like moving occupied lots in the lot bin. Graves are treated as Sims by the game, and moving them to the lot bin will leave ''corrupted references behind''. Moving them back into the neighborhood or into another neighborhood will simply cause ''more corruption''.
* '''Allow a Sim to die with graves in their [[inventory]].'''
** When a Sim dies, all items in their inventory are deleted. Deleting graves, as mentioned previously, will damage the dead Sim's character data, and corruption will spread around the neighborhood.
* '''Resurrect pre-made dead Sims that ship with the game.'''
** Most of these Sims have incomplete character data, and will cause corruption if resurrected.
* '''Put tombstones or urns on any of the Open for Business display cabinets or shelves.'''
** When a tombstone or urn is placed on an OFB shelf, it will be duplicated. The duplicate tombstone will still be connected to the sim. This will corrupt the Sim.
* '''Have too many Sims in your neighborhood.'''
** The game actually has a character file limit. If you have the base game or the ''University'' expansion, each neighborhood has a maximum population limit of 1000 character files. If you have Nightlife or a later EP/SP, the limit has been increased to around 32767 files.<ref>http://modthesims.info/showthread.php?p=3167095#post3167095</ref><ref>http://www.moreawesomethanyou.com/smf/index.php/topic,12892.msg367816.html#msg367816</ref><ref>http://www.modthesims.info/showthread.php?p=4457446#post4457446</ref> Once a neighborhood has reached the limit, any new Sims created will immediately be lost, and other symptoms of corruption may present themselves.
*** [[Game guide:How to delete a Sim correctly|Deleting a Sim using this method]] will remove the character file from your neighborhood, which can help in preventing you from reaching the limit.
*** The best way to avoid hitting the limit is to not generate so many Sims in the first place. Several mods can help prevent excessive Sims from being generated.
**** [http://www.moreawesomethanyou.com/ffs/al/hacks/notownieregen.zip NoTownieRegen], prevents the game from generating new townies.
**** [http://www.moreawesomethanyou.com/smf/index.php?topic=9607.0 Anti-Redundancy], prevents the game from generating more than 1 of each NPC type, instead of the standard 3 NPCs per NPC type per neighborhood.
**** [http://www.moreawesomethanyou.com/smf/index.php/topic,132.0.html NoSSrespawn], prevents the game from generating new [[secret society]] members.
**** [http://www.moreawesomethanyou.com/ffs/uni/hacks/nodormiespawns.zip NoDormieRespawns], prevents the game from generating new dormies.
**** [http://www.moreawesomethanyou.com/smf/index.php?topic=6027.0 NoStrayRespawn], prevents the game from generating new strays.
**** [http://cyjon.net/node/220 CJ-TownieApartmentResidents], allows the game to pick regular townies as [[apartment]] neighbors and [[roommates]] instead of [[social class]] townies, eliminating the need of generating them.
**** [http://cyjon.net/node/291 CJ-ThereCanOnlyBeOneProfessor], forces the game to only generate one professor instead of two per major.
*** You can also [[Game guide:Creating a clean neighborhood|create a new neighborhood with no Sims at all in it]].
* '''Save with ghosts active on the lot.'''
** If you load a lot with ghosts active, the game may delete all the graves on the lot. This may be to do with the fact that the ghosts are literally physical manifestations of the 'Grave-Sims' (as the game considers graves as Sims) and so the game removes the tombstones so that it isn't saved with two physical manifestations of the same Sim, which is usually not possible. When the graves disappear, the character file they are linked to gets partially deleted, leaving behind floating and orphaned references to the Sim, and so corruption occurs.
*** Pescado's [http://www.moreawesomethanyou.com/smf/index.php/topic,2083.0.html No Unlink on Delete] mod may prevent corruption from occurring if this happens.
* '''Remove multi-[[Pollination Technician]] or multi-[[PlantSim]] mods'''
** Multi-PT and Multi-PlantSim mods consist of one controller package which tells the game to use the custom PTs/PlantSims, and a number of packages which are the new pollination technicians or PlantSims themselves. Whenever you play a neighborhood with a multi-PT/PlantSim mod installed, the characters (namely the Sim Description) are added to that neighborhood even if none of your Sims are abducted or turned into PlantSims. If you delete the PT or PlantSim files from your Downloads folder, ''you are basically deleting their character file without properly cleaning the Neighborhood.package file'', which will corrupt your neighborhood.<ref>[http://www.modthesims.info/showthread.php?t=496887 This thread] discusses the issue further.</ref>
*** If you want to change to a different multi-PT or PlantSim mod, remove the controller package (usually the smallest one), but leave the character packages in your Downloads folder.
*** If you're starting a new neighborhood and don't want the PTs or PlantSims to be added to that neighborhood, copy the PT and PlantSim character files from your Downloads folder into the Documents\The Sims 2\Neighborhoods\Nxxx\Characters folder of each of your existing neighborhoods, then delete them from your Downloads folder.
**** You can also avoid this issue altogether by adding the files directly to the Characters folder of the neighborhoods you want the custom NPCs to appear in, rather than putting them in the Downloads folder.<ref>http://www.modthesims.info/showthread.php?p=4866515#post4866515</ref>
* '''Save with Sims on the telephone.'''
** When Sims chat with other Sims on the phone, the other Sim is, technically, considered to be on the lot, even though they are nowhere in sight. These Sims are called "Off-World Loiterers". If you save the lot, and install a new hack, patch, expansion pack, or stuff pack, all the objects on the lot will be reset. This normally isn't a problem, except when there are off-world loiterers that aren't a member of the household. The Sim making the call will be reset and return to normal, but the Off-world Loiterer is ''not sent home properly'', which will cause problems in the long run.
*** Pescado's [[FFS Lot Debugger]] has an option to remove off-world loiterers, but it only appears when they are present. Do ''not'' remove off-world loiterers while they are interacting with the Sim on the phone, as that will cause problems.
* '''Move lots to the lot bin with off-world loiterers on them.'''
** As previously mentioned, it is unsafe to move occupied lots into the lot bin. It is also unsafe to move a family out while one of its members are on the phone. The off-world loiterer is then left behind, and will remain even when another family moves in. Moving the lot to the lot bin will carry that Sim along with it, and will cause problems over time.
*** Pescado's [[FFS Lot Debugger]] has an option to remove off-world loiterers, but it only appears when they are present.
*** [http://cyjon.net/node/430 Cyjon's Lot Inspector] can tell you whether it is safe to bin or delete the lot. It can also locate off-world loiterers on unoccupied lots.
* '''[[Game guide:Which NPCs are safe to play as?|Attempt to move in, make selectable, or modify certain NPCs outside of their in-game designated purpose.]]'''
** There are certain NPCs that have playable character data and are possible to move in without the use of cheats - those Sims are usually safe, and probably intended by EAxis for you to move them in. However, there are some Sims that do not have a complete character file, such as the [[Social Worker]] or [[Repo-man]]. Tampering with them in any way or form outside of the in-game designated purposes may corrupt the neighborhood they are in.<ref name="NPC1" />
*** The [[Social Worker]] is glitchy, as she may be spawned as a blind date through the [[Gypsy Matchmaker]]. Do NOT attempt to interact with her if she does - delete her using the [[moveobjects]] cheat immediately.
*** [[Game guide:Which NPCs are safe to play as|This incomplete list]] indicates which NPCs are safe to play as and which ones aren't.
* '''Rezone a lot with Sims living or staying on it.'''
** The game has different rules for different types of lots. Some lot types do not allow the lot to be saved, others could make the lot disappear from the neighborhood. Only perform such a task on empty, preferably new and unused lots.
* '''Remove custom careers/majors while a Sim is employed or enrolled in them'''
** This will corrupt the households of the sims who use them. Your household may not load, and could cause problems when the sim visits your other lots. Be sure to get all Sims employed/enrolled in that career/major to quit, and then remove it.
 
==Avoiding==What fixablecould neighborhoodbe, but isn't always, corruption====
Some game problems can be caused by corruption, but they can also be caused by something else.
The corruption here is known to be ''fixable'', but it still '''should not be attempted'''. It's always best to avoid corruption than to get corruption and struggle to repair it.
*'''Game crashes.''' There are ''many'' reasons your game can crash, such as insufficient memory or bad custom content. Corruption can cause crashes, but it's not the only or most likely cause.
* '''Delete custom or geneticized/townified skins or eyes'''
*'''Neighborhoods disappearing from the game or HoodChecker.''' Neighborhoods disappear when they contain unreadable data or can't be found by the game, which can be caused by renaming files improperly or incompletely, changing the name of your <code>Documents\The Sims 2</code> folder, or corruption. Check your game directory before assuming it's corruption.
** This will cause all Sims who were using the deleted skin or eyes to have corrupt DNA. You will have to fix the DNA of all affected Sims individually in [[Package editor#SimPE|SimPE]].
*'''Memories and thought bubbles with squiggly lines and/or stretched and distorted text.''' Sometimes the game displays squashed need icons (that resemble squiggly lines) because it can't find the proper thumbnail like [https://imgur.com/yq8SJSw this], which is not corruption. Thought bubbles displaying squashed interest icons may be corruption, but these can likely be fixed using the [[FFS Lot Debugger|BatBox]] to clear corrupt memories and gossip.<ref name="midge1" /> However, thought bubbles displaying squashed interest icons when gossiping about corrupt gossip have been patched out of the game since the [[The Sims 2: University|University]] or [[The Sims 2: Nightlife|Nightlife]] expansion packs. They may also be due to a Sim lacking wants when asked by another sim what they want through the ask interaction.<ref>April Black’s video provides more context. https://youtu.be/4GauWWd_5DM</ref>
*** Instructions on how to fix the genetics are listed [http://simsasylum.com/tfm/index.php?/topic/73-making-plastic-surgery-genetic/ here] (login required) or [http://modthesims.info/t/494394 here] (no login required).
*'''Sims disappearing from households or becoming unplayable.''' If a Sim vanishes from their household, but still appears elsewhere in-game (e.g. Relationships panel, family tree, memories), that can just be a glitch (and you may be able to summon them back to the lot using the Tombstone of L and D). It's a sign of corruption if the Sim has disappeared ''everywhere'' in-game or if they show up in memories as $Subject.
** Deleting default replacements is safe.<ref>http://modthesims.info/showthread.php?p=4286483#post4286483</ref>
*'''Lots becoming unplayable.''' If a single lot causes the game to crash, that specific lot may be corrupt, but moving out the family and bulldozing the lot will be sufficient. Sometimes lots may crash due to CC, and removing the problem CC will fix the crashing.
* '''Delete custom foods'''
*'''Buy and Build Mode becoming indefinitely disabled.''' Use ''Fix...'' > ''Reenable Controls'' on the [[FFS Lot Debugger|Batbox]] to reenable them.
** This breaks want trees for Sims whose favorite food was the deleted food, and will corrupt the memories of Sims who have a "Learned to make" memory for that food.
*'''"Sim has no Character file" in HoodChecker.''' Sometimes, running HoodChecker on a neighborhood returns the error "Sim has no character file." In an unmodded game, this ''is'' a sign of corruption, but if you have mods that add custom NPCs, this is a side effect of the mod and is completely normal. (Most custom NPCs have a character file beginning with <code>0x00</code>.)<ref name="midge1">[https://midgethetree.tumblr.com/post/629528762801864704/midge-is-squiggly-lines-thought-bubble-always-a Midge The Tree on Tumblr]</ref> There is an incomplete list of mods that create NPCs [https://modthesims.info/wiki.php?title=CustomContentThatCreatesNPCs here.]
*** Use Pescado's [[FFS Lot Debugger|Lot Debugger]] to reset all Sims whose favorite food was the deleted food.
*'''SimPE displaying Sim portraits with red or blue backgrounds or Mr. Potato Heads.''' Seeing these in SimPE can sometimes indicate problems, but they can also be harmless.
*** Use [[Package editor#SimPE|SimPE]] to remove all memories, gossip, and references to the deleted food. This, however, is very time-consuming, and you will no doubt miss something.
**Red backgrounds means SimPE can't locate all character data in the Sim's character file. This ''can'' be a sign of corruption if seen on normally-playable Sims, but this is also common for NPCs whose data is stored outside of the Characters folder (such as Universal NPCs, who are located in the ''objects.package'', or custom NPCs added to the Downloads folder).<ref name="mtsbg2">[https://modthesims.info/showthread.php?p=5666156#post5666156 Red/Blue Thumbnails in SimPE & Other Simmer's Experiences with It (Post #5)]</ref>
*** It ''may'' be possible to avoid this problem by editing the food so that it is set to false for all mealtimes. This will hide the food in-game but will not cause memory corruption. Instructions to do that can be found [http://modthesims.info/showthread.php?t=581640 here].
**The Mr. Potato Head appears when SimPE can't find the Sim's portrait. This doesn't indicate corruption; it can happen even if the Sim has a portrait in-game.<ref>[https://modthesims.info/showthread.php?p=5666062#post5666062 Red/Blue Thumbnails in SimPE & Other Simmer's Experiences with It (Post #2)]</ref>
* '''Let [[Samantha Ottomas]] and/or [[Sarah Crittur]]'s pregnancies come to term.'''
**Blue backgrounds means the Sim's character file is ''unlinked.'' It's not unusual to see this on NPCs with incomplete character files (e.g. [[Pollination Technician]] or the [[Unsavory Charlatan]]) or deceased Sims in premade neighborhoods.<ref name="mtsbg2" />
** A glitch exists in the game that causes pregnant Sims shipped in the family bin to carry babies with ''incomplete character data''. Both [[Samantha Ottomas]] and [[Sarah Crittur]] suffer from this glitch. The [[The Sims 2: Seasons/patch|Seasons patch]] fixed this problem in both Samantha and Sarah. However, it only fixes instances of these families in neighborhoods first opened after the patch is installed, including neighborhoods that shipped with Seasons or later expansion packs but that were not opened until after the patch was applied. Instances of the family in neighborhoods that were opened before the patch was applied will have the corrupted families.
**SimPE also has difficulty reading split character files, but the game does not. Split character files do not indicate corruption. They can be caused by certain mods.
*** If you have the unpatched Ottomas/Crittur family, and Samantha/Sarah has not yet given birth, use the [http://www.insimenator.org/index.php/topic,100226.0.html InSIMenator] or [http://simmanipulator.forumotion.com/t7-download-the-sim-manipulator Sim Manipulator] to terminate the pregnancy.
*** If Samantha/Sarah has already given birth to the babies, check their family tree with [[Package editor#SimPE|SimPE]]. If the babies recognize Peter/Danny as their father, you are safe. If they recognize someone else, such as a townie, another playable Sim, or a pet, change the family ties to the correct father. However, this is not a permanent solution, and your neighborhood is already corrupted.
 
==Corruption on Macs: The Mac File Limit==
==How to fix corruption==
Players on macOS need to be aware of the Mac file limit. MacOS has a built-in limit of how many files can be open at once which is not specific to any game. When launching ''The Sims 2'', the game opens every file in your game's Documents folder in addition to its installation files. If the computer's file limit is surpassed while the game is still opening, the computer will stop reading the game files, which can lead to temporary or permanent data loss (i.e., corruption).<ref name="maclimit">[https://bunsim.tumblr.com/MacFileLimitHelp Sims 2 on Macs: Crashes and File Limits]</ref>
===Game corruption===
Fixing game corruption is actually quite simple, but it can be time consuming. It's easy to simply check whether a file is corrupted or not - simply mouse-over the files and check the date it was modified at. The files should've been last modified in 2008 and earlier. If they were modified after that, it's possible that they're corrupted.
====The easy way====
The easiest way to fix game corruption is to reinstall the entire game! [[Game guide:Backing up your game|Back up]] your saved games and custom content, then proceed to [http://simswiki.info/wiki.php?title=Game_Help:Uninstall uninstall] all expansion packs, stuff packs, and the base game. Then, [http://simswiki.info/wiki.php?title=Game_Help:Install install] everything again. Copy your back up and move it back into the My Documents\EA Games\The Sims 2 folder. Install all the [http://simswiki.info/wiki.php?title=Game_Help:TS2_Patches patches] and make your game files read-only, if you haven't already (instructions are listed further down the article).
====The hard way====
First, you'll need to locate the corrupted files. Commonly corrupted files include the objects.package file, the files in the Sims3D folder, and lights.package.
 
===Signs you've hit the file limit===
Fortunately, a clean, uncorrupted copy of the files are located on the game CDs/DVDs. You can easily replace them without the hassle of reinstalling the game.
If you've hit the file limit, you'll experience strange in-game behavior that might not obviously resemble corruption. This can include:<ref name="maclimit" />
*'''Disappearing Sims:''' Sims permanently vanish from the Family Bin or their homes. These Sims will be missing from the Relationships panel and family trees, and memories about them will have no portrait and display <code>$Subject</code> in place of their name.
*'''Disappearing lots:''' Lots placed from the Lot Bin will be missing their buildings, and appear empty. In some cases, the lots may simply not appear in the Lot Bin.
*'''Missing lot or neighborhood icons:''' Neighborhood thumbnails are replaced by wireframe icons. If traveling between lots, the lot thumbnails will be replaced by the same wireframe icons.
*'''Widespread aspiration failure:''' All Sims and pets are suddenly experiencing [[aspiration failure]], including very young Sims (e.g. babies and toddlers).
*'''Body Shop shows a black screen:''' If you open Body Shop, the menu will appear, but the left side of the screen (where the mannequin appears) will be completely black.
 
===Avoiding the file limit===
First, plop the game CD/DVD (the one you use to start the game with) into the CD/DVD drive of your computer. The following is a list of what CD/DVD you need to use.
The only way to prevent corruption caused by hitting the file limit is to not reach the file limit in the first place. Luckily, there are several things you can do to reduce the risk.
*'''Close other programs before starting the game.''' The more programs you have open, the more files are in use on your computer, and the less space your Mac has to read the game files.
*'''Remove folders of neighborhoods that you don't play.''' If you don't play the premade 'hoods, drag their folders out of your game folder or delete them. If you have multiple neighborhoods, but only want to play with one specific neighborhood today, put the folders for the other 'hoods on your desktop. Leaving them in forces the game to open extra files.
*'''Prevent overpopulation.''' ''Always'' run your game with mods to reduce overpopulation, create townie-free custom neighborhoods, and avoid moving Sims across neighborhoods (as this creates excessive amount of "stub" files that the OS has to open).
*'''Clean up your custom content.''' The game opens your files in alphabetical order, meaning it reaches your Downloads folder before your Neighborhoods folder. A messy or overflowing Downloads folder will quickly bring you to the file limit.
**Delete redundant or glitchy files, content missing meshes or textures, or content that you don't use.
**Reduce the amount of custom content you're using.
**Organize your content by name or category. Avoid organizing your content into multiple subfolders, as this increases the number of files your game has to read.
**Rename files with lengthy names or special characters.
**Use default replacements where available. These typically store multiple recolors of custom content in a single .package file.
**Use content that's repositoried ("repo'ed" or "slaved") to existing in-game content or another piece of custom content.
 
{{Tip|If you have access to Windows, use SimPE or [https://modthesims.info/d/648473/ccmerger-1-4-merge-your-packages.html CCMerger] to merge custom content files together. This allows you to bundle multiple pieces of content into one or two files, thus reducing your chance of reaching the file limit.}}
*Base game - CD #2 (or DVD if you have the DVD version)
*University - CD #1
*Nightlife - CD #2
*Open For Business - CD #1 (the only CD)
*Family Fun Stuff - CD #1 (the only CD)
*Glamour Life Stuff - CD #1 (the only CD)
*Pets - CD #1 (or DVD if you have the DVD version)
*Seasons - CD #1 (or DVD if you have the DVD version)
*Celebration Stuff - CD #1 (the only CD, or DVD if you have the DVD version)
*H&M Stuff - CD #1 (the only CD, or DVD if you have the DVD version)
*Bon Voyage - CD #1 (or DVD if you have the DVD version)
*Teen Style Stuff - CD #1 (the only CD, or DVD if you have the DVD version)
*Freetime - CD #1 (or DVD if you have the DVD version)
*Kitchen And Bath Stuff - CD #1 (the only CD, or DVD if you have the DVD version)
*IKEA Home Stuff - CD #1 (the only CD, or DVD if you have the DVD version)
*Apartment Life - DVD #1 (the only DVD)
<br />
 
====Raising the file limit (MacOS Mojave and earlier) ====
*The Sims 2 Deluxe - DVD #1 (the only DVD)
You may have seen mentions of "raising the file limit" on forums or other ''Sims 2'' guides for Mac. It ''is'' possible to increase the file limit on macOS 10.14 (Mojave) and earlier using a Terminal command. Unfortunately, this was disabled in macOS 10.15 (Catalina), so anyone running 10.15 or higher cannot raise the file limit.
*The Sims 2 Double Deluxe - DVD #1 (the only DVD)
 
If your Mac is on 10.14 (Mojave) or lower, the way you raise the file limit depends on what version of the OS you're running.
Then, go to "My Computer/Computer", right-click on the CD/DVD, and select "Explore". If autoplay starts up, close it.
*On MacOS 10.11 through 10.14 (El Capitan through Mojave), follow the steps in [https://modthesims.info/t/608063 this guide].
*On MacOS 10.9 or 10.10 (Mavericks or Yosemite), follow the steps in [https://bunsim.tumblr.com/MacFileLimitHelp this guide].
 
There should be a file called "compressed.zip". Open it, and there should be a folder called "Res" in it. Open it, and you'll see it looks a lot like the C:\Program Files location. Find the file that you wish to replace, for example, the objects.package file. Right-click and Copy the file.
 
==Playing in a neighborhood while its package file is open in SimPE==
'''The Sims 2 Deluxe''': The installation files are not stored in a compressed file, but instead in uncompressed format within folders called 'Base' and 'EP2'. The game executables are stored in Compressed.zip, however. You can just copy and paste any files that are not in the compressed file.
The data regarding Sims and Lots is stored in two separate locations: the corresponding subfolders of the Neigborhood folder, and the neighborhood's main package file, named "[Number]_Neighborhood.package". If one opens this file in SimPE or a similar program, then launches the game and creates new Sims and lots in the neighborhood, these Sims and lots will disappear immediately and no data will reference them in the Neighborhood.package file, while they will still have their own separate files in the dedicated subfolders.
 
This is because the Neighborhood.package file, like any file on any computer, can only be edited in one program at once. While the game will still read it when it's open in SimPE, it is technically read-only and the game will not be able to save any modification made by the player. Because ''The Sims 2'' doesn't have an error message that would be displayed in the event of a save failure, it will look as if the progress was saved even though it has not. Always close SimPE, Hoodchecker, and any other ''Sims 2'' programs before running the game.
'''The Sims 2 Double Deluxe''': The installation files are not stored in a compressed file, but instead in uncompressed format within folders called 'Base', 'EP2' and 'SP4'. The game executables are stored in Compressed.zip, however. You can just copy and paste any files that are not in the compressed file.
 
==Avoiding corruption==
Now go to C:\Program Files\EA Games\The Sims 2 + the EP/SP that you use to start the game with\TSData\Res\The folder where the corrupted file is. Right-click on the corrupted file, and hold Shift while clicking Delete. This will delete the file right on the spot, instead of the hassle of sending it to the Recycle Bin. Now right-click and "Paste" the fresh file into the folder. Apply the [http://simswiki.info/wiki.php?title=Game_Help:TS2_Patches patches] again, and you're good to go!
Most forms of corruption, particularly game corruption, can be avoided by not doing certain things in-game.
=== Avoiding game corruption===
The following actions are known to ''corrupt the game's installation files''. They should ''not'' be attempted, as the only way to fix them is to reinstall the game.
====Interacting with Universal NPCs outside of their in-game designated purposes====
Certain NPCs, such as the [[Grim Reaper]], [[Mrs. CrumpleBottom]], [[Therapist]], [[Pollination Technician]]s, [[ideal plantsim]], and so forth, do not have playable character data. Their character files are not located in the folder of the neighborhoods, but in the ''objects.package'' file in the <code>C:\Program Files</code> location. Modifying them in any way or form that involves hacks, cheats, or [[Package editor#SimPE|SimPE]] will corrupt that file.<ref name="NPC1">[https://www.modthesims.info/showthread.php?t=349317 Mod The Sims: NPCs that are safe to marry]</ref> Unsafe interactions with these NPCs include:
*Making them selectable or moving them into a household
*Renaming them or changing their appearance
*Changing any of their data through SimPE
A list of unsafe NPCs, including Universal NPCs, can be found at [[Game guide:Which NPCs are safe to play as?]]
 
The following will not corrupt the game:
Note: If multiple files are corrupted, or if you're not sure what files are broken, you can just Shift+Delete the entire "Res" folder and replace it with the "Res" folder from the game CD/DVD. As always, you must re-apply the patches, as the files on the CD/DVD are not patched.
 
*Spawning Universal NPCs on your lot - just having these NPCs on your lot does not corrupt the game.
===Hood Corruption===
**This includes Universal NPCs being spawned to "collect" child ghosts. They may not be able to leave the lot, however, so you can delete them with the move objects cheat to remove them. There are several mods that will stop these NPCs from being summoned to collect child ghosts if you find this annoying.
The only way that will completely remove hood corruption is to delete the entire neighborhood. You can either delete the hood in-game at the main menu, or by deleting the folder in My Documents\EA Games\The Sims 2\Neighborhoods\.
*Clicking either yes or no on dialogs such as [https://i.redd.it/f5g8spnay05a1.jpg this] (Sims being introduced through Apartment Life's [[Reputation#Secret Networking|Secret Networking]] system)
**Clicking yes will create a relationship between your Sim and the NPC. However, relationships are stored in the neighborhood package file and will not result in a modification of your objects.package (or the character files)
**Clicking no will result in no change and no relationship will be created
**You can get [https://midgethetree.tumblr.com/post/616594357984854016/networking-friend-fix-sometimes-if-a-sim-has-a the Networking Friend fix] if you want the game to stop choosing Universal NPCs for this dialog.
 
====Recklessly modifying the game's installation files without backups====
If it was a pre-made hood, you can reset it to the default state using [[Game guide:Resetting the game without reinstalling it#The Sims 2|this method]]. '''Be sure to delete the old, corrupted neighborhood before placing the new one in''', otherwise you'll just corrupt it further.
It ''is'' possible to safely modify the game's installation files, but because these contain the core data used to run the game, indiscriminately messing with these files can cause glitchy behavior or prevent the game from starting. If you don't back up the files before modifying them, and the changes cause problems, you may be forced to reinstall the game to fix it. '''Always''' back up any installation files you plan on modifying, even if you don't think you'll have a problem—it's better to be safe than sorry.
 
{{Tip|The average ''Sims 2'' player can safely modify certain core files without causing damage. Examples of this include editing the ''Graphics Rules.sgr'' and ''Video Cards.sgr'', installing Sims2RPC, [[Game guide:Allmenus cheat|enabling the allmenus cheat]], and installing custom lighting systems.}}
The methods listed below can help reduce the risk of corruption, as well as provide options to fix it. Remember that most corruption is permanent - your neighborhood is essentially living on borrowed time. If you've become attached to the Sims in your hood, [[Game guide:How to extract the appearance of in-game Sims|extract their appearances]] so you can re-create them in CAS in your new neighborhood once the old dies. If your neighborhood is so badly corrupted that SimPE cannot open it, you may attempt to use the [http://modthesims.info/download.php?t=503733 SimRetriever] program.
 
====Deleting default replacements in-game====
==Suggested methods to reduce/prevent/fix corruption==
By default, the game prevents you from deleting EAxis content in Create-a-Sim or Buy/Build mode. However, using default replacements can reenable the in-game or Body Shop "Delete" icon. "Deleting" a default replacement will delete the texture of the object or Create-a-Sim content in the installation files, which can result in paper-white objects or Sims and break any related Want trees.<ref>[https://modthesims.info/t/577460 Mod The Sims: I deleted a Default Replacement the wrong way... :(]</ref> Unless you backed up your installation files, the only way to fix this is to reinstall the game. (Deleting a default replacement from your Downloads folder is completely safe.)
The best thing you can do to prevent corruption is to avoid doing the actions listed above, and follow the advice given. There are a number of mods and programs, created by skilled modders, that can help reduce corruption. Instructions on how to install most mods can be found [[Game_guide:Installing_custom_content#The_Sims_2|here]].
* '''Tarlia's [http://meetme2theriver.livejournal.com/63030.html Fixed Templates].'''
<!--Tarlia and meetme2theriver are the same person, so do not confuse them with each other.-->
** It's worth noting that pre-made neighborhoods ship pre-corrupted. [[Strangetown]] is the worst of all. These templates have fixed most of the corruption in the hoods.
* '''Pescado's [http://www.moreawesomethanyou.com/smf/index.php/topic,2083.0.html No Unlink on Delete] mod.'''
** This mod prevents the game from destroying the character data of graves that are deleted for any reason. It will NOT fix instances of graves that are deleted before the mod was installed.
* '''Pescado's [[FFS Lot Debugger]] (AKA The "Batbox").'''
** This is a buyable object found in the Miscellaneous/Miscellaneous section in [[Buy mode]]. It provides a number of options to fix problems that can occur with lots, delete stuck objects/tiles, and remove gossip. It also has the options necessary to [[Game guide:How to delete a Sim correctly|delete Sims the correct way]].
** A list of its functions can be found [[User:K6ka/FFS Lot Debugger options|here]].
* '''Arek_91's [http://www.modthesims.info/download.php?t=316426 Select Your Cemetery] mod.'''
** This mod allows you to select where you want to move graves from a lot to the community lot of your choice, instead of having the game strap a rocket to it and launch it into space. You can also choose to keep the graves on the lot like normal, if you wish. This is absolutely crucial for players with ''Apartment Life''.
* '''Mootilda's'' ''[http://www.modthesims.info/download.php?t=456523 Hood Checker]''.'''''
** This nifty little program will scan your neighborhood for any unusual or corrupted references, and provides an option to remove/fix them. It can detect and fix Family Ties, Sim Relations (SREL), Sims Wants and Fears (SWAF), and Memories. It will also scan for missing character file data, misplaced graves, and other items of interest.
* '''Mootilda's [http://www.modthesims.info/download.php?t=409950 Sims2Pack Clean Installer].'''
** This program is intended as a replacement to the game's default Bodyshop Installer. It allows players to properly install .sims2pack files, and allows to clean out any mods, hacks, or custom content that may have latched on during the packaging process. It can also show you whether the lot is occupied or not, so you can avoid corrupting your hood without knowing what happened until it was too late.
* '''Cyjon's [http://cyjon.net/node/148 Lot Debugger].'''
** This is designed to compliment Pescado's FFS Lot Debugger. It provides some options for fixing bugs, as well as report on some very useful information.
* '''Cyjon's [http://cyjon.net/node/430 Lot Inspector].'''
** This object is buyable from the Miscellaneous/Miscellaneous section of Buy mode, and will report on whether the lot is safe to bin or delete.
*** NOTE: Users who do not have Apartment Life or Mansion & Garden may find that the object doesn't work correctly for them. To make it work, press "Ctrl+Shift+C" to open the cheat box, type in [[boolProp testingcheatsenabled]] true, and click on the Lot Inspector. An object error dialog with "Bad gosub tree number" should pop up - click on "Cancel" to ignore the error. The inspector should then file a report.
* '''Pescado's [http://www.moreawesomethanyou.com/smf/index.php/topic,9607.0.html Anti-Redundancy mod].'''
** This mod prevents the game from generating more NPCs than needed, such as preventing multiple Unsavory Charlatans or Tour Guides from spawning. Instead, the game will call upon existing NPCs, only creating more when those are unavailable. This can prevent character file overload caused by the game generating loads and loads of NPCs.
* '''Cyjon's [http://cyjon.net/node/291 There can only be one (Professor) mod].'''
** This mod only allows the game to generate one [[professor]] for each [[major]], instead of the usual two. This can reduce the amount of character files in the neighborhood. Not required if you do not have ''[[The Sims 2: University|University]].''
* '''Pescado's [http://www.moreawesomethanyou.com/smf/index.php/topic,1482.0.html Creature Fixes mod].'''
** This mod, in addition to fixing a number of bugs, prevents [[Vampire#The Sims 2: Nightlife|vampires]] from biting Mrs. CrumpleBottom and any other NPCs, which can prevent both unwanted and unstoppable neighborhood and game corruption.
* '''Pescado's [http://www.moreawesomethanyou.com/smf/index.php?topic=2368.0 No Corrupted Death Memory mod]'''
** This mod prevents the formation of "corrupted death memories", seen in the form of "jagged lines", "tombstone", or "dead Sim". Will not remove existing memories.
* '''[[Game guide:Backing up your game|Back up your saved games]].'''
** All players are strongly recommended that they back up their saved data regularly. Players that either corrupt their neighborhood or notice an unusual problem that doesn't appear to be caused by bad custom content can simply revert to an earlier version of their neighborhood, similar to [[wikipedia:System Restore|System Restore]].
*** Backing up won't prevent corruption from occurring - it just allows you to revert to an uncorrupted version of your neighborhood should the original become corrupt. If your earliest backup is corrupted, you will have nothing to revert to.
*** This method does ''not'' prevent game corruption.
* '''Download and install all the [http://simswiki.info/wiki.php?title=Game_Help:TS2_Patches official patches].'''
** EAxis has released patches for the game that fix many problems with the game. All players should install the patches whenever possible, up to the latest expansion pack they have.
* '''Make all game files read-only.'''
** Making the game files read-only prevents the game from writing to those files, preventing game corruption from ever occurring. It will NOT fix existing corruption, however.
 
===Avoiding neighborhood corruption===
To make the game files read-only, go to ''C:\Program Files\EA Games\''. Select ALL of the folders in there, right-click and select "Properties". Click on the "Read-only" box '''twice''', so it's checked instead of just shaded. Select "OK". Your computer will then proceed to make all the files read-only. Remember to apply all the patches before doing this - if you need to install a patch after doing this method, you'll need to unset the read-only flag for all the files before you can install the patch. Also, if you hope to enable the [[Game guide:Allmenus cheat|allmenus cheat]], you'll need to unset the read-only flag from the file you want to edit.
The following actions will ''permanently'' corrupt your neighborhood. There are methods of getting a corrupted neighborhood to keep running for a good while longer, but these are not permanent solutions. The best option is to never attempt these actions.
 
====Deleting character or lot files from the Documents folder====
This method ''does not'' mean you can attempt to move in Universal NPCs or tamper with them in any way or form - it is only as a safeguard to prevent the game from possibly corrupting its own files.
The neighborhood saves Sim and lot data in two different locations: the Neighborhood.package file, and the character or lot file itself. If you want to delete a Sim or lot file from your game, do so using [[Game guide:How to delete a Sim correctly|this game guide]]. If you delete the character or lot file without properly cleaning the Neighborhood.package file, your hood will be left with half of a Sim or a lot, and will not function properly.
 
*The Characters folder is located at <code>~\The Sims 2\Neighborhoods\''<Hood>''\Characters\</code>
Do NOT make the files in the C:\My Documents\EA Games\The Sims 2\ location read-only. The game needs to modify those files in order to save your game. If you make them read-only, your game may not function correctly. Certain files, such as custom content, extracted appearances of Sims, Camera.txt files can be made read-only safely, but there's no point in doing so.
*The Lots folder is located at <code>~\The Sims 2\Neighborhoods\''<Hood>''\Lots\</code>
 
==== Using the ''deleteallcharacters'' cheat====
Contrary to popular belief, it's safe to delete Sims from the [[Family bin|Family Bin]].<ref name="matydel">[http://www.moreawesomethanyou.com/smf/index.php?PHPSESSID=4d966d677b98eac6343e0b7555f54957&topic=23232.msg608607#msg608607 More Awesome Than You!: Are stub character files really harmful to your game? If so, how? (Reply #2)]</ref> When you delete a Sim from the bin, the Sim's character file is "stubbed," but the file itself is still complete.<ref>[https://modthesims.info/showthread.php?p=5798549#post5798549 Mod The Sims: How EXACTLY does deleting Sims from the family bin cause corruption? (Post #1)]</ref> However, the <code>deleteallcharacters</code> cheat wipes out all character files in the neighborhood's Characters folder, and may not fully clean out all the data.<ref name="mtspg2">[https://modthesims.info/showthread.php?p=5798747#post5798747 Mod The Sims: How EXACTLY does deleting Sims from the family bin cause corruption? (Post #32)]</ref> To be on the safe side, avoid the cheat, and use [[Game guide:Creating a clean neighborhood|these instructions]] to create a new neighborhood with no Sims at all.
 
====Using ''changelotzoning'' on occupied lots====
Trying to use the <code>changelotzoning</code> cheat on an occupied lot will cause problems in-game. Some lot types do not allow the lot to be saved, while others could make the lot disappear from the neighborhood. If you want to change the lot zoning of an existing lot, move any Sims out first, and don't attempt to change the lot zoning of a community lot that your Sim is currently visiting.
 
====Overpopulating your neighborhood====
The maximum value of the Sim Creation Index is 32767. Once a neighborhood has reached the limit, trying to create any new sims (via births, CAS or any other way) will result in the game crashing. This is not actually a character file limit as previously thought because if you manually set the SCID to 32767 you will see the same results as if you actually had 32767 character files - the limit is with the value of the SCID and not the number of files.
 
However, MacOS users also have the MacOS file limit to contend with and need to be cautious of running up against that file limit. Additionally, Windows players with all EPs and SPs have sometimes reported issues with their game once their Characters folder surpasses about 1,000 Sims.<ref>[https://modthesims.info/showthread.php?t=663154#post5798579 Mod The Sims: How EXACTLY does deleting Sims from the family bin cause corruption? (Post #5)]</ref>
 
The best way to avoid hitting the limit is to prevent unnecessary Sims from being generated. There are multiple ways to do so:
*Use [[Game guide:Avoiding corruption#Reducing the risk of corruption|mods designed to prevent overpopulation.]]
*When creating new neighborhoods, [[Game guide:Creating a clean neighborhood|create them with no preexisting townies]].
*Avoid moving many Sims between neighborhoods. The process is technically safe, but it creates "stub" files of every Sim who knows each Sim in the household, and brings these stub files over to the new neighborhood. This can quickly fill up the Characters folder and lead to overpopulation.<ref name="mtspg2"/> If you want to move Sims to a new neighborhood without bringing in extraneous character files, [[Game guide:How to extract the appearance of in-game Sims|extract their appearances with SimPE]] and then recreate them in the new neighborhood in [[Create a Sim]].
 
====[[Game guide:Which NPCs are safe to play as?|Attempting to move in, make selectable, or modify certain NPCs outside of their in-game designated purpose]]====
There are certain NPCs that have playable character data and are possible to move in without the use of cheats. However, there are some Sims that do not have a complete character file, such as the [[Social Worker]] or [[Repo-man]]. Tampering with them in any way or form outside of the in-game designated purposes may corrupt the neighborhood they are in.<ref name="NPC1" />
 
A list of unsafe NPCs can be found at [[Game guide:Which NPCs are safe to play as?]]{{Warning-header|Prior to the [[The Sims 2: Open for Business/Patch|Open For Business patch]], the [[Gypsy Matchmaker]] could sometimes spawn the Social Worker as a blind date. If this occurs, delete her using the [[moveobjects]] cheat. Do ''not'' attempt to interact with her.}}
 
==== Resurrecting some premade dead Sims====
Several Maxis neighborhoods have deceased Sims with incomplete character data, corrupted genetics, or [[Power (aspiration)|defunct aspirations]]. This is most prevalent in the original three neighborhoods ([[Pleasantview]], [[Strangetown]], and [[Veronaville]]). Resurrecting these Sims with the [[Resurrect-O-Nomitron]] can cause glitchy behavior.
 
==== Removing mods that create custom NPCs====
Some mods or custom content create NPCs as part of the mod. These include custom objects that move around a lot (e.g. bicycles or farm animals), multi-[[Pollination Technician]] or multi-[[ideal plantsim]] mods, or Sims that otherwise function as part of the mod (e.g. nurses in any version of Chris Hatch's hospital mod). Once these NPCs have been created, simply deleting the mod's files is similar to deleting files out of a neighborhood's Characters folder: it only partially deletes the NPCs from the neighborhoods, so character data points to the wrong location and causes corruption.<ref>[https://www.modthesims.info/showthread.php?t=496887 Mod The Sims: I didn't corrupt it .. oh, maybe I might have? Removing NPCs/about PT mods]</ref>
 
If you want to get rid of a mod that created custom NPCs in your game, you ''can'' delete the mod, but you must keep the NPCs in your existing neighborhoods. Find the file for the custom NPCs, and move them from your Downloads folder into the <code>Documents\The Sims 2\Neighborhoods\''<Hood>''\Characters</code> folder of each of your existing neighborhoods. Afterwards, you can delete all of the relevant mod files from your Downloads folder.
 
{{Tip|If you want to add mods with custom NPCs to specific neighborhoods, but not all of them, put the NPC character files directly into the Characters folder of the neighborhood(s) you want them to appear in.<ref>[https://www.modthesims.info/showthread.php?p=4866515#post4866515 Mod The Sims: My poor new neighborhood! (Post #22)]</ref>}}
 
====Removing custom memories from your Downloads folder====
The game considers memories to be objects given to Sims. Some game mods, such as the [[InTeenimater]], include custom memories as part of the mod. If you delete these custom memories when a Sim already has them, the custom memory can potentially turn into something else (like another object), which causes problems in-game.<ref>[https://old.reddit.com/r/sims2help/comments/tsst68/deleting_mods_that_have_custom_memories/ r/sims2help: Deleting mods that have custom memories]</ref>
 
If Sims in your neighborhood already have these custom memories, you can either remove the memories from the affected Sims using the Memory Manipulator (found [https://simmanipulator.forumotion.com/t64-memory-manipulator here]) or SimPE, and then wipe corrupt memories and gossip using the [[FFS Lot Debugger]]. Once no Sims have the memory, you can delete the file containing the custom memory.
 
<!-- Editor's note, July 2022: At the time of editing, the Sim Manipulator forum is still active. If the forum goes down at a later date, you may be able to replace it with the direct MediaFire link: https://www.mediafire.com/file/vyvu72bkf9gc449/Memory_Manipulator.zip/file -->
 
====Removing custom careers or majors that are in use====
If you delete a custom career while Sims are employed in it, or a custom major your Sim is enrolled in, the game will not properly reset your Sim's career or major. Sims who were at work or class will go missing, and households of Sims who used the custom career or major might not load. Poorly-created custom careers and majors can even cause problems across all lots in the neighborhood when deleted.<ref>[http://www.moreawesomethanyou.com/smf/index.php/topic,14801.msg427722.html#msg427722 More Awesome Than You: CC in use. What can be removed without exploding stuff? (Replies #21–25)]</ref> Before deleting a custom career or major, have all Sims employed in the career quit their jobs, and direct all students enrolled in the major to change their major.
===Avoiding fixable neighborhood corruption===
The corruption here is known to be ''fixable'', but typically requires third-party tools to correct.
 
====Deleting custom or geneticized/townified skins or eyes====
This will cause all Sims who were using the deleted skin or eyes to have corrupt DNA. You will have to fix the DNA of all affected Sims individually in [[Package editor#SimPE|SimPE]]. (Deleting default replacements are safe.)<ref>[https://modthesims.info/showthread.php?p=4286483#post4286483 Mod The Sims: Stupid/random questions... (v3) (Post #13570)]</ref>
*'''How to fix it:''' Instructions on how to fix the genetics are listed at [https://modthesims.info/t/494394 Mod The Sims] or [https://simsasylum.com/tfm/index.php?/topic/73-making-plastic-surgery-genetic/ Sims Asylum] (login required).
 
====Deleting custom foods====
This breaks want trees for Sims whose favorite food was the deleted food, and will corrupt the memories of Sims who have a "Learned to make" memory for that food. It's safer to edit the food using SimPE to change it to "false" for all mealtimes, which hides the food in-game without causing memory corruption. (Instructions on doing so can be found [https://modthesims.info/t/581640 here].)
*'''How to fix it:''' If you've already deleted a custom food, use Pescado's [[FFS Lot Debugger|Lot Debugger]] to reset all Sims whose favorite food was the deleted food. Then, use [[Package editor#SimPE|SimPE]] to remove all memories, gossip, and references to the deleted food. This, however, is very time-consuming, and you will no doubt miss something.
 
==Reducing the risk of corruption==
Generally, most corruption occurs because of the player's actions. However, some oversights and glitches in the game can cause corruption without player intervention. Luckily, little effort is required to protect against it.
 
===Install mods designed to prevent corruption and overpopulation===
There are a number of mods and programs, created by skilled modders, that can help reduce corruption. They have little to no impact on gameplay, and are highly unlikely to conflict with other mods. Instructions on how to install most mods can be found [[Game guide:Installing custom content#The Sims 2|here]].
{|class="mw-collapsible fandom-table"
!'''Anti-Corruption Mods'''
!'''What It Does'''
!'''EP required'''
!'''Notes'''
|-
|'''Mootilda's [https://www.modthesims.info/download.php?t=456523 Hood Checker]'''
|An external program to scan your neighborhood for any unusual or corrupted references and provide an option to remove/fix them. It can detect and fix Family Ties, Sim Relations (SREL), Sims Wants and Fears (SWAF), and Memories. It will also scan for missing character file data, misplaced graves, and other items of interest.
|[[File:The Sims 2 Icon.png|center]]
|HoodChecker is not compatible with macOS.
|-
|'''Mootilda's [https://www.modthesims.info/download.php?t=409950 Sims2Pack Clean Installer]'''
|An external program intended as a replacement to the game's default Bodyshop Installer. It allows players to properly install .sims2pack files, and allows to clean out any mods, hacks, or custom content that may have latched on during the packaging process. It can also show you whether a lot is occupied or not.
|[[File:The Sims 2 Icon.png|center]]
|Clean Installer is not compatible with macOS.
|-
|'''Pescado's [http://www.moreawesomethanyou.com/smf/index.php?topic=2368.0 No Corrupted Death Memory]'''
|Prevents the formation of "corrupted death memories" that lack event owners, which can be spread around neighborhoods through gossip.
|[[File:The Sims 2 Nightlife Icon.png|center]]
|Existing corrupt memories are not affected.
|-
|'''Pescado's [http://www.moreawesomethanyou.com/smf/index.php/topic,72.0.html FFS Lot Debugger (The Batbox)]'''
|A buyable object found in the Miscellaneous/Miscellaneous section in [[Buy mode]]. It provides a number of options to fix problems that can occur with lots, delete stuck objects/tiles, and remove gossip. It also has the options necessary to [[Game guide:How to delete a Sim correctly|delete a Sim's character file in the correct way]].
|[[File:The Sims 2 University Icon.png|center]]
|A list of its functions can be found [[User:K6ka/FFS Lot Debugger options|here]].
|-
|'''Cyjon's [http://cyjon.net/node/148 Lot Debugger]'''
|Designed to complement Pescado's FFS Lot Debugger. It provides some options for fixing bugs, as well as report on some very useful information.
|[[File:The Sims 2 University Icon.png|center]]
|Requires Cyjon's [http://cyjon.net/node/323 Smarter EP Check] to work.
|-
|'''Cyjon's [http://cyjon.net/node/430 Lot Inspector]'''
|A buyable object from the Miscellaneous/Miscellaneous section of Buy mode, and will report on whether the lot is safe to bin or delete.
|[[File:The Sims 2 Icon.png|center]]
|Users who do not have Apartment Life or Mansion & Garden may find that the object doesn't work correctly. To make it work, press "Ctrl+Shift+C" to open the cheat box, type in [[boolProp testingcheatsenabled]] true, and click on the Lot Inspector. An object error dialog with "Bad gosub tree number" should pop up - click on "Cancel" to ignore the error. The inspector should then file a report.
|-
|'''Pescado's [http://www.moreawesomethanyou.com/smf/index.php/topic,1482.0.html Creature Fixes]'''
|In addition to fixing a number of bugs, prevents [[Vampire#The Sims 2: Nightlife|vampires]] from biting Mrs. CrumpleBottom and any other NPCs, which can prevent both unwanted and unstoppable neighborhood and game corruption.
|[[File:The Sims 2 Nightlife Icon.png|center]]
|
|-
|'''Cyjon's [http://cyjon.net/node/239 New Friend Fix]'''
|Prevents townies from introducing universal NPCs, such as the Therapist and the Grim Reaper, or pre-made dead Sims through the [[Reputation#Secret Networking|Secret Networking]] interaction (which does not cause corruption but you may wish to avoid it anyway).
|[[File:The Sims 2 Apartment Life Icon.png|center]]
|
|-
|'''Arek_91's [https://www.modthesims.info/download.php?t=316426 Select Your Cemetery] mod'''
|Allows you to select whether to move a grave from an apartment lot to a community lot, and if so, where to move it to. (The default game behavior is to move the grave to a random lot.)
|[[File:The Sims 2 Apartment Life Icon.png|center]]
|
|-
!'''Overpopulation Mods'''
!'''What It Does'''
!'''EPs required'''
!'''Notes'''
|-
|'''Pescado's [http://www.moreawesomethanyou.com/ffs/al/hacks/notownieregen.zip NoTownieRegen]'''
|Prevents the game from generating new townies.
|[[File:The Sims 2 Icon.png|center]]
|
|-
|'''Pescado's [http://www.moreawesomethanyou.com/smf/index.php?topic=9607.0 Anti-Redundancy]'''
|Prevents the game from generating more than 1 of each NPC type, instead of the standard 3 NPCs per NPC type per neighborhood.
|[[File:The Sims 2 Nightlife Icon.png|center]]
|
|-
|'''Cyjon's [http://cyjon.net/node/291 There can only be one (Professor) mod]'''
|Forces the game to generate only one professor per major, instead of the default two.
|[[File:The Sims 2 University Icon.png|center]]
|
|-
|'''Pescado's [http://www.moreawesomethanyou.com/ffs/uni/hacks/nodormiespawns.zip No Dormie Respawn]'''
|Prevents the game from generating new dormies.
|[[File:The Sims 2 University Icon.png|center]]
|
|-
|'''Pescado's [http://www.moreawesomethanyou.com/smf/index.php/topic,132.0.html No SS Respawn]'''
|Prevents the game from generating new [[secret society]] members.
|[[File:The Sims 2 University Icon.png|center]]
|
|-
|'''Pescado's [http://www.moreawesomethanyou.com/smf/index.php?topic=6027.0 No Stray Respawn]'''
|Prevents the game from generating new stray pets.
|[[File:The Sims 2 Pets Icon.png|center]]
|
|-
|'''Midge The Tree's [https://midgethetree.tumblr.com/post/181733621119/wcif-or-would-you-be-willing-to-share-the-safe Apartment Residents]'''
|Allows the game to pick [[Game guide:Which NPCs are safe to play as?|safe NPCs]], regular townies, and downtownies as [[apartment]] neighbors and [[roommates]] instead of [[social class]] townies, eliminating the need of generating them.
|[[File:The Sims 2 Apartment Life Icon.png|center]]
 
|
|}
 
===Install meetme2theriver/Tarlia's clean neighborhood templates===<!--Tarlia and meetme2theriver are the same person, so do not confuse them with each other.-->
Many of the premade neighborhoods ship with corrupt, incomplete, or simply inaccurate Sim data (with Strangetown being the worst off). Tarlia's templates have fixed most of the corruption in these 'hoods. The templates and their associated installation instructions can be found on [https://meetmetotheriver.tumblr.com/tagged/clean%20templates%20rerelease Tumblr].
 
{{Tip|Tarlia's Tumblr contains the most recent, up-to-date versions. The original clean templates can be found on [https://meetme2theriver.livejournal.com/63030.html Livejournal].}}
 
===Safeguard against child ghosts===
The game does not handle child ghosts properly. When a Sim dies, they are transferred to the "default" household, a household located in the neighborhood data which contains every deceased Sim as well as Universal NPCs. Ghosts (including child ghosts) only appear at night, but the game does not allow children to be left unsupervised outside at night and sends an adult Sim from the child's household to pick them up. However, the only available adult Sims in the "default" household are Universal NPCs. This causes the Universal NPCs to appear on the lot to "pick up" the ghost child, which they can't do. The NPC will subsequently wander around the lot, potentially leading to unsafe interactions and game corruption, but simply having the NPC show up on the lot is not a sign of corruption and does not cause corruption.
 
If you want to prevent this from happening, pick one of the following three options:
*Install the [https://modthesims.info/d/657223/child-ghost-npc-summon-fix.html Child Ghost NPC Summon Fix] mod to allow child ghosts to appear, but prevent Universal NPCs from showing up.
*Install [http://cyjon.net/node/188 Cyjon's Ghost Hack] to prevent child ghosts from appearing at all.
*Move the graves of children to a community lot as soon as they die.
 
===Save before quitting, not while quitting===
Saving while exiting a household or quitting the game isn't inherently dangerous. However, sometimes the game will crash while it's closing. If this happens in the process of saving, the relevant neighborhood files can become corrupted. Saving separately protects the neighborhood if the game crashes when closing, because the neighborhood files aren't being modified at the time of the crash.
 
===Back up your saved games===
Backing up doesn't prevent corruption from occurring; however, if your neighborhood begins showing signs of corruption, it allows you to restore an earlier version of your neighborhood that (ideally) isn't corrupt. For instructions on creating backups, see [[Game guide:Backing up your game]]. It is highly recommended that you make neighborhood backups often, at least as often as the amount of progress you can tolerate losing - likely a week per backup. This will allow for restoring your neighborhoods to a somewhat recent state in the event of corruption or a major error on your part.
 
{{Tip|If you plan on modifying the installation files in some way, copy the files or folders you'll be modifying and paste them to your desktop to create a backup.}}
 
===Make your ''objects.package'' read-only===
Making the ''objects.package'' file read-only prevents the game from writing to that file. It will ''not'' fix existing game corruption, and ''does not'' make it safe to tamper with the Universal NPCs afterwards, but it can help prevent the game from potentially corrupting its own files.
 
Every expansion and stuff pack has its own ''objects.package'' file. The game only uses the ''objects.package'' from the most recent expansion or stuff pack on your computer, so that's the only one that truly needs to be made read-only.<ref>[https://modthesims.info/showthread.php?p=5024896#post5024896 Mod The Sims: I deleted a Default Replacement the wrong way... :( (Post #14)]</ref> However, some players recommend making all ''objects.package'' files read-only as a protective measure.<ref>[https://modthesims.info/showthread.php?p=4202193#post4202193 Mod The Sims: Just started playing Sims 2. What are the most essential mods? (Post #18)]</ref>
 
{{Warning-header|Do ''not'' make the files in the ''Documents\EA Games\The Sims 2\'' location read-only. The game needs to modify those files in order to save your game, and making them read-only may cause your game to not function correctly.}}
 
====Windows====
Players running the Ultimate Collection through Origin will need to protect the ''objects.package'' for Mansion & Garden Stuff, which is the last stuff pack released.
*Open File Explorer.
*Navigate to <code>C:\Program Files\Origin Games\The Sims 2 Ultimate Collection\Fun with Pets\SP9\TSData\Res\Objects</code>
*Locate the ''objects.package'' file.
*Right-click ''objects.package'' and choose "Properties".
*Click the "Read-only" box so that it's checked.
*Click "OK" to apply the changes.
 
Players with the CD versions of the game will need to protect the ''objects.package'' of their chronologically last expansion or stuff pack. (For instance, a player who installed Nightlife and then University will protect the Nightlife ''objects.package''.)
{|class="mw-collapsible mw-collapsed fandom-table"
|+Directories for all expansion and stuff packs
!'''Most Recent EP or SP'''
!
!'''Directory'''
|-
|The Sims 2
|[[File:The Sims 2 Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2\TSData\Res\Objects\objects.package
|-
|The Sims 2 University
|[[File:The Sims 2 University Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 University\TSData\Res\Objects\objects.package
|-
|The Sims 2 Nightlife
|[[File:The Sims 2 Nightlife Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 Nightlife\TSData\Res\Objects\objects.package
|-
|The Sims 2 Open For Business
|[[File:The Sims 2 Open for Business Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 Open For Business\TSData\Res\Objects\objects.package
|-
|The Sims 2 Family Fun Stuff
|[[File:The Sims 2 Family Fun Stuff Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 Family Fun Stuff\TSData\Res\Objects\objects.package
|-
|The Sims 2 Glamour Life Stuff
|[[File:The Sims 2 Glamour Life Stuff Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 Glamour Life Stuff\TSData\Res\Objects\objects.package
|-
|The Sims 2 Pets
|[[File:The Sims 2 Pets Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 Pets\TSData\Res\Objects\objects.package
|-
|The Sims 2 Seasons
|[[File:The Sims 2 Seasons Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 Seasons\TSData\Res\Objects\objects.package
|-
|The Sims 2 Celebration! Stuff
|[[File:The Sims 2 Celebration! Stuff Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 Celebration! Stuff\TSData\Res\Objects\objects.package
|-
|The Sims 2 H&M Fashion Stuff
|[[File:The Sims 2 H&M Fashion Stuff Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 H&M Fashion Stuff\TSData\Res\Objects\objects.package
|-
|The Sims 2 Bon Voyage
|[[File:The Sims 2 Bon Voyage Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 Bon Voyage\TSData\Res\Objects\objects.package
|-
|The Sims 2 Teen Style Stuff
|[[File:The Sims 2 Teen Style Stuff Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 Teen Style Stuff\TSData\Res\Objects\objects.package
|-
|The Sims 2 FreeTime
|[[File:The Sims 2 FreeTime Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 FreeTime\TSData\Res\Objects\objects.package
|-
|The Sims 2 Kitchen and Bath Stuff
|[[File:The Sims 2 Kitchen & Bath Interior Design Stuff Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 Kitchen & Bath Interior Design Stuff\TSData\Res\Objects\objects.package
|-
|The Sims 2 IKEA Home Stuff
|[[File:The Sims 2 IKEA Home Stuff Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 IKEA® Home Stuff\TSData\Res\Objects\objects.package
|-
|The Sims 2 Apartment Life
|[[File:The Sims 2 Apartment Life Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 Apartment Life\TSData\Res\Objects\objects.package
|-
|The Sims 2 Mansion & Garden Stuff
|[[File:The Sims 2 Mansion & Garden Stuff Icon.png|center]]
|C:\Program Files\EA GAMES\The Sims 2 Mansion & Garden Stuff\TSData\Res\Objects\objects.package
|}
 
====Mac====
The ''objects.package'' is usually made read-only by default on Macs, but it never hurts to verify. The last expansion pack released for macOS was Bon Voyage.
 
*Open Finder.
*Select "Applications".
*Right-click on The Sims 2 Super Collection.
*Choose "Show Package Contents".
*Navigate to the directory for Bon Voyage. The directory varies slightly depending on whether you have the 64-bit or 32-bit version of the game.
**64-bit: <code>Contents\Assets\Expansion Packs\Bon Voyage\TSData\Res\Objects\objects.package</code>
**32-bit: <code>Contents\Home\Expansion Packs\Bon Voyage\TSData\Res\Objects\objects.package</code>
*Right-click ''objects.package'' and click "Get Info".
*Scroll to the section labeled "Sharing & Permissions".
*Click the lock in the lower right-hand side of the Get Info window. Enter the administrator password when prompted.
*On every listed account ''except'' for "system," click "Read and Write" and change it to "Read Only".
 
====Patch your game (if you're running the disc versions)====
If you installed The Sims 2 using the CDs, your game might have some unwanted and potentially dangerous bugs. The patches often fix the most dangerous issues, so all players should patch up to their latest expansion pack. You can find downloads of the patches [https://simswiki.info/wiki.php?title=Game_Help:TS2_Patches here].
 
Patching is '''not necessary''' for Windows users running the Ultimate Collection or Mac users running the Super Collection—these versions are already patched.
 
==Misconceptions regarding corruption==
OverJust the years, a number of misconceptions emerged whenlike corruption was first revealed to be extremely common in the game. At the start of this articleitself, onerumors of the biggestand misconceptions was debunked - gameabout corruption andhave neighborhoodspread corruptionover arethe two different thingsyears. This list contains some common misconceptions regarding corruption.
 
* '''Leaving [[testingcheatsenabled]] on for long or extended periods of time will cause corruption/game crashes/other horrible very bad things.'''
===Myth: Deleting Sims, urns, and gravestones causes corruption===
** The cheat ''itself'' doesn't cause corruption - it's the options that the cheat provides that can destroy your entire game. Things like the [[Tombstone of Life and Death]], which are spawnable via testingcheatsenabled, will cause corruption if used to move in/make selectable universal or known problematic NPCs. Also, the "Force Error" option that appears when shift+clicking an object will ''not'' cause corruption if clicked, but it's recommended that you do not use the option recklessly, as it's primarily used to resolve issues.
'''Fact:''' This is a widespread misconception debunked by several experienced modders. Understanding and disproving it requires some knowledge of how the game works.
* '''[http://simswiki.info/wiki.php?title=Sims_2:Object_Errors Object Error] dialogs'''
 
** Just because you see an error dialog ''does not always'' mean something is dangerously broken! Instead, you should be grateful that the software is aware that there is a problem and notified you, as if it did not have this functionality, it would simply crash. Object error dialogs are popped up by the game when an object in the game encounters a problem and is unable to continue. The dialog provides you with the name of the object that encountered the error, what the error was, and where the error log was created and dumped on your computer, as well as providing three options - "Cancel" (attempts to ignore the error), "Reset" (clears any actions queued on the object), and "Delete" (removes the object). Most of the time, the game will automatically select an option without notifying you, though you may still notice oddities such as Sims "jumping", or resetting. If you have [[testingcheatsenabled]] on, the game will always prompt you for any errors that the game encounters. The cheat itself didn't cause those errors - the only part it has behind those dialogs is that it's forcing the game to ask you what to do.
New Sims created in a neighborhood receive a unique ID, which is assigned incrementally. When a Sim is deleted via the Sim Bin, or when a Sim's tombstone or urn is deleted in Buy Mode, the Sim's character file is unlinked and turned into a "stub" file containing the Sim's bare-bones character data, ''including their ID.'' There's an inaccurate belief that stubbed or unlinked character files don't retain the Sim's ID, causing the game to reuse the ID for new Sims. However, since IDs are assigned incrementally, they can't be reassigned unless the character file itself is improperly deleted.<ref>[https://modthesims.info/showthread.php?p=5516388#post5516388 Mod The Sims: Properly deleting premade unlinked/dead sims - effect on neighborhood corruption? (Post #5)]</ref> This means that deleting Sims, gravestones, or urns is ultimately safe.
*** Objects encountering errors are not always a sign of corruption. Most of the time, it is simply a piece of custom content, or a poorly made mod/hack. Sometimes, it is due to a fault on the developer's end, such as missing animation scripts. However, if you constantly/repeatedly encounter object errors regarding Sims, game controllers, or portals, and you do not have any custom content installed, it's plausible that this is a sign of corruption.
 
*** Object errors may also provide benefits too. Often, when a mod/hack is not working, the creator may ask you to provide an error log, which are generated automatically when an object error dialog is shown. The error log enables the creator to troubleshoot the issue and update the mod to fix the problem.
However, deleting Sims must be done in-game. Deleting the files directly from your neighborhood's Characters folder ''can'' cause corruption, because this deletes necessary character data and causes Sims to begin using IDs already attached to other Sims.
* '''Sims that have a character file are safe to move in/make selectable/tamper with.'''
 
** All Sims have a character file - it's not whether the Sim has a file or not, but rather whether that file is complete and has a complete set of data.
Additionally, the stubbed character files of deleted Sims are not removed from the Characters folder or the Neighborhoods.package, so deleting Sims in game does not help to reduce the population of the neighborhood.<ref name="matydel"/>
* '''Bulldozing a lot will cause corruption.'''
 
** While it is understandable that, seeing how deleting just about anything in the game could cause corruption, deleting lots will remove certain references that the game requires, and doing so will corrupt the neighborhood. While lots that can be lived in (e.g. Dorms, Residential, Apartments, etc.) do contain references to Sims that previously lived there, bulldozing them from the neighborhood won't cause corruption. However, you should always move Sims out of/sell an owned community lot before you bulldoze it.
{{Info|Note|Deleting gravestones or urns unlinks the dead Sim's character file, which prevents them from being resurrected. Pescado's [http://www.moreawesomethanyou.com/smf/index.php/topic,2083.0.html No Unlink on Delete] will keep character files linked, even if you delete a Sim's urn or grave.}}
*** Moving an occupied or previously occupied lot into the lot bin will cause corruption.
 
* '''If it's an in-game feature that's available without cheats, it's safe.'''
===Myth: Binning occupied lots and/or moving Sims across neighborhoods causes corruption===
** As we all wish this were the truth, it isn't. Examples include the family bin delete button, the ability to move occupied lots into the lot bin, the ability to date the [[Social Worker]], etc. Those are things you can do without the help of cheats, mods, or hacks, and they will cause corruption.
'''Fact:''' This is another debunked misconception. Binning a lot with Sims on it creates "stub" character files, the same way it does when deleting Sims via the Family Bin, which isn't a problem on its own. The problem with binning occupied lots is that it creates stub files both of the binned family and every Sim with ties to the family. Placing the occupied lot in a neighborhood copies the resident Sims character files, plus stub character files of every Sim in their family tree or memories, which can speed up overpopulation.<ref name="mtspg2" />
* '''A thought/speech bubble with squiggly lines means the neighborhood is corrupted.'''
 
** As mentioned above, "'''not all listed symptoms may mean corruption'''". Thought/speech bubbles with squiggly lines in them have been sighted in clean, healthy neighborhoods as well. Some symptoms of corruption are also seen with poorly made custom content or hacks. As long as you never attempt the actions listed in this article, and as long as you routinely clean it with the HoodChecker, it should last a very long time.
===Myth: Thought/speech bubbles with squiggly lines mean the neighborhood is corrupted===
'''Fact:''' Squiggly lines are not always a sign of corruption. In some cases, they could appear when Sims would be thinking or gossiping about a Sim whose character file had been deleted, but this glitch seems to have been patched out before ''The Sims 2 : Night Life'' was released. In most cases, however, they appear because the game can't find the correct thumbnail (a notable example being the game not finding the missing hobby icons that should be used as a Sim is speaking or chatting when a player owns ''Apartment Life'', but not ''FreeTime'') or as a side effect of a mod or custom content. Because they're not a sign of corruption in most cases, speech bubbles with squiggly lines have been sighted in clean, healthy neighborhoods.
 
===Myth: Leaving [[Testing cheats|boolprop testingcheatsenabled]] on for extended periods causes corruption===
'''Fact:''' The cheat ''itself'' is completely safe. It's just a debugging tool, and you can leave it on the entire time you play without problems. What can cause corruption is misuse of the options available with the cheat, like spawning the [[Tombstone of Life and Death]] to interact with unsafe NPCs in ways you normally couldn't (e.g., moving them in or making them selectable).
 
The "Force Error" option that appears when shift-clicking an object will ''not'' cause corruption if clicked; it simply forces the object to display an error dialog even if it's functioning as anticipated. That being said, randomly resetting or deleting objects through Force Error can cause unexpected game behavior.
 
===Myth: Object Error dialogs are a sign of corruption===
'''Fact:''' Error dialogs ''do not'' mean something is dangerously broken; it just means an object in the game encountered a problem and is unable to continue. If you don't have [[testingcheatsenabled]] on, the game will automatically reset the object, which can cause Sims or objects to "jump" or suddenly reset. With the cheat on, if the game encounters an error, it will always ask you whether it should ignore the error (Cancel), reset the object (Reset), or delete the object (Delete). The cheat itself didn't cause those errors—it's only forcing the game to ask you what to do instead of handling the error itself.
 
Since [https://simswiki.info/wiki.php?title=Sims_2:Object_Errors object errors] are just errors, they're not always a sign of corruption. They can be caused by custom content or mods (e.g., installing an outdated mod), and even healthy games will have occasional object errors. If you constantly encounter object errors with no custom content or mods in your game, it can be a sign that something is wrong, but even then, it's unlikely to be corruption.
 
===Myth: Saving with Sims on the phone causes corruption===
'''Fact:''' Saving with Sims on the phone can cause ''bugs'', but not corruption. When Sims chat with other Sims on the phone, the other Sim is an "off-world loiterer": they're technically considered on the lot, but are not visible. If you save the lot, and something triggers a lot reset (for instance, installing a new mod), off-world loiterers on the lot are not sent home properly. At most, though, this just causes issues using the phone or binning the lot later, not corruption. (Stuck off-world loiterers can easily be removed with Pescado's [[FFS Lot Debugger]], using ''Nuke...'' > ''Off-World Loiterers''.)
 
===Myth: Saving with ghosts active on the lot can cause corruption===
'''Fact:''' Like with saving while Sims are on the phone, this can cause bugs, but not corruption. The game considers both graves and ghosts to be Sims. Saving a lot with ghosts active may cause the game to believe there are two physical manifestations of the same Sim, so upon the next load, the game may delete the tombstones so there aren't "multiple" of the same Sim on the lot. This can sometimes cause the gravestones to disappear, so it's best avoided if you want to keep the graves, but it doesn't cause corruption.
 
===Myth: Leaving custom tokens in will cause corruption===
'''Fact:''' This is not the case. Most mods that create custom tokens, like ACR, can be safely deleted without clearing the tokens. You ''can'' delete the token if you'd like, but it isn't necessary.
 
===Myth: Bulldozing a lot will cause corruption===
'''Fact:''' While lots that can be lived in (e.g. Dorms, Residential, Apartments, etc.) do contain references to Sims that previously lived there, bulldozing these lots from the neighborhood won't cause corruption. However, you should always move Sims out of/sell an owned community lot before you bulldoze it.
 
===Myth: Putting tombstones or urns on the Open For Business display shelves causes neighborhood corruption===
'''Fact:''' There used to be a bug where a tombstone or urn placed on an OFB shelf would duplicate the tombstone. This bug was fixed in a later patch.
 
===Myth: Letting [[Samantha Ottomas]] and/or [[Sarah Crittur]]'s pregnancies come to term causes corruption===
'''Fact:''' This is only the case in unpatched games, and even then, it's apocryphal. Prior to the [[The Sims 2: Seasons/patch|Seasons patch]], both [[Samantha Ottomas]] and [[Sarah Crittur]] had pregnancies containing incorrect character data, causing their children to have incorrect family trees—for instance, showing a Universal NPC as their father. However, there isn't clear evidence that this actually causes corruption.
 
Both of these pregnancies were fixed in the Seasons patch, so players with the Ultimate Collection, the Super Collection, or the patched version of Seasons can safely allow the pregnancies to come to term.
{{Info|Note|The patch only fixes the families in neighborhoods opened ''after'' the patch was installed. If you played the unpatched CD version of the game, and Samantha and/or Sarah have not yet given birth, you can use a tool like the Sim Blender to terminate the pregnancy if you wish.}}
 
===Myth: Sims that have a character file are safe to move in/make selectable/tamper with===
'''Fact:''' All Sims have a character file. It's not whether the Sim has a file or not, but rather whether that file has a complete set of data.
 
===Myth: All in-game features that are available without cheats are safe===
'''Fact:''' This isn't the case. While in-game features that don't require cheats are more likely to be safe, some (like going on blind dates with the [[Social worker|Social Worker]]) are not and will cause corruption.
 
===Myth: If nothing bad happens after doing something that was said to cause corruption, there's no corruption and the action was safe===
'''Fact:''' Just because nothing bad happens as soon as you do something doesn't mean it's safe. Symptoms of corruption don't always show up immediately, and it's better to be safe than sorry.
 
==Fixing existing corruption==
Even if you follow all the proper precautions to avoid corruption, sometimes things can still go wrong. Some forms of corruption can be fixed in some fashion; it just depends on the type of corruption that occurred.
 
===Fixing neighborhood corruption===
The most common way to fix a corrupt neighborhood is to restore a backup of it. Copy the most recent backup of your neighborhood, go to <code>~\Documents\EA Games\The Sims 2\Neighborhoods</code>, delete the folder for the corrupted neighborhood, and paste in the copy of the backup. You'll lose any progress made since that backup, but it's often better than losing the entire neighborhood.
 
Many forms of corruption can be fixed via HoodChecker or SimPE. However, not all of them can, so restoring a backup is generally the safest bet.
 
Unfortunately, if you don't have a backup and HoodChecker and SimPE can't repair the problem, you may not be able to recover the neighborhood. If you can open the neighborhood in SimPE, it might be possible to [[Game guide:How to extract the appearance of in-game Sims|extract the appearances of the neighborhood Sims]], which will make it easier to recreate the neighborhood.
 
===Fixing game corruption===
Fixing game corruption is actually quite simple (albeit time-consuming). To check whether a file is corrupted, mouse over the files and check the "Modified" date. The files should've been last modified in 2008 or earlier, or in 2015 if you have the Ultimate Collection. If they were modified after that, it's possible that they're corrupted.
 
====Run "Repair Game" through Origin====
If you're playing the Ultimate Collection on Origin, you can use the Repair Game feature to fix the game's installation files, and therefore repair game corruption. However, you'll need stable internet access.
*[[Game guide:Backing up your game|Back up your game]]. This includes any content in your installation files that you want to keep (e.g. Sims2RPC or your Graphics Rules files).
*Open Origin.
*Click on the tile for ''The Sims 2''.
*Choose the Settings gear. A dropdown with several options will pop up.
*Click "Repair Game". Origin will essentially reinstall the game, so this may take awhile.
 
{{Important note|Repairing the game through Origin will reset the installation files back to their default state, including your ''Video Cards.sgr'' and ''Graphics Rules.sgr'' files.}}
 
====Reinstall the game (CDs)====
The easiest way to fix game corruption is to reinstall the game. [[Game guide:Backing up your game|Back up]] your saved games and custom content, then proceed to [https://simswiki.info/wiki.php?title=Game_Help:Uninstall uninstall] all expansion packs, stuff packs, and the base game. Then, [https://simswiki.info/wiki.php?title=Game_Help:Install install] everything again. Copy your backup and move it back into the <code>Documents\EA Games\The Sims 2</code> folder. [https://simswiki.info/wiki.php?title=Game_Help:TS2_Patches Patch your game], make your game files read-only, and you're good to go.
 
{{Info|Note|It's possible to replace the specific game files that were corrupted instead of reinstalling entirely. Instructions can be found on Mod The Sims, at [https://simswiki.info/wiki.php?title&#61;Game_Help:Making_your_Objects.package_file_Read-Only Game Help:Making your Objects.package file Read-Only].}}
 
==A final note on corruption==
Most of the time, you don't need to worry about corruption. Much fear of corruption comes from inaccurate information spread in the game's earlier days, when modders and players alike were less tech-savvy and reinstalling the game was an all-day affair. ''The Sims 2'' is a much sturdier game than players initially believed, and much of what was once considered a sign of imminent doom is now seen as a minor error that's nothing to worry about.
 
Of course, don't throw caution to the wind; there ''are'' some things that will screw up the game or neighborhood, and being careless can cause ultimately-preventable issues. Install mods and clean neighborhood templates to reduce the risk of corruption, back up your neighborhoods regularly, and run HoodChecker now and again (if you're on Windows) to clean up junky data in your neighborhoods.
 
Ultimately, though, focus on what's most important: playing the game and having fun. Complex programs like ''The Sims 2'' will never run perfectly, and trying to prevent every problem before it happens can turn the game into a chore. At the end of the day, playing the game should be an enjoyable experience, not a stressful one.<ref>[https://modthesims.info/showthread.php?p=5550606#post5550606 Mod The Sims: Slowing corruption in a neighborhood with a corrupt subhood (Post #2)]</ref>
==''"I did one of the things that I was told not to do, otherwise it would cause corruption, and nothing bad has happened. It must be safe!"''==
This deserves a section of its own because it is so dangerously wrong. '''Just because nothing bad happens as soon as you do something doesn't mean it's safe!''' Think about the ingredients in hair shampoo, for example. A large amount of those chemicals cause cancer, yet you never emerge from the shower an automatic cancer victim because those chemicals need to build up in your body in order to kill you.<ref>http://ecowatch.com/2013/08/29/cancer-causing-chemical-in-shampoos/</ref><ref>http://www.healthline.com/health-news/cancer-dangerous-chemical-found-in-shampoos-and-soaps-082913</ref><ref>http://kron4.com/2014/05/06/cancer-causing-chemical-found-in-hundreds-of-popular-brand-shampoos/</ref> Like a virus in incubation, it will show no harmful symptoms, which prompts you to use it again and again. When the symptoms show up, it's far too late to go back. The same goes with corruption - for some people, the symptoms of corruption appear immediately, while other people don't notice anything for months, even years. However, in both ways, it's still corruption, and ''it will'' come back to haunt you!
 
==See also==
* [http://www.modthesims.info/showthread.php?t=394352 Thread on ModTheSims with some examples of what not to do in the game].
* [http://simswiki.info/wiki.php?title=Game_Help:Avoiding_Hood_Corruption Article about Hood Corruption on SimsWiki.Info], which this game guide was based on.
* [http://www.modthesims.info/showthread.php?p=4293501#post4293501 Post on ModTheSims] explaining what corruption is and how it works.
*[[Game guide:Which NPCs are safe to play as?]] on The Sims Wiki, lists NPCs that are safe to play as and move in, and NPCs that will cause corruption if made selectable or tampered with in any way outside of their in-game designated purpose.
*[https://modthesims.info/showthread.php?t=394352 Is there a list of non-intuitive things NOT to do in a Sims game?] - Mod The Sims thread with some examples of what not to do in the game. (Some posts have since been debunked, see above sections.)
*[https://www.modthesims.info/showthread.php?p=4293501#post4293501 Post on ModTheSims] explaining what corruption is and how it works - there is some misunderstanding here, namely that deleted Sims IDs can be reused, which is not the case unless the Sim Creation Index is reset. We currently are not aware of any in game mechanism that causes the SCID to reset, though it's possible there is one. Alternatively, SWAFs can be created for non existent Sims, which would look similar to Sims reusing IDs as young Sims can acquire those SWAFs.
*[https://sims.fandom.com/wiki/Game_guide:Avoiding_corruption?oldid=957860#See_also Game Help:Avoiding Hood Corruption] - guide on how to remove corruption from sims.fandom.com, which this article was based on.
*[https://youtu.be/2cB67DGDXFQ April Black's video] that goes into a deep dive as to what corruption is and is not.
 
==Notes==
{{reflistReflist}}
{{Feat game guide|May 2014}}
[[Category:The Sims 2 game guides]]
3

edits