Page 3 of 4

Posted: Mon Oct 25, 2010 4:37 pm
by Eric Walch
Micha wrote:
Docking clearance plus only docking when your speed is in the green range is the way to go...
You mean adding a ship script to stations with the code:

Code: Select all

this.otherShipDocked = function(ship)
{
  if (ship.isPlayer && ship.speed > 100)
  {
      ship.consoleMessage("You docked to fast, we'll penalising you");
      player.credits -= 1000;
  }
  if (ship.isPlayer && ship.speed > 300)
  {
      ship.consoleMessage("Bye.....");
      ship.explode();
  }
}
EDIT: I was just joking, but much to my surprise it is even working. The speed is not yet set to zero when the handler fires and a script can read the speed on docking at this moment. :wink:

Posted: Mon Oct 25, 2010 4:50 pm
by another_commander
skodarap wrote:
Anyway, yes, shift+c works - been playing around with it for a while and I found out what was the reason for it not working - docking clearance - so much details to pay attention to :lol:
I just checked this and Shift+C works fine with or without docking clearance both on trunk and 1.74.2. It must have been something else that was done wrong - forgetting to target the station prior to pressing Shift+C maybe?

Posted: Mon Oct 25, 2010 5:16 pm
by Cody
Eric Walch wrote:
Micha wrote:
Docking clearance plus only docking when your speed is in the green range is the way to go...
You mean adding a ship script to stations with the code:

Code: Select all

this.otherShipDocked = function(ship)
{
  if (ship.isPlayer && ship.speed > 100)
  {
      ship.consoleMessage("You docked to fast, we'll penalising you");
      player.credits -= 1000;
  }
  if (ship.isPlayer && ship.speed > 300)
  {
      ship.consoleMessage("Bye.....");
      ship.explode();
  }
}
EDIT: I was just joking, but much to my surprise it is even working. The speed is not yet set to zero when the handler fires and a script can read the speed on docking at this moment.
I’m glad you were 'just joking', Eric… speaking as an inveterate contrabandista, that chunk of code is horrifying.

Posted: Mon Oct 25, 2010 5:32 pm
by Ganelon
Ok, I made a vid to show a way of docking. Sorry the quality is bad and there's no sound, but I'm an utter noob at video and youtube.

This is my idea of how to dock in about 20 seconds for maximal fun. :twisted:

http://www.youtube.com/watch?v=MRmUZBLlWrA

Here's how ya do it. Go almost to the planet surface, so you can get to see the sky turn black as you zip along to the station.

Then throttle up to full and hit your injectors and keep 'em roaring.

You want to cut pretty tight around the nav buoy, but try not to give it more room than you have to.

As soon as you slip past the buoy, get your nose on the slot and match your roll, and all that's left to do is figure out what your drinking at the bar.

Easy peasy. (After you've done it more carefully enough times. LOL) Though it is fun once in a while to listen to the Danube Waltz and watch. And sometimes if you need to hit the head and refill the coffee, shift-d can be def the right thing to do.

(And a big hello to Howling Wolf! Bet ya didn't expect to be in a movie today. LOL)

Posted: Mon Oct 25, 2010 6:37 pm
by skodarap
another_commander wrote:
skodarap wrote:
Anyway, yes, shift+c works - been playing around with it for a while and I found out what was the reason for it not working - docking clearance - so much details to pay attention to :lol:
I just checked this and Shift+C works fine with or without docking clearance both on trunk and 1.74.2. It must have been something else that was done wrong - forgetting to target the station prior to pressing Shift+C maybe?
I meant for oxp stations, on main stations it worked without clearance.

Oh, while were at it, it was really a pain in the neck to find command for docking clearance (shift+L), is that standard keyboard command for oolite or oxp added? 'cause if it's standard she's missing on Keyboard Controls list in Wiki.

Posted: Mon Oct 25, 2010 6:42 pm
by Cody
skodarap wrote:
Oh, while were at it, it was really a pain in the neck to find command for docking clearance (shift+L), is that standard keyboard command for oolite or oxp added? 'cause if it's standard she's missing on Keyboard Controls list in Wiki.
Much goodness can be found in the reference sheet pdf, contained in the Oolite main folder.

Posted: Mon Oct 25, 2010 7:26 pm
by another_commander
skodarap wrote:
another_commander wrote:
skodarap wrote:
Anyway, yes, shift+c works - been playing around with it for a while and I found out what was the reason for it not working - docking clearance - so much details to pay attention to :lol:
I just checked this and Shift+C works fine with or without docking clearance both on trunk and 1.74.2. It must have been something else that was done wrong - forgetting to target the station prior to pressing Shift+C maybe?
I meant for oxp stations, on main stations it worked without clearance.
I meant OXP stations, too. ;-)

Posted: Mon Oct 25, 2010 7:50 pm
by Darkbee
Are we there yet?

Posted: Mon Oct 25, 2010 10:14 pm
by skodarap
Well, I guess I have to apologize, I confused "c" and "shift+c" :D

Ok, I'm done with this thread.

Cheers everybody

Posted: Tue Oct 26, 2010 11:03 pm
by Kaks
Micha wrote:
But the point about simplifying the docking computer controls stands. If no-one objects I'll hack that in this week.
I'm definitely not objecting! Go for it, Micha! :)

Posted: Fri Oct 29, 2010 7:33 am
by Micha
Kaks wrote:
Micha wrote:
But the point about simplifying the docking computer controls stands. If no-one objects I'll hack that in this week.
I'm definitely not objecting! Go for it, Micha! :)
As of last night, a draft revamp is in trunk for anybody who wants to try it out (should have been built by the various nightlies by now for people who don't want to compile their own).

Posted: Fri Oct 29, 2010 8:56 am
by Kaks
Oooh, consistent docking commands! :)
It's going to take a while to get used to the concept, but I suppose we'll soldier on, if we must! :P

Nice one. No problems so far, & I like the new station key. We'll have to update the oxp verifier at some point! I've updated the oxp verifier now. ;)

Posted: Fri Oct 29, 2010 12:47 pm
by another_commander
First tests indicate board green and make me wonder how come we didn't do this earlier. Good job Micha.

Posted: Fri Oct 29, 2010 2:39 pm
by Ganelon
Well the d/shift-d thing, it was easy enough to just edit the key configs. But I always assumed it was a deliberate touch of an evil sense of humour somewhere during some point (or perhaps pint?) of development to make d jettison cargo and shift-d the fast auto-docking. LOL

Posted: Sat Oct 30, 2010 12:46 am
by Switeck
The Adder can at least dock without consideration to its rotation, since it's so much smaller than the docking slit.

I've...recently read...that the massive Boa Cruiser might dock "cleaner", with more room to spare, if it docks sideways with the docking slit.

This is why I love the SuperHub Station...it's so huge, you can have an Anaconda going out as you're coming in and have room to spare all around!