Search found 221 matches

by Omega_K2
Thu Jan 23, 2014 12:43 am
Forum: Plugin Development Support
Topic: Subclassing an entity - C++ signature error
Replies: 9
Views: 7313

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...
by Omega_K2
Tue Jan 07, 2014 1:31 am
Forum: General Discussion
Topic: cs:go server crashes
Replies: 13
Views: 11894

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...
by Omega_K2
Tue Jan 07, 2014 1:29 am
Forum: General Discussion
Topic: Support of old ess?
Replies: 2
Views: 3605

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...
by Omega_K2
Thu Jan 02, 2014 6:30 am
Forum: General Discussion
Topic: cs:go server crashes
Replies: 13
Views: 11894

edcolmar wrote:It crashes over and over, like every 5-7 minutes. The debug.log looks roughly the same each time.


Any SP plugins running that use commands?
by Omega_K2
Fri Dec 20, 2013 8:24 am
Forum: Plugin Development Support
Topic: kick player, send message
Replies: 8
Views: 7928

For kicking: http://www.sourcepython.com/showwiki.php?title=Wiki:CEngineServer#server_command from engine_c import CEngineServer CEngineServer.server_command('kickid %s %s' % (userid, reason)) For SayText2 (chat area): http://www.sourcepython.com/showwiki.php?title=Wiki:mess...
by Omega_K2
Thu Dec 19, 2013 9:32 am
Forum: Plugin Development Support
Topic: General Issue with some wraps
Replies: 7
Views: 6939

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...
by Omega_K2
Sun Dec 15, 2013 12:58 am
Forum: Plugin Development Support
Topic: General Issue with some wraps
Replies: 7
Views: 6939

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...
by Omega_K2
Tue Dec 03, 2013 8:28 pm
Forum: Whatever
Topic: Whats going on?
Replies: 7
Views: 9323

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...
by Omega_K2
Sun Dec 01, 2013 8:10 am
Forum: Whatever
Topic: Whats going on?
Replies: 7
Views: 9323

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...
by Omega_K2
Thu Oct 17, 2013 8:02 pm
Forum: Plugin Development Support
Topic: player_spawn event, does it fire more than once?
Replies: 10
Views: 9727

Ayuto wrote:I have never seen player_spawn firing 3 times.


Might be a bug with the engine/game (or caused by other mods that force spawn people..)
by Omega_K2
Thu Oct 17, 2013 7:59 pm
Forum: Plugin Development Support
Topic: `GLIBCXX_3.4.15' not found
Replies: 2
Views: 3852

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...
by Omega_K2
Thu Oct 03, 2013 3:40 am
Forum: General Discussion
Topic: Linux OB: libz.so.1 not found
Replies: 4
Views: 5392

Install the 32 bit package. If it's a system wide package, you don't need to copy it at all.
by Omega_K2
Tue Oct 01, 2013 6:59 am
Forum: General Discussion
Topic: Linux OB: libz.so.1 not found
Replies: 4
Views: 5392

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 ...
by Omega_K2
Mon Sep 30, 2013 4:12 am
Forum: General Discussion
Topic: RuntimeError: access violation - no RTTI data
Replies: 1
Views: 4353

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...
by Omega_K2
Sun Sep 29, 2013 9:47 pm
Forum: General Discussion
Topic: RuntimeError: access violation - no RTTI data
Replies: 1
Views: 4353

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...
by Omega_K2
Sun Sep 29, 2013 3:24 am
Forum: Plugin Releases
Topic: k2tools - General purpose library package [WIP] [SVN]
Replies: 9
Views: 12045

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
by Omega_K2
Sat Sep 28, 2013 5:12 am
Forum: Plugin Development Support
Topic: Understanding some class attributes?
Replies: 2
Views: 3493

I guess PlayerEntity hasn't really been updated.
by Omega_K2
Fri Sep 27, 2013 4:38 pm
Forum: API Design
Topic: General API design - callbacks
Replies: 2
Views: 4832

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 ...
by Omega_K2
Tue Sep 17, 2013 8:36 am
Forum: General Discussion
Topic: Bot trying to login with my account
Replies: 7
Views: 12167

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...

Go to advanced search