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

Stop sending standalone players to API server #3314

Merged
merged 4 commits into from
Aug 31, 2024

Conversation

guilherme-gm
Copy link
Member

Pull Request Prelude

Changes Proposed

When map-server starts up and loads autotraders ("standalone" characters), they eventually get sent to char and login server. Once this happen, login-server tries to connect those players in API server, failing, because these players never logged in.

Since those players won't ever be valid, since they are totally system-controlled, this change prevents login-server from sending those accounts to API server, solving the many errors that show up during startup.

I took the chance to convert the packets involved to struct format

Issues addressed: Fixes #3306

@guilherme-gm guilherme-gm marked this pull request as ready for review August 30, 2024 00:29
@guilherme-gm guilherme-gm marked this pull request as draft August 30, 2024 00:30
@guilherme-gm guilherme-gm marked this pull request as ready for review August 30, 2024 00:40
@skyleo
Copy link
Contributor

skyleo commented Aug 30, 2024

There seem to be some HPM changes unrelated to your PR. (Stemming from something merged previously. For the sake of easier reviewable and atomic Commits please split those changes unrelated to you out, if they are missing in master you may start with an "Update HPM Hooks" commit.

@MishimaHaruna is the HWSApi that does the HPM Hook updates broken atm?

@guilherme-gm
Copy link
Member Author

yup, they are missing in master. updated it

@MishimaHaruna
Copy link
Member

I fixed the failing HWSAPI bot builds, it was due to an expired GPG key. Because of that though, I caused a conflict here, can you please rebase?

@MishimaHaruna MishimaHaruna added this to the Release v2024.08 milestone Aug 31, 2024
@guilherme-gm guilherme-gm marked this pull request as draft August 31, 2024 03:38
…PI server

API server won't have those user accounts and error out,
since they won't use the API server anyway, we don't have to send them there
Without this header, HPMHookGen would sometimes generated
incomplete/invalid results due to not being able to properly expand
macros such as DEFINE_PACKET_ID
@guilherme-gm guilherme-gm marked this pull request as ready for review August 31, 2024 14:23
@MishimaHaruna MishimaHaruna merged commit 6d99570 into HerculesWS:master Aug 31, 2024
63 of 346 checks passed
@guilherme-gm guilherme-gm deleted the api-autotrade branch August 31, 2024 18:31
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.

3 participants