Raised This Month: $305 Target: $400
 76%   Almost there!

How to change server version?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fess23X
New Member
Join Date: Aug 2021
Old 08-11-2021 , 12:44   How to change server version?
Reply With Quote #1

How to change server version?
Fess23X is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Old 08-11-2021 , 17:07   Re: How to change server version?
Reply With Quote #2

To let players with any version join the server this function can be hooked:
Code:
INetChannel::ProcessPacket
and client version in C2S_CONNECT should be changed to the server's version. That will work if the server and client versions have identical exchange protocol. If they are not identical, the behavior will be unpredictable.
One more thing - structure netpacket_s in the SDK is outdated, buffer field should be shifted by 4 integers.

If you simply want to update your server, there is an instruction: https://developer.valvesoftware.com/wiki/SteamCMD
At the moment it is not possible to downgrade source servers.

Last edited by kadet.89; 08-11-2021 at 17:15.
kadet.89 is offline
Send a message via Skype™ to kadet.89
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 08-11-2021 , 19:18   Re: How to change server version?
Reply With Quote #3

You can try changing the steam.inf file, but your clients have to use the same protocol

L4D2 file example:
Spoiler
__________________
Marttt is offline
Fess23X
New Member
Join Date: Aug 2021
Old 08-12-2021 , 15:06   Re: How to change server version?
Reply With Quote #4

Quote:
Originally Posted by kadet.89 View Post
To let players with any version join the server this function can be hooked:
Code:
INetChannel::ProcessPacket
and client version in C2S_CONNECT should be changed to the server's version. That will work if the server and client versions have identical exchange protocol. If they are not identical, the behavior will be unpredictable.
One more thing - structure netpacket_s in the SDK is outdated, buffer field should be shifted by 4 integers.

If you simply want to update your server, there is an instruction: https://developer.valvesoftware.com/wiki/SteamCMD
At the moment it is not possible to downgrade source servers.
I wanna download ofiical steam depots for game version on 8 march 2018, but i can't find need server depot. Can u help me ?
Fess23X is offline
BeepIsla
Member
Join Date: Mar 2020
Location: Germany
Old 08-14-2021 , 09:02   Re: How to change server version?
Reply With Quote #5

You can download old versions of any Steam game (Client & Server) using DepotDownloader: https://github.com/SteamRE/DepotDownloader

And use SteamDB to find all the necessary IDs: https://steamdb.info/app/740/depots/

(You have to download both depots, click on their ID (731 & 740), click on "Manifests" on the left, and search the one you want to download)

Then just run it like any normal SRCDS server, it will connect to Steam as if it would be an up-to-date server with no issues. Although your console will tell you that you are out of date every now and then.

Last edited by BeepIsla; 08-14-2021 at 09:08.
BeepIsla is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:08.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode