Hyperion fighter docking port question

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Post Reply
User avatar
Spectre01
Posts: 453
Joined: Tue, 23. Dec 08, 10:15
xr

Hyperion fighter docking port question

Post by Spectre01 » Sun, 24. Jan 21, 00:51

So I have some question regarding the fighter docking port on the Hyperion.

I cloned the hyperion into a new ship (pasted to the end) in the Tship file (let's call this Hyperion 2) with the X3 Editor 2. When I spawn the new ship in game, for whatever reason, when order a fighter(under auto pilot) to dock to the hyperion 2, the fighter just clip into the center of the ship's 3D model and it count as docked, instead of using the 2 side docking port like the vanilla Hyperion. But If I use docking computer to dock a fighter which I'm flying, the fighter docks properly onto the side docking port on the hyperion 2. No such problem on the vanilla hyperion.

I took a look into the hyperion's scene file, and there's no mentioning of 2 docking ports (something like "Bships\props\extern_M42_dock") in the scene file. All it has are turrets, cameradummy, weapons dummy, etc. entry.

So my question is, what is controlling how fighter can dock onto the vanilla hyperion? And why a cloned ship entry in Tship, which uses all the same files that a vanilla hyperion uses, somehow has weird docking problem?

User avatar
XenonArchitect7
Posts: 110
Joined: Fri, 5. Jul 19, 07:19

Re: Hyperion fighter docking port question

Post by XenonArchitect7 » Sun, 24. Jan 21, 18:49

Hi there, I have documented everything you should need to know about dock objects here: viewtopic.php?f=94&t=424792&p=4932651#p4932651

Please let me know if there are additional questions about them.

User avatar
Spectre01
Posts: 453
Joined: Tue, 23. Dec 08, 10:15
xr

Re: Hyperion fighter docking port question

Post by Spectre01 » Sun, 24. Jan 21, 23:29

XenonArchitect7 wrote:
Sun, 24. Jan 21, 18:49
Hi there, I have documented everything you should need to know about dock objects here: viewtopic.php?f=94&t=424792&p=4932651#p4932651

Please let me know if there are additional questions about them.
Wow, didn't know this exist. Thank you so much!

edit: huh, turns out 19044 in the hyperion scene is the fighter docking port. But I don't get why the xyz-axis value for the docking port is exactly the same?

Code: Select all

P 30; B 19044; C 1; N B19044_1b; b
  { 0x2002;  11188; 81; -14870;  0.000000; 0.000000; 0.000000; 0.000000;  3333;  1; } // 1
  { 0x2002;  11188; 81; -14870;  0.000000; 0.000000; 0.000000; 0.000000;  -1;  -1; } // -1
Isn't the x-axis value should be one positive and one negative so it's on 2 side of the ship? I try to find some explanation about what those value means but couldn't. I think it might has something to do with that 3333 value?

I also don't get how the game can handle the vanilla hyperion docking port properly, but if you copy it into a new ship entry, without changing anything, now the docking ports are messed up. Is it something hardcoded into the game?

User avatar
XenonArchitect7
Posts: 110
Joined: Fri, 5. Jul 19, 07:19

Re: Hyperion fighter docking port question

Post by XenonArchitect7 » Mon, 25. Jan 21, 00:38

Spectre01 wrote:
Sun, 24. Jan 21, 23:29
huh, turns out 19044 in the hyperion scene is the fighter docking port. But I don't get why the xyz-axis value for the docking port is exactly the same?

Code: Select all

P 30; B 19044; C 1; N B19044_1b; b
  { 0x2002;  11188; 81; -14870;  0.000000; 0.000000; 0.000000; 0.000000;  3333;  1; } // 1
  { 0x2002;  11188; 81; -14870;  0.000000; 0.000000; 0.000000; 0.000000;  -1;  -1; } // -1
Isn't the x-axis value should be one positive and one negative so it's on 2 side of the ship? I try to find some explanation about what those value means but couldn't. I think it might has something to do with that 3333 value?

I also don't get how the game can handle the vanilla hyperion docking port properly, but if you copy it into a new ship entry, without changing anything, now the docking ports are messed up. Is it something hardcoded into the game?
That is strange, I have never seen a dockpoint object by the name of 19044 before. Dockpoints/hangars that I have worked with have always had a single postion line below the entry. Duplicate lines below are usually only for keyframe animations for animated props, such as spinning radar dishes (like the OTAS Mistral) or the ships passing by on the main menu (the main menu has a scene file for all objects in it).

I honestly don't know why this dockpoint has that extra line. But then again I have never seen this particular dockpoint before either. I would need to look at the hyperion in-game and observe its behavior. Perhaps this second line is needed by 19044 in order to specify different pathing for dock/undock (I highly doubt it, most other dockpoints do not work like that. Just thinking out loud).

User avatar
Spectre01
Posts: 453
Joined: Tue, 23. Dec 08, 10:15
xr

Re: Hyperion fighter docking port question

Post by Spectre01 » Mon, 25. Jan 21, 01:53

Ok... I found what I did wrong...

Turns out I somewhen set the hyperion2 (the cloned ship entry) into a TP class instead of M6. And since TP is hardcoded can't have docking, the game just brute force clip the fighter into the center of the model to dock. Now the docking behaves as expected after I changed the ship type back to M6.

Oops...

Anyway. Thanks for your help.

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”