[RELEASE] Risk-based Economy
Moderators: winston, another_commander
Re: [RELEASE] Risk-based Economy
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?
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?
--
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean
http://www.noahchinnbooks.com/
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean
http://www.noahchinnbooks.com/
Re: [RELEASE] Risk-based Economy
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.
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.
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: [RELEASE] Risk-based Economy
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.cim wrote:The current release won't work very well with OXPs which keep secondary markets over save/load
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Re: [RELEASE] Risk-based Economy
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: changeDiziet 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.
Code: Select all
if (!ship.isStation) { return; }
shipSpawned
function in risk-based-economy.js
to Code: Select all
if (ship != system.mainStation) { return; }
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: [RELEASE] Risk-based Economy
Ok.. thanks!
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Re: [RELEASE] Risk-based Economy
FWIW, market restore oxp restores the market (or tries to) on shipSpawned.
Re: [RELEASE] Risk-based Economy
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
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
YEEAH!!!
Re: [RELEASE] Risk-based Economy
Link seems broken.cim wrote: ↑Mon Sep 15, 2014 8:37 pmA 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
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.
Last edited by Switeck on Tue Nov 14, 2017 8:33 am, edited 2 times in total.
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: [RELEASE] Risk-based Economy
This should work: Risk-Based_Economy_2.0.oxz