EDCD / EDMarketConnector

Downloads commodity market and other station data from the game Elite: Dangerous for use with all popular online and offline trading tools.
GNU General Public License v2.0
991 stars 155 forks source link

Investigate disabling 'Update' button unless Journal-docked. #1225

Open Athanasius opened 3 years ago

Athanasius commented 3 years ago

Users are pressing 'Update' because they expect it to, e.g. send new data about them to Inara. It will not, nor EDSM. The most it would do is send updated (if different from currently held data) for market, shipyard and outfitting out to EDDN and other plugins.

We also have other uses pressing Update when not docked and experiencing spurious status messages: #1208 & #1018

There are some caveats:

Athanasius commented 3 years ago

And note that as it is Save Raw Data... totally ignores the cooldown on auto/manual Updates. That needs to change.

Athanasius commented 3 years ago

Definitely change the Update text on the button, remembering the translation, to:

Refresh Market,
Shipyard & Outfitting
Athanasius commented 3 years ago

Obviously the changed label will need translation, so use {CR} for the line break.

Also, the Cooldown XXs should probably be split over two lines to prevent main window size jumping around.

Athanasius commented 3 years ago

We'll probably want to do a CAPI pull after we know the Cmdr has sold or bought a ship, so that the list of all owned ships is properly in sync.

norohind commented 3 years ago

Then you also should consider pulling after death in case if player didn't rebought ship. UPD: There is special journal event for it: Resurrect.

Athanasius commented 2 years ago

Then you also should consider pulling after death in case if player didn't rebought ship. UPD: There is special journal event for it: Resurrect.

Now mentioned in my central #1188 comment.

Athanasius commented 2 years ago
Athanasius commented 2 years ago

It is true that EDMC should absolutely not allow 'Update' if the game isn't even running. The player might have played elsewhere such that the latest local Journal file isn't in sync with the in-game location, and as such any cross-check for CAPI-sourced commodity, shipyard and outfitting will be unreliable.

Although that would entirely disallow running EDMC other than on the computer the game is on....