Moving cockpit camera ?

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

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

Post Reply
User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Moving cockpit camera ?

Post by Joubarbe » Wed, 22. Oct 14, 12:31

Hey,

I'd like to put Kha'aks in my next script, but in LU, the cockpit camera of some of them is not right, it's like we have the full ship in the face, and it's impossible to see. How to fix that ? Is it hard... ?

User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle » Wed, 22. Oct 14, 13:50

Move the cameradummy in the scene.

For example, in the Colossus M0 example in the Ship Tricks tutorials, look for these two lines:

Code: Select all

P 23; B ships\props\cameradummy; C 2; N Bships\props\cameradummy_2b; b
  { 0x2002;  -0; 31717; 383369;  0.000000; 0.000000; 0.000000; 0.000000;  -1;  -1; } // -1


The location of the camera is -0; 31717; 383369. Change those values to move the camera.

User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe » Wed, 22. Oct 14, 14:04

Hmm, strange, in the Kha'aks Scout line, I read :

Code: Select all

0;0;0.449875;0.449875;0.404892;SG_SH_M5;4051;80000;40000;114;1;712;0;78;168;202;4209;ships\khaak\cockpits\khaak_m5_cp_scene;-2147483648;1;509;0.00398;0;2;8;4;30;35;30;40;0;0;0;0;0;0;0;0;0;0;0;0;0;0;3;7;3130;600;650;10;0;48;OBJ_SHIP_M5;1;1;0;771;1;1;1;1;1;1;1;1;ships\props\invisible_weapon;4;;-1;0;8076;1;1;1;8076;10;0;0;SS_SH_K_M5;
And no "cameradummy" part.

User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle » Wed, 22. Oct 14, 15:17

Is that from TShips?

You should be looking at the scene file. Read (or watch the videos of) some of the Ship Tricks tutorials for more info about scenes.

User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe » Wed, 22. Oct 14, 17:13

So I copied the khaak_M5_scene on my HDD, made modifications, then put it back to my cat:\objects\ships\khaak (no extension, no compression).

No noticeable changes in game. What am I doing wrong here ?

User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle » Wed, 22. Oct 14, 18:41

I don't know.

However, the reason that the tutorials suggest leaving the edited .pbd on the disk drive is to avoid a variety of possible mistakes that can be made in trying to re-pack the file into a .cat.

Just be sure that the path is correct (matching TShips, but without the object folder, as shown in the tutorials).

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22227
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow » Thu, 23. Oct 14, 10:32

What cat file did you put it back into, was it the latest numbered cat, or in the mods directory?

If it was in the mods directory, make sure its selected in the game launcher

Fiesgesicht
Posts: 18
Joined: Fri, 26. Sep 14, 21:28

Post by Fiesgesicht » Thu, 23. Oct 14, 12:30

I've had problems with changes not showing ingame when adding files back into the .cats.

Just put them on your disc in the correct directories and all will be fine.

That way, borking them up is not a big deal, as reverting to original file only requires a simple deletion of the new file.

Post Reply

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