Modifying chat with sayfilter but SayCommand doesnt "register"

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Modifying chat with sayfilter but SayCommand doesnt "register"

Postby Ayuto » Sun Apr 09, 2017 9:45 am

I think SM was allocating fake buffers. Those buffers seem to be allocated without RTTI data. That's similar to the issue we had here:
https://github.com/Source-Python-Dev-Te ... -232789719
decompile
Senior Member
Posts: 416
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

Re: Modifying chat with sayfilter but SayCommand doesnt "register"

Postby decompile » Sun Apr 09, 2017 11:58 am

How would that look like?
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Modifying chat with sayfilter but SayCommand doesnt "register"

Postby Ayuto » Sun Apr 09, 2017 12:59 pm

Maybe something like this will work:

Syntax: Select all

from memory import get_object_pointer

buffer = ProtobufMessage('CCSUsrMsg_SayText2')
args[3].copy(buffer, buffer.byte_size)

# Do you stuff here

get_object_pointer(buffer).copy(args[3], buffer.byte_size)
But I can't really tell you more without doing tests on my own.
decompile
Senior Member
Posts: 416
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

Re: Modifying chat with sayfilter but SayCommand doesnt "register"

Postby decompile » Sun Jun 18, 2017 2:18 pm

CS:S received an update 2 days ago, and looks like some signatures changed.

Could someone please update that?

UTIL_SayText2Filter = server[SAYTEXT2_FILTER_IDENTIFIER].make_function(

ValueError: Could not find signature: 558bec2a2a2a2a2a2a2a2ae8c05ff1ff
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Re: Modifying chat with sayfilter but SayCommand doesnt "register"

Postby iPlayer » Sun Jun 18, 2017 7:24 pm

New signature is

Code: Select all

\x55\x8B\xEC\x68\x2A\x2A\x2A\x2A\xFF\x75\x08\xE8\x2A\x2A\x2A\x2A\x8B\x45\x0C
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 34 guests