Search found 825 matches

by Ayuto
Mon Mar 27, 2017 3:53 pm
Forum: Plugin Development Support
Topic: Detonate a smoke grenade
Replies: 16
Views: 185

Re: Detonate a smoke grenade

Please post the code to reproduce the crash (a copy and pasteable plugin) including the output of "sp info".
by Ayuto
Sat Mar 25, 2017 10:24 am
Forum: Plugin Development Support
Topic: [CSGO] Error in Sp after last Csgo update
Replies: 2
Views: 32

Re: [CSGO] Error in Sp after last Csgo update

Thanks for reporting! Should be fixed with the next version:
https://github.com/Source-Python-Dev-Te ... d231b63941
by Ayuto
Sat Mar 25, 2017 10:06 am
Forum: Plugin Development Support
Topic: Detonate a smoke grenade
Replies: 16
Views: 185

Re: Detonate a smoke grenade

If you want to make the Linux symbols visible again, you can use the attached IDA Python script and database. The database is basically a dump of all functions and their signatures I created with the last version of the server.so where symbols were still visible. The script reads this database, sear...
by Ayuto
Sun Mar 12, 2017 10:33 am
Forum: Plugin Development Support
Topic: [CSGO] Problem with clan tag
Replies: 8
Views: 93

Re: [CSGO] Problem with clan tag

The clan tag issue will be fixed with the next version: https://github.com/Source-Python-Dev-Team/Source.Python/commit/63803b68a2d99b5ca9cc813e0e2142e87288cb60 Regarding the cookie question: i think you are looking for our settings module: http://wiki.sourcepython.com/developing/modules/settings.htm...
by Ayuto
Fri Mar 10, 2017 6:08 pm
Forum: Plugin Development Support
Topic: [TF2] Retrieving the amount of ammo in a gun
Replies: 6
Views: 115

Re: [TF2] Retrieving the amount of ammo in a gun

Could you please post the exception you get? Also, which weapon did you test?
by Ayuto
Tue Mar 07, 2017 6:39 pm
Forum: Development Status Updates
Topic: Development status update (February 2017)
Replies: 0
Views: 65

Development status update (February 2017)

It's time for another development status update! :smile: ⋅ Fixes: ⋅  Fixed issue #181. ⋅  Fixed weapon restriction. ⋅  Fixed a crash when passing the ConVar name as a keyword argument. ⋅  Fixed error when trying to build docs for a plugin. ⋅&nbs...
by Ayuto
Tue Feb 28, 2017 7:22 pm
Forum: Plugin Development Support
Topic: closing menus
Replies: 3
Views: 79

Re: closing menus

We don't use names for our menus, because that was quite annoying in ES and is actually redundant and not OOP. There are multiple ways to solve your issue: ⋅ Use a build callback instead of creating a new menu everytime in your function. ⋅ Use the caching you mentioned. That shou...
by Ayuto
Mon Feb 27, 2017 9:17 pm
Forum: Plugin Development Support
Topic: Error on take_damage
Replies: 10
Views: 134

Re: Error on take_damage

Oh yes my bad. If I precise attacker_index and weapon_index it should work ? But i don't understand the problem of index. Your "index" variable stores the index of a weapon of the attacker. Then you create a delay to deal damage to the victim using that index. But when the delay is execut...
by Ayuto
Mon Feb 27, 2017 8:17 pm
Forum: Plugin Development Support
Topic: Error on take_damage
Replies: 10
Views: 134

Re: Error on take_damage

The error is probably caused by these lines: Delay(1, victim.take_damage, (self._poison_damage, attacker.index, index)) Delay(2, victim.take_damage, (self._poison_damage, attacker.index, index)) Delay(3, victim.take_damage, (self._poison_damage, attacker.index...
by Ayuto
Mon Feb 27, 2017 7:41 pm
Forum: Plugin Development Support
Topic: closing menus
Replies: 3
Views: 79

Re: closing menus

This closes the active menu (if there is one) of a specific player. user_queue = PagedMenu.get_user_queue(<index>) if user_queue.active_menu is not None: user_queue.active_menu.close(<index>) Though, closing the active menu doesn't ensure that only one menu is opened/queued. There co...
by Ayuto
Sun Feb 26, 2017 1:17 pm
Forum: API Design
Topic: menu package
Replies: 1
Views: 91

Re: menu package

The reason why Back and Next are always shown is that it provides a constant appearance. If you whish to customize this behaviour, you can subclass PagedRadioMenu and implement your own _format_footer method: https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/addons/source-python/pa...
by Ayuto
Wed Feb 22, 2017 6:01 am
Forum: Plugin Requests
Topic: [HL2:DM] es_blood to sp blood
Replies: 39
Views: 807

Re: [HL2:DM] es_blood to sp blood

The error might occur, because he didn't follow the update guide.
by Ayuto
Tue Feb 21, 2017 8:26 pm
Forum: Plugin Development Support
Topic: Apply skin cause csgo game crash
Replies: 16
Views: 285

Re: Apply skin cause csgo game crash

Alright, just tested it and noticed that the client crashes. I thought you were talking about the server.
I will take a closer look at it tomorrow.

Since the server doesn't crash, it's correct that no debug.log is generated.
by Ayuto
Tue Feb 21, 2017 7:07 pm
Forum: Plugin Development Support
Topic: Apply skin cause csgo game crash
Replies: 16
Views: 285

Re: Apply skin cause csgo game crash

Could you please also disable MM, add -debug to your command line and test again? If that still crashes, please post the resulting debug.log. I will then do some tests on my own and get back to you.
by Ayuto
Tue Feb 21, 2017 7:03 pm
Forum: Plugin Development Support
Topic: [CSS] Get current round
Replies: 1
Views: 77

Re: [CSS] Get current round

Currently, there is no such function available, but you can simply sum the wins of all teams, which usually reflects the round count. from players.teams import team_managers from filters.entities import EntityIter def get_round_count(): return sum(entity.score for entity in EntityIter...
by Ayuto
Tue Feb 21, 2017 6:50 pm
Forum: Plugin Development Support
Topic: Apply skin cause csgo game crash
Replies: 16
Views: 285

Re: Apply skin cause csgo game crash

existenz wrote:Sp Info :
Date : 2017-02-21 18:25:36.446163
OS : Linux-3.16.0-4-amd64-x86_64-with-debian-8.7
Game : csgo
SP version : 552

What about the server plugins and SP plugins part?
by Ayuto
Tue Feb 21, 2017 5:36 pm
Forum: Plugin Development Support
Topic: Apply skin cause csgo game crash
Replies: 16
Views: 285

Re: Apply skin cause csgo game crash

Does your server crash if you use Mahi's code?
viewtopic.php?p=9856#p9856

Also, please post the output of "sp info".
by Ayuto
Mon Feb 20, 2017 9:03 pm
Forum: Plugin Requests
Topic: [ANY] Game Desc Override
Replies: 13
Views: 399

Re: [ANY] Game Desc Override

Ayuto wrote:Though, I just did a few tests and noticed that the description for the server browser is only retrieved once.

With a GetGameDescription hook, you can only set it once via autoexec.cfg.
by Ayuto
Mon Feb 20, 2017 6:47 pm
Forum: Plugin Development Support
Topic: Chat colors
Replies: 6
Views: 147

Re: Chat colors

You can send the colored message using SayText2 and then send the uncolored message via core.echo_console().
by Ayuto
Mon Feb 20, 2017 6:44 pm
Forum: Plugin Development Support
Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
Replies: 73
Views: 2910

Re: Modifying chat with sayfilter but SayCommand doesnt "register"

viewtopic.php?p=7944#p7944

I have changed RecipientFilter to BaseRecipientFilter. That will probably fix the issue with SM.

Go to advanced search