Search found 1266 matches

by Ayuto
Sun Jan 19, 2020 8:20 am
Forum: Plugin Development Support
Topic: Byte patch
Replies: 2
Views: 27

Re: Byte patch

Yes, we have developed a feature rich module for various memory hacking operations. http://wiki.sourcepython.com/developing/modules/memory.html#module-memory If you want to byte-patch a binary in memory, you first need to get the binary using find_binary, then search for the location where you would...
by Ayuto
Tue Jan 14, 2020 11:27 pm
Forum: Plugin Development Support
Topic: Get SendProp instance
Replies: 7
Views: 243

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 just...
by Ayuto
Mon Jan 13, 2020 7:40 pm
Forum: Plugin Development Support
Topic: Server crash on @EntityPreHook
Replies: 9
Views: 298

Re: Server crash on @EntityPreHook

Original plugin uses only it, without any conventions: _hWeapon_ShootPosition = DHookCreate(offset, HookType_Entity, ReturnType_Vector, ThisPointer_CBaseEntity); Since it creates a hook using an offset/index in the vtable, it probably assumes THISCALL internally. There is always a convention, becau...
by Ayuto
Fri Jan 03, 2020 7:31 pm
Forum: Plugin Development Support
Topic: [ANY] Prevent user name changes
Replies: 10
Views: 376

Re: [ANY] Prevent user name changes

Sam wrote:"I have the disassemblers and source code on all computers with fast internet xD"
There is a leaked version of the Source Engine 2007, public Source SDK released by Valve and reverse engineered versions of the Source SDK.
by Ayuto
Sat Dec 28, 2019 2:38 pm
Forum: API Design
Topic: My thoughts, questions and wishes
Replies: 25
Views: 643

Re: My thoughts, questions and wishes

7. Yes, what is wrong with get_interface? Do you have any problems? Can you give me an example? I tried everything but unsuccessfully. Linux. # Tested on Linux with CS:S from core import get_interface ptr = get_interface('bin/engine_srv.so', 'EngineTraceServer003') print(...
by Ayuto
Fri Dec 27, 2019 8:34 pm
Forum: API Design
Topic: My thoughts, questions and wishes
Replies: 25
Views: 643

Re: My thoughts, questions and wishes

1. I would use Satoon's suggestion. The iterator method is already meant as a method that should be implemented by the programmer if he would like to have its own implementation. 2. Which place do you suggest? 3. Just added a wrapper property to the Player class. With the next release, you can simpl...
by Ayuto
Wed Dec 25, 2019 12:30 pm
Forum: Plugin Development Support
Topic: PlayerDictionary vs CachedPlayer
Replies: 37
Views: 869

Re: PlayerDictionary vs CachedPlayer

You're wrong! :mad: This code is nicer to read than original version. also the number of lines of code was decreased. From 179 to 107. Your version does not seem to reduce the number of lines by using classes, but by removing comments and blank lines that were added for readability. I thought your ...
by Ayuto
Sat Dec 14, 2019 2:31 pm
Forum: Plugin Development Support
Topic: Repeat timers with cached player instances
Replies: 6
Views: 271

Re: Repeat timers with cached player instances

To be more precise: __del__ is getting called when the refcount reaches 0 and the garbage collector decides to collect it. That can be immediately, in 5 minutes or never.

I will publish a new build tomorrow. Just wrote myself a reminder.
by Ayuto
Mon Dec 09, 2019 9:20 pm
Forum: Development Status Updates
Topic: Development status update (November 2019)
Replies: 0
Views: 885

Development status update (November 2019)

It's time for another development status update! :smile: ⋅ Fixes: ⋅  Fixed issue #285. ⋅  Fixed issue #287. ⋅  Fixed BaseEntity/BaseEntityOutput being stored as their wrapper rather than their real class name. ⋅ Additions: ⋅  Added BaseEnti...
by Ayuto
Mon Dec 09, 2019 8:58 pm
Forum: Code examples / Cookbook
Topic: [DEV] Algorithm for checking a point in a cube
Replies: 15
Views: 1484

Re: [DEV] Algorithm for checking a point in a cube

I'm not a big fan of reinventing the wheel. Moreover, the built-in method is much faster. import time from mathlib import Vector def PointIsInside(pt, cpt1, cpt2): if ( ((pt[0] >= cpt1[0]) | (pt[0] >= cpt2[0])) & \ ((pt[0] <= cpt2[0]) | (pt[0] ...
by Ayuto
Sun Dec 08, 2019 9:18 pm
Forum: Code examples / Cookbook
Topic: [DEV] Algorithm for checking a point in a cube
Replies: 15
Views: 1484

Re: [DEV] Algorithm for checking a point in a cube

How about point.is_within_box(corner1, corner2)? :P

It should be much faster since it it implemented in C++ (mathlib module). All you need is three Vector instances.
by Ayuto
Thu Nov 28, 2019 10:11 pm
Forum: Development Status Updates
Topic: Development status update (August 2019)
Replies: 9
Views: 2180

Re: Development status update (August 2019)

Just out of curiosity: what features of 3.8 would you like to use?
by Ayuto
Fri Nov 22, 2019 7:24 pm
Forum: Whatever
Topic: [NEW] Sentence
Replies: 4
Views: 522

Re: [NEW] Sentence

I think the problem is that the community is too small. Adding such a forum (and mabye french, german and spanish as well) would split the community into too small pieces. That's why we kept this site english only.
by Ayuto
Tue Oct 15, 2019 4:57 pm
Forum: Plugin Development Support
Topic: Finding a signature for Windows without a string
Replies: 3
Views: 430

Re: Finding a signature for Windows without a string

Actually, that function has two strings: HL2Player.SprintNoPower and HL2Player.SprintStart. However, if you have a function that is really difficult to find, you can try running these scripts: https://github.com/Ayuto/discover_win It first starts with simple string match searches (functions that hav...
by Ayuto
Wed Sep 11, 2019 3:40 pm
Forum: General Discussion
Topic: What is the most reasonable way to install a pypi package to source.python?
Replies: 15
Views: 2168

Re: What is the most reasonable way to install a pypi package to source.python?

You could also try to start your server with -debug. This should generate a debug.log for most games in the game server directory. It should provide some more information.
by Ayuto
Tue Sep 03, 2019 7:33 pm
Forum: Development Status Updates
Topic: Development status update (August 2019)
Replies: 9
Views: 2180

Development status update (August 2019)

It's time for another development status update! :smile: ⋅ Fixes: ⋅ null ⋅ Additions: ⋅ nada ⋅ Removals: ⋅ niente ⋅ Changes: ⋅ nothing The full changelog can be found here: https://github.com/Source-Python-Dev-Team/Sourc...
by Ayuto
Thu Aug 01, 2019 5:50 pm
Forum: Development Status Updates
Topic: Development status update (July 2019)
Replies: 0
Views: 1349

Development status update (July 2019)

It's time for another development status update! :smile: ⋅ Fixes: ⋅ null ⋅ Additions: ⋅ nada ⋅ Removals: ⋅ niente ⋅ Changes: ⋅ nothing The full changelog can be found here: https://github.com/Source-Python-Dev-Team/Sourc...
by Ayuto
Sun Jul 21, 2019 8:41 am
Forum: General Discussion
Topic: sp dump weapon_scripts Throws a Signature Error
Replies: 2
Views: 985

Re: sp dump weapon_scripts Throws a Signature Error

Yes, this shouldn't happen. Unfortunately, the signatures used in the background change extremely often in CS:GO. Thus, we stopped keeping them up-to-date for CS:GO.
by Ayuto
Tue Jul 09, 2019 6:05 pm
Forum: Plugin Requests
Topic: [HL2:DM] Save Scores
Replies: 10
Views: 3748

Re: [HL2:DM] Save Scores

That's the same issue you already posted in 2017 and it has been solved by the version of iPlayer.
by Ayuto
Mon Jul 01, 2019 4:47 pm
Forum: Development Status Updates
Topic: Development status update (June 2019)
Replies: 0
Views: 1305

Development status update (June 2019)

It's time for another development status update! :smile: ⋅ Fixes: ⋅  PlayerMixin.suit_power_load. ⋅ Additions: ⋅  Added server command post hooks. ⋅ Removals: ⋅ Changes: ⋅  Improved performance of core.echo_console (approximately ...

Go to advanced search