Search found 1362 matches
- Thu Feb 18, 2021 2:00 pm
- Forum: Plugin Development Support
- Topic: Streaming audio to clients
- Replies: 4
- Views: 194
Re: Streaming audio to clients
I'm currently unable to provide an example, but IIRC this was possible with some kind of a hidden MOTD. Maybe that helps to start the research?
- Fri Feb 12, 2021 6:39 pm
- Forum: Plugin Development Support
- Topic: [Cs:s] Ban Counter
- Replies: 3
- Views: 172
Re: [Cs:s] Ban Counter
You need to take every unit into account. E. g. something like this: # A tuple that stores the seconds to unit conversion factor. UNITS = ( # You can enable/disable a unit by simply commenting it out # or remove the comment. #('month', 'months', 1 * 60 * 60 * 24 * 30), ...
- Mon Feb 08, 2021 12:41 pm
- Forum: Plugin Development Support
- Topic: Threaded Menu crash
- Replies: 7
- Views: 359
Re: Threaded Menu crash
Yeah, I thought about a mutex as well, but discarded the idea, because the best solution is to simply send the user message in the main thread. A generic solution might be to pre-hook UserMessageBegin and set the lock and post-hook MessageEnd and unlock.
- Sun Feb 07, 2021 3:00 pm
- Forum: Plugin Development Support
- Topic: Threaded Menu crash
- Replies: 7
- Views: 359
Re: Threaded Menu crash
Additionally, to your PM, this might help understanding the problem: # Only an empty CS:S server is required for this test/explanation plugin. # No bots; no players. Just load this test plugin with test1 uncommented. # Then comment out test1, uncomment test2 and reload. Continue like that with test3...
- Sun Feb 07, 2021 8:22 am
- Forum: Plugin Development Support
- Topic: Threaded Menu crash
- Replies: 7
- Views: 359
Re: Threaded Menu crash
Well, I have an assumption, but I would need to see the full test code (especially your Thread class). I guess it doesn't execute the menu.send() line atomically. So, a user message is started, but then the thread is being switched and another one is started. https://en.m.wikipedia.org/wiki/Context_...
- Sun Feb 07, 2021 6:25 am
- Forum: Plugin Development Support
- Topic: Threaded Menu crash
- Replies: 7
- Views: 359
Re: Threaded Menu crash
Please post the full test code to reproduce the crash.
- Sat Feb 06, 2021 2:49 pm
- Forum: General Discussion
- Topic: CS:S Linux crash when dropping weapon in OnTakeDamage pre-hook
- Replies: 16
- Views: 7890
Re: CS:S Linux crash when dropping weapon in OnTakeDamage pre-hook
Just in case someone stumbles about this thread: the workaround with the ecx_storage is not required anymore. You can now use this instead:
http://wiki.sourcepython.com/developing ... _registers
http://wiki.sourcepython.com/developing ... _registers
- Sat Feb 06, 2021 12:11 pm
- Forum: Plugin Development Support
- Topic: Overlap menu's
- Replies: 2
- Views: 152
Re: Overlap menu's
Yes (twice). If you have an active menu and you send another one, it gets added to the end of the queue here: https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/addons/source-python/packages/source-python/menus/base.py#L173 It doesn't get shown immediately. Only if the user or a plu...
- Sun Jan 31, 2021 5:23 pm
- Forum: Plugin Development Support
- Topic: [CS:S/CSGO] How to get list of primaries and secondaries and use able in menu?
- Replies: 7
- Views: 840
Re: [CS:S/CSGO] How to get list of primaries and secondaries and use able in menu?
Here is a quick example for WeaponClassIter: from filters.weapons import WeaponClassIter print('--- All weapons: ---') for weapon in WeaponClassIter(): print(f'{weapon.name}: {weapon.cost}') print('--- Primary weapons: ---') for weapon in Weapo...
- Sun Jan 31, 2021 4:53 pm
- Forum: Plugin Development Support
- Topic: [CS:S/CSGO] How to get list of primaries and secondaries and use able in menu?
- Replies: 7
- Views: 840
Re: [CS:S/CSGO] How to get list of primaries and secondaries and use able in menu?
The other keys are already accessible using the WeaponClass instance directly. But I noticed we didn't do that for the cost and item_definition_index, so I just added those attributes as well: https://github.com/Source-Python-Dev-Team/Source.Python/commit/970c8b554469e8a026b418f410f83ba60465c4df Aft...
- Sat Jan 30, 2021 10:38 am
- Forum: Plugin Releases
- Topic: [CS:S/CSGO] Zombie
- Replies: 19
- Views: 2105
Re: [Cs:s] Zombie
Hey, I saw you are instantiating the Player class quite often, but you are not reusing it. This is not how you are supposed to use classes in Python. So, I would like to give you a little hint. The good thing is that SP is caching the player classes, so misusing the Player class doesn't result in a ...
- Sat Jan 30, 2021 10:04 am
- Forum: Plugin Requests
- Topic: [REQUEST]Hide Radar
- Replies: 16
- Views: 1596
Re: Hide Radar (toggleable)
Alternativley, you could also add pages to your popup to make it a little bit smaller.
- Sat Jan 30, 2021 10:02 am
- Forum: Development Status Updates
- Topic: Development status update (January 2021)
- Replies: 0
- Views: 1134
Development status update (January 2021)
It's time for another development status update! ⋅ Fixes: ⋅ Fixed some issues with weapon restrictions on games other than CS:S/CS:GO. ⋅ Fixed issue #315. ⋅ Additions: ⋅ Added CEnvProjectedTexture data. ⋅ Added KeyValues.load_from_buffe...
- Tue Jan 26, 2021 3:20 pm
- Forum: Plugin Releases
- Topic: [ANY] Weapon Zoom
- Replies: 26
- Views: 2155
Re: [ANY] Weapon Zoom
That looks great!! I would like to have one as well! :D
- Fri Jan 22, 2021 6:53 am
- Forum: Plugin Releases
- Topic: [ANY] Weapon Zoom
- Replies: 26
- Views: 2155
Re: [ANY] Weapon Zoom
No you are right you can use zoom for any weapon you want, that's why I linked to the buttons. I need to look into this on the weekend. Not sure if you can set buttons via name directly (like real life name of the button) or if you have to use the PlayerButtons. No, that's not possible. The client ...
- Fri Jan 15, 2021 12:27 pm
- Forum: Plugin Releases
- Topic: Grenades noblock
- Replies: 3
- Views: 520
Re: Grenades noblock
Beside shortening the code, you can also speed it up and make it more readable. from listeners import OnNetworkedEntityCreated from weapons.manager import weapon_manager from entities.constants import CollisionGroup @OnNetworkedEntityCreated def on_entity_created(entity): if entity.classname...
- Tue Jan 12, 2021 7:11 am
- Forum: Whatever
- Topic: Server is hibernating. [CS:S]
- Replies: 8
- Views: 963
Re: Server is hibernating. [CS:S]
There is a variable, but I'm not sure whether or not it is for CSS:
viewtopic.php?f=20&t=664&p=3642&hilit=Hibernate#p3642
viewtopic.php?f=20&t=664&p=3642&hilit=Hibernate#p3642
- Wed Dec 30, 2020 10:01 pm
- Forum: Development Status Updates
- Topic: Development status update (December 2020)
- Replies: 1
- Views: 1055
Development status update (December 2020)
It's time for another development status update! ⋅ Fixes: ⋅ Fixed undefined symbols for CSendProxyRecipients. ⋅ Fixed server file not using the same encoding. ⋅ Fixed a problem with dangling references around ExtractPointer (issues #334, #372, #373). ⋅...
- Sat Dec 12, 2020 1:48 pm
- Forum: General Discussion
- Topic: How/where can I get an old version of source-python. Some TF2 plugins cause seg faults
- Replies: 7
- Views: 1502
Re: How/where can I get an old version of source-python. Some TF2 plugins cause seg faults
Please have some patience. We will get this fixed.
- Fri Dec 11, 2020 11:43 pm
- Forum: General Discussion
- Topic: Admin Plugin can't load
- Replies: 7
- Views: 1212
Re: Admin Plugin can't load
Yes, sorry, it's generated when SP is loaded the very first time. But then it defaults to english, so you must have changed that setting at some point.
Are those the full exceptions? They somehow seem to be truncated.
Are those the full exceptions? They somehow seem to be truncated.