[Mod][Beta] Implementation of drone hauler's special racial drones

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
RoverTX
Posts: 1436
Joined: Wed, 16. Nov 11, 18:37
x4

[Mod][Beta] Implementation of drone hauler's special racial drones

Post by RoverTX » Sun, 11. Mar 12, 19:53

The mod will allow M6 ships and bigger with Carrier command software installed to create the new unused drone types. Though it does require open docking ports, and 5 marines with 50+ in Eng and Mechanical and 30+ In Hacking in order to work (The second part is done for realism sake and nothing more). The ship must also have the corresponding drone 'module'/ware in their cargo bay. The drones when built will be naked except for their built in Fighting Software, I and II, so you will need to be caring around weapons and shields also. This makes the new light carriers the best fit for this credit for credit. It also adds factories for the drone 'modules', though I leave up to the user as to where they will be for sale.

This installation will require a little know how for now at least until I get some feedback that it works and there are no major bugs.

File 1: 0001-L044.xml

This code should go in to the following tag at the end

<page id="350017" title="Boardcomp. objects" descr="0" voice="yes">

Code: Select all

<t id="1190921">{17,10022} {1000,101} {17,2911}(Prototype Argon Drone)</t>
 <t id="1190922">{17,20152}</t>
 <t id="1190931">{17,10022} {1000,102} {17,2911}(Prototype Boron Drone)</t>
 <t id="1190932">{17,20152}</t>
 <t id="1190941">{17,10022} {1000,103} {17,2911}(Prototype Split Drone)</t>
 <t id="1190942">{17,20152}</t>
 <t id="1190951">{17,10022} {1000,104} {17,2911}(Prototype Paranid Drone)</t>
 <t id="1190952">{17,20152}</t>
 <t id="1190961">{17,10022} {1000,105} {17,2911}(Prototype Teladi Drone)</t>
 <t id="1190962">{17,20152}</t>
 <t id="1190971">{17,10022} {1000,118} {17,2911}(Prototype Terran Drone)</t>
 <t id="1190972">{17,20152}</t>
 <t id="1190981">{17,10022} {1000,101} {17,3931}(Prototype Argon Drone Factory)</t>
 <t id="1190982">{17,16352}</t>
 <t id="1190991">{17,10022} {1000,102} {17,3931}(Prototype Boron Drone Factory)</t>
 <t id="1190992">{17,16352}</t>
 <t id="1191001">{17,10022} {1000,103} {17,3931}(Prototype Split Drone Factory)</t>
 <t id="1191002">{17,16352}</t>
 <t id="1191011">{17,10022} {1000,104} {17,3931}(Prototype Paranid Drone Factory)</t>
 <t id="1191012">{17,16352}</t>
 <t id="1191021">{17,10022} {1000,105} {17,3931}(Prototype Teladi Drone Factory)</t>
 <t id="1191022">{17,16352}</t>
 <t id="1191031">{17,10022} {1000,118} {17,3931}(Prototype Terran Drone Factory)</t>
 <t id="1191032">{17,16352}</t>
Same with the following code but inside the following at the end once again

<page id="351706" title="Bordcomp. player objects" descr="Your ... Object names (not spoken by Bordcomputer!)" voice="no">

Code: Select all

 <t id="1190925">{1705,1} {17,1190921}(Prototype Argon Drone)</t>
 <t id="1190935">{1705,1} {17,1190931}(Prototype Boron Drone)</t>
 <t id="1190945">{1705,1} {17,1190941}(Prototype Split Drone)</t>
 <t id="1190955">{1705,1} {17,1190951}(Prototype Paranid Drone)</t>
 <t id="1190965">{1705,1} {17,1190961}(Prototype Teladi Drone)</t>
 <t id="1190975">{1705,1} {17,1190971}(Prototype Terran Drone)</t>
 <t id="1190985">{1705,1} {17,1190981}(Prototype Argon Drone Factory)</t>
 <t id="1190995">{1705,1} {17,1190991}(Prototype Boron Drone Factory)</t>
 <t id="1191005">{1705,1} {17,1191001}(Prototype Split Drone Factory)</t>
 <t id="1191015">{1705,1} {17,1191011}(Prototype Paranid Drone Factory)</t>
 <t id="1191025">{1705,1} {17,1191021}(Prototype Teladi Drone Factory)</t>
 <t id="1191035">{1705,1} {17,1191031}(Prototype Terran Drone Factory)</t>
File 2: WareTemplate.xml

This can go anywhere inside the declared sector which should look like

<o t="1" x="3" y="5" r="8" size="10000000" m="-1" p="0" qtrade="100" qfight="100" qbuild="100" qthink="100">

Code: Select all

		<o t="6" s="SS_FAC_A_PROTO_DRONE" x="-167500000" y="0" z="157500000" r="1" a="0" b="0" g="0">
			<o t="23" s="6">
				<o t="11" s="SS_WARE_ENERGY"/>
				<o t="14" s="SS_WARE_F237"/>
				<o t="15" s="SS_WARE_SILICON"/>
			</o>
			<o t="23" s="7">
				<o t="16" s="SS_WARE_A_PROTO_DRONE"/>
			</o>
			<o t="23" s="8">
				<o t="16" s="SS_WARE_TECH206"/>
				<o t="16" s="SS_WARE_TECH208"/>
			</o>
		</o>
		<o t="6" s="SS_FAC_B_PROTO_DRONE" x="-177500000" y="0" z="157500000" r="1" a="0" b="0" g="0">
			<o t="23" s="6">
				<o t="11" s="SS_WARE_ENERGY"/>
				<o t="14" s="SS_WARE_F237"/>
				<o t="15" s="SS_WARE_SILICON"/>
			</o>
			<o t="23" s="7">
				<o t="16" s="SS_WARE_B_PROTO_DRONE"/>
			</o>
			<o t="23" s="8">
				<o t="16" s="SS_WARE_TECH206"/>
				<o t="16" s="SS_WARE_TECH208"/>
			</o>
		</o>
		<o t="6" s="SS_FAC_P_PROTO_DRONE" x="-187500000" y="0" z="157500000" r="1" a="0" b="0" g="0">
			<o t="23" s="6">
				<o t="11" s="SS_WARE_ENERGY"/>
				<o t="14" s="SS_WARE_F237"/>
				<o t="15" s="SS_WARE_SILICON"/>
			</o>
			<o t="23" s="7">
				<o t="16" s="SS_WARE_P_PROTO_DRONE"/>
			</o>
			<o t="23" s="8">
				<o t="16" s="SS_WARE_TECH206"/>
				<o t="16" s="SS_WARE_TECH208"/>
			</o>
		</o>
		<o t="6" s="SS_FAC_S_PROTO_DRONE" x="-197500000" y="0" z="157500000" r="1" a="0" b="0" g="0">
			<o t="23" s="6">
				<o t="11" s="SS_WARE_ENERGY"/>
				<o t="14" s="SS_WARE_F237"/>
				<o t="15" s="SS_WARE_SILICON"/>
			</o>
			<o t="23" s="7">
				<o t="16" s="SS_WARE_S_PROTO_DRONE"/>
			</o>
			<o t="23" s="8">
				<o t="16" s="SS_WARE_TECH206"/>
				<o t="16" s="SS_WARE_TECH208"/>
			</o>
		</o>
		<o t="6" s="SS_FAC_T_PROTO_DRONE" x="-207500000" y="0" z="157500000" r="1" a="0" b="0" g="0">
			<o t="23" s="6">
				<o t="11" s="SS_WARE_ENERGY"/>
				<o t="14" s="SS_WARE_F237"/>
				<o t="15" s="SS_WARE_SILICON"/>
			</o>
			<o t="23" s="7">
				<o t="16" s="SS_WARE_T_PROTO_DRONE"/>
			</o>
			<o t="23" s="8">
				<o t="16" s="SS_WARE_TECH206"/>
				<o t="16" s="SS_WARE_TECH208"/>
			</o>
		</o>
		<o t="6" s="SS_FAC_TR_PROTO_DRONE" x="-217500000" y="0" z="157500000" r="1" a="0" b="0" g="0">
			<o t="23" s="6">
				<o t="11" s="SS_WARE_ENERGY"/>
				<o t="14" s="SS_WARE_F237"/>
				<o t="15" s="SS_WARE_SILICON"/>
			</o>
			<o t="23" s="7">
				<o t="16" s="SS_WARE_TR_PROTO_DRONE"/>
			</o>
			<o t="23" s="8">
				<o t="16" s="SS_WARE_TECH206"/>
				<o t="16" s="SS_WARE_TECH208"/>
			</o>
		</o>
The easiest way to add these facts to the universe is to then add them to shipyards of their race in WareTemplate. The following is an example of how it will look with the fac having the bold tags around it (of course omit these when actually adding them in, its just for reference). The etc etc are omitted lines.

Code: Select all

<o t="6" s="SS_FAC_T_SHIP_BIG" x="-22500000" y="0" z="127500000" r="1" a="0" b="0" g="0">
			<o t="23" s="7">
				<o t="5" s="SS_DOCK_T_TRADE"/>
				<o t="5" s="SS_DOCK_T_EQUIP"/>
				<o t="6" s="SS_FAC_T_TECH204"/>
				<o t="6" s="SS_FAC_T_TECH205"/>
				etc etc etc....
				<o t="6" s="SS_FAC_T_AF_CAPITAL"/>
				<o t="6" s="SS_FAC_T_TECH205_1"/>
				[b]<o t="6" s="SS_FAC_T_PROTO_DRONE"/>[/b]
				<o t="7" s="SS_SH_T_TL"/>
				<o t="7" s="SS_SH_T_TS"/>
				<o t="7" s="SS_SH_T_TS_1"/>
				<o t="7" s="SS_SH_T_TS_2"/>
				<o t="7" s="SS_SH_T_TS_3"/>
				etc etc etc....
				<o t="7" s="SS_SH_T_M4P"/>
				<o t="7" s="SS_SH_T_M7"/>
				<o t="7" s="SS_SH_T_M5P"/>
			</o>
		</o>
Files 3&4: The Scripts

install the following into the AP Script Addon Folder

https://s3.amazonaws.com/forums-rover/p ... .drone.xml
https://s3.amazonaws.com/forums-rover/s ... .drone.xml

Files 5&6: The Types files

TFactories.txt

Add the big lines of code to the end of TFactories and then add 6 to the 2nd number in the 3rd line which should look something like the following.

Add 6 to the Second number in this

Code: Select all

47;507;
Add The Following to the end of the file

Code: Select all

1;0;0;0;0;SG_FAC_TECH;1190921;116;-1.2;-3.0;200;stations\station_scenes\tech\argon_tech_S_laser_U_scene;46;1;37;38;2000;1;ICON_TRG_ST_DRONE;14500;44640;25;20;5;19968;1000;0;0;SS_FAC_A_PROTO_DRONE;
1;0;0;0;0;SG_FAC_TECH;1190931;116;-1.2;-3.0;200;stations\station_scenes\tech\argon_tech_S_laser_U_scene;46;2;37;38;2000;1;ICON_TRG_ST_DRONE;14500;44640;25;20;5;19968;1000;0;0;SS_FAC_B_PROTO_DRONE;
1;0;0;0;0;SG_FAC_TECH;1190941;116;-1.2;-3.0;200;stations\station_scenes\tech\argon_tech_S_laser_U_scene;46;3;37;38;2000;1;ICON_TRG_ST_DRONE;14500;44640;25;20;5;19968;1000;0;0;SS_FAC_S_PROTO_DRONE;
1;0;0;0;0;SG_FAC_TECH;1190951;116;-1.2;-3.0;200;stations\station_scenes\tech\argon_tech_S_laser_U_scene;46;4;37;38;2000;1;ICON_TRG_ST_DRONE;14500;44640;25;20;5;19968;1000;0;0;SS_FAC_P_PROTO_DRONE;
1;0;0;0;0;SG_FAC_TECH;1190961;116;-1.2;-3.0;200;stations\station_scenes\tech\argon_tech_S_laser_U_scene;46;5;37;38;2000;1;ICON_TRG_ST_DRONE;14500;44640;25;20;5;19968;1000;0;0;SS_FAC_T_PROTO_DRONE;
1;0;0;0;0;SG_FAC_TECH;1190971;116;-1.2;-3.0;200;patch20\stations\scenes\usc_small_station_g_scene;33;18;201;38;2000;1;ICON_TRG_ST_DRONE;9500;48200;25;20;5;19000;1000;0;0;SS_FAC_TR_PROTO_DRONE;
The same needs to be done to the TWareT file with the following code, and don't forget to update the third line with +6 again.

Code: Select all

28;503;0;0;0;115;1190921;35;3212;21;10;2;3212;3333;1117;0;SS_WARE_A_PROTO_DRONE;
28;503;0;0;0;116;1190931;35;3212;21;10;2;3212;3333;1117;0;SS_WARE_B_PROTO_DRONE;
28;503;0;0;0;117;1190951;35;3212;21;10;2;3212;3333;1117;0;SS_WARE_P_PROTO_DRONE;
28;503;0;0;0;118;1190941;35;3212;21;10;2;3212;3333;1117;0;SS_WARE_S_PROTO_DRONE;
28;503;0;0;0;119;1190961;35;3212;21;10;2;3212;3333;1117;0;SS_WARE_T_PROTO_DRONE;
28;503;0;0;0;120;1190971;35;3212;21;10;2;3212;3333;1117;0;SS_WARE_TR_PROTO_DRONE;
And that should do it, let me know if you have any problems.

Post Reply

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