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

Lots of server message indices are wrong #15

Open
Velaron opened this issue Jun 16, 2022 · 2 comments
Open

Lots of server message indices are wrong #15

Velaron opened this issue Jun 16, 2022 · 2 comments

Comments

@Velaron
Copy link

Velaron commented Jun 16, 2022

This is usually not a problem, but for example when using amxmodx with gungame, it tries to send a "svc_finale" message with index 31, while in xash3d index 31 is "svc_modelindex" causing a crash.

@Mr0maks
Copy link
Collaborator

Mr0maks commented Jun 17, 2022

This is an incompatibility between the protocols of the old xash and goldsrc.

Unfortunately, this cannot be fixed without breaking compatibility with old clients. But you can use SVC_INTERMISSION instead of SVC_FINALE. If you need to add text in the center, then you have to add a couple of lines of code.

@a1batross
Copy link
Contributor

There is an idea:

https://github.com/tyabus/xash3d/blob/master/engine/server/sv_game.c#L2526

In this function, it can be possible to dynamically rewrite svc_finale to something that will emulate its behavior, use both of svc_intermission and TE_TEXTMESSAGE for example. Intermission level won't be correct, but at least it would work.

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

No branches or pull requests

3 participants