Repository navigation
v1.1.6
SPF Framework v1.1.6
📥 For Users: Download Pre-built Binary
The easiest way to install the framework is to use the official installer. It automatically sets up the directory structure in your game folder.
👉 Download SPF Framework v1.1.6 (Direct Link)
🛠️ For Developers: Build from Source
If you want to customize the framework or contribute to its development, you can build it yourself using CMake. We support both Visual Studio and Ninja generators.
Quick Build (Ninja):
git clone https://github.com/TrackAndTruckDevs/SPF-Framework.git
cd SPF-Framework
cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
cmake --build buildFor detailed build instructions, including automatic deployment to your game folder, please refer to our README.md.
🧪 Example Plugin: Pre-compiled API Demonstration
For those who want to see the framework in action immediately, we provide a pre-compiled Example Plugin. This is a ready-to-use DLL that demonstrates the core capabilities of the SPF API (Telemetry, Camera control, Custom UI, Vehicle monitoring, etc.).
Installation:
- Navigate to your game's directory:
[Game Root]\bin\win_x64\plugins\spfPlugins\. - Extract the
ExamplePluginfolder from the downloaded archive directly into this folder.
Correct directory structure:
[Game Root Directory]
└── bin/win_x64/plugins/
├── spf-framework.dll
├── spfAssets/
└── spfPlugins/
└── ExamplePlugin/
├── ExamplePlugin.dll
└── localization/
For Developers:
The source code of this plugin is the ultimate reference for learning how to use the SPF API. Explore the implementation and see how each system is integrated:
👉 ExamplePlugin Source Code
Note: This is a compiled demonstration plugin intended for testing and development purposes. It does not provide gameplay features for regular users.
📦 Developer Resources & API Documentation
To start creating your own SPF-compatible plugins, use the resources:
- API Documentation Hub — Comprehensive guides for all framework systems:
- Telemetry API (Live game data)
- Camera API (Full camera control)
- UI API (Custom ImGui windows)
- Environment API (Game & Profile info)
- Vehicle API (AI Traffic monitoring)
- Virtual Input API (Gamepad & Steering wheel simulation)
- Config & Settings API (Persistent plugin data)
- ...and many more (Localization, Logging, Hooks, etc.) in the Full API Reference.
Downloadable Assets:
SPF_API_v1.1.6.zip— All necessary C headers for your project.MyPlugin_Template_v1.1.6.zip— A complete, ready-to-compile plugin template.ExamplePlugin_v1.1.6.zip— A pre-compiled, ready-to-use demonstration plugin.
📝 What's New in this Release
✦ SPF Framework v1.1.6 — The "UI Revolution" Update
Warning
This update completely changes the structure of SPF_UI_API.h. Plugins built with previous API versions will be incompatible at the ABI level.
For developers: We strongly recommend rebuilding your projects using the new SDK.
For users: Do not use outdated plugins with this version of the framework, as it will lead to critical errors and game crashes.
This is one of the framework's largest updates, bringing radical changes to the API architecture, update system, and content visualization.
Main news: SPF_UI_API Revolution
We conducted a full review and massive expansion of the C-API. Now, over 450 functions are available to third-party developers, practically 1:1 matching the capabilities of modern Dear ImGui.
- Full window management: Added support for complex tables (Tables API), Docking system, and Viewports (multi-windows).
- Extended DrawList: Direct access to low-level drawing (Bezier, Ngon, Ellipse) and path management (Path API).
- New Notification system: Professional notifications with Markdown support, custom FontAwesome icons, and intelligent positioning (windows automatically "bounce" from screen edges).
- "On-the-fly" styling: New handles for managing button states (UI_Style_SetHoverColor, UI_Style_SetActiveColor) and dynamic style changes directly from the plugin.
Markdown & UI Engine
The Markdown engine received significant improvements for creating professional in-game documentation:
- GitHub-Style Alerts: Full support for [!NOTE], [!TIP], [!IMPORTANT], [!WARNING], and [!CAUTION] blocks with signature design and icons.
- Advanced Formatting: Support for nested color tags <#RRGGBB>... </> with correct rendering alongside icons and text styles.
- Smart Typography: Automatic synchronization of separators with text alignment and improved hyphenation/wrapping handling.
- Code Blocks: Added syntactic sugar for code blocks with a quick-copy to clipboard button.
Smart Update System
- Multi-Language Support: The framework now automatically fetches the changelog in the user's language (with English fallback).
- Smart First-Run: Automatic OS language detection during the initial installation and application of the matching localization.
- Seamless Transition: New "Welcome Experience" window and updated version check popup now utilize the full power of the Markdown engine.
Rendering & Stability
- Cross-API Texture Engine: Unified ITexture interface for DX11, DX12, and OpenGL.
- OpenGL Stability: Fixed critical rendering errors (diagonal stripes and incorrect sRGB brightness) via manual pixel unpack parameter management.
- Safe Loading: Integrated stbi_image for direct PNG/JPG decoding into GPU-compatible formats.
- Lifecycle Profiling: Added high-precision initialization and exit time measurement for performance profiling.
Tip
Attention developers: The repository includes an updated ExamplePlugin.cpp, demonstrating the use of all new API functions, including Tables, Notifications, and extended styling.
Developed with ❤️ by Track & Truck Devs. Support us on Patreon to help us keep the project growing!