Search found 978 matches

by L'In20Cible
Tue Mar 17, 2020 10:21 pm
Forum: Plugin Development Support
Topic: Convention.STDCALL: 'Convention' object is not callable
Replies: 1
Views: 180

Re: Convention.STDCALL: 'Convention' object is not callable

TypeError: 'Convention' object is not callable You get this error because you are trying to use a convention on Linux that is only available on Windows. So the MakeDynamicHooksConvention call fails, is catched here and fallback to assuming you passed a CallingConvention subclass to be used as a fac...
by L'In20Cible
Fri Mar 13, 2020 2:36 am
Forum: General Discussion
Topic: Close network connection to client
Replies: 2
Views: 544

Re: Close network connection to client

Hey guys, is there anyway to disconnect client from server by the way of closing connection to them, so client will just see that there is a server experiencing some troubles | Auto disconnect in N seconds ? Is this possible to realise at the sourcepython level ? I don't think there is an easy way ...
by L'In20Cible
Fri Mar 13, 2020 2:32 am
Forum: General Discussion
Topic: Any SP fix for CS:GO hint text styling?
Replies: 1
Views: 312

Re: Any SP fix for CS:GO hint text styling?

Some months ago, a CS:GO update broke the capability for styling hint text messages with HTML tags, which allowed styling the messages with font properties such as colors. There is this fix plugin currently used by most servers https://github.com/Franc1sco/FixHintColorMessages I am wondering if the...
by L'In20Cible
Fri Mar 13, 2020 2:27 am
Forum: Plugin Development Support
Topic: Getting Player Reference on Connect and Disconnect (ValueError: Conversion from "Index" to "BaseEntity" failed)
Replies: 5
Views: 1080

Re: Getting Player Reference on Connect and Disconnect (ValueError: Conversion from "Index" to "BaseEntity" failed)

Sorry I had forgotten to check back on this thread. The solution I ended up going with was @listeners.OnLevelShutdown def on_level_shutdown(): disconnect_all_players() OnLevelShutdown allows me to get the player entities of all connected players before they are freed, and run my dis...
by L'In20Cible
Tue Mar 10, 2020 11:23 am
Forum: General Discussion
Topic: question with Importing stuff
Replies: 1
Views: 308

Re: question with Importing stuff

I'm beginner and i can't find how to import stuff like messages or events they just don't appear it would be good if i had "auto-finish" on my visual studio code can anyone help? sorry for bad english... You can look at the Module Index . For example, messages are imported from messages a...
by L'In20Cible
Sat Mar 07, 2020 11:48 am
Forum: Plugin Development Support
Topic: Unable to write table entity value
Replies: 1
Views: 336

Re: Unable to write table entity value

If you use the following commands: sp dump server_classes classes;sp dump datamaps datamaps It will generates a classes.txt and a datamaps.txt files into the ../logs/source-python/ directory. The classes are the properties that are networked, while the datamaps not necessarily. That one seems networ...
by L'In20Cible
Tue Mar 03, 2020 10:40 am
Forum: General Discussion
Topic: SourcePython conflicts with Sourcemod plugins
Replies: 18
Views: 733

Re: SourcePython conflicts with Sourcemod plugins

Unknown command "sm" [Source.Python] Loading... [Source.Python] Loaded successfully. Loaded plugin "addons/source-python" IMPORTANT: Please copy the full output. -------------------------------------------------------- Checksum : f75d06317fa76ac5eee52dbd4aafc42e Date : 2020-03-0...
by L'In20Cible
Tue Mar 03, 2020 9:47 am
Forum: General Discussion
Topic: SourcePython conflicts with Sourcemod plugins
Replies: 18
Views: 733

Re: SourcePython conflicts with Sourcemod plugins

After Source.Python is loaded, type sp info which will generate information about your installation and configuration.
by L'In20Cible
Tue Mar 03, 2020 9:27 am
Forum: General Discussion
Topic: SourcePython conflicts with Sourcemod plugins
Replies: 18
Views: 733

Re: SourcePython conflicts with Sourcemod plugins

Even without .vdf file, and having only string that loads sourcepython in autoexec.cfg, it loads yes, but still conflicting with the same error. [SM] Exception reported: Entity Outputs are disabled - See error logs for details Put your sm load into autoexec.cfg as well, prior to loading SP. Either ...
by L'In20Cible
Tue Mar 03, 2020 9:14 am
Forum: General Discussion
Topic: SourcePython conflicts with Sourcemod plugins
Replies: 18
Views: 733

Re: SourcePython conflicts with Sourcemod plugins

Just realized that asking for sp info was pretty dumb of me, since you are unable to get it loaded. Based on your other post mentioning CS:GO, I've updated my local server and tested the latest build available here and it loaded fine. Please make sure to use that version, without any modifications t...
by L'In20Cible
Tue Mar 03, 2020 9:11 am
Forum: General Discussion
Topic: SourcePython conflicts with Sourcemod plugins
Replies: 18
Views: 733

Re: SourcePython conflicts with Sourcemod plugins

This happens because Source.Python is being loaded more than once. Make sure to remove the vdf file, and only have the load command once into autoexec.cfg and not anywhere else.
by L'In20Cible
Tue Mar 03, 2020 9:00 am
Forum: General Discussion
Topic: SourcePython conflicts with Sourcemod plugins
Replies: 18
Views: 733

Re: SourcePython conflicts with Sourcemod plugins

Please post the output of sp info. As for autoexec.cfg, you can create it and it will be executed once when the server starts. The fact you are able to load Source.Python through the server.cfg seems weird to me, as I'm pretty sure VALVe disabled loading plugins when a map is running a long time ago.
by L'In20Cible
Tue Mar 03, 2020 8:05 am
Forum: General Discussion
Topic: SourcePython conflicts with Sourcemod plugins
Replies: 18
Views: 733

Re: SourcePython conflicts with Sourcemod plugins

Ok so, i've installed SourcePython and then i've noticed that my sourcemod plugins started making unexpected things and stops working in some cases. So are SourcePython incompatible with Sourcemod ? L 03/03/2020 - 10:11:43: [SM] Exception reported: Entity Outputs are disabled - See error logs for d...
by L'In20Cible
Wed Feb 19, 2020 5:33 am
Forum: Plugin Development Support
Topic: zeroc-ice import problems
Replies: 5
Views: 799

Re: zeroc-ice import problems

I can't believe I missed that. PyPi shows the version as compatible with 2.6 through 3.7. Is it possible that thats inaccurate or is this something that might be being installed improperly with pip? I think that may have put me on the right track though thank you very much. That file is a cache fil...
by L'In20Cible
Tue Feb 18, 2020 4:44 am
Forum: Plugin Development Support
Topic: zeroc-ice import problems
Replies: 5
Views: 799

Re: zeroc-ice import problems

enthrow wrote:however I do see 'IcePy.cpython-35m-x86_64-linux-gnu.

That file is for Python 3.5, and Source.Python is running Python 3.6.1.
by L'In20Cible
Tue Feb 11, 2020 4:27 pm
Forum: Plugin Development Support
Topic: Getting Player Reference on Connect and Disconnect (ValueError: Conversion from "Index" to "BaseEntity" failed)
Replies: 5
Views: 1080

Re: Getting Player Reference on Connect and Disconnect (ValueError: Conversion from "Index" to "BaseEntity" failed)

Seems like the player's edict had already been freed (or at least, removed from the global array, and passed to the callbacks) by the time the engine calls this listener. Try to listen for entity deletion instead (won't work on OB games, as their server unknown instance appears to be unbound already...
by L'In20Cible
Wed Jan 29, 2020 7:54 am
Forum: Plugin Development Support
Topic: trigger_push, change push speed
Replies: 4
Views: 774

Re: trigger_push, change push speed

Your offset is definitely wrong. No way 0x74 is pointing to CTriggerPush::m_flPushSpeed. Hint: from entities.entity import Entity from mathlib import Vector from memory import get_size entity = Entity.find_or_create('trigger_push') print( 'm_flPushSpeed\'s offset is betwe...
by L'In20Cible
Wed Jan 22, 2020 4:54 pm
Forum: Plugin Development Support
Topic: Difference in float numbers.
Replies: 5
Views: 1061

Re: Difference in float numbers.

Seems like a common loss of precision to me. Though, not sure why you would want to reverse-engineer the calculation if you already have the precise result?
by L'In20Cible
Tue Jan 21, 2020 11:46 am
Forum: Plugin Development Support
Topic: m_angRotation
Replies: 2
Views: 620

Re: m_angRotation

It works fine for me:

Syntax: Select all

from random import randint

from filters.entities import EntityIter
from mathlib import QAngle

for entity in EntityIter():
entity.rotation = QAngle(
randint(0, 360), randint(0, 360), randint(0, 360)
)

Go to advanced search