Yes, that is partially correct in that this returns the profile part of the EDAPI output, used for the commander data and the current ship, but TDH2 also requires the shipyard part of the EDAPI output for all the other ships owned by the commander so it won't work as a replacement for EDCD without some modification.
Um, all the ships are included. The full list is in the json right after the detail of the current ship.
I only have the two ships right now, a Cobra Mk. III and a Diamondback Explorer:
Code:
"ships":{
"0":{
"id":0,
"name":"CobraMkIII",
"value":{
"hull":207372,
"modules":2916240,
"cargo":0,
"total":3123612,
"unloaned":58007
},
"free":false,
"shipName":"calamity jane",
"shipID":"eye-01",
"station":{
"id":3228565248,
"name":"Elder Hub"
},
"starsystem":{
"id":16065191028137,
"name":"Mundii",
"systemaddress":16065191028137
}
},
"2":{
"id":2,
"name":"DiamondBackXL",
"value":{
"hull":1637277,
"modules":8433085,
"cargo":0,
"total":10070362,
"unloaned":127728
},
"free":false,
"station":{
"id":3230484480,
"name":"Plante Enterprise"
},
"starsystem":{
"id":7230678110946,
"name":"Miao Thixo",
"systemaddress":7230678110946
}
}
}
}
]
The "shipyard" portion of the EDAPI response contains information about the last docked station, there's no information at all about the ships the CMDR owns:
Code:
"market":{
},
"shipyard":{
"id":3230484480,
"name":"Plante Enterprise",
"outpostType":"starport",
"imported":{
"128049191":"NaturalFabrics",
"128049190":"Leather",
"128049193":"SyntheticFabrics",
"128049197":"Polymers",
"128672302":"CeramicComposites",
"128673850":"HydrogenPeroxide",
"128049176":"Aluminium",
"128049226":"HazardousEnvironmentSuits",
"128049171":"Tantalum",
"128049172":"Uranium",
"128673851":"LiquidOxygen",
"128682044":"ConductiveFabrics",
"128049175":"Copper",
"128049155":"Silver",
"128049177":"Algae",
"128049174":"Titanium",
"128671118":"Osmium",
"128049199":"Semiconductors",
"128049214":"Beer",
"128049173":"Lithium",
"128049166":"Water",
"128049162":"Cobalt",
"128049153":"Palladium",
"128049180":"Grain",
"128049200":"Superconductors",
"128673847":"Samarium",
"128673845":"Praseodymium",
"128673857":"CoolingHoses",
"128049170":"Gallium",
"128049168":"Beryllium",
"128049178":"FruitAndVegetables",
"128049227":"Robotics",
"128049183":"Fish",
"128049169":"Indium",
"128049228":"AutoFabricators",
"128049215":"Wine",
"128049185":"SyntheticMeat",
"128673856":"CMMComposite",
"128049154":"Gold",
"128673866":"ExhaustManifold",
"128682046":"AdvancedMedicines",
"128049213":"Tobacco",
"128673861":"EmergencyPowerCells",
"128673855":"InsulatingMembrane",
"128049236":"NonLethalWeapons",
"128673873":"MicroControllers",
"128049243":"Slaves",
"128049189":"Coffee",
"128049152":"Platinum",
"128049235":"ReactiveArmour",
"128049188":"Tea",
"128049182":"Animalmeat",
"128049240":"ConsumerTechnology",
"128673848":"LowTemperatureDiamond",
"128049212":"BasicNarcotics",
"128672306":"BootlegLiquor",
"128049209":"PerformanceEnhancers",
"128672123":"WreckageComponents",
"128049669":"ProgenitorCells",
"128049670":"CombatStabilisers",
"128668550":"Painite",
"128888499":"AncientKey",
"128732188":"AncientTotem",
"128732187":"AncientUrn",
"128732186":"AncientTablet",
"128732185":"AncientCasket",
"128732184":"AncientOrb",
"128732183":"AncientRelic",
"128672124":"EncriptedDataStorage",
"128682049":"DataCore",
"128682051":"MysteriousIdol",
"128672811":"DamagedEscapePod",
"128682054":"SpacePioneerRelics",
"128682055":"FossilRemnants",
"128666757":"USSCargoRareArtwork",
"128672810":"UnstableDataCore",
"128672159":"AntiqueJewellery",
"128672127":"ComercialSamples",
"128672128":"TacticalData",
"128672129":"AssaultPlans",
"128672130":"EncryptedCorrespondence",
"128672131":"DiplomaticBag",
"128672132":"ScientificResearch",
"128672133":"ScientificSamples",
"128672315":"GeologicalSamples",
"128672136":"LargeExplorationDataCash",
"128672137":"SmallExplorationDataCash",
"128672134":"PoliticalPrisoner",
"128672160":"PreciousGems",
"128672161":"EarthRelics",
"128672163":"TimeCapsule",
"128672162":"GeneBank",
"128672135":"Hostage",
"128666752":"USSCargoBlackBox",
"128672126":"PersonalEffects",
"128672125":"OccupiedCryoPod"
},
"exported":{
"128049218":"WaterPurifiers",
"128049222":"CropHarvesters",
"128672309":"BuildingFabricators",
"128049223":"MarineSupplies",
"128049248":"Scrap",
"128049221":"MineralExtractors",
"128049202":"HydrogenFuel",
"128672308":"ThermalCoolingUnits",
"128064028":"AtmosphericExtractors",
"128049233":"PersonalWeapons",
"128673860":"HNShockMount",
"128049238":"DomesticAppliances",
"128049184":"FoodCartridges",
"128667728":"ImperialSlaves",
"128682048":"SurvivalEquipment",
"128049244":"Biowaste",
"128049210":"BasicMedicines",
"128049217":"PowerGenerators",
"128049241":"Clothing",
"128672313":"SkimerComponents",
"128672307":"GeologicalEquipment",
"128049225":"ComputerComponents",
"128049234":"BattleWeapons",
"128049216":"Liquor"
},
"services":{
"dock":"ok",
"contacts":"ok",
"exploration":"ok",
"commodities":"ok",
"refuel":"ok",
"repair":"ok",
"rearm":"ok",
"crewlounge":"ok",
"powerplay":"ok",
"searchrescue":"ok",
"engineer":"ok",
"facilitator":"ok",
"blackmarket":"ok"
},
"economies":{
"35":{
"name":"Industrial",
"proportion":1
}
}
}
}
That said, I did find reason to edit the plugin to make it easier for TDH to use:
https://github.com/eyeonus/Trade-Dangerous/commit/fbd5912851c3af340504f9170cc63778e2e7062d
Last edited: