Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Sugestion for a new Docking AI

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: Sugestion for a new Docking AI

Post by JazHaz »

I quite like the docking system as it is now, but I go crazy because it does everything at a crawl. Why can't the max speed be upped a little, say to half speed?
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
SandJ
---- E L I T E ----
---- E L I T E ----
Posts: 1048
Joined: Fri Nov 26, 2010 9:08 pm
Location: Help! I'm stranded down here on Earth!

Re: Sugestion for a new Docking AI

Post by SandJ »

Eric Walch wrote:
Bazabaza wrote:
It would be nice that if stuck in a queue the pilot pointed you at the station so you have something to watch whilst you wait.
Interesting idea. You could change one line in the docking AI as follows:

Code: Select all

	STATIONKEEPING =
	{
		ENTER = (performIdle, "setSpeedTo: 0.0", "pauseAI: 10.0");
into:

Code: Select all

	STATIONKEEPING =
	{
		ENTER = (setDestinationToTarget, performFaceDestination, "setSpeedTo: 0.0", "pauseAI: 10.0");
That way the ship will not go 'Idle' when entering the waiting loop, but first doing a turn towards its destination and this will always be the station for docking.
I made this change as soon as you posted it and it has kicked in half a dozen times since then. As I write this I am watching a line of ships docking into an Imperial AstroFactory while I wait my turn.

The above change is so much better than staring into blank space that it ought to be core functionality (IMHO). Anyone who has not made this change manually, I thoroughly recommend it.
Flying a Cobra Mk I Cobbie 3 with nothing but Explorers Club.OXP and a beam laser 4 proper lasers for company :D
Dropbox referral link 2GB of free space online + 500 Mb for the referral: good for securing work-in-progress.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Sugestion for a new Docking AI

Post by Eric Walch »

SandJ wrote:
The above change is so much better than staring into blank space that it ought to be core functionality (IMHO). Anyone who has not made this change manually, I thoroughly recommend it.
I fully agree, after my initial experiments with it and I couldn't see how it could conflict with existing code, I added the code to trunk. It means that now also the other waiting ships will point to the station, but we may assume that they, like the player, like to watch the progress and not only want to wait till they get a progress message through their intercom. :P
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16073
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Sugestion for a new Docking AI

Post by Cody »

I'll make a note of the current code snippet then, so I can revert to it in a future version.
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!
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Sugestion for a new Docking AI

Post by Commander McLane »

Eric Walch wrote:
SandJ wrote:
The above change is so much better than staring into blank space that it ought to be core functionality (IMHO). Anyone who has not made this change manually, I thoroughly recommend it.
I fully agree, after my initial experiments with it and I couldn't see how it could conflict with existing code, I added the code to trunk. It means that now also the other waiting ships will point to the station, but we may assume that they, like the player, like to watch the progress and not only want to wait till they get a progress message through their intercom. :P
Sometimes I also like to watch the docking routine of a station. However, in these cases I point my ship's nose to a point about 2000m in front of the dock rather than the station itself. The station sits at the side of my screen and I'm able to overlook more of the approach line of the NPCs this way. :)
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6883
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Re: Sugestion for a new Docking AI

Post by Disembodied »

Is it worth suggesting some (occasional) random waiting-to-dock radio chatter?
Come on, come on, some of us have jobs to do!
Oh why, are we waiting, why-y are we WAY-ting ...
Soon as we're docked I'm hitting the Evil Juice.
I hear there's big money to be made shipping <randomcargo> to <randomsystem> ...
Help! We are assailed by - oh, wait, no, my mistake, sorry.
In the name of <randomdeity>, what is taking so long?
Last one in is an evil monkey!
and so on ...
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Sugestion for a new Docking AI

Post by Switeck »

And at the same time as the random radio chatter...have them roll a morale check.
If they fail the check, they break off from the docking queue...and either seek out a less busy station, try to force a quick dock on this station, or just hyperspace out. :lol:
User avatar
SandJ
---- E L I T E ----
---- E L I T E ----
Posts: 1048
Joined: Fri Nov 26, 2010 9:08 pm
Location: Help! I'm stranded down here on Earth!

Re: Sugestion for a new Docking AI

Post by SandJ »

Disembodied wrote:
Is it worth suggesting some (occasional) random waiting-to-dock radio chatter?
Thank you for holding. Your passing trade is important to us.
You are number one in the queue.
Please continue to hold.
F8 to view our incredible Commodity Market prices.
The musak is complimentary and was chosen especially for you.
Sooner or later, everyone comes to Oolite.
What do you want, you moon-faced assassin of joy?
Docking will commence when I've finished this game.
Would you like to listen to some of my poetry while you wait?
Commander, I have reserved a table in the restaurant for you.
I'm in the middle of fifteen things, all of them annoying.
Fire drill in progress. Please wait.
Hang on, hang on. I've always had a hard time getting up when it's dark outside.
Boom. Sooner or later. BOOM! Sorry, is this mike on?
Please continue to hold while we sweep the remaining wreckage from the docking bay.
You can come in when we find the "Open" switch.
Commander, wake up. You missed your slot.
Inventory scan still in progress. Continue to hold position.
Klaatu barada nikto.
There is no charge for enjoying the view.
Please wait while the regulars dock first.
Sorry to keep you waiting, my family are arriving.
Commander, we'll let you dock once you've had a shower.
Your reputation precedes you, Commander. Wait there.
Your manifest record is implausible, Commander. Continue to hold.
Station defences are locked on your ship. Do not move.
We're having a little trouble with the auto-dock, Commander, it keeps killing people. Hang on while we just try something.
Back in a minute, Commander, I'm going for more coffee.
Sorry for the delay, we're short-handed because of the planetside annual orgy.
Sorry for the delay, we're short-handed because of the plague. But thanks for coming.
May we remind Commanders that all unattended cargo will be confiscated.
Commander, we are having to re-arrange the entire docking bay to accommodate your ship. Just saying.
Won't be long, Commander, we just need to deal with someone important first.
Next time, Commander, try saying "Please".
No flushing of ship's heads in station aegis, please.
Please wait, Commander. Important people are docking.
Please wait, Commander. Station supplies being delivered.
Please wait, Commander. The station's Lethal Brandy delivery takes precedence.
Look Commander, I can see you're really upset about this. I honestly think you ought to sit down calmly, take a stress pill, and think things over.
Daisy, Daisy, give me your answer do. I'm half crazy all for the love of you. It won't be a stylish marriage, I can't afford a carriage. But you'll look sweet upon the seat of a bicycle built for two.
I know I've made some very poor decisions recently, but I can give you my complete assurance that my work will be back to normal.
Last edited by SandJ on Wed Jan 25, 2012 12:22 am, edited 1 time in total.
Flying a Cobra Mk I Cobbie 3 with nothing but Explorers Club.OXP and a beam laser 4 proper lasers for company :D
Dropbox referral link 2GB of free space online + 500 Mb for the referral: good for securing work-in-progress.
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6883
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Re: Sugestion for a new Docking AI

Post by Disembodied »

SandJ wrote:
Thank you for holding. Your passing trade is important to us.
(etc.)
:lol: this has to be included!
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Sugestion for a new Docking AI

Post by Eric Walch »

Disembodied wrote:
:lol: this has to be included!
You could create a custom oxp and add above phrases to the current ones:

Code: Select all

	"station-hold-position" =
	(
		"Please be patient - you are being held in a docking queue.",
		"Docking sequence will recommence shortly. Thank you for your patience.",
		"Traffic is heavy, please continue to hold until we can clear an approach for you.",
		"You are being queued for docking. Thank you for your patience."
	);
	"station-acknowledges-hold-position" =
	(
		"Please be patient - we are preparing to accommodate your vessel.",
		"Docking sequence will recommence shortly. Thank you for waiting.",
		"We are preparing an approach for you. Please wait.",
		"Preparing approach for docking. Thank you for your patience.",
		"Your docking request is acknowledged. Please hold for clearance.",
		"We are manoeuvring in preparation for your approach. Please hold."
	);

	// Space station docking clearance
	"station-docking-clearance-acknowledged-d-ships-approaching" =
	(
		"Your docking request is acknowledged. Please hold for clearance.",
		"Please wait until all ships have completed their approach. Your queue position is %d.",
		"We have inbound traffic, commander. Please stand by. You are number %d in the queue.",
		"We cannot clear you for docking due to prioritized incoming traffic. Your queue position is %d.",
		"We have ships on approach to station. Please hold for clearance."
	);
	"station-docking-clearance-holding-d-ships-approaching" =
	(
		"Please be patient - you are being held in a docking queue.",
		"Traffic is heavy, please continue to hold until we can clear an approach for you.",
		"You are being queued for docking. Thank you for your patience.",
		"Please wait until all ships have completed their approach. Your queue position is %d.",
		"We have inbound traffic, commander. Please stand by. You are number %d in the queue.",
		"We cannot clear you for docking due to prioritized incoming traffic. Your queue position is %d.",
		"We have ships on approach to station. Please hold for clearance."
	);				
I think the first three are transmitted once only, but the last is transmitted every time a ship docks while being queued. At least when you have docking clearance enabled.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5525
Joined: Thu Jun 12, 2008 6:55 pm

Re: Sugestion for a new Docking AI

Post by Thargoid »

Why do I feel the evil urge to go and find an .ogg file of Greensleeves? :twisted:
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8512
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Sugestion for a new Docking AI

Post by DaddyHoggy »

Thargoid wrote:
Why do I feel the evil urge to go and find an .ogg file of Greensleeves? :twisted:
http://en.wikipedia.org/wiki/File:Greensleeves.ogg

Free too...
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
jadenrayn
Above Average
Above Average
Posts: 26
Joined: Wed Feb 08, 2012 4:48 am

Re: Sugestion for a new Docking AI

Post by jadenrayn »

I bought the longshot in-game and she will not auto dock. i like the super hubs and the big outside dockers. that way you guys ships wont have to fit in the itty bitty cor. station. what if you gave the station a bigger opening?
or a heli landing pad outside for the med size ships touch and sell/save ect.
:?:
Post Reply