Station Approaches and manual docking

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
Micha
Commodore
Commodore
Posts: 815
Joined: Tue Sep 02, 2008 2:01 pm
Location: London, UK
Contact:

Post by Micha »

Considering I raised this to start off with, apologies for not participating in this thread lately - just haven't had the time :(

I did have a very brief poke around with the feature in a fairly busy system last night and I think it'd be nice if the announcements could tell you what position in the queue you are which gets updated every minute or so. It seemed that between arriving and departing ships I was never getting scheduled for clearance.

Great to have so many suggestions as to how to integrate this as an option.
The glass is twice as big as it needs to be.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

Thargoid wrote:
Or how about as a key in station's shipdata.plist (with default to false when the key isn't present, to allow for standard stations etc to be unmodified).

Then OXP stations could specifically be created to request and require it?
Done. Check out revision 1769. Seems to work just fine, as at the same time there can be stations that use the system and stations that do not.

While being at it, I have also added the read/write JS station property requiresDockingClearance. So, for the same station, you can switch it to require/not require docking clearance using scripts.
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2483
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

will this be available as an uniform binding for shaders, so we could do stuff like switch on the docking bay lights when docking clearance is granted, they must be running up a big electricity bill leaving the lights on all the time.
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

This looks nice. How can I implement it. Or do I have to fit the code in for myself?

Im on 171.1/2

Or do you offer it as an OXP.

@Griff:

Great Idea. We could enhance the Griff/Groove stations if this feature is possible.
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post by Frame »

Griff wrote:
they must be running up a big electricity bill leaving the lights on all the time.
for the lights... solar arrays, it is space after all.. ;-)
Bounty Scanner
Number 935
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

I would think that since it is not only the player docking, but any other ship too, the docking lights have to be going on and off for everyone, which will complicate things unnecessarily. So, although it might be possible, I would not reallly recommend it.

@pagroove: This will most likely be in the next release, as a user controllable station feature, defaulting to off. Scripters will be able to change the station clearance requirements on the fly, using the requiresDockingClearance property.

And finally, some screenies showing the feature in action:
Docking clearance denied: What happens if you dock uncleared:
Image Image
Docking clearance granted:
Image
Note that the station is giving you the exact expiry time of your slot. Makes it easier to know if you still have time to make it or not.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Splendid A_C thanks for the screenshots - which Dodec is that? (i.e. which oxp)
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

Wow another Milestone 8)
IMO this is a very realistic and immersive add on!
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2483
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

User avatar
Micha
Commodore
Commodore
Posts: 815
Joined: Tue Sep 02, 2008 2:01 pm
Location: London, UK
Contact:

Post by Micha »

Ok, while it was a compiler-defined symbol I had no problems, but since the change to this key I simply cannot get it to run. Call me stupid. :oops:

I've added the requires_docking_clearance key to the main oolite Resources/Config/planetinfo.plist, and I've also tried making an OXP as suggested further up.

The code itself runs, I just can't get it to default the stations to be set to require docking requests.
The glass is twice as big as it needs to be.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

You need to add the key to the specific station entries in shipdata.plist, not planetinfo.plist.
User avatar
Micha
Commodore
Commodore
Posts: 815
Joined: Tue Sep 02, 2008 2:01 pm
Location: London, UK
Contact:

Post by Micha »

Ahokay.. the earlier posts referred to the plametlist which is why I was mucking about with those. I suppose the implementation changed between then an now.

So you have to set the key for every type of station? There's no way to just say 'all stations'?
The glass is twice as big as it needs to be.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

No, sorry. The problem is that my vacation is now over (:-(), so I'm back to "not much time for coding" mode. Unless someone adds the "override for all stations default" parameter, this stays as is for now.

The good news though is that for the core game it's only three stations that need to have their entries modified.
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post by Frame »

@another_commander

I´m having a very hard time reading anything on those screenies...

just to let you know... i´m running screen resolution 1280 by 1024
Bounty Scanner
Number 935
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

Click on 'em... They're thumbnail links to xs.to hosted larger versions ;)
Post Reply