Search found 221 matches
- Thu Jan 23, 2014 12:43 am
- Forum: Plugin Development Support
- Topic: Subclassing an entity - C++ signature error
- Replies: 9
- Views: 7363
use dir(your_python_object), returns all props and functions If you don't understand class inheritance and the special methods __new__ and __init__ I suggest you read up a bit on the programming theory regarding classes first. As for python special methods, go into the docs: http://docs.python.org/3...
- Tue Jan 07, 2014 1:31 am
- Forum: General Discussion
- Topic: cs:go server crashes
- Replies: 13
- Views: 11962
I disabled them, still crashing. Also, apparently the server crashes 100% of the time when someone dies from jumping. ./srcds_run: line 318: 30583 Aborted (core dumped) $HL_CMD warning: Can't read pathname for load map: Input/output error. email debug.log to linux@valvesoftware.com Do you use playe...
- Tue Jan 07, 2014 1:29 am
- Forum: General Discussion
- Topic: Support of old ess?
- Replies: 2
- Views: 3626
Pretty much what @Ayuto said You can write a parser for ess files if you want, and execute them from there, but it will be a *LOT* of work. Rewriting the scripts in python will probably be much less effort, and it will also be more effiecent to have these things in done in python. Even rewriting scr...
- Thu Jan 02, 2014 6:30 am
- Forum: General Discussion
- Topic: cs:go server crashes
- Replies: 13
- Views: 11962
- Fri Dec 20, 2013 8:24 am
- Forum: Plugin Development Support
- Topic: kick player, send message
- Replies: 8
- Views: 7986
- Thu Dec 19, 2013 9:32 am
- Forum: Plugin Development Support
- Topic: General Issue with some wraps
- Replies: 7
- Views: 6995
Thanks for the reply, but I don't quite follow. Could you paste an example? playerinfo = playerinfo_from_userid(userid) # Avoid crash due to null pointer if not playerinfo.get_edict().is_valid(): return Though as I said this is also an issue with SP, currently you can't check whether the playerinfo...
- Sun Dec 15, 2013 12:58 am
- Forum: Plugin Development Support
- Topic: General Issue with some wraps
- Replies: 7
- Views: 6995
I seem to be hitting this issue also. I am trying to get a player's steam id on connect. userid = game_event.get_int('userid') print("userid: %s" % userid) playerinfo = playerinfo_from_userid(userid) print("playerinfo: %s" % playerinfo) steamid = playerinfo.get_networkid_string() print("player stea...
- Tue Dec 03, 2013 8:28 pm
- Forum: Whatever
- Topic: Whats going on?
- Replies: 7
- Views: 9422
I don't think CS:GO is dead. It is the biggest counterstrike ever. But it's true that the custom servers are less. I didn't say it's dead. Also CS/CSS both had much more players at their prime times. But the problem is only MM is played, which ruins custom servers completly. Plus they done many thi...
- Sun Dec 01, 2013 8:10 am
- Forum: Whatever
- Topic: Whats going on?
- Replies: 7
- Views: 9422
So whats been going on with Source Python? I have not seen any new posts on site in long time and have not seen any new comments on the download site. Maybe you all have got busy and don't have time right now to do anything. Just wondering. To keep the community updated. That's all. If you want sig...
- Thu Oct 17, 2013 8:02 pm
- Forum: Plugin Development Support
- Topic: player_spawn event, does it fire more than once?
- Replies: 10
- Views: 9799
- Thu Oct 17, 2013 7:59 pm
- Forum: Plugin Development Support
- Topic: `GLIBCXX_3.4.15' not found
- Replies: 2
- Views: 3877
Install a newer libc++, SP is linked against a newer one so it does not work if your system uses an old version. Alternatively, if no newer version is available, try to compile yourself to link against YOUR version or get a newer version and install it locally for the specific source server. After y...
- Thu Oct 03, 2013 3:40 am
- Forum: General Discussion
- Topic: Linux OB: libz.so.1 not found
- Replies: 4
- Views: 5429
- Tue Oct 01, 2013 6:59 am
- Forum: General Discussion
- Topic: Linux OB: libz.so.1 not found
- Replies: 4
- Views: 5429
The obvious solution: Install libz.so.1 and put it in library search paths. Edit: If you are linux novice, these are solutions common for any programm: 1) Though Package Manager - Try to find relevant packages in your distributions package manager (search google, there might be a tool for searching ...
- Mon Sep 30, 2013 4:12 am
- Forum: General Discussion
- Topic: RuntimeError: access violation - no RTTI data
- Replies: 1
- Views: 4376
Okay, it seems Python will garbage collect the edict instance because it thinks there are no more references to it, so solution is to either create a new object and return it OR make sure it doesn't get collected (adding __del__ should do that job, but it cause other problems): So in fix players_wra...
- Sun Sep 29, 2013 9:47 pm
- Forum: General Discussion
- Topic: RuntimeError: access violation - no RTTI data
- Replies: 1
- Views: 4376
RuntimeError: access violation - no RTTI data
Also posted on GitHub: https://github.com/Source-Python-Dev-Team/Source.Python/issues/2 It was though to find code that actually replicates this issue, because at first it seemed to happen quite randomly. There might be more cases then this one. It seems to happen when passing/storing playerinfo obj...
- Sun Sep 29, 2013 3:24 am
- Forum: Plugin Releases
- Topic: k2tools - General purpose library package [WIP] [SVN]
- Replies: 9
- Views: 12160
I've added a popup library to k2tools, which supports rather complex creation of popups. See the wiki page or script files for more info: https://svn.german-slaughterhouse.de/svn/k2tools/trunk/addons/source-python/packages/custom/k2tools/popup/ https://www.german-slaughterhouse.de/wiki/K2Tools:Popup
- Sat Sep 28, 2013 5:12 am
- Forum: Plugin Development Support
- Topic: Understanding some class attributes?
- Replies: 2
- Views: 3518
- Fri Sep 27, 2013 4:38 pm
- Forum: API Design
- Topic: General API design - callbacks
- Replies: 2
- Views: 4905
General API design - callbacks
So what do you think is the best method to specify callbacks? Just a single method or support args/kwargs? def myapifunc(callback): callback() vs def myapifunc(callback, callback_args=(), callback_kwargs={}): callback(*callback_args, **callback_kwargs) Please ...
- Tue Sep 17, 2013 8:36 am
- Forum: General Discussion
- Topic: Bot trying to login with my account
- Replies: 7
- Views: 12241
Another ip (from 20:46 GMT+1 yesterday): Dear Omega_K2, Someone has tried to log into your account on Source.Python with an incorrect password at least 5 times. This person has been prevented from attempting to login to your account for the next 15 minutes. The person trying to log into your account...
- Sat Sep 14, 2013 9:40 am
- Forum: API Design
- Topic: Custom event or listener for "CSourcePython::NetworkIDValidated"
- Replies: 4
- Views: 6758