Morays, morays everywhere...

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
Dunk
Poor
Poor
Posts: 7
Joined: Wed Aug 08, 2007 2:00 pm

Morays, morays everywhere...

Post by Dunk »

Guys,

Is there any way to reduce the frequency certain ships appear ingame? I seem to recall Morays being described as very rare and yet I can't seem to turn around without bumping into several. It's as if the manufacturers are trying to flood the market too because there's always more Morays for sale at stations than there are any other kind of ship.

Cheers
User avatar
Captain Hesperus
Grand High Clock-Tower Poobah
Grand High Clock-Tower Poobah
Posts: 2310
Joined: Tue Sep 19, 2006 1:10 pm
Location: Anywhere I can sell Trumbles.....

Post by Captain Hesperus »

Hi Dunk, welcome!
There are two ways of reducing the frequency of Morays in the 'Ships for sale' screen, an easy way and a hard way.

The easy way is to add ship OXPs that include player ships, this will increase the number of ships that Oolite will add for sale.

The hard(er) way is to edit the shipyard.plist and that goes as follows (please note this is for PCs):
1) Find a good free text editor (Vim or Notepad++ are good for PCs)
2) Search for the shipyard.plist (it's usually under \Oolite\oolite.app\Resources\Config)
3) Open it with your text editor
4) Search through the file to find the

Code: Select all

<key>moray-player</key>
5) Find

Code: Select all

<key>chance</key>
<real>0.375</real>
6) Edit the numbers closer to 0.0 (maybe 0.2 or 0.1) to drastically reduce the likelihood of seeing the Moray for sale.
This won't reduce the number you see plying the spacelanes as that is a different .plist altogether (And I haven't a clue how to do that).
Personally the easy way is better as there is less chance to muck up and you get to see more and better ships in the For Sale screens.

Ta-da!

Captain Hesperus
The truth, revealed!!
Image
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Post by Cmdr Wyvern »

To lower the chances of Moray encounters in flight, open shipdata.plist in your trusty editor, and find the <key>moray</key> entry.
Scroll down through the entry till you find

<key>roles</key>
<string>pirate</string>

Change it to

<key>roles</key>
<string>pirate(0.3)</string>

Save the file, and when next you hit the lanes, you'll find fewer Morays around.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
Dunk
Poor
Poor
Posts: 7
Joined: Wed Aug 08, 2007 2:00 pm

Post by Dunk »

Thanks everyone. I should probably have mentioned that I design software for a living so I'm perfectly at home playing around with the XML. I just didn't know which file and entity to modify.

This really is a fantastic game, both from a gamers perspective and from a technical angle. Very, very impressive all in all.

Thanks again.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Captain Hesperus wrote:
5) Find

Code: Select all

<key>chance</key>
<real>0.375</real>
6) Edit the numbers closer to 0.0 (maybe 0.2 or 0.1) to drastically reduce the likelihood of seeing the Moray for sale.
Perhaps a dumb-ass question, but I'd like to clarify something here.

According to the wiki-documentation on shipyard.plist the chance-key does not determine the chance of a ship being for sale, but the chance of it being equipped with optional equipment:
wiki wrote:
chance

The likelihood that the ship comes fitted with potential extra fittings and equipment.
Example:
<key>chance</key>
<real>0.25</real>
I know that the wiki isn't always reliable, so I just want to know which is right: The wiki or the common sense that chance defines the likelihood of a ship to appear at all?

What have the coders to say?
User avatar
Dr. Nil
---- E L I T E ----
---- E L I T E ----
Posts: 983
Joined: Thu Sep 28, 2006 5:11 pm
Location: Nearest Hoopy Casino
Contact:

Post by Dr. Nil »

I think that the Wiki explanation is correct - but have actually given ships I wanted to be more rare a lower value for that key, just in case.

It would be nice for OXP'ers to have a way to control the rarity of ships from the shipyard.plist
Image

300 billboards in Your Ad Here!
Astromines and more in Commies.
AVAILABLE HERE along with other Oolite eXpansion Packs.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Yes, it would indeed.

And as for this just-in-case-scripting: :? :? :?

"Precision! My kingdom for scripting-precision!"
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

From a very quick look at the code, it looks like the same 'chance' key is utilized for both having the ship appear in the shipyard list and being equipped with gadgets.

So, I guess everybody is right after all :)
User avatar
Dr. Nil
---- E L I T E ----
---- E L I T E ----
Posts: 983
Joined: Thu Sep 28, 2006 5:11 pm
Location: Nearest Hoopy Casino
Contact:

Post by Dr. Nil »

Seems like just-in-case-scripting worked after all. :D

Without us bungling dabblers we wouldn't have all those OXPs :lol:
Image

300 billboards in Your Ad Here!
Astromines and more in Commies.
AVAILABLE HERE along with other Oolite eXpansion Packs.
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Post by Cmdr Wyvern »

another_commander wrote:
From a very quick look at the code, it looks like the same 'chance' key is utilized for both having the ship appear in the shipyard list and being equipped with gadgets.

So, I guess everybody is right after all :)
In practice, the chance key seems to determine how often the ship appears in the shipyard, as well as the possibility of finding it with some extra kit preinstalled.

The tech level also has a big impact on a ship's rarity. TL13 systems being rarer than TL5, for instance.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
Post Reply