Quicklinks
Documentation | SVN Repository | Bug Report Forum | Suggestion Forum
Overview
This is a package of several different general purpose libaries. I deceided to make them public in one large release, as I'll be using many of these in my other scripts, and this makes it easier to keep them update and you'll always have everything you need without extra hassle.
You are welcome to use these in your own scripts too, however, all these libaries are subject to change, so the API may not stay the same thoughout the versions. Especially the misc.py may change rather often.
If you find bugs or have any ideas let me know, and I'll think about including them.
This is what is currently included with k2tools:
auth
Subpackage - more advanced alternative to Source.Python authentification
popup
Subpackage - popups
cmdlib.py
Advanced command library providing many additional featues (also see here)
config.py
Some utility functions to make loading/verifying configobj configs easier
colormsg.py
Support for using ES-style tags to add color to messages
data.py
Some general data variables and functions, such as server ip and current map
keyvalues.py
Parser for Valve's KeyValues format (No SP required!)
langlib.py
Remake of Eventscripts' langlib.py to keep compability of languages files
misc.py
Functions and classes that did not fit into another library
pubcvarlib.py
Small library to mainstream adding public variables (+ resetting of version values) (Port of my Eventscripts pubcvarlib)
smauth.py
Providing sourcemod authentification for the admin flatfiles (no SQL support) (Port of my Eventscripts smauth)
strings.py
Provides some gernal purpose methods for working with strings, such as fill functions. Also has some hug thing.
threadlib.py
Utility methods/classes for threading in SourcePython
threaddb.py
Threaded execution that works with gameservers for DPAPI 2.0 modules. Currently pymysql is supported (auto-reconnect) & tested
Documentation
You can view the documentation here:
https://www.german-slaughterhouse.de/wiki/K2Tools:K2Tools
I'll update this occassionally, but it won't be up-to-date all the time. Refer to the files for the most recent documentation.
Public SVN
All versions can be found at:
https://svn.german-slaughterhouse.de/svn/k2tools/
I'm using a self-singed certificate, so if you open this in your browser, it will bitch about it. You'll have to add an exception if you want to view it online.
See below to find out what package to use.
Latest development version
This version is always the most update, but is not necessarily tested for bug or even working at all. At times I may commit untested, nonworking changes or unfished stuff here
https://svn.german-slaughterhouse.de/svn/k2tools/trunk/
You can also find a revision of the trunk attached to this post:
soon to be added
Latest stable version (coming soon)
This version is usually a release-version, but may also be updated outside of releases. This is generally safe to use.
https://svn.german-slaughterhouse.de/svn...braches/stable
Releases
Releases will put be put here with their accoding version number. These packages are highly unlikely to change.
https://svn.german-slaughterhouse.de/svn/k2tools/tags/<release>
Known Issues
Please always check the header of the files and lines with TODO, generally known issues or missing features.
Despite that:
- misc.py - TeamColor doesn't really work (as there is no \x07RRGGBB format)