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

CUserCMD issues on the latest update #80

Closed
elgato69 opened this issue Jun 4, 2024 · 7 comments
Closed

CUserCMD issues on the latest update #80

elgato69 opened this issue Jun 4, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@elgato69
Copy link

elgato69 commented Jun 4, 2024

Describe the bug
Joining the game with the cheat injected and any modifications to CUserCMD will result in a kick with the following error "Failed to parse user commands"

To Reproduce
Enable a feature that modifies CUserCMD such as bhop and go in game

Expected behavior
It should not kick you out of the game eksdee

Additional context
Problem is definitely related to modifying CUserCMD. Perhaps valvo added some kind of CRC to check for modifications before executing the CMD, but I am not proficient enough with assembly and reversing to fix it myself so in other words please fix it pookie xoxo

@elgato69 elgato69 added the bug Something isn't working label Jun 4, 2024
@Exlodium
Copy link
Collaborator

Exlodium commented Jun 4, 2024

Issue can be resolved by adding the correct amount of cached bits, this is not difficult to do. However it takes a bit of time.
I'll write some functions to make the process easier

@elgato69
Copy link
Author

elgato69 commented Jun 4, 2024

Can you explain to me the process as high level steps? I'm not asking for code but rather resources and guidance to learn how to fix it and other errors like this by myself in the future.

@Exlodium
Copy link
Collaborator

Exlodium commented Jun 4, 2024

Pushed an update that might have fixed it.
Didn't have much time to test, but wasn't able to get kicked while testing.
Leaving this open incase the issue isn't fixed

@nildotdev
Copy link

Got kicked after your update, but it definitely happens less now. Not sure what caused it, and I can't really replicate it either. weird

@Exlodium
Copy link
Collaborator

Exlodium commented Jun 6, 2024

Have you added any additional code or is it happening with the main branch of asphyxia?

@nildotdev
Copy link

Main branch

@Exlodium
Copy link
Collaborator

Exlodium commented Jun 6, 2024

I might have to rewrite the function.
In protobufs the game adds _has_bits whenever it wants to set forward move or smth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants