Add a couple of additional workarounds

If you are in supercruise, performing an FSS Discovery Scan or going in
or out of supercruise will now also update the route.
This commit is contained in:
Jan Vansteenkiste 2019-06-20 10:05:24 +02:00
parent fcf8f85849
commit a4b77c9879
2 changed files with 10 additions and 1 deletions

View File

@ -26,4 +26,8 @@ Fly dangerous! o7
## Known Issues
At the moment, plotting a route while the game is running, and which begins from the system you're currently in, doesn't update your "next waypoint". If you're in that situation, logging off and back in should "wake up" the plugin.
At the moment, plotting a route while the game is running, and which begins from the system you're currently in, doesn't update your "next waypoint". If you're in that situation, a couple of solutions are available:
* Performing a FSS Discovery Scan
* Go in our out of Supercruise
* Logging back in and out while EDMC is already running.

View File

@ -91,6 +91,11 @@ def update_route():
def journal_entry(cmdr, is_beta, system, station, entry, state):
if (entry['event'] == 'FSDJump' or entry['event'] == 'Location') and entry["StarSystem"] == this.next_stop:
update_route()
elif entry['event'] in ['SupercruiseEntry', 'SupercruiseExit'] and entry['StarSystem'] == this.next_stop:
update_route()
elif entry['event'] == 'FSSDiscoveryScan' and entry['SystemName'] == this.next_stop:
update_route()
def plugin_app(parent):
this.parent = parent