Page 1 of 1

Mineral Store Reset

Posted: Fri Apr 06, 2018 12:27 am
by stranger
Mineral Store Reset

Latest OXZ update - Version 0.4.2
Updated 28 January 2019

This OXP helps to play in-system miner scenario, preventing saturation of main station market.
In vanilla game you have market capacity max 127 tons of minerals. Starting with 50+ tons of minerals already on market you have 75 tons of minerals or so to sell on main station. It gives you cash only 75*13 = 975 creds. Not sufficient sum to buy Ore Processor for 3500 creds! After market saturation you have only option to leave system through somebody’s wormhole with hope for better luck.
Now mineral store on main station market is sometimes resets. Reset flag sets to zero and increased with random increment when player ship leaves planet vicinity. Increment value depends on system productivity: systems with high GNP has more demands for raw minerals. When reset flag reaches 1 mineral store resets and reset flag sets to zero again.
Take attention: reset increment is not activated if you just collecting minerals in planet proximity. You must fly to minimum 3 planet radii distance (event this.shipExitedPlanetaryVicinity is called).

Re: Mineral Store Reset

Posted: Fri Apr 06, 2018 12:46 am
by phkb
This looks great! Can I suggest you add a manifest.plist file? Something like this:

Code: Select all

{
	identifier = "oolite.oxp.stranger.MineralStoreReset";
	version = "0.4";
	title = "Mineral Store Reset";
	required_oolite_version = "1.77";
	description = "Randomly resets mineral store for main station to avoid market saturation.";
	category = "Mechanics";
	author = "stranger";
	license = "CC-BY-NC-SA 3.0";
}
This will eliminate a couple of warning messages in the log file for Oolite versions 1.80ff. I'm assuming you'd call this "Mechanics" but feel free to change it to whatever you think is appropriate.

Suggestion: What about Rock Hermits or other stations? Should their mineral store get reset as well? It's harder to check for the same condition you're using for the main station, but worth thinking about.

Re: Mineral Store Reset

Posted: Sun Apr 08, 2018 11:51 pm
by stranger
Is I need to change package version if I'll only add manifest.plist without editing of any code?
Mineral Store Reset v 0.4 without manifest.plist
The same Mineral Store Reset with manifest.plist - the same v 0.4 of maybe like 0.4.1?

About Rock Hermits and other stations - there are some considerations I'll try to express later.

Re: Mineral Store Reset

Posted: Mon Apr 09, 2018 12:13 am
by phkb
stranger wrote:
Is I need to change package version if I'll only add manifest.plist without editing of any code?
I'd change the version to 0.4.1 when creating a new package - adding a manifest file is a minor change from a coding point of view, but it does help in making versions distinct.

Re: Mineral Store Reset

Posted: Mon Apr 09, 2018 8:46 am
by stranger
Some considerations about updating secondary markets.
Source of minerals is not bottleneck in mining business if you have unlimited pool of asteroids in system. Bottleneck is market capacity for selling minerals. But as far as I know main station is the only market in system demanding minerals. Has you any advantages in case of updating secondary markets if selling minerals on main station is more profitable and less risky?
Of course if you are not friendly welcomed on main station it would be another game. Some players may prefer ways of free opportunity (sometimes smuggler, sometimes miner etc) with resetting mineral store on black markets, but this side of Ooniverse is not for me.

Updated: Mineral Store Reset with manifest.plist included.

Re: Mineral Store Reset

Posted: Tue Apr 17, 2018 3:20 pm
by UK_Eliter
Good stuff.

'You are exited planetary vicinity' isn't great English, though. 'You have left the planet's vicinity' would be better, though it might leave the player wondering why s/he is being told that. (I haven't seen the message in game - I haven't test the OXP. Perhaps the OXP does provide some context.)

Re: Mineral Store Reset

Posted: Tue Apr 17, 2018 9:53 pm
by stranger
UK_Eliter wrote: Tue Apr 17, 2018 3:20 pm
'You are exited planetary vicinity' isn't great English, though.
Agree with you, looks ugly. :oops:
Moreover, it is confusing. There are no any specific messages in this OXP. Sometimes I see message, when my ship approaching planet vicinity (event this.shipEnteredPlanetaryVicinity). Don't remember exact formulation. I was sure message also calls triggered by event this.shipExitedPlanetaryVicinity. Not so sure now. Maybe just memory aberration.
Thanks for feedback!