Updating: Difference between revisions

From TF2 Classic Wiki
Jump to navigation Jump to search
No edit summary
(Update for 2.1)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
For 2.0.4, we're using a new update method based on the same utility we use to install the game, rather than using the launcher. The launcher may have sent you to this page to instruct you on how to update your game, or if you're a server owner, you may have come here from the blog post for more details. Follow the relevant section for your needs below.
TF2 Classic can be installed, updated, and repaired, all using the same tool: TF2CDownloader. This tool can be used on the client and server, Linux or Windows. If you're looking to update to 2.1.0 from an earlier version of the game, you're in the right place. Find the relevant section below for your needs and follow the instructions.


== Clients ==
== Clients ==
=== Update automatically ===
=== Update automatically ===
Older versions of TF2CDownloader do not support updating, so you need to download the latest version before you can update:
You should already have TF2CDownloader if you installed the game vaguely recently. If it's too old, you may need to redownload TF2CDownloader:


* Windows: https://github.com/tf2classic/TF2CDownloader/releases/latest/download/TF2CDownloaderWindows.exe
* Windows: https://github.com/tf2classic/TF2CDownloader/releases/latest/download/TF2CDownloaderWindows.exe
* Linux: https://github.com/tf2classic/TF2CDownloader/releases/latest/download/TF2CDownloaderLinux
* Linux: https://github.com/tf2classic/TF2CDownloader/releases/latest/download/TF2CDownloaderLinux


Upon running TF2CDownloader, you will be asked where you want to install the game. Unless your game installation is in a different directory from the default, you should accept the default path.
Upon running TF2CDownloader, you will be asked for the path of your sourcemods folder. Unless your game installation is in a different directory from the default, you should accept the default path.


'''Make sure the launcher is closed whenever you're running TF2CDownloader, otherwise it'll fail to update.'''
After the path is selected, you'll find yourself at a menu with three options. "1" will (re)install the game, "2" will update your game if already installed, and "3" will validate your game files. If you're on this person, you probably want to press '''2''' here. It should take care of the rest itself, first validating your existing version of the game and then updating it to the latest.
 
At this point, if it detects an existing installation, it will check it for updates. If your game is out of date, you will be prompted to update your game to the latest version. Once accepted, it will download the patch and apply it to your game. You can launch as normal afterwards, and confirm you're on the latest version by checking the top-right of the main menu in-game.


=== Update manually ===
=== Update manually ===
If you're unable to use the downloader, you can also manually download and extract the update archive over your game. Download https://wiki.tf2classic.com/downloader/tf2classic-patch-203-204.zip and merge the contained "tf2classic" folder with the one in your sourcemods, overwriting when prompted.
Due to internal restructuring between 2.0 and 2.1, we're unable to offer an easy self-extractable patch, as it wouldn't be meaningfully smaller than reinstalling the game. If you're unable to use TF2CDownloader to update, we instead recommend backing up your /cfg/ folder and reinstalling the game from the manual ZIP archive available at https://tf2classic.com/download


== Servers ==
== Servers ==
The same instructions as the Client section generally apply, and either method should work (as long as you point to TF2CDownloader). However, we have new requirements before your server will run.
The same instructions as the Client section generally apply, and either method should work (noting that TF2CDownloader will likely need to be manually pointed to the folder containing the game installation you're using). However, ensure your server meets our requirements.


Servers running Sourcemod will need to upgrade their installations. Install the latest public version of Sourcemod 1.11 [https://www.sourcemod.net/downloads.php from here], then clone the 2.0.4 branch of the https://github.com/tf2classic/SM-TF2Classic-Tools repo, and merge it with your base SM installation.
Servers running Sourcemod will need to upgrade their installations. Install the latest public version of Sourcemod 1.11 [https://www.sourcemod.net/downloads.php from here], then clone the 2.1.0 branch of the https://github.com/tf2classic/SM-TF2Classic-Tools repo, and merge it with your base SM installation.


Though this should be automatic, particularly if you update your installation using TF2CDownloader, you should make sure that the "server_srv.so" file in your tf2classic/bin folder is a ''symlink'' to server.so in the same folder. It cannot be a copy of the file.
Though this should be automatic, particularly if you update your installation using TF2CDownloader, you should make sure that the "server_srv.so" file in your tf2classic/bin folder is a ''symlink'' to server.so in the same folder. It cannot be a copy of the file.


Within the bin folder of Source SDK Base 2013 Dedicated Server, you must delete the libstdc++.so.6 file. This will force it to use the newer version from your system, which is necessary for TF2 Classic to run.
Within the bin folder of Source SDK Base 2013 Dedicated Server, you must delete the libstdc++.so.6 file. This will force it to use the newer version from your system, which is necessary for TF2 Classic to run.

Latest revision as of 13:53, 28 April 2023

TF2 Classic can be installed, updated, and repaired, all using the same tool: TF2CDownloader. This tool can be used on the client and server, Linux or Windows. If you're looking to update to 2.1.0 from an earlier version of the game, you're in the right place. Find the relevant section below for your needs and follow the instructions.

Clients

Update automatically

You should already have TF2CDownloader if you installed the game vaguely recently. If it's too old, you may need to redownload TF2CDownloader:

Upon running TF2CDownloader, you will be asked for the path of your sourcemods folder. Unless your game installation is in a different directory from the default, you should accept the default path.

After the path is selected, you'll find yourself at a menu with three options. "1" will (re)install the game, "2" will update your game if already installed, and "3" will validate your game files. If you're on this person, you probably want to press 2 here. It should take care of the rest itself, first validating your existing version of the game and then updating it to the latest.

Update manually

Due to internal restructuring between 2.0 and 2.1, we're unable to offer an easy self-extractable patch, as it wouldn't be meaningfully smaller than reinstalling the game. If you're unable to use TF2CDownloader to update, we instead recommend backing up your /cfg/ folder and reinstalling the game from the manual ZIP archive available at https://tf2classic.com/download

Servers

The same instructions as the Client section generally apply, and either method should work (noting that TF2CDownloader will likely need to be manually pointed to the folder containing the game installation you're using). However, ensure your server meets our requirements.

Servers running Sourcemod will need to upgrade their installations. Install the latest public version of Sourcemod 1.11 from here, then clone the 2.1.0 branch of the https://github.com/tf2classic/SM-TF2Classic-Tools repo, and merge it with your base SM installation.

Though this should be automatic, particularly if you update your installation using TF2CDownloader, you should make sure that the "server_srv.so" file in your tf2classic/bin folder is a symlink to server.so in the same folder. It cannot be a copy of the file.

Within the bin folder of Source SDK Base 2013 Dedicated Server, you must delete the libstdc++.so.6 file. This will force it to use the newer version from your system, which is necessary for TF2 Classic to run.