• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Limith

Modding for Myself
18 Badges
Apr 7, 2010
3.747
370
  • Darkest Hour
  • Deus Vult
  • East India Company
  • Europa Universalis III Complete
  • Divine Wind
  • Crusader Kings II
  • Heir to the Throne
  • Rome: Vae Victis
  • Rome Gold
  • Sword of the Stars
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Stellaris Sign-up
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
I've never liked how resource production in a province wasn't tied to Infrastructure, IC, or economic need (ex. many countries waste resource production currently due to the stockpile). After all, if market demand for a resource is sufficiently low, or production is way too high, price would go down and firms would exit the industry. There would be a cap on resource expansion/shrinking in each province, of course, to create a range of possible production that is reflected by actual resource deposits in a region. Ideally, such a mod would need additional (currently not existing) triggers such as infrastructure or IC in a province.

I don't have the time to personally work on such a mod, but is anyone interested in it?
Below is an incomplete template I thought of for my CG mod.

Code:
# Dynamic Resource Allocation Script by Limith
# For Code Geass DH Total Conversion

# Resource Expansion
event = {
	id = 2000
	random = no
	persistent = yes
	one_action = yes
	
	trigger = {
		random = 25
		or = {
			and = {
				resource_shortage = oil
			}
			and = {
				resource_shortage = energy
			}				
			and = {
				resource_shortage = metal
			}
			and = {
				resource_shortage = rare_materials
				not = {
					or = {
						and = {
							rare_materials = 50
							ic = 5
						}
						and = {
							rare_materials = 400
							ic = 25
						}
						and = {
							rare_materials = 650
							ic = 45
						}
						and = {
							rare_materials = 800
							ic = 60
						}
						and = {
							rare_materials = 1000
							ic = 80
						}
						and = {
							rare_materials = 1500
							ic = 100
						}
					}
				}
				or = {
					and = {
					control = { province = 1086 }
					not = { flag = 1086_RE } #Esfahan
					}
				}
                                # Add other provinces that produce rares here.
			}
		}
	}
	date = { day = 0 month = 0 year = 1930 }
	offset = 2									
	deathdate = { day = 0 month = 0 year = 1970 }
	
	name = "Resource Expansion"
	desc = "The current lack of strategic resources had resulted in a large price jump in the private market, with wealthy investors stepping in to increase our national production."
	picture = "resources"
	style = 2

	action = {
		trigger = {
			resource_shortage = oil
			or = {
			}
		}
	}
	
	action = {
		trigger = {
			resource_shortage = energy
			or = {
			}
		}
	}
	
	action = {
		trigger = {
			resource_shortage = metal
			or = {
			}
		}
	}
	
	#Esfahan
	action = {
		trigger = {
			resource_shortage = rare_materials
			not = {
				or = {
					and = {
						rare_materials = 50
						ic = 5
					}
					and = {
						rare_materials = 400
						ic = 25
					}
					and = {
						rare_materials = 650
						ic = 45
					}
					and = {
						rare_materials = 800
						ic = 60
					}
					and = {
						rare_materials = 1000
						ic = 80
					}
					and = {
						rare_materials = 1500
						ic = 100
					}
				}
			}
			and = {
				control = { province = 1086 }
				not = { flag = 1086_RE} #Esfahan
			}
		}
		name = "Our Rare Metal Industry has expanded"
		command = { trigger = {	and = {	control = { province = 1086 } not = { flag = 1086_RE} } } type = add_prov_resource which = 1086 value = 2 where = rare_materials } #Esfahan
		command = { trigger = {	and = {	control = { province = 1086 } not = { flag = 1086_RE} } } type = setflag which = 1086_RE } #Esfahan
	}
}
 
I've also called for a dynamic resource system so I'm bumping this

At least infrastrucutre should be tied to the resource system, altough I'm not so sure about IC.

More importantly, the resource system should be capable of reflecting the difference of quantity of any given resorce as a variable of time (exhaustion). While new resource fields are discoverd others shirink down to basically nothing. Almost all great oil fields of the 30s were dry in late 40s. Then one had to look for new fields and this often led to for example offshore drilling.

This can be reflected by all provinces that turned out tp be resource rich in the 50s and 60s an abstract potential of resources that is only available (gradually or instantly) as soon as a relevant set of technologies and a certain decision has been made, for example a decision like national hydrocarbon exploration program .

Also, all provinces with resources should have a given volume of these resources available for extraction, both daily and in total. The peak daily exploration should be reached when a certain amount of infrastrucutre has been built in that very province.
This was mostly for oil, I picture myself a similar system for rare materials, metal and to some extent energy.
 
You may want to talk to the TRP team about this, since I know the mod contains events changing resource production (for example oil output in Saudi Arabia).
 
Last edited:
You may want to talk to the TRP team about this, since I know the mod contains events changing resource production (for example oil output in Saudi Arabia).
TRP has events to simulate the evolutions of historical resource output, not to simulate dynamic changes in resource outputs linked with local infra and IC (opening the way for ahistorical development, not possible in TRP).