Raised This Month: $51 Target: $400
 12% 

[ANY] VoiceannounceEX (VoiceHook) [Updated 20-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
killersoft
New Member
Join Date: Aug 2021
Old 09-26-2022 , 01:16   Re: [ANY] VoiceannounceEX (VoiceHook) [Updated 23-Sep-2021]
Reply With Quote #151

MOD wont compile on SourceMod v1.11 (v6911)
--------------------
admin:~/css/cstrike/addons/sourcemod/scripting$ ./compile.sh voiceannounce_ex.sp

Compiling voiceannounce_ex.sp...
SourcePawn Compiler 1.11.0.6911
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2021 AlliedModders LLC

./include/voiceannounce_ex.inc(57) : error 021: symbol already defined: "OnClientSpeakingEnd"

1 Error.
--------------------------
killersoft is offline
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-20-2022 , 08:02   Re: [ANY] VoiceannounceEX (VoiceHook)
Reply With Quote #152

Quote:
Originally Posted by Electr000999 View Post
i compiled this plugin for sm 1.7.1 and Dhooks 2.0 but, on linux i have issue, player who use voice - freezes..(for example if player jump and use voice he slowly falls on ground), and in console spam:

Code:
clc_VoiceData >> h{...................7.. 687bc7f6 00000000 d8c4060d a0989113 c0010000 e537c9f6 
clc_VoiceData >> ........p...I.........a. 00000000 80030000 70000000 49000000 0a000000 c096610a 
clc_VoiceData >> ..a.p.a................. e096610a 7096610a 00000000 00000000 ffffffff 00000000 
clc_VoiceData >> ................ 00010000 00000000 00000000 00000000 
RAW(clc_VoiceData) end 
.....
failed processing
without plug-course all good. with old dhooks issue not observed.
on windows works fine, may be signatures for L4D2 outdate, but callback works correct.

Quote:
Originally Posted by Noodl View Post
With the offsets I found for tf, nothing happens. No error logs, no functions fire, and in turn, clients do not freeze.

The old offsets, which, for tf, do not resemble anything anymore, cause the bizarre lag issues.
For the people noticing that players move in slow motion/lag when speaking on the microphone while using this plugin. The reason is because the hook calling convention on the
PHP Code:
bool CGameClient::ProcessVoiceDataCLC_VoiceData *msg 
function is incorrect inside the
PHP Code:
voiceannounce_ex.sp 
file. The call return type is defined as
PHP Code:
ReturnType_Void 
when it should be
PHP Code:
ReturnType_Bool 
.

Change this line:
PHP Code:
g_hProcessVoice DHookCreate(offsetHookType_RawReturnType_VoidThisPointer_AddressHook_ProcessVoiceData); 
to this:
PHP Code:
g_hProcessVoice DHookCreate(offsetHookType_RawReturnType_BoolThisPointer_AddressHook_ProcessVoiceData); 
The reason this bug makes the players move in slow motion is because it always returns false on this function. When the function returns false it will exit the loop that parses the remote network messages from the client since it wont know how to continue to parse the rest of the messages if the current bitstream is not encoded correctly. Clients move by sending CLC_Move network messages that end up being placed after the CLC_VoiceData. This leads to the messages not being parsed and the server receiving less clc_move commands. CLC_VoiceData aren't sent with every single packet, so half of the clc_move messages get dropped while the other half wont.
__________________
I highly recommend joining the SourceMod Discord Server for real time support.

Last edited by backwards; 03-28-2023 at 08:10.
backwards is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 12-20-2022 , 12:12   Re: [ANY] VoiceannounceEX (VoiceHook)
Reply With Quote #153

Quote:
Originally Posted by backwards View Post
For the people noticing that players move in slow motion/lag when speaking on the microphone while using this plugin. The reason is beacuse the hook calling convention on the
PHP Code:
bool CGameClient::ProcessVoiceDataCLC_VoiceData *msg 
function is incorrect inside the
PHP Code:
voiceannounce_ex.sp 
file. The call return type is defined as
PHP Code:
ReturnType_Void 
when it should be
PHP Code:
ReturnType_Bool 
.

Change this line:
PHP Code:
g_hProcessVoice DHookCreate(offsetHookType_RawReturnType_VoidThisPointer_AddressHook_ProcessVoiceData); 
to this:
PHP Code:
g_hProcessVoice DHookCreate(offsetHookType_RawReturnType_BoolThisPointer_AddressHook_ProcessVoiceData); 
The reason this bug makes the players move in slow motion is because it always returns false on this function. When the function returns false it will exit the loop that parses the remote network messages from the client since it wont know how to continue to parse the rest of the msesages if the current bitstream is not encoded correctly. Clients move by sending CLC_Move network messages that end up being placed after the CLC_VoiceData. This leads to the messages not being parsed and the server receiving less clc_move commands. CLC_VoiceData aren't sent with every single packet, so half of the clc_move messages get dropped while the other half wont.
Thanks, added to the first post.

Btw, this is not needed if you are using latest sourcemod version since it have now speaking natives.
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 12-20-2022 at 12:57.
Franc1sco is offline
Send a message via MSN to Franc1sco
egorka2
Member
Join Date: Jun 2010
Old 01-31-2023 , 08:26   Re: [ANY] VoiceannounceEX (VoiceHook) [Updated 20-Dec-2022]
Reply With Quote #154

\voiceannounce_ex.inc(57) : error 021: symbol already defined: "OnClientSpeakingEnd"
egorka2 is offline
mrdiega
Member
Join Date: Dec 2020
Old 03-24-2023 , 18:27   Re: [ANY] VoiceannounceEX (VoiceHook) [Updated 20-Dec-2022]
Reply With Quote #155

Code:
//// voiceannounce_ex.sp
//
// D:\sourcemod-1.11.0-git6931-linux\addons\sourcemod\scripting\include\voiceannounce_ex.inc(57) : error 021: symbol already defined: "OnClientSpeakingEnd"
how to fix?
mrdiega is offline
q1085909155
Member
Join Date: Oct 2021
Old 03-25-2023 , 03:43   Re: [ANY] VoiceannounceEX (VoiceHook) [Updated 20-Dec-2022]
Reply With Quote #156

Can anyone run it on TF2?
q1085909155 is offline
ayrton09_arg
Senior Member
Join Date: Nov 2017
Old 10-20-2023 , 23:15   Re: [ANY] VoiceannounceEX (VoiceHook) [Updated 20-Dec-2022]
Reply With Quote #157

hello i got this in my CS:S server

L 10/21/2023 - 00:13:51: [SM] Blaming: voiceannounce_ex.smx
L 10/21/2023 - 00:13:51: [SM] Call stack trace:
L 10/21/2023 - 00:13:51: [SM] [0] SDKCall
L 10/21/2023 - 00:13:51: [SM] [1] Line 223, D:\GitHub\VoiceAnnounceEX\scripting\voiceanno unce_ex.sp::GetIClient
L 10/21/2023 - 00:13:51: [SM] [2] Line 242, D:\GitHub\VoiceAnnounceEX\scripting\voiceanno unce_ex.sp::GetIMsgHandler
L 10/21/2023 - 00:13:51: [SM] [3] Line 117, D:\GitHub\VoiceAnnounceEX\scripting\voiceanno unce_ex.sp::OnClientPutInServer
L 10/21/2023 - 00:13:53: [SM] Exception reported: ThisPtr address cannot be null
L 10/21/2023 - 00:13:53: [SM] Blaming: voiceannounce_ex.smx
ayrton09_arg is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode