About This File
Adds a basic supply/demand system in the form of a region-wide resource pool.
This mod differs from the BSC Daeley Regional Tracking Mod in that it works independently of the city names. It also lacks the region-wide building tracking features of that mod.
The 'resources' consist of a Uint32 resource id and a Sint64 quantity. The resource ids should be random to prevent conflicts between different mods that use this DLL as a dependency. Naming the resources is left up to the mod authors that use this DLL as a dependency.
Building Exemplar Properties
The DLL adds two new building exemplar properties that allow resources to be added or removed by plopping a building. Both values use paired Uint32 items, consisting of a resource id and a quantity.
| Property Name | Property ID | Description |
|---|---|---|
| Regional Supply Consumed | 0x16F4C223 | The resources the building consumes from the regional supply. |
| Regional Supply Produced | 0x16F4C224 | The resources the building adds to the regional supply. |
Lua Functions
The DLL provides a regional_supply table with the following functions for use by Lua code.
| Function Name | Description |
|---|---|
| add_to_demand | Adds to the existing demand for a resource. |
| remove_from_demand | Subtracts from the existing demand of a resource. |
| add_to_supply | Adds to the existing supply of a resource. |
| remove_from_supply | Subtracts from the existing supply of a resource. |
| get_resource_quantity | Gets the current quantity of a resource. |
- Windows 10 or later
The plugin may work on Windows 7 or later with the Microsoft Visual C++ 2022 x86 Redistribute installed, but I do not have the ability to test that.
Installation
- Close SimCity 4.
- Copy SC4RegionalSupplyDemand.dll and RegionalSupplyDemand.dat into the top-level of the Plugins folder in the SimCity 4 installation directory or Documents/SimCity 4 directory.
- Start SimCity 4.
Troubleshooting
The plugin should write a SC4RegionalSupplyDemand.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/763764-regional-supplydemand-dll/
The plugin's source code and issue tracker are located on GitHub: https://github.com/0xC0000054/sc4-regional-supply-demand
| 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. |
-
11
-
1

Supported
