Page 2 of 11
Re: Arrivals and departures
Posted: Sun Mar 15, 2015 8:46 pm
by Cody
ffutures wrote:It's amazing that they are always honest about it.
I've often thought it'd be kinda cool if they lied occasionly!
Re: Arrivals and departures
Posted: Wed Mar 25, 2015 6:33 am
by phkb
Call me a masochist but I like a challenge...
If one did, say, want to do all that manual launching stuff, would it be possible to take over a station's normal launch protocols and implement your own? If I had a list of ships that were due to launch, could I do that and then suppress any launches the station might want to do as part of the repopulate process?
Re: Arrivals and departures
Posted: Wed Mar 25, 2015 7:23 am
by cim
phkb wrote:If one did, say, want to do all that manual launching stuff, would it be possible to take over a station's normal launch protocols and implement your own? If I had a list of ships that were due to launch, could I do that and then suppress any launches the station might want to do as part of the repopulate process?
All station launches in the core game are handled by the repopulator, so you could override it with one of your own that declared the launches on F4 in advance of them happening.
(Whether you did this by overwriting the repopulator base function in the Oolite populator worldscript, or by changing the repopulator function name for the system, is up to you. There are advantages and disadvantages to either.)
Re: Arrivals and departures
Posted: Wed Mar 25, 2015 9:42 pm
by phkb
If I override the populator function, either at a global or system level, that means my code is responsible for all population functions, not just the station launches. Is that correct?
Re: Arrivals and departures
Posted: Wed Mar 25, 2015 9:54 pm
by cim
phkb wrote:If I override the populator function, either at a global or system level, that means my code is responsible for all population functions, not just the station launches. Is that correct?
Correct (though the core repopulator should be modular enough that you can just copy the calls to the non-station entries into your own repopulator).
Re: Arrivals and departures
Posted: Wed Mar 25, 2015 10:43 pm
by phkb
A general question: While there is documentation that says a station can hold thousands of ships, that's kind of unworkable from gameplay point of view. So, what would people consider a "reasonable" number of ships to see in dock? 50? 100? 200? 500?
Re: Arrivals and departures
Posted: Wed Mar 25, 2015 11:17 pm
by cim
An average system probably has a ship group of some sort launch every few minutes. A similar rate of ship dockings will occur. Well over half of these will be at the main station - more, in high-government systems. You can get the core rates, in the slightly odd units of "groups per twenty seconds" for a system by looking at the worldScripts["oolite-populator"].$repopulatorFrequencyIncoming
and worldScripts["oolite-populator"].$repopulatorFrequencyOutgoing
objects with the debug console as you travel around, or enabling universe.populate.repopulate
in logcontrol.plist
to have them dumped to the log as you enter systems.
Assuming that ships stay in dock at least 30 minutes (10 to refuel, 10 to get a launch slot, 10 for other activities), you'd probably be looking at 30-60 ships docked just from those "passing through". Add on some more for ships staying in longer, an appropriate Viper and Shuttle reserve, shipyard stock, and so on, and 200 or so seems about right - but anywhere between 50 and 500 is plausible depending on the suitability of the local trade partners, tech level and government.
Re: Arrivals and departures
Posted: Thu Mar 26, 2015 12:15 am
by phkb
Thanks for all these answers, cim. If I manage to get this off the ground it will largely be due to your contributions.
Re: Arrivals and departures
Posted: Thu Mar 26, 2015 7:52 am
by Smivs
I'm a very Sad person!
I often park up outside a station and just watch the traffic coming and going, sometimes for half an hour or more.
So...as cim says, you can get plenty of traffic, suggesting lots of ships. But it does vary, with a rich high TL industrial being a lot busier than a 'lower' planet class.
Also the spread of ships is interesting. Of course you get a big freighter landing or leaving from time to time, and they will normally have escorts (2 - 4) with them. Much of the other traffic is single ships (lone traders), but you will also get a lot of 'others' - bounty hunters probably in Geckos, Kraits, Cobra 1s etc.
And don't forget the shuttles - lots of Adders, Shuttles, Transporters and Worms popping in and out all the time.
So. and this is just my impression based on hours of obsessive-compulsive station-watching, these places can be very busy. I'd guestimate that at a highish TL industrial, something like 50 ships will arrive or leave in a half hour period. Four to six freighters, 15-20 or so escorts, and around 15 lone traders. Add in a dozen Shuttles and a smattering of Police ships and you'll be there.
As there will be many ships docked throughout that half hour period that we don't see, my impression is that 200 might be a good number to work around for this.
Hope this helps, now I'm off to get my medication.........
Re: Arrivals and departures
Posted: Thu Mar 26, 2015 8:39 am
by phkb
That helps a lot, actually. It's stats like that that will help me determine whether I've broken things or not when I actually get my code written.
Re: Arrivals and departures
Posted: Thu Mar 26, 2015 1:48 pm
by Cody
I also spend a fair bit of time parked-up near stations, watching the traffic - and it can vary quite a bit.
Re: Arrivals and departures
Posted: Thu Mar 26, 2015 3:20 pm
by Diziet Sma
Cody wrote:I also spend a fair bit of time parked-up near stations, watching the traffic - and it can vary quite a bit.
Ditto.. I'd say Smivs' numbers are pretty good.. and, as has been stated, depending on the TL of the system, and the number/type of neighbouring systems, it can vary considerably.
Re: Arrivals and departures
Posted: Mon Mar 30, 2015 9:52 pm
by phkb
I can't seem to get this to work:
If I do this
Code: Select all
system.mainStation.launchShipWithRole("trader-courier");
I get a ship to launch.
But if I do this
Code: Select all
system.mainStation.launchShipWithRole("asp");
or this
Code: Select all
system.mainStation.launchShipWithRole("noshaders_elite2_bug_NPC");
I get nothing.
Is it possible to launch a specific type of ship using launchShipWithRole without using a customised shipdata.plist file? (I see spara used this method in his Start Choices OXP to launch an Anaconda)
Re: Arrivals and departures
Posted: Mon Mar 30, 2015 11:27 pm
by Norby
Put [] around the dataKey:
Code: Select all
system.mainStation.launchShipWithRole("[asp]");
Re: Arrivals and departures
Posted: Tue Mar 31, 2015 1:47 am
by phkb
Thanks, Norby!
Another one: if I launch a ship this way, it doesn't appear to launch any escorts - it just launches the ship. Am I correct in my understanding that launching a ship using a specific ship key will only launch that ship, and no escorts?