Search found 1404 matches

by Ayuto
Tue Sep 13, 2022 6:05 pm
Forum: General Discussion
Topic: Builds for older version
Replies: 1
Views: 146

Re: Builds for older version

We only provide the latest version of Source.Python and don't support old/illegal game versions.
by Ayuto
Tue Sep 13, 2022 10:35 am
Forum: General Discussion
Topic: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?
Replies: 6
Views: 203

Re: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?

As far as I understand, the performance improvements come from: ⋅ Improved frames ⋅ Improved function calls ⋅ Adaptive instructions The latter is explained in PEP659 . The interpreter will look for code with type stability during runtime and replaces the instructions wi...
by Ayuto
Mon Sep 12, 2022 3:04 pm
Forum: General Discussion
Topic: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?
Replies: 6
Views: 203

Re: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?

Hey khaimovmr! Yes, there are and were plans to upgrade. With the release of 3.8 and 3.10 I twice started an upgrade, but discarded it due to the lack of time. But we should definitely do the upgrade. I will try to focus this very soon! Edit: The question is just if we should wait for 3.11, which is...
by Ayuto
Sat Sep 10, 2022 5:08 pm
Forum: Plugin Development Support
Topic: OnPlayerRunCommand not fired in TF2
Replies: 7
Views: 267

Re: OnPlayerRunCommand not fired in TF2

Okay, I figured there was an issue with data.sourcepython.com which didn't update properly and provided old data. If you restart your server, it should work fine now.
by Ayuto
Sat Sep 10, 2022 4:17 pm
Forum: Plugin Development Support
Topic: OnPlayerRunCommand not fired in TF2
Replies: 7
Views: 267

Re: OnPlayerRunCommand not fired in TF2

Data seems to be up-to-date. Could you please set sp_logging_level to 4 in your core_settings.ini, restart your server, load your plugin and join your server. In your console log you should see the following entry if you join the server: [Source.Python] Initializing core hook (run_command)... [Sourc...
by Ayuto
Sat Sep 10, 2022 2:49 pm
Forum: Plugin Development Support
Topic: OnPlayerRunCommand not fired in TF2
Replies: 7
Views: 267

Re: OnPlayerRunCommand not fired in TF2

Game data is automatically updated by SP itself if you haven't disabled it (it's taking the latest data from data.sourcepython.com). However, it could be that our data ist not up to date. I will check that later today.
by Ayuto
Fri Sep 09, 2022 1:37 pm
Forum: Plugin Development Support
Topic: TF2 Conditions
Replies: 5
Views: 322

Re: TF2 Conditions

Good catch! I also updated the code above.

I'm glad it's working!
by Ayuto
Fri Sep 09, 2022 12:21 pm
Forum: Plugin Development Support
Topic: TF2 Conditions
Replies: 5
Views: 322

Re: TF2 Conditions

I don't think it can call via sourcemod, since Source.Python and sourcemod are different plugin. Unfortunaly i don't have any clue about those 2 functions how to call them I don't think it's impossible to call SM natives from Source.Python. A few years ago I made a proof of concept that makes it po...
by Ayuto
Fri Sep 09, 2022 10:19 am
Forum: Custom Packages
Topic: Enki
Replies: 3
Views: 462

Re: Enki

This is very cool! :grin:
by Ayuto
Fri Jun 24, 2022 8:39 pm
Forum: Plugin Development Support
Topic: CS:GO - ***** OUT OF MEMORY! attempted allocation size: 4025578528 ****
Replies: 3
Views: 478

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

I'm currently creating a new release based on the SDK update. This should also fix the TF2 issue.

The new release should be available in ~30 minutes.
by Ayuto
Mon Apr 18, 2022 8:18 pm
Forum: Plugin Development Support
Topic: [Cs:s] Hook remaining time of the map
Replies: 7
Views: 1208

Re: [Cs:s] Hook remaining time of the map

I can't say without testing, but performance shouldn't matter in this case as you are probably not invoking it a thousand times per frame. So, you better choose the non-signature solution. That way you don't have to maintain a signature which might break with a game update. Moreover, you are more cr...
by Ayuto
Thu Apr 14, 2022 1:51 pm
Forum: Plugin Development Support
Topic: [Cs:s] Hook remaining time of the map
Replies: 7
Views: 1208

Re: [Cs:s] Hook remaining time of the map

Ah, in that case you don't want to hook the function, but you want to call it instead. Usually, you only hook functions if you want to modify their behaviour. Try this: import memory from memory import Convention, DataType from engines.gamerules import find_gamerules from commands.typed import Typed...
by Ayuto
Thu Apr 14, 2022 7:15 am
Forum: Plugin Development Support
Topic: [Cs:s] Hook remaining time of the map
Replies: 7
Views: 1208

Re: [Cs:s] Hook remaining time of the map

You first version was quite correct. The message you see, is simply the output of your print statement. It's not an error. What exactly would you like to archieve? Maybe this helps a little bit more: import memory from memory import Convention, DataType from memory.hooks import PostHook server = mem...
by Ayuto
Fri Mar 11, 2022 10:39 pm
Forum: General Discussion
Topic: ValueError: Could not find symbol: gEntList
Replies: 3
Views: 849

Re: ValueError: Could not find symbol: gEntList

We only support the official and latest Valve version.
by Ayuto
Wed Feb 23, 2022 1:05 pm
Forum: API Design
Topic: Where is the source code ?
Replies: 6
Views: 3595

Re: Where is the source code ?

Yes, a lot is written in C++, but not everything. Some packages like the plugins package are completely Python based. Modules/packages that start with an underscore are implemented in C++. However, we have wrapped them in Python packages, so there are no "hidden" packages. As for the comma...
by Ayuto
Thu Feb 03, 2022 2:33 pm
Forum: General Discussion
Topic: Accessing Variables from Generator
Replies: 3
Views: 949

Re: Accessing Variables from Generator

What exactly are you trying to archive? This is how you can use a generator: >>> def infinite_generator(): i = 0 while True: i += 1 yield i >>> gen = infinite_generator() >>> print(next(gen)) 1 >>> print(next(gen)) 2 >>> print(next(gen))...
by Ayuto
Wed Feb 02, 2022 6:32 am
Forum: General Discussion
Topic: Can str be used as a variable?
Replies: 2
Views: 716

Re: Can str be used as a variable?

Yes, you could use it as a variable name, but you should avoid it as it's not good practice. Since you overwrote it you will have problems actually calling the original str built-in, which will result into errors. There are possibilities to restore it, but it's better to not call your variable like ...
by Ayuto
Tue Jan 25, 2022 4:30 pm
Forum: Plugin Development Support
Topic: configobj.ConfigObjError
Replies: 21
Views: 2681

Re: configobj.ConfigObjError

Try putting it in quotes:

Code: Select all

["BOT_bad comrade [CC]"]
by Ayuto
Sun Jan 16, 2022 2:30 pm
Forum: Development Status Updates
Topic: Development status update (December 2021)
Replies: 0
Views: 2018

Development status update (December 2021)

It's time for another development status update! ⋅ Fixes: ⋅  Fixed issue #400 and #404. ⋅  Fixed issue #244. ⋅  Fixed issue #211. ⋅  Fixed issue #208. ⋅  Fixed issue #299. ⋅ Additions: ⋅  Exported more property and funct...
by Ayuto
Sun Jan 16, 2022 2:22 pm
Forum: Development Status Updates
Topic: Development status update (November 2021)
Replies: 0
Views: 476

Development status update (November 2021)

It's time for another development status update! ⋅ Fixes: ⋅  Fixed an issue with certain weapons restrictions not working properly. ⋅  Fixed an animation error when setting a model to Player. ⋅  Fixed crash of non-precached model for Entity.set_model. ⋅&n...

Go to advanced search