About This File
Optimizes the DBPF plugin loading that the game performs on startup.
The effect that the plugin has on the game's startup time will depend on your system and plugins. It may have little to no effect for some configurations.
Features
- Reduces the time for the game to show the SC4 logo by up to 90%.
- Adds an optimization to the game code for large data reads.
-
Allows the game to handle plugin paths that are longer than the standard Microsoft Windows limit of 260 characters.
- Some of the file paths used by sc4pac packages may exceed the above limit.
- Reduce lag and city load times with large numbers of .SC4* plugins.
- Disables the game code that searches the entire file if the DBPF signature was not found.
-
Changes the game code that loads the .SC4* files to ignore files with non-DBPF file extensions, .txt, .png, etc.
- With this change only .SC4Desc, .SC4Lot, .SC4Model, and files without any file extension will be loaded.
- Files without any file extension are included due to some older plugins having that issue.
- Changes the 'missing plugin' dialog to display the plugin pack ID in hexadecimal.
System Requirements
- SimCity 4 version 641
- Windows 10 or later
- Microsoft Visual C++ 2022 x86 Redistribute
The plugin may work on Windows 7, but I do not have the ability to test that.
Installation
- Close SimCity 4.
- Copy SC4DBPFLoading.dll into the top level of either plugins folder (place it directly in <Documents>\SimCity 4\Plugins or <SC4 install folder>\Plugins, not in a subfolder).
- Start SimCity 4.
Command Line Argument
The plugin adds a -StartupDBPFLoadTrace: command line argument that can be used for advanced tracing/debugging of the plugin loading process.
It supports to following options (only 1 can be used at a time):
- ShowLoadTime - shows a message box with the resource loading time in milliseconds.
- WinAPI - shows message boxes before and after the resource loading code runs, this allows the user to start and stop a Process Monitor trace when the message box is shown.
- ListLoadedFiles - writes the loaded DBPF files to the plugin's log file in the order SC4 reads them.
Troubleshooting
The plugin should write a SC4DBPFLoading.log file in the same folder as the plugin.
The log contains status information for the most recent run of the plugin.
Source Code and Support
Plugin thread: https://community.simtropolis.com/forums/topic/763113-sc4dbpfloading
The plugin's source code and issue tracker are located on GitHub: https://github.com/0xC0000054/sc4-dbpf-loading
If you would like to make voluntary contributions to support me in continuing to create more content for SimCity 4, I accept donations via PayPal: https://paypal.me/0xC0000054
Thanks to the few people who have donated to me.
What's New 2.1 View Changelog
Released
Improved the plugin's error logging, and various other optimizations.
-
40
-
2
-
11

Supported
