Search found 965 matches

by L'In20Cible
Wed Feb 19, 2020 5:33 am
Forum: Plugin Development Support
Topic: zeroc-ice import problems
Replies: 5
Views: 193

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

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: 3
Views: 218

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

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

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

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)
)
by L'In20Cible
Mon Jan 20, 2020 8:07 am
Forum: Plugin Development Support
Topic: Trouble with psycopg2-binary
Replies: 5
Views: 229

Re: Trouble with psycopg2-binary

You need the psycopg2-2.8.4-cp36-cp36m-win32 build. Thank you, I notice this package name contains win32. I'm running my server on Debian 10. Is this correct, does the embedded Python of source-python allow running win32 versions of packages while on a linux os, or will I have to look for something...
by L'In20Cible
Mon Jan 20, 2020 7:59 am
Forum: Plugin Development Support
Topic: Trouble with psycopg2-binary
Replies: 5
Views: 229

Re: Trouble with psycopg2-binary

You need the psycopg2-2.8.4-cp36-cp36m-win32 build. # ../addons/source-python/plugins/testing/testing.py import psycopg2 print(psycopg2) [SP] Loading plugin 'testing'... <module 'psycopg2' from '..\addons\source-python\packages\site-packages\psycopg2\__init__.py'> [SP] Successfully loaded pl...
by L'In20Cible
Sun Jan 19, 2020 4:24 am
Forum: General Discussion
Topic: Custom ingame UI elements
Replies: 4
Views: 212

Re: Custom ingame UI elements

Hymns For Disco wrote:
L'In20Cible wrote:You can have a look at how iPlayer did for Source.Python.Admin: https://github.com/Source-Python-Dev-Te ... thon.Admin

https://www.youtube.com/watch?v=84HMc5G76ww

MOTD window feature has been removed from CS:GO some time ago in the Panorama UI overhaul

R.I.P :frown:
by L'In20Cible
Sun Jan 19, 2020 1:44 am
Forum: General Discussion
Topic: Custom ingame UI elements
Replies: 4
Views: 212

Re: Custom ingame UI elements

You can have a look at how iPlayer did for Source.Python.Admin: https://github.com/Source-Python-Dev-Te ... thon.Admin

by L'In20Cible
Thu Jan 16, 2020 12:14 am
Forum: Plugin Development Support
Topic: Get SendProp instance
Replies: 7
Views: 543

Re: Get SendProp instance

If mapper planned to give >1000 velocity from trigger_push or any entity in 1 tick, that's where it comes, It clamping to 1000. So no good. And what's the difference to the client? Yes, maybe he will get some kind of densynchronization, in principle, so with every booster, trigger_push isn't predic...
by L'In20Cible
Wed Jan 15, 2020 6:27 am
Forum: Plugin Development Support
Topic: Get SendProp instance
Replies: 7
Views: 543

Re: Get SendProp instance

That's a little bit contrary to what you wanted to achieve in your initial post. It says you want to stop data table warnings and your code example shows only the part that sends the warning :confused: I sometimes feel you are changing your mind just because L'In20Cible answered your post. It's jus...
by L'In20Cible
Thu Jan 09, 2020 2:39 am
Forum: Plugin Development Support
Topic: Server crash on @EntityPreHook
Replies: 10
Views: 1025

Re: Server crash on @EntityPreHook

Tried CDECL, THISCALL but STDCALL and CUSTOM give the error. TypeError: 'Convention' object is not callable To use a custom convention, you must subclass CallingConvention telling it where to retrieve the arguments, etc. Ayuto provided some examples in the past: https://forums.sourcepython....
by L'In20Cible
Tue Jan 07, 2020 2:37 pm
Forum: Plugin Development Support
Topic: Server crash on @EntityPreHook
Replies: 10
Views: 1025

Re: Server crash on @EntityPreHook

Crash still happens. The following worked for me on Windows: from players.entity import Player from mathlib import Vector from memory import Convention from memory import DataType pl = Player(1) fn = pl.make_virtual_function(289, Convention.THISCALL, (DataType.POINTER, DataType.POIN...
by L'In20Cible
Tue Jan 07, 2020 10:14 am
Forum: Plugin Development Support
Topic: Server crash on @EntityPreHook
Replies: 10
Views: 1025

Re: Server crash on @EntityPreHook

For CS:GO, that function's prototype appears to be:

Syntax: Select all

Vector Weapon_ShootPosition(Vector &vecOut);
by L'In20Cible
Wed Jan 01, 2020 2:25 am
Forum: Code examples / Cookbook
Topic: Perfect PlayerDictionary and Player
Replies: 4
Views: 352

Re: Perfect PlayerDictionary and Player

I totally agree with everything Satoon said, except that I don't see the merit of having PlayerDictionary automatically syncing itself at all. I mean, this is a container, that you are trying to use as a generator. A container stores objects, while a generator generates them. They both have clearly ...
by L'In20Cible
Tue Dec 31, 2019 3:16 am
Forum: Plugin Development Support
Topic: [ANY] Prevent user name changes
Replies: 10
Views: 709

Re: [ANY] Prevent user name changes

Try something similar to what is being done in: https://github.com/Source-Python-Dev-Te ... cstrike.py
by L'In20Cible
Mon Dec 30, 2019 8:52 am
Forum: Plugin Development Support
Topic: PlayerDictionary vs CachedPlayer
Replies: 37
Views: 1399

Re: PlayerDictionary vs CachedPlayer

Edit: Found better variant PyPy(in 4x-6x) faster than Cython with CFFI for c++ bindings. I just know.a one person who doesn't want to try Source.Python because it is really slow by him opinion. I've never worked with PyPy before, but I doubt the differences would be phenomenal. However, if you are ...

Go to advanced search