Search found 39 matches
- Mon Sep 11, 2017 6:56 pm
- Forum: General Discussion
- Topic: Performance problems with SP at HL2DM
- Replies: 20
- Views: 15956
Re: Performance problems with SP at HL2DM
hmm did you try to remove the "source-python.dll" in addons? then, test the server again and see if you still get the fps problem.
- Fri Aug 25, 2017 7:43 pm
- Forum: Plugin Development Support
- Topic: sp / python question
- Replies: 2
- Views: 2716
Re: sp / python question
i think it works like thread!
- Fri Aug 25, 2017 7:40 pm
- Forum: Plugin Development Support
- Topic: sp / python question
- Replies: 2
- Views: 2716
sp / python question
what is source pythons' Delay?
- Mon Aug 21, 2017 5:09 pm
- Forum: Plugin Development Support
- Topic: Loading Source Python Objects
- Replies: 5
- Views: 4285
Re: Loading Source Python Objects
no problem. i just wanted to see if someone knows an answer. thanks anyway!
- Mon Aug 21, 2017 3:33 pm
- Forum: Plugin Development Support
- Topic: Loading Source Python Objects
- Replies: 5
- Views: 4285
Re: Loading Source Python Objects
Loading Source Python Objects "faster into memory"
- Mon Aug 21, 2017 3:30 pm
- Forum: Plugin Development Support
- Topic: Loading Source Python Objects
- Replies: 5
- Views: 4285
Re: Loading Source Python Objects
no, in general. as i said "faster into memory"
- Mon Aug 21, 2017 2:52 pm
- Forum: Plugin Development Support
- Topic: Loading Source Python Objects
- Replies: 5
- Views: 4285
Loading Source Python Objects
hey, is there a good way to increase loadspeed of preset functions? i've heard there is sthn like pickle for python based functions. but what about storing entities from source python like "prop_dynamic" entities that dont change? is there any way to load them faster into memory at scriptl...
- Mon Jul 03, 2017 5:15 pm
- Forum: Plugin Development Support
- Topic: create during-prehook
- Replies: 7
- Views: 6863
Re: create during-prehook
you may misunderstand me a bit here. i was just wondering if it was possible to pause/resume a prehook "as simple as possible". to increase performance. i didnt know the performance drainage when i opened the thread. but i cant even close it too now. :P ( btw i was trying to write a sp per...
- Sun Jul 02, 2017 12:38 pm
- Forum: Plugin Development Support
- Topic: create during-prehook
- Replies: 7
- Views: 6863
Re: create during-prehook
ill use the last one, that will just work fine for my case. i forgot that sp can run multiple prehooks
- Sun Jul 02, 2017 12:34 pm
- Forum: Plugin Development Support
- Topic: create during-prehook
- Replies: 7
- Views: 6863
Re: create during-prehook
is this the best for an interval? :
Syntax: Select all
time_0 = 0
time_1 = 999999999999
@PreHook(user_message)
def pre_send_user_message(args):
if time_0 < time.time() < time_1:
print(args)
# do stuff
#just set time_0, time_1
- Sun Jul 02, 2017 12:28 pm
- Forum: Plugin Development Support
- Topic: create during-prehook
- Replies: 7
- Views: 6863
Re: create during-prehook
this is the first way that comes to my mind, this doesnt handle a during mode, but the best performance probably? prehook_on = 0 @PreHook(user_message) def pre_send_user_message(args): if prehook_on: print(args) #dostuff @SayCommand("1") def say_test(com...
- Sun Jul 02, 2017 12:21 pm
- Forum: Plugin Development Support
- Topic: create during-prehook
- Replies: 7
- Views: 6863
Re: create during-prehook
my guess ofc is creating a thread for this, but im wondering about the utilization in conjunction with the prehook decorator
- Sun Jul 02, 2017 12:19 pm
- Forum: Plugin Development Support
- Topic: create during-prehook
- Replies: 7
- Views: 6863
create during-prehook
whats a/the best "python" way to run a prehook for time x1 - x2 ?
i want to execute the prehook only for a specific amount of time.. thanks
i want to execute the prehook only for a specific amount of time.. thanks
- Sat Jul 01, 2017 10:46 am
- Forum: Plugin Development Support
- Topic: menus in CSGO
- Replies: 11
- Views: 8269
Re: menus in CSGO
which binaries do i have to look into for usermsgs? your second link only leads to the general wiki :/
- Fri Jun 30, 2017 9:31 pm
- Forum: Plugin Development Support
- Topic: menus in CSGO
- Replies: 11
- Views: 8269
Re: menus in CSGO
i somehow cant edit or delete any of my posts. so i cant really correct anything without messing up the whole thread. right now i kinda wanna create a wiki for the whole csgo usermessages. this should be the sp file: https://github.com/Source-Python-Dev-Team/Source.Python/blob/ef2f7d02d44bfe31ee5fbb...
- Fri Jun 30, 2017 4:43 pm
- Forum: Plugin Development Support
- Topic: menus in CSGO
- Replies: 11
- Views: 8269
Re: menus in CSGO
it works this way : from messages.base import UserMessageCreator class VoteStart(UserMessageCreator): """Create a VoteStart.""" message_name = 'VoteStart' translatable_fields = ['disp_str', 'details_str', 'other_team_str'] def __i...
- Fri Jun 30, 2017 4:41 pm
- Forum: Plugin Development Support
- Topic: menus in CSGO
- Replies: 11
- Views: 8269
Re: menus in CSGO
ah too bad i cant edit/correct my own post
- Fri Jun 30, 2017 4:32 pm
- Forum: Plugin Development Support
- Topic: menus in CSGO
- Replies: 11
- Views: 8269
Re: menus in CSGO
from messages.base import UserMessageCreator class VoteStart(UserMessageCreator): """Create a VoteStart.""" message_name = 'VoteStart' translatable_fields = ['disp_str', 'details_str', 'other_team_str'] def __init__( self, te...
- Fri Jun 30, 2017 4:06 pm
- Forum: Plugin Development Support
- Topic: menus in CSGO
- Replies: 11
- Views: 8269
Re: menus in CSGO
shouldnt something be possible to create a string customized vote menu as usermsg and receive a YES/NO reply back from the client? ill just create a virtual function to test this right now and see if it'll work or not. i think there are some more interesting functions in the csgo branch for sp https...
- Fri Jun 30, 2017 3:50 pm
- Forum: Plugin Development Support
- Topic: menus in CSGO
- Replies: 11
- Views: 8269
Re: menus in CSGO
motd would be my last resort, although i too was wondering about a usermsg utilization. i know there is a votemenu in csgo but id have to refresh my knowledge on it.. btw did this thread go anywhere yet? https://github.com/Source-Python-Dev-Te ... issues/180