

* Let's keep the folder separators consistent */

G_pSM->BuildPath(SourceMod::Path_SM, path_string, PLATFORM_MAX_PATH, "extensions/viper/lib") PyList_SetItem(newpath, 0, PyString_FromString(path_string)) Size_t len = strrchr(m_sPath, '/') - m_sPath * Clear sys.path and add the plug-in's folder, as well as Python's libs */Ĭhar *path_string = new char Just wondering: Where do you set the module search path? :crab: :crab: :crab: :crab: :crab: :crab: :crab: :crab: :crab:
#Viper ftp connect vm archive#
Just extract the archive into your game folder! Windows: ( v0.8.5a ) ( Works for Ep1 (mods), OB (mods), OBv (TF2, CS:S), L4D, and L4D2. Linux: ( v0.8 ) ( Works for Ep1 games, such as CS:S )

A few non-standard modules have been included with Viper:įile a bug at the AlliedModders Bugzilla: Its standard library is written completely in C++, so its performance is unrivaled. Viper is a SourceMod extension that embeds the CPython interpreter, allowing you to create plug-ins in Python.
#Viper ftp connect vm free#
TL DR: Viper is only available for Linux on the Ep1 engine for nowįeel free to send hatemail to So, until I can bring him to the operating room to compile the rest (and fix the Windows version), that's all you're going to get. All that he brought with him is a version compiled on Linux for the Episode 1 engine. Don't get too excited, because most of his limbs have been torn off. (): Finally, Viper has limped all the way here. (): I have almost fixed the Windows version, and it should be available for release in the near future! :crab: Unfortunately, the Linux version is still only available on Ep1. (): The Windows version is complete! I have written over 70 unit tests and compiled Viper for the ep1, ob, ob-valve, l4d, and l4d2 engines. Also, now the plugin_unload function will be called on plugin unload. This means you can now use the twisted library. (): Fixed plug-in unloading when the plug-in uses multiple threads. It's all better now - at least on Windows. It seems I never actually hooked OnClientCommand. The header file output plug-in generates a bunch of Python files that contain method and class stubs for use with a Python IDE. The testing plug-in is a bunch of unit tests that help in determining some functionality (there are many untestable things). There's still a fair bit to complete (reading bitbuffers in hooked usermessages, byref variables in SourcePawn native invocation, and menus), but it's getting closer and closer to completion.Īlso added is a testing plug-in and a Python header file output plug-in. (): Added usermessages, bitbuffers, and SourcePawn native invocation.
