Gun problem

The place to discuss scripting and game modifications for X²: The Threat.

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

StormSinger
Posts: 89
Joined: Tue, 15. Mar 05, 18:04
x4

Gun problem

Post by StormSinger »

I'll state for the record that I've been through every thread I could find dealing with this topic, and still can't seem to resolve the problem.

I have 2 custom ships, 1 with 2 forward 107's (dual-barrel) and 1 with 3 107's. In the first case, one gun fires, one doesn't. In the second case, 2 fire, and one doesn't. I've checked all the related files until I'm almost blind, as well as compared many similar setups... I still can't find the gremlin.
If I change path ID's, it switches the working gun(s) to a different position, but one always remains dead. :cry:
Galaxy613
Posts: 3285
Joined: Tue, 28. Dec 04, 02:19
x4

Post by Galaxy613 »

What you need to do is find the part ID of the guns in the Scene BOD of the Ship. Then in DoubleShadow's editor put the gun part's ID as the ID it asks for when you create/edit a gun. If you need me to explain more and with pics I can do so.
10,000 Lightyears of awesomeness
StormSinger
Posts: 89
Joined: Tue, 15. Mar 05, 18:04
x4

Post by StormSinger »

That's sort of where my problem is. The P xx entries in the scene file have all been entered as they appear.

For example:

Code: Select all

/Fuselage
P 1; B 18600; C 1; N 18600_1;
  { 0x2002;  0; 0; 0;  0.000000; 0.000000; 0.000000; 0.000000;  -1;  -1; } // 0
/Forward guns 1-3
P 11; B 107; C 1; N 107_1;
  { 0x2002;  0; 2589; -1164;  0.250000; 0.000000; 0.000000; -1.000000;  -1;  -1; } // 0
P 12; B 107; C 1; N 107_1;
  { 0x2002;  2244; -1278; -1164;  0.083333; 0.000000; 0.000000; -1.000000;  -1;  -1; } // 0
P 13; B 107; C 1; N 107_1;
  { 0x2002;  -2244; -1278; -1164;  0.083333; 0.000000; 0.000000; 1.000000;  -1;  -1; } // 0
And the TShips entries:

Code: Select all

940;0;0.20000;0.20000;0.20000;5;4131;14500;2664;103;1;5;89;150;168;
225;18600;4512;537067737;7;4;3;9;9;15;40;6000;6000;106;2;0;0;0;0;0;
0;0;0;0;0;0;3;1;10000;35;36;1;2;1;0;18600;1;2;1;91;14;2;1;6;1;6;1;1;
107;11;111;1;2;1;107;11;375;2;3;1;107;12;111;1;4;1;107;12;375;2;5;1;
107;13;111;1;6;1;107;13;375;2;7;1;2;1;7;1;91;14;89;0;130;12500;25;10
;SS_SH_A_M3A;
:? I don't get it, apparently.
User avatar
nuclear_eclipse
Posts: 1129
Joined: Thu, 2. Sep 04, 01:54
x3tc

Post by nuclear_eclipse »

you shouldnt have two entries per gun hardpoint. The two-barrel guns have a special way of designating two weapons to that gun. Look at a ship like the Buster to see how itdoes its weapons, as that is a ship that uses a double-barrel gun mount.
StormSinger
Posts: 89
Joined: Tue, 15. Mar 05, 18:04
x4

Post by StormSinger »

At this point I hate to argue with anyone, but I've looked at every ship in the game that uses the 107, plus about 2 dozen modded ships which also use that gun and they all have 2 entries per hardpoint -- 1 for the 111 barrel, and 1 for the 375 barrel, with paths 1 & 2 respectively.

The Banshee in Harlock's mod has the same setup, only that one works.

Return to “X²: The Threat - Scripts and Modding”