Raised This Month: $ Target: $400
 0% 

Swiftly - a framework for CS2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blu1337
Junior Member
Join Date: Jun 2022
Old 11-30-2024 , 14:31   Swiftly - a framework for CS2
Reply With Quote #1

Swiftly: A Modern Server Modification Plugin for Counter-Strike 2

Swiftly is a server modification plugin for Counter-Strike 2 servers, built on Metamod:Source 2.x.

What is Swiftly?

Swiftly is an alternative framework to SourceMod for CS:GO or CounterStrikeSharp for CS2. It is based on Lua and provides an array of easy-to-use functionalities, including:
  • User Messages
    Offers an API for Protobuf Messages from Counter-Strike 2, enabling developers to send customized messages to clients.
  • Standardized Menus
    Provides a unified menu system for all plugins, making it easier to create and implement custom menus.
  • Automation
    Automates the generation of the Counter-Strike 2 SDK API, ensuring rapid updates whenever a new game version is released.
  • Custom Game Data
    Enables the addition of custom signatures, patches, and offsets directly into the gamedata directory.
  • IP API
    Includes a built-in IP API using local IP databases, eliminating the need for external HTTP requests.
  • Database
    An easy-to-use MySQL Database API
  • HTTP
    Provides a robust HTTP Client & Server, allowing real-time communication between the server and web applications.
  • Memory
    An advanced API, letting you read and write memory pointers.
  • Hooks
    An advanced API letting you hook CS2 function via signatures.
  • VS Code Integration
    Comes with a Visual Studio Code extension featuring Auto Completion, Plugin Generation, and in-editor Documentation to streamline development.

    And many more features, all available to see here

Open-Source and Community Driven
Swiftly is a fully open-source project, actively developed and maintained by the developers and the community. Numerous plugins are already available and can be found on the Discord server or GitHub repository.

Join Us
GitHub | Discord | Documentation | VS Code Extension

Last edited by blu1337; 11-30-2024 at 14:32.
blu1337 is offline
PStar
Veteran Member
Join Date: Mar 2008
Old 12-17-2024 , 05:26   Re: Swiftly - a framework for CS2
Reply With Quote #2

Nice, are there at least the base server management plugin pack available for it? ( like player manage - kick,ban ect..- map voting?

Last edited by PStar; 12-17-2024 at 05:26.
PStar is offline
blu1337
Junior Member
Join Date: Jun 2022
Old 12-20-2024 , 05:46   Re: Swiftly - a framework for CS2
Reply With Quote #3

Quote:
Originally Posted by PStar View Post
Nice, are there at least the base server management plugin pack available for it? ( like player manage - kick,ban ect..- map voting?
Yes there are a lot of plugins, all of them are available here: https://github.com/orgs/swiftly-solution/repositories
Swiftly comes by default installed with the admins plugin.
blu1337 is offline
PStar
Veteran Member
Join Date: Mar 2008
Old 12-21-2024 , 04:46   Re: Swiftly - a framework for CS2
Reply With Quote #4

Quote:
Originally Posted by blu1337 View Post
Yes there are a lot of plugins, all of them are available here: https://github.com/orgs/swiftly-solution/repositories
Swiftly comes by default installed with the admins plugin.
Thank you for the answer.
Does Swiftly work on linux based servers too? Or just windows?
PStar is offline
blu1337
Junior Member
Join Date: Jun 2022
Old 12-21-2024 , 15:37   Re: Swiftly - a framework for CS2
Reply With Quote #5

Quote:
Originally Posted by PStar View Post
Thank you for the answer.
Does Swiftly work on linux based servers too? Or just windows?
Swiftly works on both Linux and Windows.
blu1337 is offline
PStar
Veteran Member
Join Date: Mar 2008
Old 12-21-2024 , 16:42   Re: Swiftly - a framework for CS2
Reply With Quote #6

Quote:
Originally Posted by blu1337 View Post
Swiftly works on both Linux and Windows.
Tried to install it on a linux server (with MM:S 1315), but it fails to load.

Is there any possibility to make the admin db a single json file? Cause most community servers dont have any acces to a normla mysql db. Or at lest there should be a default fallback for sqlite mode.

And i did not find any information how to add the admins to the database, or am i missing something?

Last edited by PStar; 12-21-2024 at 16:42.
PStar is offline
blu1337
Junior Member
Join Date: Jun 2022
Old 12-22-2024 , 06:16   Re: Swiftly - a framework for CS2
Reply With Quote #7

And sqlite will probably be added in the next updates.
blu1337 is offline
blu1337
Junior Member
Join Date: Jun 2022
Old 02-01-2025 , 11:49   Re: Swiftly - a framework for CS2
Reply With Quote #8

We’re thrilled to announce the re-release of Swiftly v1.4.0! This refined update introduces powerful new tools and features while addressing issues from previous versions (v1.3.x). This ensures a smoother, more robust experience for all developers.

What’s new in Swiftly v1.4.0?

Extensions:

The extensions are addons for Swiftly so that you can implement your own Scripting API in each plugin. It supports classes, functions, tables for types, and many more!

Why did we need this?

From the beginning, our goal was to empower developers to create more complex ideas without being limited by Lua.
Now, with Extensions, you can also create your plugin in C++, but also implement it's Scripting API in each Lua plugin.

For example, you can create your own class to add your own utility functions, or create your own function to kill someone.

How can I create an extension?

To create an extension, you can fork our own Base Extension to start your journey with extensions!

Does this modification affect me?

Some core functionalities have been moved out of Swiftly’s core and are now provided as standalone extensions. The following features were removed from the core and made available as extensions:

Addons
HTTP API
IP Address API
Console Filter
MySQL Database Extension
Utils Extension (includes SetBunnyhop and IsListeningToGameEvent)

(Make sure to install these extensions if your plugins depend on them. (and most of them depend))

Addition of QueryBuilder:

This version introduces QueryBuilder, a powerful tool to simplify and standardize database interactions. Say goodbye to tedious and error-prone manual queries. With QueryBuilder, you can construct dynamic, efficient queries with ease and consistency.

Deprecation of Query and QueryParams:

To streamline development, we’ve removed Query and QueryParams from the framework. All of our plugins have been rewritten to use QueryBuilder, making database interactions more efficient.

Important: You will need to update every plugin that uses database functionalities, all of the plugins made by us were updated with new releases on GitHub, make sure to download them. Below is a list of plugins that need to be updated.

Admins Core
Admins Base Bans
Admins Base Comms
VIP Core
Shop Core
Tags
Deathmatch
Ranks
Mostactive
Cookies
Connection-Filters (dependent on Utils Extension)
Shop-BHop (dependent on Utils Extension)
VIP-BHop (dependent on Utils Extension)
blu1337 is offline
blu1337
Junior Member
Join Date: Jun 2022
Old 02-01-2025 , 11:54   Re: Swiftly - a framework for CS2
Reply With Quote #9

Hello everyone!

We're happy to announce that Swiftly has implemented it's own screen texts and menus!

We've also added support for selecting options in menu via commands! (!1, !2 and so on).

What did we add?

We've added an implementation of the old CS:GO VGUI based on point_worldtext entities. With those, we were able to create texts on the screen and menus! Those can be seen in a screenshot attached below.

How can we change the menu kind?

Simple, you can change the kind from addons/swiftly/configs/core.json via core.menu.kind. Inside the configuration file there are also the available menu kinds for Swiftly.

Do we need to register the commands for selecting options?

No, you don't need to do that if you're selecting your input mode to be chat. Otherwise, you can create your own plugin to do that and use PerformMenuAction.

We're thanking everyone for the support provided to Swiftly and we're glad to have you guys as a community!
Useful Links
Roadmap: https://roadmap.swiftlycs2.net/
Discord: https://swiftlycs2.net/discord
Website: https://swiftlycs2.net/

blu1337 is offline
blu1337
Junior Member
Join Date: Jun 2022
Old 03-01-2025 , 12:07   Re: Swiftly - a framework for CS2
Reply With Quote #10

Announcement - JavaScript/TypeScript Release - v1.5.0
Hello everyone!

We're happy to announce that Swiftly has implemented JavaScript/TypeScript support for plugins!

What did we add?

We've added JavaScript support for plugins, allowing you to also make the plugins in TypeScript using our TypeScript Plugin Guide. We've also added the following:

OnPluginStart Error: Now if OnPluginStart throws an error, the plugin will not start and the reason will be shown in sw plugins list.
Configuration Example: Now you can't mistakenly overwrite your own configuration files when you're updating Swiflty.
Embedding Library: We've created an embedding library which allows extension developers to easily integrate their code with plugins. You write code once, and it integrates your code in all the embedder supported languages (currently JavaScript/Lua).

What's different from v1.4.0?

Since we've launched v1.4.0, we've developed a ton of very cool stuff, such as:

Virtual GUI: Create custom texts and panels on player screens with powerful VGUI tools.
Screen Menus: We've created screen menus which allows users have a more friendly interaction with the server.
Menu KInds: Now you can choose the flavor of menus your server should use, screen or center, and also choose how you want to interact with the menus, via buttons or chat.
OnUserMessageReceive: Now you can filter out player user messages to the server.
Map Chooser: A basic map chooser system which is shipped automatically with Swiftly.

Do we have examples?

Yes, we've created a GitHub repository for JavaScript & Lua Examples, check it out: Examples Repository.

What files we need to update?

You need to update the following files:

addons/swiftly/bin
addons/swiftly/extensions

We also want to announce that we're thankful for achieving over 300 members on our Discord Server and we hope to grow even more!

Thanks to everyone's support and contribution to Swiftly Community and we 're grateful to have you as our community.

Useful Links
Discord: https://swiftlycs2.net/discord
Website: https://swiftlycs2.net/
blu1337 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 22:04.


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