Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass Horizons/Odyssey flags in NavRoute #2276

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

HansAcker
Copy link

Description

The old workaround appears to be not needed anymore. EDDN accepts NavRoute with Horizons/Odyssey flags now.
EDDiscovery, EDO Materials Helper and others also set these flags.

Type of Change

Removed workaround code from when EDDN did not accept these flags in NavRoute events.

How Tested

I built and installed a release, produced NavRoute events and watched them come through the EDDN gateway.

Notes

Mentioned in #1310

The old workaround appears to be not needed anymore. EDDN accepts NavRoute with Horizons/Odyssey flags now.

EDDiscovery, EDO Materials Helper and others also set these flags.
@Rixxan Rixxan changed the base branch from main to develop July 16, 2024 19:17
@Rixxan Rixxan self-assigned this Jul 16, 2024
@Rixxan Rixxan added the EDDN label Jul 16, 2024
@Rixxan Rixxan added this to the 5.12 milestone Jul 16, 2024
@Rixxan
Copy link
Contributor

Rixxan commented Jul 16, 2024

Hey @HansAcker! Thanks for submitting.

Just wanting to check, this change you're suggesting, is compliant with https://github.com/EDCD/EDDN/blob/master/docs/Developers.md#horizons-and-odyssey-flags? Notably, we're only adding these keys when we're 100% certain and not adding Odyssey: False (Odyssey only exists if True)?

@HansAcker
Copy link
Author

As far as I can tell, it is. A NavRoute event always arrives after the game variant was determined, if I understand it right. I tested a modified build in both Odyssey and Horizons (live, not legacy) and the routes always had the correct flags on them.

It's probably of no great consequence to leave them out of route events, either.

@Rixxan
Copy link
Contributor

Rixxan commented Aug 26, 2024

As far as I can tell this is correct and seems to be working. Looks good, let's give it a shot :)

@Rixxan Rixxan merged commit 6bc29f0 into EDCD:develop Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants