This repository contains the refactored and optimized version of the Source SDK 2013, focussing on Team Fortress 2 (TF2) and removing the code for other games.
🚀 Our goal is to clean up, modernize, and improve the maintainability of the TF2 SDK while keeping it performant and stable.
- Updated & Modernized Codebase – Removing deprecated code and improving readability.
- TF2-Specific Improvements – Stripping out unrelated HL2/Portal code to keep the SDK focused on TF2.
- Bug Fixes & Stability Enhancements – Based on known issues from Valve and the community.
- Performance Benchmarks – Tracking optimizations to ensure smooth gameplay.
- Better Dependency Management – Making third-party library updates easier.
- Unit Testing & Debugging Tools – Laying the foundation for more structured development.
Use the following command to download the repository:
git clone https://github.com/DeWolfRobin/TF2CodeRefactor
- Source SDK 2013 Multiplayer (installed via Steam)
- Visual Studio 2022
-
Inside the cloned directory, navigate to the
src
folder and run:createallprojects.bat
This generates the Visual Studio project (
everything.sln
), which will be used to build your mod. -
Open Visual Studio 2022, then:
- Go to
Build > Build Solution
and wait for the compilation to complete. - Select the
Client (TF)
project you wish to run. - Right-click and choose
Set as Startup Project
. - Click the ▶ Local Windows Debugger button in the toolbar to launch your mod.
- Go to
🚀 Default launch options are already set for the Release
configuration.
- Source SDK 2013 Multiplayer (installed via Steam)
- Podman (containerized build environment)
-
Inside the cloned directory, navigate to the
src
folder and run:./buildallprojects
This will automatically build all necessary projects against the Steam Runtime.
-
To run your mod, navigate to the
game
folder and execute:./mod_tf
✅ Mods distributed on Steam MUST be built against the Steam Runtime – these steps ensure compliance.
If you plan to release your mod, Valve provides guidance on both Steam and non-Steam distribution:
📖 Distributing Source Engine Mods
- 🔹 Valve Developer Wiki
- 🔹 TF2 SDK Bug Tracker & Known Issues (GitHub Issues)
- 🔹 TF2 SDK Performance Benchmarks & Optimization Logs
🚀 Want to contribute? Check out our Contribution Guide for details on how to help!
The SDK is licensed under the SOURCE 1 SDK LICENSE, allowing non-commercial use. See the LICENSE file in the root of the repository for full details.
For more information, refer to Distributing Your Mod.
💡 This project aims to make TF2 development more accessible and maintainable. Join us in improving the SDK! 🚀