Doubleshadow's Editor and removing guns
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
- Damar Stiehl
- Posts: 861
- Joined: Mon, 3. May 04, 02:54
Doubleshadow's Editor and removing guns
Downloaded and played around with Doubleshadow's editor. All fine and dandy, but I noticed something wonky:
When I tried to remove guns from turrets (wanted to reduce the number of cannons on Skyrogen's Teladi Firebird), the editor did not update the guns' index numbers in TShips. It would go something like this:
Turret 1:
Gun 1
Gun 2
Gun 3
(I deleted Gun 4)
Turret 2:
Gun 5
Gun 6
Gun 7
(I deleted Gun 8)
Turret 3:
Gun 9
Gun 10
Gun 11
(I deleted Gun 12)
...
Because of the messed-up gun index, when the ship is created, some cannon slots are filled with "ghost Alpha IREs", which cannot be removed or switched to a different gun.
How do I fix gun indexes? I cannot seem to spot them by just looking at TShips... and Storm Front's kit does not have the breakdown for individual guns. Is there a reference somewhere I could use?
When I tried to remove guns from turrets (wanted to reduce the number of cannons on Skyrogen's Teladi Firebird), the editor did not update the guns' index numbers in TShips. It would go something like this:
Turret 1:
Gun 1
Gun 2
Gun 3
(I deleted Gun 4)
Turret 2:
Gun 5
Gun 6
Gun 7
(I deleted Gun 8)
Turret 3:
Gun 9
Gun 10
Gun 11
(I deleted Gun 12)
...
Because of the messed-up gun index, when the ship is created, some cannon slots are filled with "ghost Alpha IREs", which cannot be removed or switched to a different gun.
How do I fix gun indexes? I cannot seem to spot them by just looking at TShips... and Storm Front's kit does not have the breakdown for individual guns. Is there a reference somewhere I could use?
Actually, Storm Front's mod kit does describe the individual guns in each possible gun mount.
If you don't mind a long explaination of how to get it to work...read on.
The problem is that Storm Front's spreadsheet allowed for a fixed number of turrets...and a set number of guns per turret.
I first encountered the problem when I decided to add a rear turret to the T-Rex model. The .bod file was no problem, but since the ship has 8 guns up front, Doubleshadow's editor went all wonky. (Not surprising, since the most any of the original X2 ships has was 4!).
I then decided to do it manually using Storm Front's mod kit. However, when I imported the line from TShips into Excel, and pasted it into his template, I realized that none of the columns lined up after the first few turret definitions.
Basically, in the TShips data all fields are contigous...more turrets/guns = more fields. On the other hand, SF's mod Kit was based on the capacities of the original ship models, and provides fixed fields to accomodate all 7 viewable gun mount positions (front guns, and 6 turrets), followed a set number of gun positions for each of the gun mounts (4 guns in the 1st mount, and 3 guns for each of the turrets).
If you manually shift blocks of data to the right in SF's Excel spreadsheet (and add columns where needed to the gun mount definitions in SF's spreadsheet, for those ship models with more guns than the original ships), you will find that it actually makes sense, and you can modify things to your heart's content!
Sorry for the long post...hope it made sense.
If you don't mind a long explaination of how to get it to work...read on.
The problem is that Storm Front's spreadsheet allowed for a fixed number of turrets...and a set number of guns per turret.
I first encountered the problem when I decided to add a rear turret to the T-Rex model. The .bod file was no problem, but since the ship has 8 guns up front, Doubleshadow's editor went all wonky. (Not surprising, since the most any of the original X2 ships has was 4!).
I then decided to do it manually using Storm Front's mod kit. However, when I imported the line from TShips into Excel, and pasted it into his template, I realized that none of the columns lined up after the first few turret definitions.
Basically, in the TShips data all fields are contigous...more turrets/guns = more fields. On the other hand, SF's mod Kit was based on the capacities of the original ship models, and provides fixed fields to accomodate all 7 viewable gun mount positions (front guns, and 6 turrets), followed a set number of gun positions for each of the gun mounts (4 guns in the 1st mount, and 3 guns for each of the turrets).
If you manually shift blocks of data to the right in SF's Excel spreadsheet (and add columns where needed to the gun mount definitions in SF's spreadsheet, for those ship models with more guns than the original ships), you will find that it actually makes sense, and you can modify things to your heart's content!
Sorry for the long post...hope it made sense.
Alright, this is how it goes:
TShips is splitted to several parts(in order of course) for easier presentation.
This should also explain how to do it, that's why the original version.
Stormfront's Mod Kit should provide any needed information.
ORIGINAL FIREBIRD:
940;0;0.01999;0.01500;0.00999;4;3521;23500;3290;102;1;13;384;10000;
112;247;4164;4503;16777215;28;3;6;4;90;7;15;10000;10000;31;1;32;2;33;
4;34;3;35;5;36;6;-5;4;5;65000;37;38;2;7;1;0;806;1;2;1;939;6;3;2;939;11;
4;3;939;16;5;4;939;21;6;5;939;26;7;6;939;31;7;
1;4;1;4; //Main gun definitions
1;1;919;2;-1;-1;2;1;919;3;-1;-1;3;1;919;4;-1;-1;4;1;919;5;-1;-1; //Main guns
5;4;2;4; //Turret 1 definitions
5;1;708;7;981;2;6;1;708;8;981;2;7;1;708;9;981;2;8;1;708;10;981;2; //Turret 1 guns
9;4;3;4; //Turret 2 definitions
9;1;708;12;981;2;10;1;708;13;981;2;11;1;708;14;981;2;12;1;708;15;981;2; //Turret 2 guns
13;4;4;4; //Turret 3 definitions
13;1;708;17;981;2;14;1;708;18;981;2;15;1;708;19;981;2;16;1;708;20;981;2; //Turret 3 guns
17;4;5;4; //Turret 4 definitions
17;1;708;22;981;2;18;1;708;23;981;2;19;1;708;24;981;2;20;1;708;25;981;2; //Turret 4 guns
21;4;6;4; //Turret 5 definitions
21;1;708;27;981;2;22;1;708;28;981;2;23;1;708;29;981;2;24;1;708;30;981;2; //Turret 5 guns
25;4;7;4; //Turret 6 definitions
25;1;708;32;981;2;26;1;708;33;981;2;27;1;708;34;981;2;28;1;708;35;981;2; //turret 6 guns
1;1379965;25;1;0;SS_SH_T_M2;
18 TURRET FIREBIRD WITHOUT MAIN GUNS:
940;0;0.01999;0.01500;0.00999;4;3521;23500;3290;102;1;13;384;10000;
112;247;4164;4503;16777215;28;3;6;4;90;7;15;10000;10000;31;1;32;2;33;
4;34;3;35;5;36;6;-5;4;5;65000;37;38;2;7;1;0;806;1;2;1;939;6;3;2;939;11;
4;3;939;16;5;4;939;21;6;5;939;26;7;6;939;31;7;
1;0;1;1; //Main gun definitions
1;0;0;0;-1;-1; //Main guns
1;3;2;3; //Turret 1 definitions
1;1;708;7;981;2;2;1;708;8;981;2;3;1;708;9;981;2; //Turret 1 guns
4;3;3;3; //Turret 2 definitions
4;1;708;12;981;2;5;1;708;13;981;2;6;1;708;14;981;2; //Turret 2 guns
7;3;4;3; //Turret 3 definitions
7;1;708;17;981;2;8;1;708;18;981;2;9;1;708;19;981;2; //Turret 3 guns
10;3;5;3; //Turret 4 definitions
10;1;708;22;981;2;11;1;708;23;981;2;12;1;708;24;981;2; //Turret 4 guns
13;3;6;3; //Turret 5 definitions
13;1;708;27;981;2;14;1;708;28;981;2;15;1;708;29;981;2; //Turret 5 guns
16;3;7;3; //Turret 6 definitions
16;1;708;32;981;2;17;1;708;33;981;2;18;1;708;34;981;2; //turret 6 guns
1;1379965;25;1;0;SS_SH_T_M2
AND SAME IN one PACKAGE:
940;0;0.01999;0.01500;0.00999;4;3521;23500;3290;102;1;13;384;10000;
112;247;4164;4503;16777215;28;3;6;4;90;7;15;10000;10000;31;1;32;2;33;
4;34;3;35;5;36;6;-5;4;5;65000;37;38;2;7;1;0;806;1;2;1;939;6;3;2;939;11;
4;3;939;16;5;4;939;21;6;5;939;26;7;6;939;31;7;1;0;1;1;1;0;0;0;-1;-1;1;3;2;3;
1;1;708;7;981;2;2;1;708;8;981;2;3;1;708;9;981;2;4;3;3;3;4;1;708;12;981;2;5;1;
708;13;981;2;6;1;708;14;981;2;7;3;4;3;7;1;708;17;981;2;8;1;708;18;981;2;9;1;708;19;981;2;
10;3;5;3;10;1;708;22;981;2;11;1;708;23;981;2;12;1;708;24;981;2;13;3;6;3;
13;1;708;27;981;2;14;1;708;28;981;2;15;1;708;29;981;2;16;3;7;3;
16;1;708;32;981;2;17;1;708;33;981;2;18;1;708;34;981;2;1;1379965;25;1;0;SS_SH_T_M2;
TShips is splitted to several parts(in order of course) for easier presentation.
This should also explain how to do it, that's why the original version.
Stormfront's Mod Kit should provide any needed information.
ORIGINAL FIREBIRD:
940;0;0.01999;0.01500;0.00999;4;3521;23500;3290;102;1;13;384;10000;
112;247;4164;4503;16777215;28;3;6;4;90;7;15;10000;10000;31;1;32;2;33;
4;34;3;35;5;36;6;-5;4;5;65000;37;38;2;7;1;0;806;1;2;1;939;6;3;2;939;11;
4;3;939;16;5;4;939;21;6;5;939;26;7;6;939;31;7;
1;4;1;4; //Main gun definitions
1;1;919;2;-1;-1;2;1;919;3;-1;-1;3;1;919;4;-1;-1;4;1;919;5;-1;-1; //Main guns
5;4;2;4; //Turret 1 definitions
5;1;708;7;981;2;6;1;708;8;981;2;7;1;708;9;981;2;8;1;708;10;981;2; //Turret 1 guns
9;4;3;4; //Turret 2 definitions
9;1;708;12;981;2;10;1;708;13;981;2;11;1;708;14;981;2;12;1;708;15;981;2; //Turret 2 guns
13;4;4;4; //Turret 3 definitions
13;1;708;17;981;2;14;1;708;18;981;2;15;1;708;19;981;2;16;1;708;20;981;2; //Turret 3 guns
17;4;5;4; //Turret 4 definitions
17;1;708;22;981;2;18;1;708;23;981;2;19;1;708;24;981;2;20;1;708;25;981;2; //Turret 4 guns
21;4;6;4; //Turret 5 definitions
21;1;708;27;981;2;22;1;708;28;981;2;23;1;708;29;981;2;24;1;708;30;981;2; //Turret 5 guns
25;4;7;4; //Turret 6 definitions
25;1;708;32;981;2;26;1;708;33;981;2;27;1;708;34;981;2;28;1;708;35;981;2; //turret 6 guns
1;1379965;25;1;0;SS_SH_T_M2;
18 TURRET FIREBIRD WITHOUT MAIN GUNS:
940;0;0.01999;0.01500;0.00999;4;3521;23500;3290;102;1;13;384;10000;
112;247;4164;4503;16777215;28;3;6;4;90;7;15;10000;10000;31;1;32;2;33;
4;34;3;35;5;36;6;-5;4;5;65000;37;38;2;7;1;0;806;1;2;1;939;6;3;2;939;11;
4;3;939;16;5;4;939;21;6;5;939;26;7;6;939;31;7;
1;0;1;1; //Main gun definitions
1;0;0;0;-1;-1; //Main guns
1;3;2;3; //Turret 1 definitions
1;1;708;7;981;2;2;1;708;8;981;2;3;1;708;9;981;2; //Turret 1 guns
4;3;3;3; //Turret 2 definitions
4;1;708;12;981;2;5;1;708;13;981;2;6;1;708;14;981;2; //Turret 2 guns
7;3;4;3; //Turret 3 definitions
7;1;708;17;981;2;8;1;708;18;981;2;9;1;708;19;981;2; //Turret 3 guns
10;3;5;3; //Turret 4 definitions
10;1;708;22;981;2;11;1;708;23;981;2;12;1;708;24;981;2; //Turret 4 guns
13;3;6;3; //Turret 5 definitions
13;1;708;27;981;2;14;1;708;28;981;2;15;1;708;29;981;2; //Turret 5 guns
16;3;7;3; //Turret 6 definitions
16;1;708;32;981;2;17;1;708;33;981;2;18;1;708;34;981;2; //turret 6 guns
1;1379965;25;1;0;SS_SH_T_M2
AND SAME IN one PACKAGE:
940;0;0.01999;0.01500;0.00999;4;3521;23500;3290;102;1;13;384;10000;
112;247;4164;4503;16777215;28;3;6;4;90;7;15;10000;10000;31;1;32;2;33;
4;34;3;35;5;36;6;-5;4;5;65000;37;38;2;7;1;0;806;1;2;1;939;6;3;2;939;11;
4;3;939;16;5;4;939;21;6;5;939;26;7;6;939;31;7;1;0;1;1;1;0;0;0;-1;-1;1;3;2;3;
1;1;708;7;981;2;2;1;708;8;981;2;3;1;708;9;981;2;4;3;3;3;4;1;708;12;981;2;5;1;
708;13;981;2;6;1;708;14;981;2;7;3;4;3;7;1;708;17;981;2;8;1;708;18;981;2;9;1;708;19;981;2;
10;3;5;3;10;1;708;22;981;2;11;1;708;23;981;2;12;1;708;24;981;2;13;3;6;3;
13;1;708;27;981;2;14;1;708;28;981;2;15;1;708;29;981;2;16;3;7;3;
16;1;708;32;981;2;17;1;708;33;981;2;18;1;708;34;981;2;1;1379965;25;1;0;SS_SH_T_M2;
- Damar Stiehl
- Posts: 861
- Joined: Mon, 3. May 04, 02:54
same for me thanxOne request please. Can someone wrap this mod in download-able files, please ? Since I'm a complete noob at scripting and messing around with the game files, it's pretty hard to do the modifications myself. If it's not posible than perhaps someone would sent them to me via e-mail ? Please ?