Bridge Commander Central

BC Forums => BC Scripting => Topic started by: Lord Tribble on September 28, 2013, 10:38:55 AM

Title: Manual undocking
Post by: Lord Tribble on September 28, 2013, 10:38:55 AM
Does anyone know if there is a way to change how docking works?
What I'm aiming for is that the normal dock button with play the cut scene and dock the ship as normal, but instead of cutting to another scene of the ship flying out, it instead leaves the ship parked so it can be piloted out manually (Or maybe leave it parked until an 'undock' button is pressed).
Title: Re: Manual undocking
Post by: CyAn1d3 on September 29, 2013, 01:42:53 AM
there IS a way out of this... but ive only pulled it off a few times...

order the base to "dock at next base"
dock the ship normally.
once the ship is docked, order the dock to "dock at next base" (do this after all the repairs are done, youll be able to get on the bridge once docked, check brex to make sure repairs are complete)
this SHOULD circumvent the cutscene and let you sit in the dock.... though the doors may end up repositioned, IF YOU DONT DO THIS, you wont be able to warp out of the system, as the game will think you are still docked.
.. i recommend turning off collisions for this..
Title: Re: Manual undocking
Post by: Lord Tribble on October 06, 2013, 01:03:14 PM
Any idea if there may be a way of altering the scripts to do this without glitches?
Title: Re: Manual undocking
Post by: CyAn1d3 on October 06, 2013, 10:30:16 PM
no clue.. :(
Title: Re: Manual undocking
Post by: Lord Tribble on November 06, 2013, 05:06:25 PM
Damn, kinda thought there must be a way to do it after seeing lots of videos with ships parked in a dock. Maybe they piloted them in manually :idk:
Title: Re: Manual undocking
Post by: fraher on February 25, 2014, 11:02:47 AM
Actually yes. I had dock manually many times. Requiered use of many skill to no collision with the dock, but is posible. Also, would be posible redo the docking script to, for example dock the ship and not go to cinematic, and after, via a "undock button" making so (its just an idea)... ;)
Title: Re: Manual undocking
Post by: Mario on March 02, 2014, 04:07:40 PM
Does anyone know if there is a way to change how docking works?
What I'm aiming for is that the normal dock button with play the cut scene and dock the ship as normal, but instead of cutting to another scene of the ship flying out, it instead leaves the ship parked so it can be piloted out manually (Or maybe leave it parked until an 'undock' button is pressed).

It's a simple scripted sequence from what I can recall. It is divided into 3 "phases".
1. Playing the entering sequence (there's a lot going on behind the scenes so I'm simplifying here).
2. Replenish the torpedo count
3. Play the exiting sequence.

You'd have to modify the functionality or write a whole different script with only the following 2 sequences in place.
Title: Re: Manual undocking
Post by: Lord Tribble on March 04, 2014, 04:29:24 PM
hmm, any idea where said script might be hiding?
Title: Re: Manual undocking
Post by: Mario on March 04, 2014, 05:56:31 PM
Somewhere inside the actions directory perhaps, can't remember. What I did if I couldn't find something was to simply use a grep utility to find a particular string of interest and then study the file to see if it was what I was looking for.
Title: Re: Manual undocking
Post by: Lord Tribble on March 07, 2014, 05:44:10 PM
All I can find in there are pyc files. Can't open them up to have a look  :(
Title: Re: Manual undocking
Post by: Mario on March 07, 2014, 07:11:57 PM
That's why you have bcsdk.
Title: Re: Manual undocking
Post by: Lord Tribble on March 08, 2014, 06:35:16 AM
ahhhhhhhh....

ok, think I've found the right script

scripts\AI\Compound\DockWithStarbase


Time to do some tinkering...
Title: Re: Manual undocking
Post by: Mario on March 11, 2014, 07:27:13 PM
No, I don't think that's it. That's an AI script. You're looking for something in actions directory I think.
Title: Re: Manual undocking
Post by: KrrKs on March 12, 2014, 07:53:44 AM
No, I don't think that it. That's an AI script.
Not exclusively. It does provide functions like:
Quote
def CreatePlayerDockAction

The action directory doesn't include anything similar...
Title: Re: Manual undocking
Post by: Mario on March 12, 2014, 02:46:21 PM
I'm speaking from memory. I no longer have BC installed or have bcsdk present. What I remember about it is that it's split into 3 parts and that the code is thrown all around the scripts. An AI exists which is responsible for docking and as well as for undocking, the sequence itself is where I don't remember is stored (if any).
Title: Re: Manual undocking
Post by: Defiant on March 20, 2014, 02:40:25 AM
You could take a look at KMs DockWithStarbaseLong.py which should be close to what you want.
Title: Re: Manual undocking
Post by: Lord Tribble on March 23, 2014, 01:32:30 PM
well, been playing for a bit and all I managed to do was stop docking from working entirely. Tried copying over the long script from KM as well but could get the game to do anything different :idk: