Oolite Bulletins

For information and discussion about Oolite.
It is currently Fri Sep 21, 2018 1:00 am

All times are UTC




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Mineral Store Reset
PostPosted: Fri Apr 06, 2018 12:27 am 
Offline
Competent
Competent
User avatar

Joined: Thu Apr 05, 2018 5:31 am
Posts: 53
Location: Vladivostok, Russia
Mineral Store Reset
Updated 09 April 2018 - Version 0.4.1
https://drive.google.com/open?id=1Q2O7n ... HcAQepUrNZ

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


Last edited by stranger on Tue Apr 17, 2018 9:36 pm, edited 3 times in total.

Top
   
 Post subject: Re: Mineral Store Reset
PostPosted: Fri Apr 06, 2018 12:46 am 
Offline
Commodore
Commodore
User avatar

Joined: Tue Jan 21, 2014 10:37 pm
Posts: 2164
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...
This looks great! Can I suggest you add a manifest.plist file? Something like this:
Code:
{
	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.

_________________
My OXP's
YouTube: Oolite Teaser Trailer


Top
   
 Post subject: Re: Mineral Store Reset
PostPosted: Sun Apr 08, 2018 11:51 pm 
Offline
Competent
Competent
User avatar

Joined: Thu Apr 05, 2018 5:31 am
Posts: 53
Location: Vladivostok, Russia
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.


Top
   
 Post subject: Re: Mineral Store Reset
PostPosted: Mon Apr 09, 2018 12:13 am 
Offline
Commodore
Commodore
User avatar

Joined: Tue Jan 21, 2014 10:37 pm
Posts: 2164
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...
Quote:
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.

_________________
My OXP's
YouTube: Oolite Teaser Trailer


Top
   
 Post subject: Re: Mineral Store Reset
PostPosted: Mon Apr 09, 2018 8:46 am 
Offline
Competent
Competent
User avatar

Joined: Thu Apr 05, 2018 5:31 am
Posts: 53
Location: Vladivostok, Russia
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.


Top
   
 Post subject: Re: Mineral Store Reset
PostPosted: Tue Apr 17, 2018 3:20 pm 
Offline
---- E L I T E ----
---- E L I T E ----

Joined: Sat Sep 12, 2009 11:58 pm
Posts: 1028
Location: Essex (mainly industrial and occasionally anarchic)
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.)


Top
   
 Post subject: Re: Mineral Store Reset
PostPosted: Tue Apr 17, 2018 9:53 pm 
Offline
Competent
Competent
User avatar

Joined: Thu Apr 05, 2018 5:31 am
Posts: 53
Location: Vladivostok, Russia
Quote:
'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!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited