lekeno / edr

ED Recon is an EDMC plugin for Elite Dangerous whose purpose is to provide intel about other commanders and in-game guidance for traders, explorers, bounty-hunters, and powerplay pledges.
https://edrecon.com
Apache License 2.0
86 stars 14 forks source link

Support ShipTargeted event from 3.0 #70

Closed lekeno closed 6 years ago

lekeno commented 6 years ago

Elite Dangerous 3.0 will add new events to the player journal. ShipTargeted looks particularly useful for EDR.

lekeno commented 6 years ago

Samples:

{ "timestamp":"2018-01-25T20:25:56Z", "event":"ShipTargeted", "TargetLocked":true, "Ship":"typex", "Ship_Localised":"Alliance Chieftain", "ScanStage":0 }
{ "timestamp":"2018-01-25T20:25:57Z", "event":"ShipTargeted", "TargetLocked":true, "Ship":"typex", "Ship_Localised":"Alliance Chieftain", "ScanStage":1, "PilotName":"$cmdr_decorate:#name=cmdrname;", "PilotName_Localised":"CMDR cmdrname", "PilotRank":"Dangerous" }
{ "timestamp":"2018-01-25T20:25:59Z", "event":"ShipTargeted", "TargetLocked":true, "Ship":"typex", "Ship_Localised":"Alliance Chieftain", "ScanStage":2, "PilotName":"$cmdr_decorate:#name=cmdrname;", "PilotName_Localised":"CMDR cmdrname", "PilotRank":"Dangerous", "ShieldHealth":100.000000, "HullHealth":100.000000 }
{ "timestamp":"2018-01-25T20:26:01Z", "event":"ShipTargeted", "TargetLocked":true, "Ship":"typex", "Ship_Localised":"Alliance Chieftain", "ScanStage":3, "PilotName":"$cmdr_decorate:#name=cmdrname;", "PilotName_Localised":"CMDR cmdrname", "PilotRank":"Dangerous", "ShieldHealth":100.000000, "HullHealth":100.000000, "LegalStatus":"Clean" }

Powerplay enemy (NPC):

{ "timestamp":"2018-01-25T20:28:31Z", "event":"ShipTargeted", "TargetLocked":true, "Ship":"eagle", "ScanStage":3, "PilotName":"$npc_name_decorate:#name=Alliance Enforcer;", "PilotName_Localised":"Alliance Enforcer", "PilotRank":"Expert", "ShieldHealth":100.000000, "HullHealth":100.000000, "Faction":"Edmund Mahon", "LegalStatus":"Enemy" }

Wanted (player):

{ "timestamp":"2018-01-27T21:54:48Z", "event":"ShipTargeted", "TargetLocked":true, "Ship":"federation_dropship_mkii", "Ship_Localised":"Federal Assault Ship", "ScanStage":3, "PilotName":"$cmdr_decorate:#name=cmdrname;", "PilotName_Localised":"CMDR cmdrname", "PilotRank":"Dangerous", "ShieldHealth":100.000000, "HullHealth":100.000000, "LegalStatus":"Wanted", "Bounty":5300 }
lekeno commented 6 years ago

Stage 1 gives the cmdr name on top of the ship. Stage 2 adds shields and hull health Stage 3 adds legalstatus and bounty if any.

Stage 1 could be used for sightings. Stage 3 could be used to report wanted cmdrs (new node on the backend), Alternative: add legalstatus and bounty to the existing sighting node. However, a dedicated wanted node has several advantages.

lekeno commented 6 years ago

Support for Stage 1 is done. Support for Stage 3 is done on the client side.

lekeno commented 6 years ago

Opening new bug for the backend support (e.g. using wanted status and bounty to provide additional insights to EDR users).