Forum Discussion

jpkarlsen's avatar
jpkarlsen
Hero (Retired)
4 years ago

Re: Where can I find the official documentation about resource.cfg?

@RainbowSpeedy 

That file is generated by the game when you first run it and if for some reason it is deleted it will recreated when you next start the game. So to get a fresh one simply delete it. There are no priority all mods/CC are loaded if they are no more than 5 levels deep with the caveat that script mods can only be one level deep. To reorganize your CC I suggest a folder for each type and in those folders for each author along with text files with links where you downloaded from to make it easy to look for updates.

3 Replies

  • @jpkarlsen 

    Thanks for your answer.

    I am already starting to sort the package files in different folders.

    I am also aware of how the resource.cfg file works in its default state. I already added two lines to it to search for packages that are more than 5 levels deep in the structure.

    The problem I am facing is that I want to add priorities to packages that potentially override each other in parts so that the game knows which package should be prioritized.

    Say for example, I have package1 that makes lighting in CAS softer AND changes the background in CAS. Then I have a package2 that ONLY changes the background in CAS. I now want to prioritize package2. The result should be the CAS background of package2 with the lighting of package1.

    Let's assume that I have a folder named "PRIO".

    Would I have to add to my resource.cfg the following:

    Priority 999
    PRIO\*.package

    Is this even a thing?

    And let's assume I want to prioritize content created by LUUMIA so if there is any conflict with different CC, LUUMIA's mods would have a higher priority and would override other CC.

    I have three folders, Gameplay_LUUMIA, CAS_LUUMIA and Graphics_LUUMIA. Can I just add the following to my resource.cfg:

    Priority 999
    *LUUMIA\*.package
    *LUUMIA\*\*.package

    Is this kind of syntax allowed in the resource.cfg file?

    And what is the highest priority one could assign? Is 1 the highest priority or is something like 999 the highest one? In other words: Does the priority ladder go downwards or upwards?

  • jpkarlsen's avatar
    jpkarlsen
    Hero (Retired)
    4 years ago

    @RainbowSpeedy 

    Like I wrote resource.cfg do not have priorities. And why would you have CC in the mods folder that would never be used?

  • RainbowSpeedy's avatar
    RainbowSpeedy
    3 years ago

    Quick update on this:

    after months of testing I can confirm that one can indeed set priorities in the resource.cfg for different paths. I have used this procedure to fix some graphics-mods and default-CAS-override problems in the last few months.

    I also discovered, that after sorting by resource.cfg priority, the package files are prioritized by alphabet. If folders "1-CAS" and "2-Graphics" are created, the CAS items will override the graphics packages if needed. However, if you assign a priority of 999 to the folder "2-Graphics" via the resource.cfg, then it will override the CAS folder if needed.

    Final priority discoveries:

    Packages with higher priority override lower priority packages.

    1. All packages files get assigned the highest matching priority from the resource.cfg.

    2. Packages that have the same priority are sorted by how deep in the file structure they are put. Packages that are placed one folder deep are prioritized over ones that are placed two, three, etc. folders deep.

    3. Packages that have the same priority and are in the same folder are sorted by alphabet, starting with special characters, then numerics (0-9), then letters (a-z).

    Hope someone in the future will find this helpful!

About The Sims 4 Mods & Custom Content

Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.14,891 PostsLatest Activity: 2 minutes ago