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(net): attribute proper packet names for timeout #2141

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

AvarianKnight
Copy link
Contributor

@AvarianKnight AvarianKnight commented Aug 4, 2023

This makes it so if a player times out, instead of getting packet hash as hex they'll get the actual packet name

@LWSS
Copy link
Contributor

LWSS commented Aug 4, 2023

Looks good, but while ur at it, maybe add the hash as a // comment so we can ctrl-f for it sometime later

code/shared/KnownPackets.h Outdated Show resolved Hide resolved
code/shared/KnownPackets.h Outdated Show resolved Hide resolved
code/shared/KnownPackets.h Outdated Show resolved Hide resolved
@AvarianKnight
Copy link
Contributor Author

AvarianKnight commented Oct 19, 2023

Applied the requested changes, also replaced g_knownPackets in NetDebug.cpp to use g_knownPackets from KnownPackets.h

code/shared/KnownPackets.h Outdated Show resolved Hide resolved
Copy link
Contributor

@thorium-cfx thorium-cfx left a comment

Choose a reason for hiding this comment

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

2 more things that stand out

  1. Can you move KnownPackets.h in a subfolder called net and put it in namespace fx::net?
  2. See comment below

code/components/debug-net/src/NetDebug.cpp Outdated Show resolved Hide resolved
if a player times out instead of getting the packet hash they will get the packet name
@AvarianKnight
Copy link
Contributor Author

This pretty simple PR has been sitting for 9 months, so I'm going to assume the changes are unwanted.

@gottfriedleibniz gottfriedleibniz added the ready-to-merge This PR is enqueued for merging label Jun 11, 2024
@github-actions github-actions bot added the triage Needs a preliminary assessment to determine the urgency and required action label Jun 11, 2024
@prikolium-cfx prikolium-cfx merged commit cffc529 into citizenfx:master Jun 13, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR is enqueued for merging triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants