AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [EXTENSION] Signals (0.8.1.0 - 07/01/2024) (https://forums.alliedmods.net/showthread.php?t=345358)

bezdmn 01-06-2024 22:30

[EXTENSION] Signals (0.8.1.0 - 07/01/2024)
 
3 Attachment(s)
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



All times are GMT -4. The time now is 16:10.

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