Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix for future generations #4018

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

Merged
botder merged 1 commit into multitheftauto:master from nweb:master
Feb 12, 2025
Merged

Fix for future generations #4018

botder merged 1 commit into multitheftauto:master from nweb:master
Feb 12, 2025

Conversation

@nweb
Copy link
Contributor

@nweb nweb commented Feb 12, 2025

No description provided.

Copy link
Member

botder commented Feb 12, 2025

And what's the point of changing 16 year old code that has worked fine so far, and everyone expects it to be wrong there?
https://int64.org/docs/gamestat-protocols/ase.html

Copy link
Contributor

ASE protocol shouldn't be changed. It is what it is. If we want to modernize, then we can simply create a new standard using some modern structure like JSON for sharing server information with a masterlist.

Copy link
Member

botder commented Feb 12, 2025

ASE protocol shouldn't be changed. It is what it is. If we want to modernize, then we can simply create a new standard using some modern structure like JSON for sharing server information with a masterlist.

The point of this pull request is for MTA to actually follow the ASE protocol, not to break it. But it's simply too late to change it.

Fernando-A-Rocha reacted with thumbs up emoji

Copy link
Member

The point of this pull request is for MTA to actually follow the ASE protocol, not to break it. But it's simply too late to change it.

It's funny enough, but this PR doesn't break backward compability.

0x16 - 0001 0110 // team, skin, ping
0x10 - 0001 0000 // ping

0x32 - 0011 0010 // team, ping, time
0x20 - 0010 0000 // time

The compiler optimizes both variants to mov <dest>, 63

Lpsd, botder, AlexTMjugador, Fernando-A-Rocha, Nico8340, and Wannacry-ops reacted with eyes emoji

@botder botder merged commit 8da54f7 into multitheftauto:master Feb 12, 2025
6 checks passed
@botder botder added this to the 1.6.1 milestone Feb 12, 2025
MTABot pushed a commit that referenced this pull request Feb 12, 2025
8da54f7 Minor refactor for ASE player flags (PR #4018)
421f1e0 Visual Studio Update
Copy link
Member

tederis commented Feb 13, 2025
edited
Loading

The compiler optimizes both variants to mov , 63

I don't think that we should rely on it. When deal with optimizing compilers we cannot predict the exact output. It can vary over time and platforms. And especially depends on compiler flags.

Copy link
Member

Lpsd commented Feb 13, 2025
edited
Loading

whilst I thought it was interesting, I didn't expect this to get merged. I agree with @tederis

Copy link
Member

botder commented Feb 13, 2025

If you didn't notice, 0x32 | 0x16 in the old code, sets the 0x10 and 0x20 bits in every case, plus some lower bits, which we can safely ignore, because we set all bits there anyway.

Lpsd reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@botder botder botder approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

1.7

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /