Raised This Month: $12 Target: $400
 3% 

[EXTENSION] Signals (0.8.1.0 - 07/01/2024)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bezdmn
New Member
Join Date: Dec 2023
Old 01-06-2024 , 22:30   [EXTENSION] Signals (0.8.1.0 - 07/01/2024)
Reply With Quote #1

Description:

Signals is a small extension that enables setting sigaction handlers for Linux signals and linking a SourceMod callback to them. To give you a brief introduction, signals are a form of inter-process communication in Linux, mostly fired by the OS but which can be triggered manually and intercepted per-process. I use this myself to make systemd restart and start/stop scripts integrate more fluidly with the server I'm hosting, but you could also use it to call for information dumps from your server. Moreso, with signals, you can have accurately timed events that don't depend on the game server's sense of time and tick rate.

I'm working on a few more essential features so this is not the final release.

This is also my first extension and all kinds of feedback is much appreciated!

Examples (TF2)

Refreshing the map


Toggling VProf profiler


Full examples are included in the zip file and downloads.

N.B. The extension was built with a newer version of GLIBCXX than is provided in mp-sdk2013. Make sure your system has the latest libstdc++6 installed and then rename the library in .../mp-sdk2013/bin/libstdc++.so.6 to something else so it doesn't get looked up.

Changelog
Code:
0.8.1.0 (07-01-2024)
- Initial release
Attached Files
File Type: zip signals_0-8-1.zip (94.6 KB, 33 views)
File Type: sp Get Plugin or Get Source (signals-example.sp - 24 views - 7.9 KB)
File Type: smx signals-example.smx (6.1 KB, 24 views)

Last edited by bezdmn; 01-06-2024 at 23:16.
bezdmn 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 13:13.


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