Issue with Safe Docking OXP and Docking Clearance
Moderators: winston, another_commander
- CaptSolo
- ---- E L I T E ----
- Posts: 909
- Joined: Wed Feb 23, 2011 10:08 pm
- Location: Preying Manta
- Contact:
Issue with Safe Docking OXP and Docking Clearance
Moderator: This discussion split from the GalCop Rewards thread.
Hello PG, Love Safe Docking and GalCop Rewards. Decided to add these as I rarely use the docking computer. I have one observation which only occurs when I am placed in a queue: The Dockmaster states, "You have docked at this station without clearance. I can not award you any Reward Points."
If I cancel docking clearance when it's my turn and immediately ask for clearance again, then all is well.
I am using Oolite version 1.76.1.
Hello PG, Love Safe Docking and GalCop Rewards. Decided to add these as I rarely use the docking computer. I have one observation which only occurs when I am placed in a queue: The Dockmaster states, "You have docked at this station without clearance. I can not award you any Reward Points."
If I cancel docking clearance when it's my turn and immediately ask for clearance again, then all is well.
I am using Oolite version 1.76.1.
- PhantorGorth
- ---- E L I T E ----
- Posts: 647
- Joined: Wed May 20, 2009 6:48 pm
- Location: Somewhere off the top left of Galaxy 1 map
Re: [NEW RELEASE] GalCop Rewards
That's weird. Was there anything special about your setup or what you did?CaptSolo wrote:Hello PG, Love Safe Docking and GalCop Rewards. Decided to add these as I rarely use the docking computer. I have one observation which only occurs when I am placed in a queue: The Dockmaster states, "You have docked at this station without clearance. I can not award you any Reward Points."
If I cancel docking clearance when it's my turn and immediately ask for clearance again, then all is well.
I am using Oolite version 1.76.1.
I will give it a test and get back to you.
Phantor
Chat and relax with other commanders in the [url=irc://irc.oftc.net/oolite]DS's Seedy Space Bar[/url]. The Coolest Bar in the Eight.
Phantor's OXPs: GalCop Rewards and Safe Docking
Phantor's OXPs: GalCop Rewards and Safe Docking
- CaptSolo
- ---- E L I T E ----
- Posts: 909
- Joined: Wed Feb 23, 2011 10:08 pm
- Location: Preying Manta
- Contact:
Re: [NEW RELEASE] GalCop Rewards
When in a queue I park near the station but not in the lane between station and buoy. I watch the activity out my port view. That couldn't possibly be the cause, could it?PhantorGorth wrote:That's weird. Was there anything special about your setup or what you did?
I will give it a test and get back to you.
Phantor
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: [NEW RELEASE] GalCop Rewards
Dodgy behaviour, is that... I'm not surprised you get no reward. I still think it's a shame that one can park-up, motionless... I wish the ship drifted slowly, as in strict mode.CaptSolo wrote:When in a queue I park near the station but not in the lane between station and buoy. I watch the activity out my port view. That couldn't possibly be the cause, could it?
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- CaptSolo
- ---- E L I T E ----
- Posts: 909
- Joined: Wed Feb 23, 2011 10:08 pm
- Location: Preying Manta
- Contact:
Re: [NEW RELEASE] GalCop Rewards
I call it otherwise. GalCop Vipers like to play the chicken game but they find no sport with me.El Viejo wrote:Dodgy behaviour, is that... I'm not surprised you get no reward. I still think it's a shame that one can park-up, motionless... I wish the ship drifted slowly, as in strict mode.CaptSolo wrote:When in a queue I park near the station but not in the lane between station and buoy. I watch the activity out my port view. That couldn't possibly be the cause, could it?
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: [NEW RELEASE] GalCop Rewards
Heh... Vipers get plenty of sport out of me. Mind you, I usually jump queues (I rarely use the DC).
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- PhantorGorth
- ---- E L I T E ----
- Posts: 647
- Joined: Wed May 20, 2009 6:48 pm
- Location: Somewhere off the top left of Galaxy 1 map
Re: [NEW RELEASE] GalCop Rewards
The code doesn't care about your position unless you auto-dock. When it comes to Docking Clearance in Safe Docking here are the various bits of code that does the job:CaptSolo wrote:When in a queue I park near the station but not in the lane between station and buoy. I watch the activity out my port view. That couldn't possibly be the cause, could it?
Code: Select all
this.reward_shipWillDockWithStation = function(transition, stateBackup)
{
...
if ((player.ship.dockedStation.requiresDockingClearance) && (self.dockingClearance != "DOCKING_CLEARANCE_GRANTED") && (self.dockingClearance != "DOCKING_CLEARANCE_NOT_REQUIRED") && (self.dockingClearance != "DOCKING_CLEARANCE_EXTENDED") && (actual_points > 0))
{
str = expandDescription("[SafeDocking_No_Docking_Clearance]");
}
... //check is true if the player has returned too soon.
if ((actual_points > 0) && ((check) || ((player.ship.dockedStation.requiresDockingClearance) && (self.dockingClearance != "DOCKING_CLEARANCE_GRANTED") && (self.dockingClearance != "DOCKING_CLEARANCE_NOT_REQUIRED") && (self.dockingClearance != "DOCKING_CLEARANCE_EXTENDED"))))
{
actual_points = 0;
}
...
}
this.playerRequestedDockingClearance = function(message)
{
this.dockingClearance = message;
}
this.shipLaunchedFromStation = function(station)
{
...
this.dockingClearance = null;
...
}
Chat and relax with other commanders in the [url=irc://irc.oftc.net/oolite]DS's Seedy Space Bar[/url]. The Coolest Bar in the Eight.
Phantor's OXPs: GalCop Rewards and Safe Docking
Phantor's OXPs: GalCop Rewards and Safe Docking
- CaptSolo
- ---- E L I T E ----
- Posts: 909
- Joined: Wed Feb 23, 2011 10:08 pm
- Location: Preying Manta
- Contact:
Re: [NEW RELEASE] GalCop Rewards
Didn't think so, and confirmed just a minute ago. Thanks for your efforts, PG.PhantorGorth wrote:The code doesn't care about your position...CaptSolo wrote:When in a queue I park near the station but not in the lane between station and buoy. I watch the activity out my port view. That couldn't possibly be the cause, could it?
- PhantorGorth
- ---- E L I T E ----
- Posts: 647
- Joined: Wed May 20, 2009 6:48 pm
- Location: Somewhere off the top left of Galaxy 1 map
Re: [NEW RELEASE] GalCop Rewards
Well I can see what the issue is. I check only at request and if that is wait in the queue then it doesn't get updated when you are allowed to dock. I should be using the property of player.dockingClearanceStatus instead. Give me bit and I will fix this.
Thank you for your patience.
Phantor
PS my next post regarding Safe Docking will be in the correct thread for it. Could all future post regarding Safe Docking be made there unless it directly impacts on GalCop Rewards.
Thank you for your patience.
Phantor
PS my next post regarding Safe Docking will be in the correct thread for it. Could all future post regarding Safe Docking be made there unless it directly impacts on GalCop Rewards.
Chat and relax with other commanders in the [url=irc://irc.oftc.net/oolite]DS's Seedy Space Bar[/url]. The Coolest Bar in the Eight.
Phantor's OXPs: GalCop Rewards and Safe Docking
Phantor's OXPs: GalCop Rewards and Safe Docking
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: [NEW RELEASE] GalCop Rewards
Unfortunately, coming to a complete halt is necessary to use Fuel Stations.. even 1 m/s of drift is enough to move you out of the fuelling zone before the tank is full. I recall how, a few years back, when you zeroed the joystick throttle, Oolite would impart about half a m/s of reverse thrust.. that was a real PITA for refuelling.El Viejo wrote:I still think it's a shame that one can park-up, motionless... I wish the ship drifted slowly, as in strict mode.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: [NEW RELEASE] GalCop Rewards
Ah well... I have no need of fuel stations. How do they work... do they magic the quirium into the ship somehow?
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: Issue with Safe Docking OXP and Docking Clearance
As they're his invention, you'd have to ask the Green One about that..
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Issue with Safe Docking OXP and Docking Clearance
I'll spare the TMA the trouble, and consult the Wiki... ahh, I see!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!