Tutorial: Overriding Resources

With this small tutorial I will teach you how to keep an original resource, but replace it with a different one.

So whenever you want to use the original resource you can deactivate the replacement package.

Let's do this, step-by-step.
  1. Goto Documents\Electronic Arts\The Sims 3\Mods;
  2. Create a new folder where you will put overriding packages.
    In this case I will call it "Override".
  3. Open your Resource.cfg with Notepad and add the following lines to the top:
    Priority 1000
    PackedFile Override/*.package
  4. Save the modified Resource.cfg;
  5. Done.


Now every package that overwrite a original shall be put in the folder you've just created.

Explanation:
Resources are loaded by the engine according to the Resource.cfg;
This method guarantee that the override package will replace the original.
The Priority instruction tells the engine to load them after resources with lower priority.

Issues:
Resources that link to other resources may not work properly while overriding.
I speak of CASP | OBJD | OBJK | VPXY | MODL | MLOD mostly as tested.

It seems like the developers made they not to be replaced again, for some reasons:
Overflow while reading Resources:
Since those resources link others, the engine browse for them in the specified:
DBPF Package | into the already written cache | making references for looking them up later.
Replacing them again, might cause less flow into the memory/cache, a reason to avoid doing so.

This only means, that in case you have other of those resources with same identifiers already in your Mods folder,
the engine will not replace them, to avoid the issues I listed.
Or that can be just a bug into the loading process of the game.

Any doubts, just leave a comment, or send me an email and I will reply as soon as possible.

41 comments:

  1. So by doing this we can have the original hair intact and still have the texture you guys create?

    ReplyDelete
  2. Now that's clever, great idea!

    ReplyDelete
  3. "So by doing this we can have the original hair intact and still have the texture you guys create?"

    Exactly.
    This is such a better method in my opinion.
    Because with this, we don't have to share the meshes, only the textures.

    Sometimes this method of overwritten of the resource cache happens even without the need of an higher priority.
    But only if the package with the new textures contains a filename next of the original in alphabetical character order or is loaded after the original package.

    ReplyDelete
  4. aWT,

    I can't find the Resource.cfg

    Is it with the XM Hair or your Texture because I'm only getting a .package file with yours.

    Sorry I'm Confuzzled xD

    ReplyDelete
  5. "I can't find the Resource.cfg"

    Hey! He-he. It's okay.
    Well, you can find your Resource.cfg in your Mods folder.
    If you don't have one you will have to create it.

    Take a read at my overview of the Resource.cfg, at the bottom I explain where it need to be, as well, offer a link with some further directions if you still have trouble finding/creating it.

    ReplyDelete
  6. I have an Override folder that have alpha-edits of store clothes and textures in my .packages. Will that work?

    ReplyDelete
  7. B: "I have an Override folder that have alpha-edits of store clothes and textures in my .packages. Will that work?"

    B, that depends, if your override folder is loaded after the mesh, than it will.
    Otherwise you would need to add the Priority rule.

    ReplyDelete
  8. Will I need the mesh/original hair in package form for the new texture or will it override Sims3Pack textures too?

    ReplyDelete
  9. Sims3Pack is a useless file if not installed through Launcher or exported to package.
    If you install the Sims3Pack with Launcher you will be fine.

    ReplyDelete
  10. I just a have a little question,I merge all my file so my game won't be laggy,can I merge all your retextures and drop it in the override folder, as per your instructions, and have the meshes merged on another pack?

    ReplyDelete
  11. Lotus, yes you can.
    You can also merge the retextures with the original packages, making sure that "Replace Duplicates" is checked.
    By doing so, it will replace the original textures while merging.

    ReplyDelete
  12. Alright, it's even better merging everything together. Thanks a lot.

    ReplyDelete
  13. If the hair is installed via Sims3Pack will this still work?

    ReplyDelete
  14. If it was installed through the launcher and is inside of the DBCs at DCCache you don't need to apply this overriding rule.
    Would work both ways.

    Any content located at the Mods folder have high priority over DCCache content by default.

    ReplyDelete
  15. I'm not sure if I the Resource-File is correct now. It looks like this:

    Priority 1000
    PackedFile Override/*.package

    Priority 500
    PackedFile Packages/*.dbc
    PackedFile Packages/*/*.dbc
    PackedFile Packages/*.package
    PackedFile Packages/*/*.package
    PackedFile Packages/*/*/*.package
    PackedFile Packages/*/*/*/*.package
    PackedFile Packages/*/*/*/*/*.package
    PackedFile Packages/*/*/*/*/*/*.package

    Can anyone tell me if this is right?

    ReplyDelete
  16. Anon, everything is fine with your Resource.cfg file.

    ReplyDelete
  17. I don't like peggy's version.. but I like yours.. can I just override peggys hair without changing the resource file?

    ReplyDelete
  18. Will it still work if I turn sims3packs into packages, or do I need to suck it up and install them through the launcher?

    I ask this because I have issues with anything that comes from TSR (NewSea hairs) not installing properly.

    ReplyDelete
  19. Pandia, yes you can, you can just open the original hair in S3PE, then:
    Resource > Import > From package...
    There select the retexture package file and make sure Replace Duplicates is checked.

    Anonymous, you can always export them to packages, just put the hairs in somewhere else rather than the Override folder and it will work.

    ReplyDelete
  20. Hihi :) having a bit of a problem - like Pandie, I also prefer your version to NewSea's and would like your file to just overwrite it so that I'm not having both of them appear in CAS. However, when I tried to do the following (listed above)

    "Just open the original hair in S3PE, then:
    Resource > Import > From package...
    There select the retexture package file and make sure Replace Duplicates is checked."

    This is for some reason not working for me :( I'm still seeing both your version and NewSea's version. Is there something I am missing??

    Thanks in advance for any help!!

    ReplyDelete
  21. miss_jenna, that's because I used a different method, as before they were default replacement.

    Currently they are not, I recreate the same hair from it, with different textures.
    In case you want just the retexture to show up, you can delete the CASP file from the original package, that will stop it from showing two versions.

    In case you want the originals someday you can always back the file before, or download them again.

    ReplyDelete
  22. is it possible not to put the original mesh?

    ReplyDelete
  23. "is it possible not to put the original mesh?"
    But that's the point.

    ReplyDelete
  24. This comment has been removed by the author.

    ReplyDelete
  25. I don't have that folder called "Mods". What should I do?

    ReplyDelete
  26. Dennysa, you need to create one.
    Take a look at this article for more information.

    ReplyDelete
  27. Hi.

    Where really do you put the Mods folder? In Documents or in Program Files? I've seen both as being said in the internet. Confusing.

    Also, should the Resource.cfg file really be in the Mods folder? The .packages don't seem to work when the file is in the Mods folder. They do when it's just in the Sims 3 folder.

    Lastly, I can't seem to have all my downloads work. Everything is in .package files and put into the proper folder. I even downloaded the d3dx9_31.dll to make sure. Or maybe it's my Mods and Resource.cfg confusion.

    Thanks a lot!

    ReplyDelete
  28. You heard of both because before we used it in the Game Directory.
    Now, after patch 1.12.70 it's now located at Documents.

    Take a look at the article I linked above, it's a very thoroughly article on the subject.

    ReplyDelete
  29. sorry , i wanna ask u something ?? is this works for the sims 3 ver 1.0 ?? i really want to try downloads with package files .. but it doesn't work though . THX ,

    ReplyDelete
  30. Harith there is no reason why this would not work with the first build of the game.

    However, I should just point, the location of the Resource.cfg at that build is not located at the Documents path specified in this tutorial but located at the game installation root.

    ReplyDelete
  31. What if you already have an overrides folder? My Mods folder already came with two folders: Packages and Overrides.

    The resource.cfg file is like this:

    Priority 501
    DirectoryFiles Files/... autoupdate
    Priority 1000
    PackedFile Overrides/*.package
    PackedFile Overrides/*/*.package
    PackedFile Overrides/*/*/*.package
    PackedFile Overrides/*/*/*/*.package
    PackedFile Overrides/*/*/*/*/*.package
    Priority 500
    PackedFile Packages/*.package
    PackedFile Packages/*/*.package
    PackedFile Packages/*/*/*.package
    PackedFile Packages/*/*/*/*.package
    PackedFile Packages/*/*/*/*/*.package
    Priority 499
    PackedFile Test/*.package
    PackedFile Test/*/*.package
    PackedFile Test/*/*/*.package
    PackedFile Test/*/*/*/*.package
    PackedFile Test/*/*/*/*/*.package
    Priority -50
    PackedFile Probation/*.package
    PackedFile Probation/*/*.package
    PackedFile Probation/*/*/*.package
    PackedFile Probation/*/*/*/*.package
    PackedFile Probation/*/*/*/*/*.package
    Priority 500
    PackedFile DCCache/*.dbc

    I'm having problems making the retextures show up in my game, (the original show up only) and I just don't know what to do...

    ReplyDelete
  32. Nursing Assistant Cna Salary Wichita Ks - Suspicious financial transactions Nursing home abuse can take many forms. My job is a depressing job.

    ReplyDelete
  33. I can't find the "Mods" folder in my sims 3 folder :/

    ReplyDelete
  34. These are basically brief phrase loans that do provide you meet your fiscal issues inside a desired distinct time period.
    Taking into consideration time limitations these loans are particularly designed above an obligation zero cost
    platform. As such, these are kept completely no cost from credential checksums.
    Troubles such as defaults, arrears, bankruptcy,
    CCJs and even IVAs are not regarded as here.
    Further, there are also no collaterals connected with these loans.
    There is minimal paper operate essential on the
    portion of borrower. There are also no hidden or additional documentation or faxing required right here.
    Applying for these loans is also quite hassle-free. People just demand
    filling an over the internet type and once this gets approved cash is received within 24 hours time frame.
    These loans are commonly supplied below practical terms and situations.
    The basic fundamental applicant criteria here is that they
    ought to be a UK resident and of 18 years of age.
    Here is my webpage ; com.ar

    ReplyDelete
  35. AnonymousMay 15, 2013

    Heya this is somewhat of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I'm starting a blog soon but have no coding skills so I wanted to get guidance from someone with experience. Any help would be enormously appreciated!

    Look at my blog post; bubble butt guy

    ReplyDelete
  36. AnonymousMay 28, 2013

    mulberry handbag Plus, it sewn using cotton from Italy 137yearold Albini Mills. ghd hair straighteners

    ReplyDelete
  37. AnonymousJune 17, 2013

    helpful information When unforeseen circumstances happen, it would be difficult for the pet owner to come up with a big amount immediately. Petplan is licensed in all 50 states and Washington, D. This credit card will help you obtain a reduce level at the insurer you choose to use.

    ReplyDelete
  38. AnonymousJune 18, 2014

    Now when i open resoure blah blah it only opens in notepad! Im confused plss help

    ReplyDelete
  39. AnonymousJune 18, 2014

    Now when i open resoure blah blah it only opens in notepad! Im confused plss help

    ReplyDelete
  40. I found this tutorial on overriding resources to be incredibly useful. It was straightforward and provided very clear instructions. what is troypoint I am confident that I can now successfully make the changes I need to a resource file in my project. This tutorial was greatly appreciated.

    ReplyDelete