Search found 155 matches

by Doldol
Tue Feb 14, 2017 11:59 pm
Forum: Module/Package Submissions
Topic: Threaded MySQL
Replies: 15
Views: 556

Re: Threaded MySQL

Actually, this isn't really threaded as Delay and Repeat are used, which are executed in the same thread. So, this will probably just delay the lag. You need to utilize GameThread to create real threads. First of all, it will prevent lag 100%. Delaying every single query is a good solution because ...
by Doldol
Mon Jan 23, 2017 10:39 pm
Forum: Plugin Requests
Topic: Skin Chooser
Replies: 16
Views: 764

Re: Skin Chooser

L'In20Cible wrote:http://blog.counter-strike.net/index.php/server_guidelines/


Guys, read that again, especially the bolded, and now struck through text.
by Doldol
Mon Jan 23, 2017 10:21 pm
Forum: Plugin Development Support
Topic: post json data lag
Replies: 12
Views: 626

Re: post json data lag

No need to handle the tick listener yourself, simply inherit from GameThread . I haven't found __del__ to be very reliable, especially while working with threads. http://stackoverflow.com/a/1481512 I saw bootstrap_inner, but I prefer the finer grained control writing the logic myself gives me while...
by Doldol
Mon Jan 23, 2017 10:17 pm
Forum: Plugin Development Support
Topic: post json data lag
Replies: 12
Views: 626

Re: post json data lag

Be careful, starting a Python thread can introduce lag too. (if someone were to spam !postd, 100% guaranteed the server will start to lag.). My solution would be to create one thread when your plugin starts that you can pass functions to call to, like this: import time import threading import queue...
by Doldol
Mon Jan 23, 2017 10:12 pm
Forum: Plugin Releases
Topic: [CS:GO] AdPurge
Replies: 2
Views: 300

Re: [CS:GO] AdPurge

Neat!
by Doldol
Fri Oct 07, 2016 6:48 pm
Forum: General Discussion
Topic: New CS:GO Update broke plugin(s)?
Replies: 16
Views: 867

Re: New CS:GO Update broke plugin(s)?

I can confirm SP loads without errors on Ubuntu Server 14 LTS with the new CSGO update

sp version:
Current Source.Python version: 346
by Doldol
Thu Sep 29, 2016 6:06 pm
Forum: General Discussion
Topic: Using CS:S Model Size in CS:GO
Replies: 24
Views: 1122

Re: Using CS:S Model Size in CS:GO

Why don't try and convert the base CSS player models to CSGO? Or edit some CSGO models to be the appropriate size?
by Doldol
Thu Sep 29, 2016 5:49 pm
Forum: General Discussion
Topic: Working of Cache-mem using Queue in Python
Replies: 1
Views: 242

Re: Working of Cache-mem using Queue in Python

You can't test for collection membership on Queues (aka you can't use 'in' on them). >>> 1 in queue.Queue() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: argument of type 'Queue' is not iterable You could fix that by using deque (...
by Doldol
Sat Sep 24, 2016 1:43 am
Forum: General Discussion
Topic: Builds > Download
Replies: 2
Views: 268

Re: Builds > Download

Top of every forum page > Builds > click your game > profit!? If anything a unified layout would be nice (where you always have the top nav bar, same look, etc), but since a lot of stuff (source/builds) are hosted externally that's virtually impossible and time is better spend on making SP better th...
by Doldol
Sat Sep 24, 2016 1:31 am
Forum: Plugin Development Support
Topic: Connection between multiple servers
Replies: 3
Views: 205

Re: Connection between multiple servers

You could use a database, but that isn't optimal and not what a database is designed for. Peer to peer also isn't optimal, because every server will have to keep a connection open to every other server, which is wasteful. Best thing to do would be to have a centralized server to which all your serve...
by Doldol
Fri Sep 23, 2016 9:05 pm
Forum: Plugin Development Support
Topic: Error when trying to use Player's metaclass with SQLAlchemy's
Replies: 17
Views: 788

Re: Error when trying to use Player's metaclass with SQLAlchemy's

100% a SourcePython Issue. And it's not because you're using metaclasses. from events import Event from players.entity import Player class My1Player(Player): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) class My2Player(Player): def __...
by Doldol
Mon Sep 12, 2016 9:40 pm
Forum: Plugin Development Support
Topic: post json data lag
Replies: 12
Views: 626

Re: post json data lag

Be careful, starting a Python thread can introduce lag too. (if someone were to spam !postd, 100% guaranteed the server will start to lag.). My solution would be to create one thread when your plugin starts that you can pass functions to call to, like this: import time import threading import queue ...
by Doldol
Fri Sep 09, 2016 7:38 am
Forum: Plugin Requests
Topic: Speed + Gravity
Replies: 3
Views: 307

Re: Speed + Gravity

Put in /cstrike/addons/source-python/plugins/{x}/{x}.py where " {x} " is whatever name you want. SPEED_MOD = 1.0 GRAVITY_MOD = 1.0 PERMISSION = "f" SAY_COMMAND = "!sg" CLIENT_COMMAND = "cmd_sg" # Probably should not use sm_ as that signifies SourceMod, which t...
by Doldol
Thu Sep 08, 2016 6:08 am
Forum: Plugin Releases
Topic: Hero Wars (Alpha)
Replies: 32
Views: 3738

Re: Hero Wars (Alpha)

That sounds great Mahi & Predz :)
by Doldol
Mon Sep 05, 2016 10:35 pm
Forum: Plugin Releases
Topic: Hero Wars (Alpha)
Replies: 32
Views: 3738

Re: Hero Wars (Alpha)

Sad to see this die, site + repo down. Is the source still available somewhere?
by Doldol
Mon Sep 05, 2016 4:28 am
Forum: General Discussion
Topic: Source Python for GMod?
Replies: 43
Views: 1901

Re: Source Python for GMod?

.... I love the third example: We define a function in Python that gets a C function wrapper using the memory module, so we have a pointer we can push to the global Lua function table and then call that function from Lua. :grin: Nice Ayuto, that's what I was thinking. I wasn't sure how I'd call sub...
by Doldol
Sat Sep 03, 2016 12:41 am
Forum: General Discussion
Topic: Source Python for GMod?
Replies: 43
Views: 1901

Re: Source Python for GMod?

Any clue when builds will be available? It's a pain for me to build for Linux atm. But if they won't be available for a while I'll have to set that up.
by Doldol
Sat Sep 03, 2016 12:30 am
Forum: Development Status Updates
Topic: Development status update (August 2016)
Replies: 7
Views: 578

Re: Development status update (August 2016)

Well, if you still want that functionality on your test server, you can always use something like this: Thanks, but I already took the opportunity and went a bit further and implemented the commands spl, spu and spr for these actions ^^. But is there a reason for using TypedServerCommand in your co...
by Doldol
Fri Sep 02, 2016 11:22 pm
Forum: Development Status Updates
Topic: Development status update (August 2016)
Replies: 7
Views: 578

Re: Development status update (August 2016)

Ayuto wrote:That has been announced last month and they are raising a warning since two months. :D


I've noticed, it's just that when you're testing, typing the old syntax was noticeably less annoying. Oh well, nothing serious.
by Doldol
Fri Sep 02, 2016 12:29 am
Forum: General Discussion
Topic: Auto Loading Plugin
Replies: 21
Views: 793

Re: Auto Loading Plugin

Well best of both worlds would be adding a core setting a la "sp_autoload_plugins" and default it to disabled? If defaulted to off a user who knows how to change this setting should probably know what it entails. Not that I would use it, I also keep around to much test code. But I don't re...

Go to advanced search