playerRequestedDockingClearance event

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
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.

playerRequestedDockingClearance event

Post by phkb »

Not sure if this is a bug or just a gap in my knowledge, but, based on the documentation, I'm expecting to receive a playerRequestedDockingClearance event with the message "DOCKING_CLEARANCE_CANCELLED" when the time allotted to the player for docking expires, but I'm never getting that event/message combination. I get DOCKING_CLEARANCE_GRANTED when I request a docking slot, and DOCKING_CLEARANCE_EXTENDED when I reach the last 30 seconds and extend my clearance, but I'm not getting the cancelled message. Is someone able to (a) confirm if this is a bug, or (b) show me the right way of checking for that message?
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: playerRequestedDockingClearance event

Post by cim »

The event gives you the response to an explicit clearance request - so it should say CANCELLED when you do shift-L before the extension window.

There's not currently an event to detect expiry - I'll add it to the list for 1.84, but in the meantime, you can set a two minute timer when clearance is granted, and assume expiry if there's no other playerRequestedDockingClearance event (or successful docking, hyperspace entry, etc.) before the timer runs out.
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: playerRequestedDockingClearance event

Post by phkb »

Right. Thanks!
Post Reply