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

Viper


Post New Thread Reply   
 
Thread Tools Display Modes
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 01-05-2010 , 13:26   Re: [EXTENSION] Viper
Reply With Quote #11

2.6.4 works with minimum effort (I needed to add one #undef.. I'd submit a patch but the bug tracker is broken :p). Py3k isn't actually recommended for production use, afaik.
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
theY4Kman
Join Date: Jun 2007
Location: Yak
Old 02-03-2010 , 18:03   Re: [EXTENSION] Viper
Reply With Quote #12

I have fixed oodles of problems and finally have a decent product to show you: Viper is now available on Windows, on all engines (besides Dark Messiah)! If you so wish, you can download the unit tests I've written at the git repository.
__________________
http://y4kstudios.com
Is that loud enough? Oh, while I have you, check out Viper.
theY4Kman is offline
Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 02-03-2010 , 18:35   Re: [EXTENSION] Viper
Reply With Quote #13

Very interesting y4k. Also, nice yak.
__________________
recon0 is offline
Hipster
SourceMod Donor
Join Date: Jun 2009
Location: Florida
Old 02-04-2010 , 23:37   Re: [EXTENSION] Viper
Reply With Quote #14

Quote:
Originally Posted by theY4Kman View Post
I have fixed oodles of problems and finally have a decent product to show you: Viper is now available on Windows, on all engines (besides Dark Messiah)! If you so wish, you can download the unit tests I've written at the git repository.
Thank you!

@devicenull, can you post up the #undef you added to compile with 2.6.4?

Edit: I'm getting this error when I start up my Windows CS:S server:
Code:
[03] <FAILED> file "viper.ext.1.ep1.dll": Unable to import the Python types module to initialize Viper data
Fresh install of MM 1.8.0 and SM 1.3.0.

Last edited by Hipster; 02-05-2010 at 00:21.
Hipster is offline
theY4Kman
Join Date: Jun 2007
Location: Yak
Old 02-05-2010 , 02:23   Re: [EXTENSION] Viper
Reply With Quote #15

Quote:
Originally Posted by Hipster View Post
Edit: I'm getting this error when I start up my Windows CS:S server:
Code:
[03] <FAILED> file "viper.ext.1.ep1.dll": Unable to import the Python types module to initialize Viper data
I'm not sure how that's possible, but I've written an alternative method to retrieving the Python data types Viper needs, which should work every time, and solve your problem. The new version is at the download link.
__________________
http://y4kstudios.com
Is that loud enough? Oh, while I have you, check out Viper.
theY4Kman is offline
Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
theY4Kman
Join Date: Jun 2007
Location: Yak
Old 02-08-2010 , 14:15   Re: [EXTENSION] Viper
Reply With Quote #16

Recently, I started testing out the twisted library packaged with Viper. I found out that it didn't quite work... So I've fixed that. Also, I've written some fancy code to exit all Python threads without error, so plug-in unloading now works even if the plug-in uses multiple threads. Lastly, I've added some nice functionality: if you define a plugin_unload function in your plug-in, it will be called -- you guessed it -- when the plug-in is unloaded.
__________________
http://y4kstudios.com
Is that loud enough? Oh, while I have you, check out Viper.
theY4Kman is offline
Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
Hipster
SourceMod Donor
Join Date: Jun 2009
Location: Florida
Old 02-08-2010 , 23:54   Re: [EXTENSION] Viper
Reply With Quote #17

Thanks y4k, the extension is loading now.
Quote:
[03] Viper (0.8.1): Python for SourceMod
Unfortunately, the server crashes on startup after I create my "Hello World" plugin. I've attached the mdmp file.

Hopefully it's an easy fix because I feel bad for bringing up all these bugs on something you've been working on for so long.
Attached Files
File Type: mdmp srcds_1090_crash_2010_2_9T4_43_57C0.mdmp (64.1 KB, 163 views)
Hipster is offline
theY4Kman
Join Date: Jun 2007
Location: Yak
Old 02-09-2010 , 00:01   Re: [EXTENSION] Viper
Reply With Quote #18

Really, it's no bother. It brings me more joy to fix Viper than to go on ignorantly thinking it's perfect.

Anyways, what mod are you running? What does your plug-in look like?
__________________
http://y4kstudios.com
Is that loud enough? Oh, while I have you, check out Viper.
theY4Kman is offline
Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
Hipster
SourceMod Donor
Join Date: Jun 2009
Location: Florida
Old 02-09-2010 , 00:13   Re: [EXTENSION] Viper
Reply With Quote #19

I'm running CS:S.

\sourcemod\plugins\helloworld\__init__.py
PHP Code:
import sourcemod

myinfo 
= {
    
'name'"Hello, World!",
    
'author'"My Name",
    
'description'"Salutations, Celestial Rock!",
    
'version'"1.0"
}

print 
"Hello, World!" 
I've just been trying what I found on the docs.
Hipster is offline
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 03-17-2010 , 19:39   Re: [EXTENSION] Viper
Reply With Quote #20

Just wondering: Where do you set the module search path?
__________________
recon0 is offline
Reply



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 16:03.


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