AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   Viper (https://forums.alliedmods.net/showthread.php?t=114266)

theY4Kman 01-03-2010 05:57

Viper
 
News
(12/19/2010): Added usermessages, bitbuffers, and SourcePawn native invocation. Fixed a bunch of bugs, thanks to Thraka. 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.

Also added is a testing plug-in and a Python header file output plug-in. The testing plug-in is a bunch of unit tests that help in determining some functionality (there are many untestable things). The header file output plug-in generates a bunch of Python files that contain method and class stubs for use with a Python IDE.

(3/21/2010): Fixed client-side concommands. It seems I never actually hooked OnClientCommand. It's all better now -- at least on Windows. Still working on Linux ;)

(2/8/2010): Fixed plug-in unloading when the plug-in uses multiple threads. This means you can now use the twisted library. Also, now the plugin_unload function will be called on plugin unload.

(2/3/2010): 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. GRAB IT WHILE IT'S HOT. :crab: Unfortunately, the Linux version is still only available on Ep1.

(1/13/2010): I have almost fixed the Windows version, and it should be available for release in the near future!

(1/03/2010): Finally, Viper has limped all the way here. Don't get too excited, because most of his limbs have been torn off. All that he brought with him is a version compiled on Linux for the Episode 1 engine. 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.
TL;DR: Viper is only available for Linux on the Ep1 engine for now

Feel free to send hatemail to [email protected]

Viper
Viper is a SourceMod extension that embeds the CPython interpreter, allowing you to create plug-ins in Python. Its standard library is written completely in C++, so its performance is unrivaled.

Viper is compiled against CPython 2.5.4. A few non-standard modules have been included with Viper:
Documentation
Documentation is available online at http://y4kstudios.com/sourcemod/viper/docs/

Issues?
File a bug at the AlliedModders Bugzilla: https://bugs.alliedmods.net/enter_bug.cgi?product=Viper

Download!
Linux: http://y4kstudios.com/sourcemod/viper/Viper.tar.gz ( v0.8 ) ( Works for Ep1 games, such as CS:S )
Windows: http://y4kstudios.com/sourcemod/viper/Viper.zip ( v0.8.5a ) ( Works for Ep1 (mods), OB (mods), OBv (TF2, CS:S), L4D, and L4D2. )
Source: http://github.com/theY4Kman/viper/

Installation
Just extract the archive into your game folder!


:crab: :crab: :crab: :crab: :crab: :crab: :crab: :crab: :crab:

Greyscale 01-03-2010 06:07

Re: [EXTENSION] Viper
 
Impressive.

toazron1 01-03-2010 12:24

Re: [EXTENSION] Viper
 
Very cool. Your Yak is insanely large.

psychonic 01-03-2010 13:42

Re: [EXTENSION] Viper
 
Nice to see a released version of that. Your Yak is not insanely large enough.

DrGamez 01-03-2010 15:45

Re: [EXTENSION] Viper
 
Dumb question: This is only for ep1 engine, so using it for writing TF2 plugins on orange box right now is a no-no, or just doesn't work; right?

I'm super excited to see this project, it's like all my dreams come true.

theY4Kman 01-03-2010 15:55

Re: [EXTENSION] Viper
 
Yes, that is correct, DrGamez. I apologize for having such a limited release.

pRED* 01-03-2010 17:34

Re: [EXTENSION] Viper
 
My what large yak you have

Hipster 01-04-2010 17:48

Re: [EXTENSION] Viper
 
Quote:

Originally Posted by DrGamez (Post 1041793)
I'm super excited to see this project, it's like all my dreams come true.

Couldn't have said it better myself.

Are there any plans of updating the extension to work with Python 2.6.4, or maybe even Py3k?

theY4Kman 01-04-2010 20:20

Re: [EXTENSION] Viper
 
Quote:

Originally Posted by Hipster (Post 1043308)
Couldn't have said it better myself.

Are there any plans of updating the extension to work with Python 2.6.4, or maybe even Py3k?

Yes, eventually I plan to update to Python 2.6. In fact, I hear devicenull has already compiled against 2.6. As for Py3K, never. I think the changes made to the language make it harder to learn, and that's not what I want on Viper. Even though they did make a lot of changes to the C API that would really help me, I still feel it's a bad idea to release Viper with it. But you're welcome to compile against it :)

Downtown1 01-04-2010 23:03

Re: [EXTENSION] Viper
 
Very cool, shame about not using Python 3k though :(.

CPython has reference counted GC right? So you won't freeze the game server in the middle of a GC and lag everyone?


All times are GMT -4. The time now is 15:42.

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