Search found 1395 matches

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: 43

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: 743

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: 743

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: 743

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: 519

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: 2114

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: 665

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: 482

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: 1792

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: 1200

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: 283

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...
by Ayuto
Sun Jan 16, 2022 2:18 pm
Forum: Development Status Updates
Topic: Development status update (October 2021)
Replies: 0
Views: 271

Development status update (October 2021)

It's time for another development status update! ⋅ Fixes: ⋅ Additions: ⋅  Added PlayerMixin.snap_to_position(origin=None, angles=None). ⋅ Removals: ⋅ Changes: ⋅  Entity is now inheriting from Pointer. The full changelog can be found here: h...
by Ayuto
Sat Dec 04, 2021 12:51 pm
Forum: Module/Package Submissions
Topic: Newer SQLAlchemy version
Replies: 2
Views: 2539

Re: Newer SQLAlchemy version

Nice to see you here, Mahi!

It's not just SQLAlchecmy which needs an update but all of our site packages as well as the Python version itself. Python 3.10 has been released in october, but we are still on 3.6 :eek:
by Ayuto
Mon Nov 22, 2021 8:39 pm
Forum: Plugin Development Support
Topic: conversion error on index_from_pointer
Replies: 42
Views: 6583

Re: conversion error on index_from_pointer

I guess the try/except is required, because the hook also gets called for non-networked entities. However, you are right. Raising an exception is quite expensive, which is shown by a quick test (internally, we are working without exception, but with true/false): object IndexFromPointer2( CPointe...
by Ayuto
Thu Oct 14, 2021 5:34 pm
Forum: Development Status Updates
Topic: Development status update (September 2021)
Replies: 0
Views: 2934

Development status update (September 2021)

It's time for another development status update! ⋅ Fixes: ⋅  Fixed OnServerOutput crashes. ⋅  Fixed calls to functions that return a boolean. ⋅  Fixed weapon restrictions for CS:S. ⋅ Additions: ⋅ Removals: ⋅ Changes: ⋅ S...
by Ayuto
Fri Oct 01, 2021 6:04 pm
Forum: Plugin Development Support
Topic: [Cs:s] Weapon limit for certain weapons by team and amount
Replies: 3
Views: 1875

Re: [Cs:s] Weapon limit for certain weapons by team and amount

It was just a change on the Python side, so you just need to update the related files.
by Ayuto
Tue Sep 21, 2021 3:30 pm
Forum: Plugin Releases
Topic: Simple Teleport
Replies: 4
Views: 4599

Re: Simple Teleport

You need to configure the authorization backend:
http://wiki.sourcepython.com/general/config-auth.html
by Ayuto
Thu Sep 02, 2021 3:25 pm
Forum: Development Status Updates
Topic: Development status update (August 2021)
Replies: 0
Views: 2189

Development status update (August 2021)

It's time for another development status update! Thanks to CookStar for the changes and fixes! ⋅ Fixes: ⋅  Fixed memory management issues for CFunction. ⋅  Fixed logger not closing file handlers properly when unloading plugins. ⋅ Additions: ⋅ Removal...
by Ayuto
Fri Aug 20, 2021 3:59 pm
Forum: Plugin Development Support
Topic: [Cs:s] Zombie Riot potion
Replies: 4
Views: 1654

Re: [Cs:s] Zombie Riot potion

Exactly! Btw. your "full health" options adds the maximum health to the current health. I think you meant player.health = player.max_health.
by Ayuto
Thu Aug 12, 2021 9:38 pm
Forum: Plugin Development Support
Topic: Can't retrieve url from TypedCommand
Replies: 1
Views: 1190

Re: Can't retrieve url from TypedCommand

Hi pepe,

yes, this is a known bug caused by the engine's CCommand class. We have it on our issue list, but haven't yet implemented a fix for that.
https://github.com/Source-Python-Dev-Te ... issues/244

Go to advanced search