I am working on a utility to parse stations from the save game.
Now one thing is really bugging me - how station names are stored and shown in the game?
For example, one random Teladi Scanning Array Factory has the following definition in the save game:
Code: Select all
<component class="station" macro="station_gen_factory_base_01_macro" connection="space" attackmethod="lowattentionattack" attacktime="395276.745" shipattacktime="395276.745" intentionalattacktime="395276.745" code="FXN-270" owner="teladi" knownto="player" level="0.2" transportdronemode="trade" pendingtransportdronemode="trade" usertransportdronemode="trade" spawntime="35120.522" id="[0x4b6da]">
About half stations have source entry which can be used to decode the stations name, but it's not consistent for all stations.
For example this TEL Engine Part Factory has a source entry which can used to decode the station's name:
Code: Select all
<component class="station" macro="station_gen_factory_base_01_macro" connection="space" attackmethod="lowattentionattack" attacktime="374709.775" shipattacktime="374709.775" intentionalattacktime="374709.775" code="ZFP-681" owner="teladi" knownto="player" level="0.2" transportdronemode="trade" pendingtransportdronemode="trade" usertransportdronemode="trade" spawntime="0" id="[0x4b7a6]">
..
<source entry="tel_engineparts" seed="1565741328226223163" class="godproduction"/>
Cheers!