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

Arcdps Integration Rewrite #947

Merged
merged 21 commits into from
Mar 31, 2024
Merged

Conversation

Denrage
Copy link
Collaborator

@Denrage Denrage commented Mar 11, 2024

Discussion Reference

https://discord.com/channels/531175899588984842/536970543736291346/1179936940477394945

Is this a breaking change?

No

This PR updates the ArcDPS-Service of Blish-Hud. It is in preparations for the rewrite of the arcdps bridge update.
The socket is completely rewritten from scratch with performance and readability in mind. It is also way simpler which should make the code less prone to errors.
There is a new V2 Service as discussed that has a simpler API to interact with the bridge. All calls to third parties are also run in parallel and away from the socket thread, so it wont block if someone has a long running handlet.
The V1 Service now wraps the V2 service and should behave exactly the same as before (tested with CustomCombatText).
The V2 Service checks for the open port of the V2 arcdps bridge dll and if it cant make a connection to it, it will create a V1 client that is still fully supported.

The goal was that everything existing that is using the ArcDPS-Service doesn't realize that everything changed under the hood and everyone with an old arcdps bridge dll won't notice any problems either that didn't exist bf the rewrite

@Denrage Denrage requested a review from dlamkins March 11, 2024 11:36
Copy link
Member

@dlamkins dlamkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. Seems to successfully remain backwards compatible after doing some testing with different modules.

Thanks!

Copy link

sonarcloud bot commented Mar 31, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
6.6% Duplication on New Code (required ≤ 6%)

See analysis details on SonarCloud

@dlamkins dlamkins merged commit 190d133 into blish-hud:dev Mar 31, 2024
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants