Search found 68 matches

by Sam
Sat Feb 22, 2020 10:04 am
Forum: Custom Packages
Topic: [DEV] PICE (ICE algorithm)
Replies: 1
Views: 1374

Re: [DEV] PICE (ICE algorithm)

New version: 1.0.1 [REV v1]
News: Completely rewritten
Fixed: SMOD
by Sam
Sun Feb 16, 2020 7:30 pm
Forum: Custom Packages
Topic: [DEV] BIFF (Binary Interchange File Format)
Replies: 1
Views: 151

Re: [DEV] BIFF (Binary Interchange File Format)

New version: 2.1.0
News:
    1. Removed restriction on name and description (Max bytes = 18446744073709551616)
    2. Added UUID
    3. Time has become accurate
by Sam
Tue Feb 11, 2020 7:04 pm
Forum: Custom Packages
Topic: [DEV] BIFF (Binary Interchange File Format)
Replies: 1
Views: 151

[DEV] BIFF (Binary Interchange File Format)

BIFF Ver: 2.1.0 @Info It works almost like an RIFF. This module allows you to store multiple files (or data packets) in one file. @Warning You must additionally install `multimethod` ( PyPI ) Additional information in Example. @Example example.7z @Download GitHub PyPI
by Sam
Wed Jan 29, 2020 7:17 am
Forum: Plugin Development Support
Topic: trigger_push, change push speed
Replies: 4
Views: 213

Re: trigger_push, change push speed

Maybe?

Code: Select all

stack_data[0].set_float(0x74, 512.0)

http://wiki.sourcepython.com/developing ... .set_float
by Sam
Wed Jan 29, 2020 4:35 am
Forum: Code examples / Cookbook
Topic: [PHP+Python/(PortableServers)] Example #00
Replies: 0
Views: 692

[PHP+Python/(PortableServers)] Example #00

<?phpfunction microtime_float(){    list($usec, $sec) = explode(" ", microtime());    return ((float)$usec + (float)$sec);}$src = 'Hello, World!';$t = microtime_float();$fp = stream_socket_client("udp://127.0.0.1:885", $errno, $errstr, 30);if (!$fp) {    print("$errstr ($errno)\n");} else {    fwri...
by Sam
Thu Jan 23, 2020 4:27 am
Forum: Plugin Development Support
Topic: Difference in float numbers.
Replies: 5
Views: 437

Re: Difference in float numbers.

Loss of accuracy in Python float is inevitable. For this, there is module `decimal`
by Sam
Tue Jan 21, 2020 4:23 am
Forum: Plugin Development Support
Topic: m_vecAbsVelocity
Replies: 2
Views: 181

Re: m_vecAbsVelocity

How to set m_vecAbsVelocity? entity.set_network_property_vector('m_vecAbsVelocity', ...) ValueError: Unable to find property 'm_vecAbsVelocity'. I apologize for being rude, but should you climb here every time? xD I expected more from a person who knows how to work with the API and ...
by Sam
Mon Jan 20, 2020 11:30 am
Forum: General Discussion
Topic: [Q/DEV] UserInfo method
Replies: 0
Views: 726

[Q/DEV] UserInfo method

Maybe you should add this? pl = Player(1)pl.get_convar_value("lol") # -> 2# It is important for me to add this function to the Player# It is important to add that this function is available when the player is fully loaded, otherwise the server will crash. from engines.server import engine_serverget_...
by Sam
Sun Jan 19, 2020 6:46 am
Forum: Plugin Development Support
Topic: Byte patch
Replies: 2
Views: 257

Re: Byte patch

InvisibleSoldiers wrote:Is it possible to bytepatch binary in-memory via Python and if yes what is the best way?


1. Yes
2. The best way. The one you like. (LLPL, API and etc)
by Sam
Tue Jan 14, 2020 12:56 am
Forum: Plugin Development Support
Topic: Server crash on @EntityPreHook
Replies: 10
Views: 982

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 Sam
Mon Jan 13, 2020 12:34 pm
Forum: Plugin Development Support
Topic: Server crash on @EntityPreHook
Replies: 10
Views: 982

Re: Server crash on @EntityPreHook

InvisibleSoldiers wrote:Original plugin uses only it, without any conventions: _hWeapon_ShootPosition = DHookCreate(offset, HookType_Entity, ReturnType_Vector, ThisPointer_CBaseEntity);


SourceMod - DHooks (Dynamic Hooks - Dev Preview)
You can look at the source code and find out what is there. :P
by Sam
Thu Jan 09, 2020 3:53 am
Forum: Code examples / Cookbook
Topic: [DEV] Algorithm for checking a point in a cube
Replies: 15
Views: 1991

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

I had a problem in college, and I solved it, and posted the answer here. But nobody will find your solution. This forum is not for Python beginners and homework. If you're interest, you should visit this forum: https://python-forum.io/ If you speak German: https://python-forum.de Search bots will d...
by Sam
Tue Jan 07, 2020 8:00 pm
Forum: Custom Packages
Topic: [DEV] PortableServers (TCP,UDP;+Thread)
Replies: 1
Views: 627

Re: [DEV] PortableServers (TCP,UDP;+Thread)

I know... It's like it https://forums.sourcepython.com/viewtopic.php?f=38&t=1344 But my plans were to make ready-made servers for Python in general. I didn't want to steal someone's idea. I just decided to write this package for myself, but due to good nature I decided to put a copy of it for ot...
by Sam
Tue Jan 07, 2020 7:51 pm
Forum: Custom Packages
Topic: [DEV] PortableServers (TCP,UDP;+Thread)
Replies: 1
Views: 627

[DEV] PortableServers (TCP,UDP;+Thread)

PortableServers

Ver: 1.0.0


@Info

Portable servers that do not require much time to configure.


@Example

example.7z
(568 Bytes) Downloaded 40 times


@Download

PortableServers.7z
(865 Bytes) Downloaded 42 times
by Sam
Fri Jan 03, 2020 7:35 pm
Forum: Plugin Development Support
Topic: [ANY] Prevent user name changes
Replies: 10
Views: 677

Re: [ANY] Prevent user name changes

"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. I know, but my modem in the hills working badly xD I am not in the ...
by Sam
Fri Jan 03, 2020 7:18 pm
Forum: Plugin Development Support
Topic: [ANY] Prevent user name changes
Replies: 10
Views: 677

Re: [ANY] Prevent user name changes

I understand correctly? void CBaseClient::SetName: m_ConVars->SetString( "name", m_Name ); m_Server->UserInfoChanged( m_nClientSlot ); Yes, you are right, didn't notice the simple function :rolleyes: Oh my GOD. As I did not see this little function... xDD Take offsets or s...
by Sam
Fri Jan 03, 2020 7:09 pm
Forum: Plugin Development Support
Topic: [ANY] Prevent user name changes
Replies: 10
Views: 677

Re: [ANY] Prevent user name changes

I understand correctly? No, this is possible, although I'm not sure, will only block a chat message, and he needs more global preventing. else if ( Q_strcmp( "player_changename", eventname ) == 0 ) { if ( !hudChat ) return; const char *pszOldName = event->GetString...
by Sam
Fri Jan 03, 2020 5:57 pm
Forum: Plugin Development Support
Topic: [ANY] Prevent user name changes
Replies: 10
Views: 677

Re: [ANY] Prevent user name changes

I'm creating an plugin to integrate my discord with my TF2 servers; and want to force names to be sync'd. I need to be able to prevent players from changing their name. This code does not seem to work: @PreEvent('player_changename')def on_changename(event):    return EventAction.BLOCK Am I missing ...
by Sam
Fri Jan 03, 2020 5:41 pm
Forum: Code examples / Cookbook
Topic: [DEV] Algorithm for checking a point in a cube
Replies: 15
Views: 1991

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

Jesus... WHAT??? What you gave us is really bad. I wouldn't include this in any Cookbook. I just thought of a better alternative. And without it I suppose someone will use yours instead of the normal way. I respect your imagination of course but do not be impudent accepting your algorithm as the on...

Go to advanced search