SC4 Encyclopaedia

The game loads plugins in a particular way

When two files define the same record, the file loaded later wins. So the loading order is also the override order: the last file in the list is the one you see in the game.

Install Location

This is where all the main program files are held, including the EXE and the simcity_*.dat files

The default location is

C:\Program Files\Maxis\SimCity 4\

and can be symbolised as

%InstallDir%\

Documents Location

This is where the users information is held. it is usually found in

My Documents\SimCity 4\

but can be moved using the -userdir shortcut parameter and will be symbolised throughout as

%LocalDir%

Order

In short, the game reads files in this order, and the file read last wins:

  1. The base archives: EP1.dat, then SimCity_1.dat to SimCity_5.dat (later wins).
  2. The Plugins folder in %InstallDir%.
  3. The Plugins folder in %LocalDir%, which beats everything above.

Each Plugins folder is read in two passes:

In each pass, for each folder, the folder's own files come first, sorted by name. Then come its subfolders, sorted the same way, each one treated the same way, all the way down.

What each rule means for you

1. Plugins beat the base game. Every plugin file beats every base archive, whatever its name or extension. EP1.dat opens first and has the lowest priority of the base archives.

2. Documents beats Install. A file in the Plugins folder in %LocalDir% wins over a file in the Plugins folder in %InstallDir%, whatever the names, folders or extensions, even when both files have the same name.

3. The .dat pass comes last, across the whole tree. The split by extension is not repeated inside each subfolder. All non-.dat files in a Plugins folder and all its subfolders load first, then all the .dat files. Two consequences:

Any extension loads as long as the file is a valid DBPF container: .dat, .SC4Lot, .sc4, even .txt, .dat.bak or no extension at all. The game does not care what the file is called, only what it contains and where the name sorts.

4. Inside a folder, files come before subfolders. Sorting by name applies to files and subfolders alike.

5. The sort key is the whole file name, upper-cased. Not the stem: the extension is part of the key. Comparison is character by character on the character's numeric value, with no "natural" number handling and no accent stripping.

Observation Example (earlier loads first)
A case-only difference loads the lower-case spelling last Aa.dat, then aa.dat
Digits are compared as characters f10.dat, then f2.dat
Hyphen is an ordinary low character a-z.dat, aa.dat, ab.dat
The extension takes part in the comparison ab-.dat, then ab.dat
A shorter extension chain loads first d.dat, then d.x.dat
Underscore sorts after every letter zzz.dat, then _zz.dat
An exclamation mark first sorts before everything !first.dat, then a.dat
A space or a leading dot first sorts early Names that start with a space or a dot

Practical reading: a name beginning with ! or a space loads early in its folder (and loses to later files), a name beginning with an underscore loads late in its folder (and wins). The old claim that non-alphanumeric characters sort at the end holds for the underscore only; hyphen, space, dot and exclamation mark sort at the start.

6. Non-English names. In the test, each character was upper-cased and names were then compared by UTF-16 value. Accented Latin letters sort after z, Cyrillic after Latin, CJK before Hangul, nothing is normalised, and dotless i is not folded into I. 17 of 18 decided contests matched this rule.

7. File dates, creation order and the order the disk lists files do not matter. The open order was identical in all 8 launches of a set where creation order and file times were shuffled.

How sure are we?

Good evidence for terrain texture records on Linux (Wine), unproven elsewhere.

Help us confirm this

If you can run a few launches on Windows, the most useful result is the same contest on NTFS: two plugin files that both replace the same single visible thing (a terrain texture is easiest), named so that the sort order, creation order and folder placement disagree, and a note of which one shows. Report the Windows version, the file system and the exact file names. Results for exemplars and building models would extend the table above.

Credits

DavenportDev Measured in November 2026 with scripts written from scratch and no game files redistributed. Summary for posting was co-authored using Claude Sonnet 5.5 based off real observations by player DavenportDev.

Note: This article needs expanding.