ship spawns and Military Stingray

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
Tambourine
Poor
Poor
Posts: 5
Joined: Thu Oct 19, 2023 6:16 pm

ship spawns and Military Stingray

Post by Tambourine »

So I now have enough money to get an upgrade for Cobra 3. I've previously used the Python ET Special - the nice looking one - as it can have all the goodies and has lots of cargo space. When browsing ships for purchase on gal2 tech level 15 wordl, I was amazed to see Military Stringrays for sale. I had completely forgotten that I had installed this addon, because not one Stingray has spawned in space!

What variables in the OXP or code in the main game control what ships spawn? I do remember Stingrays spawning in earlier versions of Oolite, long long time ago.

p.s. looking at the ship stats, the Stingray does feel like a solid upgrade for the get-more-kills - oriented pilot
User avatar
phkb
Impressively Grand Sub-Admiral
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: ship spawns and Military Stingray

Post by phkb »

Assuming the mod you're using is the one found here: [EliteWiki] Military Stingray Mk. II, then spawning is controlled via the "roles" key in the shipdata. For the standard stingray, this is

Code: Select all

roles = "stingray scavenger(0.10) pirate(0.10) trader(0.10)";
Which means: there is a 0.1% chance of it spawning as a scavenger; there's a 0.1% chance of it spawning as a pirate; and a 0.1% chance of it spawning as a trader.
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: ship spawns and Military Stingray

Post by Switeck »

I'm pretty sure the 0.1 numbers are taken as a relative ratio to everything else that might spawn in those roles.

So if you have a few 3rd party ships...it lowers the odds of seeing the Military Stingray quite considerably, especially if any of the 3rd party ships use numbers greater than 1 on similar roles.
Post Reply