Page 2 of 2
Re: [RELEASE] Risk-based Economy
Posted: Sat Jul 12, 2014 7:29 am
by mossfoot
Would it be too ambitious to propose creating something that alters markets based on assumptions of trade in local (within one jump) systems over time, with occasionally resets of other modifying factors?
For example, there is a tech 4 commie agro planet next to Xexedi (tech 14) in galaxy 1. You'd think computers and machinery would get saturated there over time?
Re: [RELEASE] Risk-based Economy
Posted: Sat Jul 12, 2014 8:10 am
by cim
True, though the output from Xexedi gets split between seven agricultural systems and three mixed systems - and the only other properly industrial system in the region is Lerelace.
If I redo the OXP for 1.80, I'll just directly use the trader volume, which 1.80 calculates based on the government and economy of the local group.
Re: [RELEASE] Risk-based Economy
Posted: Sat Jul 12, 2014 8:47 am
by Diziet Sma
cim wrote:The current release won't work very well with OXPs which keep secondary markets over save/load
Could you elaborate on that a little, please? I have Spara's In-System Market Restore installed as well, and am wondering if perhaps both together is not a good idea at present, in light of the above.
Re: [RELEASE] Risk-based Economy
Posted: Sat Jul 12, 2014 9:30 am
by cim
Diziet Sma wrote:Could you elaborate on that a little, please? I have Spara's In-System Market Restore installed as well, and am wondering if perhaps both together is not a good idea at present, in light of the above.
Essentially the secondary markets may be adjusted
again when you reload (depending on whether Spara's OXP runs before or after this one). Simple hack to avoid that: change
at the top of the
shipSpawned
function in
risk-based-economy.js
to
Code: Select all
if (ship != system.mainStation) { return; }
and it'll only apply to the main station markets from then on.
Re: [RELEASE] Risk-based Economy
Posted: Sat Jul 12, 2014 10:16 am
by Diziet Sma
Ok.. thanks!
Re: [RELEASE] Risk-based Economy
Posted: Sat Jul 12, 2014 2:17 pm
by spara
FWIW, market restore oxp restores the market (or tries to) on shipSpawned.
Re: [RELEASE] Risk-based Economy
Posted: Mon Sep 15, 2014 8:37 pm
by cim
A reworking of this for 1.81
The basic principle is the same but the internal implementation is quite different (and the prices may well differ a bit from the original)
http://compsoc.dur.ac.uk/~cim/oolite/Ri ... my_2.0.oxz
Re: [RELEASE] Risk-based Economy
Posted: Tue Sep 16, 2014 12:34 pm
by Zireael
YEEAH!!!
Re: [RELEASE] Risk-based Economy
Posted: Tue Nov 14, 2017 7:10 am
by Switeck
cim wrote: ↑Mon Sep 15, 2014 8:37 pm
Link seems broken.
New link in post below mine does indeed work.
I'm looking for javascript logic to work with the economic model used in Oolite v1.82 and later.
I've seen a couple OXPs/OXZs that work around the economic model but never with it.
I'm trying to come up with formulas to generate lowest and highest prices for a system for any given "common" (non-OXP) commodity.
Best I can do so far is use:
remotePrice = this._priceForCommodity(commodity,destinationInfo);
...over-and-over again and then pick the lowest and highest ones from the bunch.
Re: [RELEASE] Risk-based Economy
Posted: Tue Nov 14, 2017 8:03 am
by phkb