Author Topic: Manual undocking  (Read 1242 times)

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Manual undocking
« 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).

Offline CyAn1d3

  • MacDill Shipyards Design Team
  • Posts: 1656
  • Cookies: 420
  • RETIRED
Re: Manual undocking
« Reply #1 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..
I came, i saw, i added a Sig.
Later gents, i have Youtube to take over.
Cy - 1-12-15

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Re: Manual undocking
« Reply #2 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?

Offline CyAn1d3

  • MacDill Shipyards Design Team
  • Posts: 1656
  • Cookies: 420
  • RETIRED
Re: Manual undocking
« Reply #3 on: October 06, 2013, 10:30:16 PM »
no clue.. :(
I came, i saw, i added a Sig.
Later gents, i have Youtube to take over.
Cy - 1-12-15

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Re: Manual undocking
« Reply #4 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:

Offline fraher

  • Posts: 16
  • Cookies: 10
Re: Manual undocking
« Reply #5 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)... ;)

Offline Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2186
  • Cookies: 1706
  • Life is life
Re: Manual undocking
« Reply #6 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.
Acta, non verba.
aka USS Sovereign

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Re: Manual undocking
« Reply #7 on: March 04, 2014, 04:29:24 PM »
hmm, any idea where said script might be hiding?

Offline Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2186
  • Cookies: 1706
  • Life is life
Re: Manual undocking
« Reply #8 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.
Acta, non verba.
aka USS Sovereign

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Re: Manual undocking
« Reply #9 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  :(

Offline Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2186
  • Cookies: 1706
  • Life is life
Re: Manual undocking
« Reply #10 on: March 07, 2014, 07:11:57 PM »
That's why you have bcsdk.
Acta, non verba.
aka USS Sovereign

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Re: Manual undocking
« Reply #11 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...

Offline Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2186
  • Cookies: 1706
  • Life is life
Re: Manual undocking
« Reply #12 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.
Acta, non verba.
aka USS Sovereign

Offline KrrKs

  • Posts: 461
  • Cookies: 25
Re: Manual undocking
« Reply #13 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...

Offline Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2186
  • Cookies: 1706
  • Life is life
Re: Manual undocking
« Reply #14 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).
Acta, non verba.
aka USS Sovereign

Offline Defiant

  • Posts: 398
  • Cookies: 1105
    • BC: Kobayashi Maru
Re: Manual undocking
« Reply #15 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.

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Re: Manual undocking
« Reply #16 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: