EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
[SCR] Docking Lockup Fix + Upgrade (v6 - 13.06.09)
Post new topic Reply to topic Goto page 1, 2, 3, 4  Next
View previous topic :: View next topic
Author Message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
modified
PostPosted: Fri, 20. Mar 09, 17:03    Post subject: [SCR] Docking Lockup Fix + Upgrade (v6 - 13.06.09) Reply with quote Print

English / Deutsch

  • When a ship flies to a carrier/station with the intention of docking it occasionally freezes indefinitely when it reaches the very start of the blinkenlighten runway markers.

  • It was also reported that a ship could freeze indefinitely when sitting at the docking clamps but not quite docking.

  • This script is designed to fix the former but possibly also the latter. (could not reproduce)


  • Ships use an installed Docking Computer when within 5km of the target station/carrier.
    (= Transporter range in vanilla)

  • Lockup Fix and Docking Computer are automatically available for all scripts that call:
    !move.movetostation
    !move.returntohomebase
    That means all vanilla scripts and just about all custom ones.

  • Custom scripts that tap into SIGNAL_DOCKED will not recognise this as "proper docking" when In Sector but the stock X3 "auto-supply when docking" does work.

    OOS there are no incompatibility issues.


Download: ZIP


Installation:
Copy the contents of the ZIP into the TC folder.


Resources used: none


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.


Last edited by Gazz on Sat, 13. Jun 09, 13:18; edited 13 times in total
Back to top
View user's profile Send private message Visit poster's website
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Fri, 20. Mar 09, 17:04    Post subject: Reply with quote Print

** reserved **


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Sun, 5. Apr 09, 08:26    Post subject: Reply with quote Print

Version 2 released.

Functionality extended to "Return to Homebase"


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
Locksley





Joined: 18 Mar 2005
Posts: 365 on topic

Thank you for registering your game
PostPosted: Sun, 5. Apr 09, 09:47    Post subject: Reply with quote Print

Great Gazz!

I have used quite a few of our scripts over the years (is it two years Rolling Eyes ) and I am greatly appreciating you still being around enlightning the X-verse.

Cheers!

Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Mon, 6. Apr 09, 20:34    Post subject: Reply with quote Print

Version 3 released.

For the first time ever the Docking Computer has been seamlessly integrated into station/carrier landings.

When within 5 km of the target station/carrier, a ship uses it's docking computer, if available.


You may say that this has been done before - but it has not.
This time I successfully melded "-> fly to station" with instant docking while not leaving any script residue or hanging tasks.
Unlike previous attempts at this (including mine =) this does not cause hanging scripts so all actors in the game can (and do) freely call it as their regular station landing script.

So do all of your own ships, while using all the regular Egosoft scripts.
For instance, you know how fighters with "Protect Carrier" automatically land after they are done protecting except that now they would automatically use an installed docking computer, making this a very quick and painless affair.


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
MegaJohnny





Joined: 04 Jun 2008
Posts: 1754 on topic
Location: Manchester, UK
Thank you for registering your game
PostPosted: Mon, 6. Apr 09, 22:02    Post subject: Reply with quote Print

AI docking computers!

*screams loudly and runs in circles*

Oh by the way does this work with any command that makes a ship dock with something? Jump to station, return home etc?


_________________
My Steam profile
Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Mon, 6. Apr 09, 23:57    Post subject: Reply with quote Print

MegaJohnny wrote:
Oh by the way does this work with any command that makes a ship dock with something? Jump to station, return home etc?

Yes, unless someone (like Lucike) uses his very own navigation library, bypassing the default script calls. (CAG and family won't use this)

But all Egosoft scripts (and many others) surely do. Best buy, dock at, protect, jump to, etc.
Even the sectorwide broadcast for "All fighters, return to base" would work...
And if a boron energy transporter happens to spawn with a docking computer, sure thing he's gonna use it.
It's not a hack, it's a feature.

And yes, I am damn happy about it! (Woot!)
Over the years I'd made several attempts at this but all turned out as crude workarounds here and ugly clutches there. One way scripts that might hang up after docking or would kill the ship's current mainscript when trying to get unstuck, leaving it stranded, docked at some station with no idea how it got there and how to buy and return with the wares it was sent for.
Or others, that tried to simulate the smooth follow/approach course, that a ship normally takes, trying to catch a moving carrier with a series of moveto instructions. It kind of worked but it was crude and ugly. Messy.
But now I can make it faster, stronger! I have the technology!


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
pelador





Joined: 06 Nov 2002
Posts: 1230 on topic
Location: UK
Thank you for registering your game
PostPosted: Tue, 7. Apr 09, 00:39    Post subject: Reply with quote Print

Gratz Gazz:




_________________
X3TC:V2.1M

Dedicated Assistant Drones (DAD); Pirate Fence; Player Workshops; Convert Passenger to Marine
Back to top
View user's profile Send private message Send e-mail MSN Messenger
coreador





Joined: 03 Apr 2009
Posts: 13 on topic

Thank you for registering your game
PostPosted: Sun, 12. Apr 09, 08:28    Post subject: Reply with quote Print

Does this work in X3 Reunion? If not, is there something comparable for it? Getting ships to dock on my TL is causing me major headaches.

Back to top
View user's profile Send private message
paulms1980





Joined: 05 Mar 2004
Posts: 833 on topic

Thank you for registering your game
PostPosted: Sun, 12. Apr 09, 09:41    Post subject: Reply with quote Print

so gazz this works without any hitches?
ans also is there any scripts that might be incompatible (excpet the cag scripts already mentioned)
otherwise this could be the coolest SHIP script ive seen
am powering up my carrier as i type lol

Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Sun, 12. Apr 09, 15:13    Post subject: Reply with quote Print

Version 4 released.

Auto-Supply after docking works again.

Just found that one yesterday.
This "docking computer" way of docking does not trigger SIGNAL_DOCKED so the auto-supply script was not called.

If any custom scripts tap into SIGNAL_DOCKED, they will not register the (computerised) docking.
It's a rarely used feature, though, so few if any scripts will be affected.


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
Troubleshooter11





Joined: 08 Nov 2008
Posts: 718 on topic

Thank you for registering your game
PostPosted: Sun, 12. Apr 09, 15:40    Post subject: Reply with quote Print

Congratulations, nice work Smile

Back to top
View user's profile Send private message
Locksley





Joined: 18 Mar 2005
Posts: 365 on topic

Thank you for registering your game
PostPosted: Sun, 12. Apr 09, 18:40    Post subject: Reply with quote Print

Nice Gazz.

I just watched one of my traders using it's docking computer - wizz Very Happy

There was a complaint in spoiler forum that the auto pillok of ships can't dock to stations in Aldrin that are too close to the "big rock" in the middle - I pointed to this script and added that maybe one could do a check if ships are in Aldrin and give them a longer auto-docking range when in Aldrin only? Thus one would bypass the collison avoidance hopefully.

Maybe beoynd the scope of this script? Or even a stupid suggestion? Crying or Very sad

Cheers!

Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Sun, 12. Apr 09, 19:34    Post subject: Reply with quote Print

Terran stations are so huge that the docking clamps are usually far more than 5km from the center of the station.
As a result, a ship approaching the docking clamps would at no point be close enough to use the docking computer.

This works the same way for the playership. If you want to use the DC you need to fly smack dab into the middle of a terran station and not towards the docking clamps.

But what really screws up everything in Aldrin is the huge asteroid. That I can't fix easily.


Well, what I could do is not use the standard 5km range but something like
Station.Radius + 2000m.
However, that would mean that ships could instantly dock clear across 24 km of open space... which is more than a little silly.


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
Locksley





Joined: 18 Mar 2005
Posts: 365 on topic

Thank you for registering your game
PostPosted: Sun, 12. Apr 09, 19:43    Post subject: Reply with quote Print

Dang! No solution for Aldrin then Razz

Too bad there is no check from the God engine building stations near that asteriod - there should be a clearance big enough so ships wouldn't start collision avoidance when they try to dock to a station too close to that rock.

Eh, on an entirely different note - do you know where I can find some info on Job files and the workings of the God engine?

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2, 3, 4  Next
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Mon, 23. Oct 17, 13:27

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.51507 seconds, sql queries = 29