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

Joining a CS 1.6 server with CS CZ client causes STEAM validation rejected #996

Open
SmilexGamer opened this issue Nov 12, 2023 · 10 comments

Comments

@SmilexGamer
Copy link

No description provided.

@StevenKal
Copy link
Contributor

StevenKal commented Nov 13, 2023

Did you tried on your CZ client to type: setinfo _gd cstrike
From this change, and by using latest ReHLDS.

@SmilexGamer
Copy link
Author

Did you tried on your client to type: setinfo _gd cstrike From this change, and by using latest ReHLDS.

Yes, of course - it was me that suggested such feature after all.
The aforementioned feature works as intended, but it does not account for steam authentication, which seems to not work when connecting from a different game than the server (eg. connecting to a CS 1.6 server with a CS CZ client and vice-versa)

@anzz1
Copy link
Contributor

anzz1 commented Feb 13, 2024

I'm curious, why would someone want to join CS server with CS:CZ client?

I haven't had a deep look in the gamedlls of czero and compare it to cstrike but from my understanding there is little difference between the two.

So I guess it could work, but what I'm failing to understand is if the clients are 1:1, why bother. And if they are not, what is the advantage of using czero client over regular cstrike ?

A feature that allows players to join using a different game sounds like a recipe for trouble and should probably be disabled by default. Currently it looks like it's always enabled with no ability to disable without recompiling.

@SmilexGamer
Copy link
Author

SmilexGamer commented Feb 13, 2024

I'm curious, why would someone want to join CS server with CS:CZ client?

I haven't had a deep look in the gamedlls of czero and compare it to cstrike but from my understanding there is little difference between the two.

So I guess it could work, but what I'm failing to understand is if the clients are 1:1, why bother. And if they are not, what is the advantage of using czero client over regular cstrike ?

A feature that allows players to join using a different game sounds like a recipe for trouble and should probably be disabled by default. Currently it looks like it's always enabled with no ability to disable without recompiling.

  1. Just as a way to bridge the gap between both games. Originally, CS 1.6 and CS CZ players were supposed to be able to play together when CS 1.7 would eventually be released, but it was never done. So nowadays, both games can't play on the same servers.

  2. They use the exact same gamedll, byte by byte.

  3. Refer to point 1.

  4. Yes, that's one of the flaws the current implmentation has: No way to disable the functionality and Steam authentication doesn't work for clients connecting from a game different than the server.

@jonatan1024
Copy link
Contributor

This works if you disable steam authentication with +sv_lan 1.

Together with +mp_consistency 0 +sv_net_incoming_decompression_max_ratio 100 I was able to connect to cstrike server with czero client and vice versa.

@SmilexGamer
Copy link
Author

This works if you disable steam authentication with +sv_lan 1.

Together with +mp_consistency 0 +sv_net_incoming_decompression_max_ratio 100 I was able to connect to cstrike server with czero client and vice versa.

Of course it works when Steam authentication is disabled. This issue was opened in hopes of having the Steam authentication working even when you connect with a game client different from the server.

@myosotis10
Copy link

Did you tried on your CZ client to type: setinfo _gd cstrike From this change, and by using latest ReHLDS.

can you tell me where should i place this item please??

@SmilexGamer
Copy link
Author

Did you tried on your CZ client to type: setinfo _gd cstrike From this change, and by using latest ReHLDS.

can you tell me where should i place this item please??

In your game console.

@jonatan1024
Copy link
Contributor

@SmilexGamer This turned out harder than expected, but I've managed to come up with a fix. It doesn't really fit into rehlds, so I made it a module insted. Please check out CrossAuth and let me know whether it works for you

@SmilexGamer
Copy link
Author

SmilexGamer commented Jul 13, 2024

@SmilexGamer This turned out harder than expected, but I've managed to come up with a fix. It doesn't really fit into rehlds, so I made it a module insted. Please check out CrossAuth and let me know whether it works for you

Interesting, though this could be incorporated in rehlds, right?

Edit: Just tested. It works for the first minutes, but then the client gets kicked with the message "Unable to connect to Steam". Also in the server logs the client doesn't have the message of "STEAM USERID validated".

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

5 participants