• 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.

jonatron5

Sergeant
53 Badges
May 29, 2013
62
152
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Gettysburg
  • For the Motherland
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Hearts of Iron 4: Arms Against Tyranny
  • Hearts of Iron IV: Expansion Pass
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Stellaris: Ancient Relics
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III
  • Battle for Bosporus
  • Stellaris: Nemesis
  • Victoria 3 Sign Up
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Stellaris
  • Europa Universalis IV
  • Victoria 2
  • Cities: Skylines
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
I was looking to experiment with reworking the economy, and I came across this :

Code:
PRICE_RANGE = 0.75                            # min price of a good is base * (1 - PRICE_RANGE), Max price is base * (1 + PRICE_RANGE), PRICE_RANGE is locked to [0-1]

in file "00_defines"

and this line is preventing me from doing what i want to do (setting a free floating market price for goods)
I have the entire directory loaded in my IDE and i have tried searching for references to: "PRICE_RANGE" variable and the only instances i can find are in interface.yml files

what im looking for is where this value gets consumed so i can work on the actual economic calculations of the game and unbound the range.
 
Many defines hook into game code (unmodifiable) rather than game script (modifiable). This is one such example. Assuming the comment is correct, you cannot unbound the range as it's capped at double the base price for any given good (with vanilla capping it at 1.75x).

If you want the prices of goods to be able to go as high as potentially possible (and given a market can have demand with no supply, that would be a divide by 0 issue...), you'd need to make a suggestion/request for the devs to change the game code to allow for that.
 
Many defines hook into game code (unmodifiable) rather than game script (modifiable). This is one such example. Assuming the comment is correct, you cannot unbound the range as it's capped at double the base price for any given good (with vanilla capping it at 1.75x).

If you want the prices of goods to be able to go as high as potentially possible (and given a market can have demand with no supply, that would be a divide by 0 issue...), you'd need to make a suggestion/request for the devs to change the game code to allow for that.
well that seems to be an issue, is the game code geniunelly unaccessable?
 
well that seems to be an issue, is the game code geniunelly unaccessable?
For all PDS (Paradox-developed) games, yes, at least while respecting the EULA and wanting to distribute your modifications through the regular channels.

There is no API other than what's already in the accessible script files; some other PDX (Paradox-published) games such as City: Skylines do have API for the game code (or rather mechanics modifications must hook into game code directly due to the engine used).