Question waypoints (maybe a dev can help?)

The place to discuss scripting and game modifications for X4: Foundations.

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

Max Bain
Posts: 1463
Joined: Wed, 27. Jun 18, 19:05
x3ap

Question waypoints (maybe a dev can help?)

Post by Max Bain »

How do they work? I have no idea how to make a proper waypoint networkfor the repair drones. With the actual waypoints, the drones fly to a specific point and then suddenly "warp" (very high speed) to a point in the middle (still outside of the hull) of the ship, repair and after that they return with warp speed. All other waypoints are ignored.

Another question I have is: Do cargo drones use these waypoints as well? I found out, that they use the start and end point, but I am sure they dont use all the repair waypoints. So what determines the waypoints for the cargo drones? Only start and end? Are waypoints only options for them they can pick if they are close than the target point? If yes, whats the target point for a repair drone? The closelink nodes?

Code: Select all

					
					<waypoint name="XU_Waypoint05" tags="sizeLevel1 typedock start dynamicmasstraffic " x="0" y="0" z="1335.0" qx="-0" qy="-0" qz="-0.7071068" qw="-0.7071067">
						<links>
							<link ref="XU_Waypoint010"/>
						</links>
					</waypoint>
					<waypoint name="XU_Waypoint02" tags="sizeLevel1 typedock end dynamicmasstraffic " x="0" y="0" z="1335.0" qx="-0" qy="-0" qz="-0.7071068" qw="-0.7071067">
						<links/>
					</waypoint>
					<waypoint name="XU_Waypoint009" tags="typenormal sizeLevel1 dynamicmasstraffic closelink" x="0.0" y="0.0" z="1457.1321" qx="-0" qy="-0" qz="-0.7071068" qw="-0.7071067">
						<links>
							<link ref="XU_Waypoint02"/>
						</links>
					</waypoint>
					<waypoint name="XU_Waypoint010" tags="typenormal sizeLevel1 dynamicmasstraffic closelink" x="0.0" y="0.0" z="1457.132" qx="-0" qy="-0" qz="-0.7071068" qw="-0.7071067">
						<links>
							<link ref="REP_Waypoint01"/>
						</links>
					</waypoint>
					
					<waypoint name="XU_Waypoint01start" tags="typenormal sizeLevel1 dynamicmasstraffic " x="0" y="0" z="1355.0" qw="-0.7071068967259818" qx="-0.0" qy="-0.7071066656470943" qz="-0.0">
						<links>
							<link ref="REP_Waypoint01"/>
						</links>
					</waypoint>
					<waypoint name="REP_Waypoint01" tags="typenormal sizeLevel1 dynamicmasstraffic" x="300.697" y="-5.675800000000001" z="-112.27629999999999" qw="-0.7071068967259818" qx="-0.0" qy="-0.7071066656470943" qz="-0.0">
						<links>
							<link ref="REP_Waypoint011"/>
							<link ref="REP_Waypoint012"/>
							<link ref="REP_Waypoint013"/>
							<link ref="REP_Waypoint014"/>
							<link ref="REP_Waypoint015"/>
							<link ref="REP_Waypoint016"/>
							<link ref="REP_Waypoint0161"/>
							<link ref="REP_Waypoint0162"/>
						</links>
					</waypoint>
					
					<waypoint name="REP_Waypoint011" tags="typenormal sizeLevel1 dynamicmasstraffic" x="95.3809" y="-53.233" z="910.5708000000001" qw="-0.7071068967259818" qx="-0.0" qy="-0.7071066656470943" qz="-0.0">
						<links>
							<link ref="REP_Waypoint0141"/>
						</links>
					</waypoint>
					<waypoint name="REP_Waypoint012" tags="typenormal sizeLevel1 dynamicmasstraffic " x="-115.53699999999999" y="-12.9096" z="888.9706" qw="-0.7071068967259818" qx="-0.0" qy="-0.7071066656470943" qz="-0.0">
						<links>
							<link ref="REP_Waypoint0161"/>
						</links>
					</waypoint>
					<waypoint name="REP_Waypoint013" tags="typenormal sizeLevel1 dynamicmasstraffic" x="-48.5723" y="103.71440000000001" z="-497.4005" qw="-0.7071068967259818" qx="-0.0" qy="-0.7071066656470943" qz="-0.0">
						<links>
							<link ref="REP_Waypoint0131"/>
						</links>
					</waypoint>
					<waypoint name="REP_Waypoint0131" tags="typenormal sizeLevel1 dynamicmasstraffic" x="70.3962" y="107.4344" z="-610.24490000000003" qw="-0.7071068967259818" qx="-0.0" qy="-0.7071066656470943" qz="-0.0">
						<links/>
					</waypoint>	
					<waypoint name="REP_Waypoint014" tags="typenormal sizeLevel1 dynamicmasstraffic closelink" x="69.5689" y="-90.9127" z="-466.70020000000005" qw="-0.7071068967259818" qx="-0.0" qy="-0.7071066656470943" qz="-0.0">
						<links>
						</links>
					</waypoint>
					<waypoint name="REP_Waypoint0141" tags="typenormal sizeLevel1 dynamicmasstraffic " x="-48.5722" y="103.7143" z="347.4565" qw="-0.7071068967259818" qx="-0.0" qy="-0.7071066656470943" qz="-0.0">
						<links>
							<link ref="REP_Waypoint0161"/>
						</links>
					</waypoint>	
					<waypoint name="REP_Waypoint015" tags="typenormal sizeLevel1 dynamicmasstraffic " x="-0.0" y="116.8133" z="318.8225" qw="-0.7071068967259818" qx="-0.0" qy="-0.7071066656470943" qz="-0.0">
						<links>
							<link ref="REP_Waypoint0162"/>
						</links>
					</waypoint>	
					<waypoint name="REP_Waypoint016" tags="typenormal sizeLevel1 dynamicmasstraffic " x="-70.7199" y="-90.795" z="328.1574" qw="-0.7071068967259818" qx="-0.0" qy="-0.7071066656470943" qz="-0.0">
						<links>
							<link ref="REP_Waypoint0141"/>
						</links>
					</waypoint>
					<waypoint name="REP_Waypoint0161" tags="typenormal sizeLevel1 dynamicmasstraffic closelink" x="233.395" y="127.91920000000002" z="1276.5857" qw="-0.7071068967259818" qx="-0.0" qy="-0.7071066656470943" qz="-0.0">
						<links/>
					</waypoint>	
					<waypoint name="REP_Waypoint0162" tags="typenormal sizeLevel1 dynamicmasstraffic" x="-120.5641" y="-67.77499999999999" z="-1340.23" qw="-0.7071068967259818" qx="-0.0" qy="-0.7071066656470943" qz="-0.0">
						<links>
							<link ref="REP_Waypoint014"/>
						</links>
					</waypoint>	
Also with the code from above, trading is impossible. The ship docks properly but no cargo drones will sart to transport anything. They dont spawn. So whats wrong here?

How does it work? What are the closelink tags for and whats important for the repair drones? A detailed explanation would be great, I havent found any useful information in the forum yet.
XR Ship Pack (adds several ships from XR) Link
Weapon Pack (adds several new weapons) Link
Economy Overhaul (expands the X4 economy with many new buildings) Link
X4 Editor (view stats of objects and make your own mod within a few clicks) Link
Max Bain
Posts: 1463
Joined: Wed, 27. Jun 18, 19:05
x3ap

Re: Question waypoints (maybe a dev can help?)

Post by Max Bain »

When I use only these waypoints, the transport drones work. So they spawn and transport cargo between station and ship.

Code: Select all

					<waypoint name="XU_Waypoint05" tags="sizeLevel1 typedock start dynamicmasstraffic " x="0" y="0" z="1335.0" qx="-0" qy="-0" qz="-0.7071068" qw="-0.7071067">
						<links>
							<link ref="XU_Waypoint010"/>
						</links>
					</waypoint>
					<waypoint name="XU_Waypoint02" tags="sizeLevel1 typedock end dynamicmasstraffic " x="0" y="0" z="1335.0" qx="-0" qy="-0" qz="-0.7071068" qw="-0.7071067">
						<links/>
					</waypoint>
					<waypoint name="XU_Waypoint009" tags="typenormal sizeLevel1 dynamicmasstraffic closelink" x="0.0" y="0.0" z="1457.1321" qx="-0" qy="-0" qz="-0.7071068" qw="-0.7071067">
						<links>
							<link ref="XU_Waypoint02"/>
						</links>
					</waypoint>
					<waypoint name="XU_Waypoint010" tags="typenormal sizeLevel1 dynamicmasstraffic closelink" x="0.0" y="0.0" z="1457.132" qx="-0" qy="-0" qz="-0.7071068" qw="-0.7071067">
						<links>
						</links>
					</waypoint>

Can anyone explain me why the waypoints above dont work for station trading? I use the same waypoints, just fewer.
XR Ship Pack (adds several ships from XR) Link
Weapon Pack (adds several new weapons) Link
Economy Overhaul (expands the X4 economy with many new buildings) Link
X4 Editor (view stats of objects and make your own mod within a few clicks) Link

Return to “X4: Foundations - Scripts and Modding”