Search found 1687 matches

by satoon101
Thu Jun 20, 2019 8:24 pm
Forum: Plugin Development Support
Topic: [solved] Loading plugin fails (built-in module name)
Replies: 7
Views: 223

Re: Loading plugin fails (built-in module name)

That message will be printed if the following conditional is met: https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/addons/source-python/packages/source-python/plugins/manager.py#L181 Add some debug messages in there before the 'raise' statement to see what the values of 'spec', 's...
by satoon101
Wed May 29, 2019 7:45 pm
Forum: Plugin Requests
Topic: killstreaks for hl2dm
Replies: 8
Views: 341

Re: killstreaks for hl2dm

That still doesn't fully take suicides into account. I can't remember which cases happen when, but the attacker can be either 0 or the same as the victim when the death is a suicide. Not taking that into account can lead to setting a victim to 0 kills in the kill_dict, but then incrementing it by 1....
by satoon101
Tue May 28, 2019 11:22 pm
Forum: Plugin Requests
Topic: [HL2:DM] Headshot Help
Replies: 64
Views: 9520

Re: [HL2:DM] Headshot Help

That Traceback does match the script in the linked post. I'm not sure in what situation the attacker equals the inflictor and it is not a player. It's either a weird HL2:DM issue or I believe you mentioned you have custom weapons on your server, which could be causing this. If you would, try this ou...
by satoon101
Tue May 28, 2019 7:10 pm
Forum: Plugin Requests
Topic: [HL2:DM] Headshot Help
Replies: 64
Views: 9520

Re: [HL2:DM] Headshot Help

Also, there are 3 different plugins represented in your Tracebacks: blood, headshot, explosive

It would help if you only post the ones relevant to this thread.
by satoon101
Tue May 21, 2019 8:22 pm
Forum: Plugin Requests
Topic: RPG Explosion Smoke Ring
Replies: 7
Views: 256

Re: RPG Explosion Smoke Ring

For Python code tags, use [python]your code here[/python]
by satoon101
Tue May 21, 2019 7:59 pm
Forum: Plugin Development Support
Topic: source-python
Replies: 4
Views: 168

Re: source-python

I'm thinking that may have just been a copy/paste issue, because that error wouldn't occur due to that. The issue is that the script that creates a Delay object is not using args/kwargs correctly. Though, at first glance, I don't see any issues with the code that was linked to in your other thread. ...
by satoon101
Tue May 21, 2019 7:45 pm
Forum: Plugin Development Support
Topic: source-python
Replies: 4
Views: 168

Re: source-python

Did you edit the server's ../addons/source-python/packages/source-python/listeners/tick.py file? That line from your Traceback looks incorrect. It should be: https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/addons/source-python/packages/source-python/listeners/tick.py#L161 Not sur...
by satoon101
Wed May 08, 2019 3:22 pm
Forum: Plugin Releases
Topic: Map Decal Painter
Replies: 18
Views: 2737

Re: Map Decal Painter

The error is coming from your coords file. Did you update it in the same way that Doldol mentioned in his last post?
by satoon101
Sun May 05, 2019 11:53 pm
Forum: General Discussion
Topic: Code completion doesn't work with Source.Python
Replies: 8
Views: 1049

Re: Code completion doesn't work with Source.Python

That's an awesome start! We also have access to their docstrings, which not only describes the function/method/etc, but lists the arguments and return type, as well.
by satoon101
Fri May 03, 2019 6:18 pm
Forum: General Discussion
Topic: [CS:GO] SourcePython + SourceMod
Replies: 11
Views: 419

Re: [CS:GO] SourcePython + SourceMod

This is a known issue with memory hooking functionality. I thought we had it documented somewhere, but searching via mobile is not finding it. When you say "putting plugin_load ... in server.cfg", do you mean just loading SP that way or did you do that with all of the server plugins? You s...
by satoon101
Tue Apr 30, 2019 12:50 am
Forum: Plugin Releases
Topic: Map Decal Painter
Replies: 18
Views: 2737

Re: Map Decal Painter

This plugin was written a long time ago and uses functionality that has been moved/removed/renamed. Doldol was last on the site a couple weeks ago, so let's give him some more time to see this and determine if he wants to fix it. If not, I might look at it this weekend.
by satoon101
Tue Apr 30, 2019 12:47 am
Forum: General Discussion
Topic: sourcepython installation broken
Replies: 5
Views: 344

Re: sourcepython installation broken

To be fair, we do also include the path.py 3rd party package which can do pretty much everything in pathlib and then some. When we started this Source.Python, Python3.4 (the first version to include pathlib) was still a ways off so we didn't have the option of using a built-in pathlib. https://pypi....
by satoon101
Wed Apr 24, 2019 3:10 am
Forum: General Discussion
Topic: sourcepython installation broken
Replies: 5
Views: 344

Re: sourcepython installation broken

Those are settings that you can change for any server. The original values that populate those settings are defaults, not constants. It would not be a good idea to reset them every time SP starts, because some servers might legitimately change those paths for their specific situation/needs. Perhaps ...
by satoon101
Sun Apr 14, 2019 1:54 pm
Forum: General Discussion
Topic: ES/Python Traceback
Replies: 10
Views: 417

Re: ES/Python Traceback

The first one does not contain the full traceback, so hard to tell. The second looks like a command is being sent without all the necessary arguments.
by satoon101
Sun Mar 31, 2019 2:41 am
Forum: Plugin Development Support
Topic: [HL2:DM] effects
Replies: 2
Views: 203

Re: [HL2:DM] effects

create is a classmethod. Change that line to:

Syntax: Select all

entity = Entity.create('point_hurt')
by satoon101
Thu Mar 07, 2019 2:29 am
Forum: Plugin Requests
Topic: Respawn?
Replies: 7
Views: 476

Re: Respawn?

It's been awhile, but I think this will work:

Syntax: Select all

from commands.say import SayCommand
from players.entity import Player


@SayCommand('!respawn')
def respawn_player(command, index, team_only):
Player(index).spawn()
by satoon101
Mon Dec 24, 2018 10:18 pm
Forum: General Discussion
Topic: PyCharm Project Setup
Replies: 3
Views: 518

Re: PyCharm Project Setup

I am currently on holiday and will be moving later this week, as well, so I won't be able to help further till next week at the earliest.
by satoon101
Mon Dec 24, 2018 12:52 pm
Forum: General Discussion
Topic: PyCharm Project Setup
Replies: 3
Views: 518

Re: PyCharm Project Setup

You might check out my reply here:
viewtopic.php?f=9&t=1314
by satoon101
Sun Dec 09, 2018 4:20 pm
Forum: General Discussion
Topic: All SP Offsets outdated after CS:GO update
Replies: 8
Views: 1276

Re: All SP Offsets outdated after CS:GO update

Most of the others have been updated this morning. There are only a few TODOs remaining.

https://github.com/Source-Python-Dev-Te ... f...master
by satoon101
Thu Nov 29, 2018 11:28 am
Forum: Plugin Development Support
Topic: Strange behavior with my implementation of player.set_active_weapon()
Replies: 6
Views: 823

Re: Strange behavior with my implementation of player.set_active_weapon()

A couple other minor optimizations from that code: Technically, using the prefix would break for some other games where the prefix is not always used/consistent. Plus, we already have access to the name without any prefix, so why bother. # Build a list of weapons without prefix weapons = [weapon.bas...

Go to advanced search