Skip to content

Conversation

@dberlin
Copy link

@dberlin dberlin commented Jan 11, 2025

The default maximum for water was way too low.
This resulted in a scaled value that made it consider water to be about 50% as valuable as coal and 40% as valuable as copper.

Because water is much more heavily used in recipes, this scaling caused it to prefer using lots of copper/coal/etc over water, even when only using resource weighting and ignoring all other things.

To whit, the scaled resource values before were:

{'Desc_Sulfur_C': 2.5439814814814814,
 'Desc_SAM_C': 2.6936274509803924,
 'Desc_LiquidOil_C': 2.1805555555555554,
 'Desc_Coal_C': 0.6495271867612293,
 'Desc_OreGold_C': 1.8316666666666668,
 'Desc_OreUranium_C': 13.083333333333334,
 'Desc_NitrogenGas_C': 2.2895833333333333,
 'Desc_Water_C': 0.27475,
 'Desc_OreCopper_C': 0.744579945799458,
 'Desc_Stone_C': 0.3930615164520744,
 'Desc_RawQuartz_C': 2.035185185185185,
 'Desc_OreBauxite_C': 2.233739837398374,
 'Desc_OreIron_C': 0.2983170466883822}

For something like 20 plutonium fuel rods, using only scaled resources, you get the following before this change:

Items Returned:
Plutonium Fuel Rod: 20.0
Power (Nuclear): 187500.0
Power (Total): 187500.0

Net Power Produced: 138104.5
Resource*/Power Ratio: 0.33

Resources:
Bauxite: 2386.67 (19.4%)
Caterium Ore: 732.62 (4.9%)
Coal: 1012.08 (2.4%)
Copper Ore: 1009.95 (2.7%)
Crude Oil: 749.39 (5.9%)
Iron Ore: 1013.03 (1.1%)
Limestone: 602.78 (0.9%)
Nitrogen Gas: 2551.11 (21.3%)
Raw Quartz: 515.48 (3.8%)
Sulfur: 1375.0 (12.7%)
Uranium: 1375.0 (65.5%)
Water: 24632.36 (24.6%)

After this change, you get:

Items Returned:
Plutonium Fuel Rod: 20.0
Power (Nuclear): 187500.0
Power (Total): 187500.0

Net Power Produced: 136486.96
Resource*/Power Ratio: 0.28

Resources:
Bauxite: 2677.47 (21.8%)
Caterium Ore: 618.33 (4.1%)
Coal: 89.44 (0.2%)
Copper Ore: 1076.47 (2.9%)
Crude Oil: 555.31 (4.4%)
Iron Ore: 2376.81 (2.6%)
Limestone: 720.0 (1.0%)
Nitrogen Gas: 2440.0 (20.3%)
Raw Quartz: 450.0 (3.3%)
Sulfur: 1375.0 (12.7%)
Uranium: 1375.0 (65.5%)
Water: 28120.63 (0.0%)

Note the vastly reduced coal, crude oil, increased iron usage, etc.

I know it says to set water to a high limit if you want no penalty, but there is no world in which water is really 50% as valuable as coal or copper, and the default results seem kinda crazy.

In practice, with this change, the results will be limited by the other normal things (item use, building use, etc) instead of believing water is a scarce resource.

The default maximum for water was way too low.
This resulted in a scaled value that made it consider
water to be about 50% as valuable as coal and 40% as valuable as copper. 

Because water is much more heavily used in recipes, this scaling caused it to prefer using lots of copper/coal/etc over water, even when only using resource weighting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant