Search found 416 matches

by decompile
Wed Jul 06, 2022 12:40 pm
Forum: Plugin Development Support
Topic: print UnicodeEncodeError
Replies: 4
Views: 3038

print UnicodeEncodeError

Hey! I'm usually printing alot of informations to the console, to just know what's currently going. I've figured out that for some reason, I'm getting UnicodeEncodeErrors when printing player names with special characters, but its seems to be very random, because its fixed after restarting the whole...
by decompile
Fri Jun 24, 2022 9:11 pm
Forum: Plugin Development Support
Topic: CS:GO - ***** OUT OF MEMORY! attempted allocation size: 4025578528 ****
Replies: 3
Views: 3671

Re: CS:GO - ***** OUT OF MEMORY! attempted allocation size: 4025578528 ****

Glad to know the issue is known! Thanks for your fast work :)
by decompile
Fri Jun 24, 2022 8:25 pm
Forum: Plugin Development Support
Topic: CS:GO - ***** OUT OF MEMORY! attempted allocation size: 4025578528 ****
Replies: 3
Views: 3671

CS:GO - ***** OUT OF MEMORY! attempted allocation size: 4025578528 ****

Hi, todays server update for CS:GO temporarily broke community servers which were running sourcemod. It looks like KeyValues were updated which you can see here: https://github.com/alliedmodders/hl2sdk/pull/102 Since the update, I'm also getting an error when loading my plugin via autoexec on Linux ...
by decompile
Tue Oct 05, 2021 3:55 pm
Forum: Plugin Development Support
Topic: Merge Folders
Replies: 6
Views: 4519

Re: Merge Folders

Works perfectly, thanks!
by decompile
Sat Oct 02, 2021 6:40 pm
Forum: Plugin Development Support
Topic: Merge Folders
Replies: 6
Views: 4519

Re: Merge Folders

Thanks!

I'm gonna try this:
https://stackoverflow.com/a/22331852
by decompile
Sat Oct 02, 2021 12:55 pm
Forum: Plugin Development Support
Topic: Merge Folders
Replies: 6
Views: 4519

Re: Merge Folders

SOURCE_PATH.copytree(GAME_PATH) Sadly results in an FileExistsError: NEW_UPDATE_PATH.copytree(GAME_PATH) File "..\addons\source-python\Python3\shutil.py", line 315, in copytree os.makedirs(dst) File "..\addons\source-python\Python3\os.py", line 220, in makedirs mkdir(nam...
by decompile
Sat Oct 02, 2021 1:23 am
Forum: Plugin Development Support
Topic: Merge Folders
Replies: 6
Views: 4519

Merge Folders

Hey! I'm currently trying to write an updater for my plugin and I encountered a problem. So what it basically does is download the master version, unzip it into a temporary folder, remove existing files and then extract the unzipped files to the server files. from distutils.dir_util import copy_tree...
by decompile
Wed Sep 22, 2021 2:42 pm
Forum: Plugin Development Support
Topic: Send a message in the cs:s chat
Replies: 3
Views: 3092

Re: Send a message in the cs:s chat

Can you print your "sp info" output into here, and also include a way so we can replicate it
by decompile
Sun Jul 11, 2021 1:44 pm
Forum: Plugin Development Support
Topic: enable voicechat in danger zone
Replies: 8
Views: 4551

Re: enable voicechat in danger zone

Did you try sv_full_alltalk 1 yet?
by decompile
Sun Jun 27, 2021 1:54 am
Forum: Plugin Development Support
Topic: How to check for player surfing
Replies: 2
Views: 2930

Re: How to check for player surfing

Hello, by searching older forum posts, I finally figured out how to convert the snippet and It looks like its working as it should. Thanks to both Kami & VinciT for sharing their GameTrace snippets on the forums which helped me figure it out: @Kami - https://forums.sourcepython.com/viewtopic.php...
by decompile
Sat Jun 26, 2021 1:39 am
Forum: Plugin Development Support
Topic: How to check for player surfing
Replies: 2
Views: 2930

Re: Player is surfing

Does anyone have an idea? But I never worked with TraceFilter's. Help is very appreciated. Found the following on sourcemod forums: If you wanna check if they're currently on a surf ramp, you can do a trace hull and check the plane normal. IIRC for a plane to be surfable, the normal z has to be <= 0...
by decompile
Fri Jun 04, 2021 12:30 pm
Forum: Plugin Development Support
Topic: How to check for player surfing
Replies: 2
Views: 2930

How to check for player surfing

Hello, I was wondering if someone could please create me a snippet for checking if a player is currently surfing, possibly with comments aswell. I was checking around and found that you can do that with TraceFilters, but I have no experience in using them in Source.Python. Maybe this could be useful...
by decompile
Fri Mar 05, 2021 3:04 pm
Forum: Plugin Development Support
Topic: Character limit for 255 bytes
Replies: 6
Views: 6609

Re: Character limit for 255 bytes

Thank you.

I will try to play around with it. I was trying to find how SayText2 gets the string out of a TranslationStrings class instance but didn't had a success, but looks like its just TranslationStrings.message to return the string.
by decompile
Wed Mar 03, 2021 6:27 pm
Forum: Plugin Development Support
Topic: Character limit for 255 bytes
Replies: 6
Views: 6609

Re: Character limit for 255 bytes

Sorry to bump an older thread of mine. But how can I apply these to a TranslationStrings instance? It throws me an: AttributeError: 'TranslationStrings' object has no attribute 'encode' I'm using TranslationStrings to tokenize player names and other stuff, so its very dynamic in length. The best wou...
by decompile
Tue Mar 02, 2021 12:29 pm
Forum: Plugin Development Support
Topic: Streaming audio to clients
Replies: 4
Views: 3950

Re: Streaming audio to clients

What about making a custom page which basically autoplays in the background when you open the url?
by decompile
Sat Feb 13, 2021 12:28 pm
Forum: Plugin Development Support
Topic: Threaded Menu crash
Replies: 7
Views: 4598

Re: Threaded Menu crash

Hi, sorry for the late response, I haven't found the time to reply yet. My crashing issue has been resolved, after Ayuto checking out the functions I was using. The reason for the crash was, that I was building the menu in a seperate thread, which allowed the main thread & seperate thread to col...
by decompile
Sun Feb 07, 2021 7:08 am
Forum: Plugin Development Support
Topic: Threaded Menu crash
Replies: 7
Views: 4598

Re: Threaded Menu crash

As stated in the second line, I have no way to reproduce this code. I cant explain why it happens.
by decompile
Sun Feb 07, 2021 5:24 am
Forum: Plugin Development Support
Topic: Threaded Menu crash
Replies: 7
Views: 4598

Threaded Menu crash

Hey, I'm currently having a random server crash on sending a threaded menu which I cant replicate. It just happens randomly, mostly it works and then suddenly it crashes. loading_state = itertools.cycle([' ', '. ', '.. ', '...']) def build_loading_menu(men...
by decompile
Sat Feb 06, 2021 5:11 pm
Forum: Plugin Development Support
Topic: Overlap menu's
Replies: 2
Views: 2251

Re: Overlap menu's

Thank you Ayuto!

Definitely useful to know. I will try to play with it.

Is there actually a limit how many items a menu can take for example in: PagedMenu

Go to advanced search