Oolite Bulletins

For information and discussion about Oolite.
It is currently Sun Aug 19, 2018 2:16 pm

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Traffic Lights
PostPosted: Sun Apr 15, 2018 10:22 pm 
Offline
Competent
Competent
User avatar

Joined: Thu Apr 05, 2018 5:31 am
Posts: 50
Location: Vladivostok, Russia
Traffic Lights

https://drive.google.com/open?id=1mzXLL ... n_AtY_Fas3
Uploaded 16 April 2018

Traffic jams sometimes happens. You approach main station, call tower and take your queue position in incoming traffic. Number 12 or so in busy systems. OK, no problem. About ten minutes for incoming queue, maybe 2...3 minutes for departing traffic and you’ll get docking clearance.
But wait, it seems traffic frozen again without apparent reasons. Sometimes motion will be continue five or ten minutes later, sometimes not. Pause, F2, set Docking clearance protocol OFF, return to game, docking, reset Docking clearance protocol ON again. Damn, this is not funny part of game experience.

Well, we have already OXP dealing with traffic jam issue – Instrumental Landing System (author Norby). Maybe it works fine, I just didn’t try it. Honestly I don’t like any equipment assisted flight and combat mods. I prefer to control manually all that I can with few exceptions. This is a part of game experience.

Traffic Lights is not alternative docking mechanics. It did not prevents traffic jams. It only provides bypass to override traffic jams. Idea is simple: if you’ll did not get docking clearance in 15 mins after taking queue position, Docking Clearance Protocol for main station will switch to OFF and you’ll can dock. Docking Clearance Protocol will reset to ON after next launch from station, you have no need to reset it manually.
Emergency docking clearance is performed on main station only and if you have no Fugitive status!

How it works in game.

Case #1. There is no any traffic in proximity of main station. You’ll get docking clearance with 2 min docking window. Proceed to dock as usual.

Case #2. Regular traffic pattern without traffic jams. Contact tower and wait your docking clearance as usual. In this case timer calls message with 1 min intervals:

Docking clearance status: Emergency docking in # min

When you’ll get docking clearance timer will stop and message will not be displayed anymore. Proceed to dock as usual.

Case #3. Traffic jam. 15 min after taking queue position timer will stop and you’ll get message:

Docking clearance status: Emergency docking allowed

Proceed to dock. Now you have permission.

Case #4. Main station in red alert state (station was attacked). In this case any regular traffic is stopped to provide launch window for Galcop Vipers. You’ll get message:

Docking clearance status: Emergency docking frozen

Wait for “all clear” state. Timer will continue from stopped state.
Sometimes station in red alert cancels traffic queue. In this case you need to contact tower again. Timer will continue from stopped state too.

Timer will be killed if you’ll dock with any station (including PlanetFall surface port), leave AEGIS zone of main station or enter wormhole.

Case #5 is my special case. I have OXP simulating shields shutdown after fuel depletion. In this case you’ll get emergency docking permission immediately after request, if station is NOT in red alert state. I think this case is not matter of interest for casual gamer.

The second part of this OXP is visual helper – string of colored flashers on approach lane between main station docking port and beacon. It is the most obvious way to inform player state of docking clearance. I borrowed critical part of code from Neo-Dock Lights OXP (author Thargoid) and tweaked it. Flashers rearranged from string to box configuration (I don’t like “airstrip” lights configurations) and more complex color coding scheme is implemented:

RED – docking is prohibited.
YELLOW – docking is allowed, but there are ships in approach lane OR you have less then 30 seconds to dock.
GREEN – docking is allowed and approach is clear.
BLUE – player is not in docking queue.

But wait, you probably ask. Moray before you already has docking clearance and traffic lights must be green or yellow for her. But you have no docking clearance yet and continue to see red lights. How you explain this contradiction?
Try to think in terms of augmented reality. Flashers are not real objects but visual effects, simulated by avionics. Moray before you has docking clearance and her avionics displays green lights for pilot on her HUD. You have not docking clearance and you see red lights on your HUD.

Compatibility issues:

Traffic Lights is incompatible with Neo-Dock Lights OXP (author Thargoid).
Technically it is not conflicting with other OXPs generating dock assist lights but I recommend to avoid using other visual docking helper OXPs to prevent graphic clutter.

Credits:

Modified code from Neo-Dock Lights OXP (author Thargoid) was used for visualization of docking status.
I thank commander vasig for invaluable help in testing this OXP in state of development.
I thank also commander cyxoway for multiple timer issue report and improved method of timer management.


Top
   
 Post subject: Re: Traffic Lights
PostPosted: Mon Apr 16, 2018 6:42 am 
Online
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon May 20, 2013 9:53 pm
Posts: 2509
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Good idea! Players who think 15min is too long can give a try to TAF feature in oxp developer and trunk versions, which offer 16x time acceleration, so possible to get emergency docking even after a minute in real time.

You can install ILS oxp safely: it will change your control only if you buy the ILS equipment, but NPCs will dock faster if you just install the addon and fly without the equipment.

_________________
OXPs by Norby


Top
   
 Post subject: Re: Traffic Lights
PostPosted: Mon Apr 16, 2018 7:32 am 
Offline
Competent
Competent
User avatar

Joined: Thu Apr 05, 2018 5:31 am
Posts: 50
Location: Vladivostok, Russia
Thanks for feedback, Norby!

ILS is not declared in manifest.plist as conflicting and I have no reasons to do it. Player will have possibility to install both expansion packs. It seems quite safe.


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

All times are UTC


Who is online

Users browsing this forum: Norby, tokugawa and 15 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