playerRequestedDockingClearance event

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

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
phkb
Commodore
Commodore
Posts: 2434
Joined: Tue Jan 21, 2014 10:37 pm
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...

playerRequestedDockingClearance event

Post by phkb » Fri Jun 19, 2015 7:13 pm

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: 4018
Joined: Fri Nov 11, 2011 6:19 pm

Re: playerRequestedDockingClearance event

Post by cim » Sat Jun 20, 2015 7:42 am

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
Commodore
Commodore
Posts: 2434
Joined: Tue Jan 21, 2014 10:37 pm
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...

Re: playerRequestedDockingClearance event

Post by phkb » Sat Jun 20, 2015 8:57 am

Right. Thanks!

Post Reply