Trying to derive a ship's location

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

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

vburg91
Posts: 2
Joined: Sat, 17. Aug 24, 08:46

Trying to derive a ship's location

Post by vburg91 »

I am going through the XML savefile and Im trying to locate a ship. I can figure out its x:y:z easy enough, but I don't see the string that would indicate its cluster or sector. Any insight? Sorry if its a noob question!
User avatar
Duncaroos
Posts: 718
Joined: Wed, 4. Jan 12, 22:23
x4

Re: Trying to derive a ship's location

Post by Duncaroos »

Ships are stored within a Zone of a Sector of a Cluster.

Clusters (Systems) are under:

Code: Select all

"universe" -> "component" -> "connections"
Sectors are under each Cluster (within the "connections" above):

Code: Select all

(Cluster connection) -> "component" -> "connections"
Zones are under each Sector (within the "connections" above):

Code: Select all

(Sector connection) -> "component" -> "connections"
Ships are, lastly, under a specific Zone (within "connections" above):

Code: Select all

(Zone connection) -> "component" -> "connections"
Not all zones have nice names that designate the current cluster/sector, so you have to go up to the Sector connection.

Code: Select all

(Ship Connection) -> "connections" -> "component" -> (Zone Connection) -> "connections" -> "component" -> (Sector Connection)
Unfortunately ships don't have a reference parameter to just store it for debug purposes (likely due to too much memory required to store all ship sector/zone info)
Playing X4+All_DLC on:
CPU: Ryzen 5 5600X; RAM: 4x8GB DDR4 3200MHz; GPU: GTX 1070 8GB, Driver v536.23, DirectX 12.0; OS: Win10 Home 22H2 (19045.4780); Monitor: Single Acer S232HL 1920x1080

Duncaroo's Empire Logistics Tool (v0.23 Beta) - {{Vanilla Economy - Direct link}} {{Economy Overhaul Mod Version - Direct link}}

Return to “X4: Foundations - Scripts and Modding”