Jump to content
Ulisse Wolf

SC4 Mod Migration Assistant

5 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

SC4 Mod Migration Assistant 

 

A1.jpg

A2.png

 

 

A Windows desktop tool for SimCity 4 modders. It scans your `Plugins` folder and flags files in your 075-my-plugins and 895-my-overrides`folders that duplicate content already present elsewhere in `Plugins`, so you can safely move them out of the way.

Built with WPF (.NET 10) and [csDBPF](https://github.com/noah-severyn/csDBPF) for reading SimCity 4's DBPF file format.

Features

  • Recursively scans a Plugins folder for `.dat`, `.sc4lot`, `.sc4model`, and `.sc4desc` files
  • Detects duplicate content by comparing TGI (Type-Group-Instance) identifiers
  • Automatically excludes non-content bookkeeping TGI entries (e.g. the DBPF directory record)  that would otherwise cause false positives
  • Extra file-name check for `895-my-overrides`, since that folder is meant to hold intentional overrides that share a TGI with the original file by design
  • Low memory footprint, suitable for machines with as little as 4–8 GB of RAM
  • Live, color-coded log and progress bars for both the scan and the comparison step
  • Moves (never deletes) duplicates to a folder of your choice, preserving the original subfolder structure
  • Cancel support for long-running scans
  • Check sc4pac Catalog: scans `075-my-plugins` / `895-my-overrides`, matches their TGIs  against the community-run [SC4 Prop Texture Catalog](https://github.com/noah-severyn/SC4PropTextureCatalog), and lists any [sc4pac](https://sc4pac.github.io/) package that already provides that content so you can install it properly instead of keeping a loose manual copy

Requirements

  • Windows 10/11
  • .NET 10 SDK(https://dotnet.microsoft.com/download) to build, or the .NET 10 Desktop Runtime to run a published build
  • Internet access the first time you use Check sc4pac Catalog (to download `Catalog.db`, ~22 MB); the scan/move features work fully offline

Download

The source code is available here, and since the download is currently in beta, it will be available here before the release of the stable version on STEX.

https://github.com/UlisseWolf/SC4ModMigrationAssistant

SC4 Mod Migration Assistant Beta.zip

If you have any issues with the tool, please post here

  • Like 5
  • Thanks 1

Federal Republic of SiculiaFederal Republic of Sonora

   Ain Member  Wiki

NAM Team - Co-developer of Pedestian Revolution Mod - Railway Department (Hybrid Railway | HRW Expert) - MTA Member - BAT Creator

Ulisse Wolf YouTube Channel - Ulisse Wolf Mastodon Profile

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Hi Ulisse Wolf

I have for a long time been thinking of getting started with Sc4pac, but since i already got an exstensive plugin i hesitated. Then we have all the other uppgrades happening with CAM and so on..  Well finally i decided to start from scratch and use  Jonica Modpack as a bas. Everything works perfect but started to miss my old mods to an extent where i started to search for more Sc4pac content both of what i already had and new stuff. Started to move my old stuff but then i stumbled on this handy tool you built. Works like a charm, Scaned at start a bit over 52000 files, found almost 7000 duplicates, but among them so far there are a couple that clash with one another. They are not duplicates but from 2 different sets.

These 2 sets must have the same TGI or its something else..?

Will have a look at the other files that was removed also and if i find something else i will let you know. I also found 264 Sc4pac packages to download...

This i just a must have Tool, great work Ulisse Wolf

Thanks 

 Azeda

Duplicates.jpg

found 264 Sc4pac packages.jpg

  • Like 1

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    1 hour ago, Azeda said:

    These 2 sets must have the same TGI or its something else..?

    These are those edge cases where the program flags duplicates because they use the same filename and have the same TGIsince MGB - RRW ReSkin Type A overwrites Real RailWay (RRW) Reskin 3rd Party Lot Support because it is a reskin.

    • Like 1

    Federal Republic of SiculiaFederal Republic of Sonora

       Ain Member  Wiki

    NAM Team - Co-developer of Pedestian Revolution Mod - Railway Department (Hybrid Railway | HRW Expert) - MTA Member - BAT Creator

    Ulisse Wolf YouTube Channel - Ulisse Wolf Mastodon Profile

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Would be much better if we can "weaponize" this tool to help our recovery effort (both Evermore and Simtropolis) by automatically uploading missing files to the server.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    5 hours ago, Propfam said:

    Would be much better if we can "weaponize" this tool to help our recovery effort (both Evermore and Simtropolis) by automatically uploading missing files to the server.

    It looks like all SC4 files have been restored on the STEX. Plus that would probably be better as a separate tool, and I have no idea how you would get data on what each site is missing.

    • Like 1

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections