Search found 1243 matches

by Ayuto
Thu Jun 20, 2019 4:54 pm
Forum: Development Status Updates
Topic: Development status update (May 2019)
Replies: 0
Views: 45

Development status update (May 2019)

It's time for another development status update! :smile: ⋅ Fixes: ⋅  "sp dump server_classes" now dumps the correct int sizes. ⋅  Fixed issue #275. ⋅ Additions: ⋅  Added core.get_core_modules(). ⋅ Removals: ⋅ Changes: &s...
by Ayuto
Thu Jun 20, 2019 3:52 pm
Forum: Plugin Development Support
Topic: CSGO Linux - Server crash on player.kick
Replies: 3
Views: 89

Re: CSGO Linux - Server crash on player.kick

Does it crash if you use my snippet above? What happens if you don't use a kick message? What's the output of "sp info" and "sm plugin list"? And could you please show me your code that causes the crash?

Edit: Yes, tested it with CS:GO on Linux.
by Ayuto
Wed Jun 19, 2019 6:43 pm
Forum: Plugin Development Support
Topic: CSGO Linux - Server crash on player.kick
Replies: 3
Views: 89

Re: CSGO Linux - Server crash on player.kick

I'm unable to reproduce the issue using this snippet: from events import Event from players.entity import Player @Event('player_say') def player_say(event): player = Player.from_userid(event['userid']) player.kick('blabla') # player.kick(&#...
by Ayuto
Sun Jun 16, 2019 6:44 pm
Forum: Plugin Development Support
Topic: Loading plugin fails (built-in module name)
Replies: 6
Views: 167

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

Either look through those directories or load this plugin:

Syntax: Select all

import udm

print(udm.__file__)
by Ayuto
Tue Jun 11, 2019 9:08 pm
Forum: Plugin Development Support
Topic: [CS:GO] Removing Warmup HUD
Replies: 5
Views: 236

Re: [CS:GO] Removing Warmup HUD

I don't think there is another way, because it seems to be controlled by the client.

There is one last thing you could try: send some fake convar values to the client using <Player>.send_convar_value() to make the client think he's not playing in warmup mode.
by Ayuto
Sun Jun 09, 2019 6:54 am
Forum: General Discussion
Topic: [CSGO] parent-inherited permissions doesn't show in Player.permissions property
Replies: 5
Views: 264

Re: [CSGO] parent-inherited permissions doesn't show in Player.permissions property

We have overloaded the ___contains__ method: https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/addons/source-python/packages/source-python/auth/manager.py#L149 So, you can grant a player the permission something.*. If you then check if he has something.x or something.y it will retu...
by Ayuto
Sat Jun 08, 2019 5:08 am
Forum: General Discussion
Topic: [CSGO] parent-inherited permissions doesn't show in Player.permissions property
Replies: 5
Views: 264

Re: [CSGO] parent-inherited permissions doesn't show in Player.permissions property

Yes, it's intended. If you want to see all permissions, you need to call player.permissions.flatten().
by Ayuto
Mon Jun 03, 2019 4:16 am
Forum: Plugin Development Support
Topic: SayCommand: Print player's message before processing a command
Replies: 1
Views: 131

Re: SayCommand: Print player's message before processing a command

I think the player_say event should work for that case.
by Ayuto
Sun Jun 02, 2019 7:18 am
Forum: Plugin Requests
Topic: [HL2:DM] Infinite aux power for sprinting OR breathing
Replies: 20
Views: 2858

Re: [HL2:DM] Infinite aux power for sprinting OR breathing

Just commited a fix:
https://github.com/Source-Python-Dev-Te ... b201fd0b2a

I will publish a new release today (version 690).
by Ayuto
Sun Jun 02, 2019 7:13 am
Forum: Plugin Releases
Topic: Map Decal Painter
Replies: 18
Views: 2689

Re: Map Decal Painter

The first error shouldn't happen if you use the latest version from GitHub. The second error is the same error you already posted here. Your coords file is malformed.
by Ayuto
Sun Jun 02, 2019 7:06 am
Forum: Plugin Requests
Topic: [HL2:DM] Deathmsg Help
Replies: 12
Views: 2686

Re: [HL2:DM] Deathmsg Help

I fixed that already a few days ago. Just haven't created a new release:
https://github.com/Source-Python-Dev-Te ... 60f67d519d

I will do that today.
by Ayuto
Fri May 31, 2019 1:52 pm
Forum: Plugin Development Support
Topic: [CS:GO] Removing Warmup HUD
Replies: 5
Views: 236

Re: [CS:GO] Removing Warmup HUD

I first thought that it's sent by a user message, but that wasn't the case. However, this works fine: from players.entity import Player from events import Event from players.constants import HIDEHUD_MISCSTATUS @Event('player_say') def player_say(event): # Hide the warmup coun...
by Ayuto
Tue May 28, 2019 8:41 pm
Forum: Plugin Requests
Topic: [HL2:DM] Mapconfig Plugin no longer work :(
Replies: 6
Views: 329

Re: [HL2:DM] Mapconfig Plugin no longer work :(

Did you add mp_teamplay <mode> to the correct map config file?
by Ayuto
Tue May 28, 2019 8:40 pm
Forum: Plugin Requests
Topic: [HL2:DM] Headshot Help
Replies: 64
Views: 9416

Re: [HL2:DM] Headshot Help

There are multiple versions of that script in this thread. Which version do you use? This should be the latest one: https://forums.sourcepython.com/viewtopic.php?p=9456#p9456 None of your tracebacks match that code, so please try that code and see if the issue still occurs. Did you even read this? ...
by Ayuto
Tue May 28, 2019 8:31 pm
Forum: Plugin Requests
Topic: [HL2:DM] One Mapchange to Tdm and DM
Replies: 9
Views: 1197

Re: [HL2:DM] One Mapchange to Tdm and DM

Looks like you modified the script above locally. As you can see line 7 of the script above ends with a colon. The error message you posted says that your script doesn't has this colon. That's why you get a SyntaxError.

I'm really getting tired of this...
by Ayuto
Tue May 28, 2019 8:27 pm
Forum: Plugin Releases
Topic: [CSS/CSGO] Warcraft: Source
Replies: 59
Views: 6579

Re: [CSS/CSGO] Warcraft: Source

by Ayuto
Tue May 28, 2019 8:26 pm
Forum: Plugin Requests
Topic: [HL2:DM] Mapconfig Plugin no longer work :(
Replies: 6
Views: 329

Re: [HL2:DM] Mapconfig Plugin no longer work :(

Try this quick and dirty edit: import os from cvars import cvar from listeners.tick import Delay from paths import BASE_PATH, GAME_PATH from commands.server import ServerCommand from listeners.tick import Delay from engines.server import global_vars from supermod import functions #from supermod.modu...
by Ayuto
Tue May 28, 2019 7:20 pm
Forum: Plugin Development Support
Topic: [CS:GO] Removing Warmup HUD
Replies: 5
Views: 236

Re: [CS:GO] Removing Warmup HUD

Do you mean the warmup countdown?
by Ayuto
Tue May 28, 2019 7:09 pm
Forum: Plugin Releases
Topic: [CSS/CSGO] Warcraft: Source
Replies: 59
Views: 6579

Re: [CSS/CSGO] Warcraft: Source

That sounds like an invalid (cached?) player instance gets accessed. Did you update your WCS installation in the past 5 days? Because Tha Pwned commited a fix for that:
https://github.com/ThaPwned/WCS/commit/ ... 48da759ba4
by Ayuto
Tue May 28, 2019 7:05 pm
Forum: Plugin Requests
Topic: [HL2:DM] Headshot Help
Replies: 64
Views: 9416

Re: [HL2:DM] Headshot Help

There are multiple versions of that script in this thread. Which version do you use? This should be the latest one:
viewtopic.php?p=9456#p9456

None of your tracebacks match that code, so please try that code and see if the issue still occurs.

Go to advanced search