Discussion Journal docs for v3.7 (Fleet Carriers) Beta

Wow! So this is going to be much simpler than I thought. Took me less than 30 minutes to write this (.Net Core 3.1 c#). I'll probably change it since I would rather write it with an async UDP call... but this was just something quick to do a proof of concept. I added "<Journal address="127.0.0.1" port="45455" />" to the AppConfig.xml in the "C:\Program Files (x86)\Steam\steamapps\common\Elite Dangerous\Products\elite-dangerous-64" folder and for good measure opened that port in the firewall of localhost (probably didn't need to do that - I'll have to remove the exception and try to see if it works without that)

I had been getting the data before using the FileSystemWatcher to fire an event on file changes within the journal and status file folder. I like this method better.

o7
terrific
are the json files (status, market, cargo....) also send in the UDP stream ?
 
o7
terrific
are the json files (status, market, cargo....) also send in the UDP stream ?
If you send a subscribe packet with the appropriate flags then I believe so.
If a third-party tool wishes to receive data from the game, they should reply to this Publish packet with a Subscribe packet, also json-encoded,
eg: {"Subscribe":true,"All":true}

This packet can provide more fine-grained control over which data is required: it can contain boolean vales named "Journal", "Status", "Shipyard", "Outfitting" and "Market". (The "All" flag is checked first, and provides a default value for these flags)
eg: {"Subscribe":true, "Journal":true, "Status":true}
or: {"Subscribe":true, "All":true, "Shipyard":false, "Outfitting":false}
 
If you send a subscribe packet with the appropriate flags then I believe so.
oups
i missed that part
thanks a lot for reminding me :)

now, if (or when) we could have the cargo of the fleet carrier in the logs (or the jsons) i would probably write an app to display the commodities without having to quit the mission board
 
oups
i missed that part
thanks a lot for reminding me :)

now, if (or when) we could have the cargo of the fleet carrier in the logs (or the jsons) i would probably write an app to display the commodities without having to quit the mission board
If you want cargo, I think you'd have to use the /fleetcarrier endpoint from the Frontier API (formerly Companion API - accessing this isn't very well documented but you can get started by studying open source code from some of the more established tools and by visiting https://user.frontierstore.net/ and looking through the documents in the Developer Zone there). Example output here.

If you want market data, you have market.json when you're docked there. You can also subscribe to EDDN for information about other markets. Commanders who are running appropriate tools contribute to EDDN by sending market data when they dock and access markets (though since this is not real-time info, any data you store should quickly be considered stale / untrustworthy).
 
If you want cargo, I think you'd have to use the /fleetcarrier endpoint from the Frontier API (formerly Companion API - accessing this isn't very well documented but you can get started by studying open source code from some of the more established tools and by visiting https://user.frontierstore.net/ and looking through the documents in the Developer Zone there). Example output here.

If you want market data, you have market.json when you're docked there. You can also subscribe to EDDN for information about other markets. Commanders who are running appropriate tools contribute to EDDN by sending market data when they dock and access markets (though since this is not real-time info, any data you store should quickly be considered stale / untrustworthy).
very, very interesting

i searched for a very long time some good doc about the cAPI, without success and had in mind to look at existing tools (but never have the time/courage to do it)

the example output you provided seems related to the fuel rats, so i visited their github, but they list 2 pages of tools...

can you tell me which tool generated this output (if not confidential) ?
 
EDIT : i managed to get the cargo of my fleet carrier with this piece of code EliteDangerousCompanionAPI
i just added the "fleetcarrier" endpoint as you said

my new question :) :
is there a list of all the valid endpoints somewhere ?
at the moment, i know :
  • profile
  • market
  • shipyard
  • journal
  • fleetcarrier (thanks to you)

"status" and "outfitting" don't seem to be accepted
 
EDIT BIS : i think i found my answer, by calling https://companion.orerve.net without any parameter
the valid URLs returned :
/profile
/market
/shipyard
/communitygoals (but strangely only 1 of the 4 active goals is returned : "Protect Empire Capital Ship Production")
/journal
/fleetcarrier

Maybe you only joined the "Protect Empire Capital Ship Production" CG?

Question about your questions, What does your code do exactly and how do I implement it on my system?
 
Maybe you only joined the "Protect Empire Capital Ship Production" CG?

Question about your questions, What does your code do exactly and how do I implement it on my system?
no, i think i was not participating any CG at this time...

it is not my code, i only use this existing sample CompanionAPI
i just generated an api key in the developer zone of frontier
i copy/past the AppName et ClientID in the App.config file of the project
i installed the community edition of Visual Studio
i opened and launched the CompanionAPI sample in the visual code editor

the first time, a browser windows opens a frontier url where you're asked to authenticate yourself (same id/pw used for the game), than the result of the command is displayed in the console of the editor,

so not a user friendly code sample, but very useful to learn the api and the informations available : in my case i was looking for the commodities stored (but not for sale) in my FC (info not stored in the journal.log...)
 
Last edited:
Please add all faction states to the next release of the journal documentation.
I have 27:
fdev_namename
BlightBlight
BoomBoom
BustBust
CivilLibertyCivil Liberty
CivilUnrestCivil Unrest
CivilWarCivil War
ColdWar¹Cold War
Colonisation¹Colonisation
DroughtDrought
ElectionElection
ExpansionExpansion
FamineFamine
HistoricEvent¹Historic Event
InfrastructureFailureInfrastructure Failure
InvestmentInvestment
LockdownLockdown
NaturalDisasterNatural Disaster
NoneNone
OutbreakOutbreak
PirateAttackPirate Attack
PublicHolidayPublic Holiday
RetreatRetreat
Revolution¹Revolution
TechnologicalLeap¹Technological Leap
TerrorismTerrorist Attack
TradeWar¹Trade War
WarWar
¹ Not in use in game according to a developer (source: EDCD discord).
 
Last edited:
Or at least a way to reset the tab focus back to start so it can be macro'd. I've seen various macros for it but they all rely on the first tab having initial focus when opening.

I know it's been a bit since you posted, but another option is simply extending the GUIFocus value to include tab location on a given screen. Then, at least, macros can be done to move across to any other given tab fairly easily by knowing the starting point, regardless of what that starting point is.
 
Top Bottom