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

feat: use mod API for ping packet #523

Draft
wants to merge 6 commits into
base: dev
Choose a base branch
from
Draft

Conversation

lunaynx
Copy link
Contributor

@lunaynx lunaynx commented Dec 12, 2024

Switches from using C16PacketClientStatus to ServerboundPingPacket from the Hypixel Mod API for sending pings.

@lunaynx lunaynx marked this pull request as draft December 12, 2024 19:02
@lunaynx lunaynx changed the base branch from 1.x to dev December 12, 2024 19:03
@lunaynx
Copy link
Contributor Author

lunaynx commented Dec 12, 2024

Kinda works, but not very well yet. I pretty much always get "Already pinging!" on manual pings and I seem to be getting FPS drops(?)

@lunaynx
Copy link
Contributor Author

lunaynx commented Dec 12, 2024

So, I've fixed it, but the mod API seems to have a rate limit of 5 seconds on ping packets.

This works well enough for the ping display, not sure what to do about manual pings though, probably just defer to the last value if a ping was sent less than 5s ago.

@My-Name-Is-Jeff My-Name-Is-Jeff force-pushed the dev branch 3 times, most recently from 5bade78 to 5140177 Compare December 13, 2024 17:21
@lunaynx
Copy link
Contributor Author

lunaynx commented Dec 23, 2024

This seems to be causing occasional crashes, which appear to come from the Hypixel Mod API library, but I'm not 100% sure. I'll investigate further later.

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.

1 participant