Search found 21 matches

by edcolmar
Tue Feb 04, 2014 3:53 am
Forum: Plugin Development Support
Topic: import from same folder
Replies: 2
Views: 4711

import from same folder

I have some general configuration variables that I want to keep outside of my main plugin. config.py exists inside my plugin folder. I also put a __init__.py in there for good measure. I try: from config import * but the variables don't make it into my running script. Any idea as to why this is?
by edcolmar
Mon Feb 03, 2014 10:08 pm
Forum: Plugin Development Support
Topic: get_engine_interface
Replies: 1
Views: 3625

get_engine_interface

Hey all! Running the following on the Jan-26-2014 build: import engine_c engine = engine_c.get_engine_interface() [SP] Caught an Exception: Traceback (most recent call last): File '../addons/source-python/packages/source-python/plugins/manager.py', line 64, in __missing__ instance = self.instance(pl...
by edcolmar
Fri Jan 17, 2014 10:50 pm
Forum: General Discussion
Topic: cs:go server crashes
Replies: 13
Views: 20255

If I recall correctly, it was the latest official build. I believe I had problems compiling it from the repo.
by edcolmar
Thu Jan 16, 2014 12:03 am
Forum: General Discussion
Topic: cs:go server crashes
Replies: 13
Views: 20255

Player jump is unused, but player death is used.

I did some testing today. The server runs without crashing when sourcepython is not loaded.

When sourcepython is running, even without my script loaded, it is unstable.

Debug log here:

http://pastebin.com/9MHYPZFd
by edcolmar
Sat Jan 04, 2014 1:10 am
Forum: General Discussion
Topic: cs:go server crashes
Replies: 13
Views: 20255

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
by edcolmar
Thu Jan 02, 2014 5:15 pm
Forum: General Discussion
Topic: cs:go server crashes
Replies: 13
Views: 20255

There are a couple player commands that seem to be working properly like: @SayCommand('/rank') def balance(playerinfo, command, unknown): steamid = playerinfo.get_networkid_string() steam64 = convertSteamIDToCommunityID(steamid) print("steam64: %s&quo...
by edcolmar
Thu Jan 02, 2014 4:11 am
Forum: General Discussion
Topic: cs:go server crashes
Replies: 13
Views: 20255

It crashes over and over, like every 5-7 minutes. The debug.log looks roughly the same each time.
by edcolmar
Wed Jan 01, 2014 7:49 pm
Forum: General Discussion
Topic: cs:go server crashes
Replies: 13
Views: 20255

More info. This is the console output prior to crash:

terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct null not valid
by edcolmar
Wed Jan 01, 2014 6:44 pm
Forum: General Discussion
Topic: cs:go server crashes
Replies: 13
Views: 20255

cs:go server crashes

Hey Guys. First of all, thanks everyone for all the help the past few weeks. I really appreciate it, and I would like to send you all some bitcoin as a thank you. Post your bitcoin wallet address or PM me with it. I am getting some csgo server crashes fairly regularly, which I don't think have anyth...
by edcolmar
Sun Dec 22, 2013 10:40 pm
Forum: General Discussion
Topic: Supported games?
Replies: 1
Views: 4561

Supported games?

At this time, which games are working with source python?
by edcolmar
Sat Dec 21, 2013 2:23 am
Forum: Plugin Development Support
Topic: kick player, send message
Replies: 8
Views: 13206

Thanks again Ayuto!
by edcolmar
Fri Dec 20, 2013 11:21 pm
Forum: Plugin Development Support
Topic: load script automatically
Replies: 2
Views: 5261

Thank you!
by edcolmar
Fri Dec 20, 2013 7:38 pm
Forum: Plugin Development Support
Topic: kick player, send message
Replies: 8
Views: 13206

Thank you Ayuto. It is kicking now, but not displaying the reason, only giving a default reason.
by edcolmar
Fri Dec 20, 2013 7:30 pm
Forum: Plugin Development Support
Topic: kick player, send message
Replies: 8
Views: 13206

An error occurred importing SayText2. Is there a workaround for this? [SP] Caught an Exception: Traceback (most recent call last): File '../addons/source-python/packages/source-python/addons/manager.py', line 48, in __missing__ instance = _LoadedAddon(addon_name) File '../addons/source-python/packag...
by edcolmar
Fri Dec 20, 2013 7:08 pm
Forum: Plugin Development Support
Topic: load script automatically
Replies: 2
Views: 5261

load script automatically

Is there a config setting somewhere where I can have it pull in my script every time by default?
by edcolmar
Fri Dec 20, 2013 6:34 pm
Forum: Plugin Development Support
Topic: kick player, send message
Replies: 8
Views: 13206

Working on kick... both with and without the ";" I am seeing: CEngineServer.server_command('kickid %s %s' % (userid, message)) Boost.Python.ArgumentError: Python argument types in CEngineServer.server_command(str) did not match C++ signature: server_command(CEngineServer {lvalue}, char const* command)
by edcolmar
Fri Dec 20, 2013 12:33 am
Forum: Plugin Development Support
Topic: kick player, send message
Replies: 8
Views: 13206

kick player, send message

Hey Guys.

Thanks for all the help recently.

Could you give me code examples for:

how to kick a player from the server
how to send a text message to a player in the chat window

Thanks so much.
by edcolmar
Sun Dec 15, 2013 4:50 am
Forum: Plugin Development Support
Topic: General Issue with some wraps
Replies: 7
Views: 11174

Is this close? @Event def player_connect(game_event): print("Player Connect") userid = game_event.get_int('userid') print("userid: %s" % userid) edict = edict_from_userid(userid) playerinfo = edict.get_prop('playerinfo') [SP] Caught an Exception: Traceback (most recent call last): File '../addons/so...
by edcolmar
Sun Dec 15, 2013 4:24 am
Forum: Plugin Development Support
Topic: General Issue with some wraps
Replies: 7
Views: 11174

Thanks for the reply, but I don't quite follow. Could you paste an example?
by edcolmar
Sat Dec 14, 2013 11:15 pm
Forum: Plugin Development Support
Topic: General Issue with some wraps
Replies: 7
Views: 11174

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

Go to advanced search