Raised This Month: $300 Target: $400
 75% 

[l4d2]PrepSDKCall_SetSignature Problem?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
L4d2mylove88
New Member
Join Date: Feb 2020
Old 02-23-2020 , 22:41   [l4d2]PrepSDKCall_SetSignature Problem?
Reply With Quote #1

i want use PrepSDKCall_SetSignature to set gamedata witch it's txt file,

but i have some problem with this

look at those pic

PHP Code:
StartPrepSDKCall(SDKCall_Player);
    
/*if (!PrepSDKCall_SetSignature(SDKLibrary_Server, "\x53\x8B\xDC\x83\xEC\x08\x83\xE4\xF0\x83\xC4\x04\x55\x8B\x6B\x04\x89\x6C\x24\x04\x8B\xEC\x81\xEC\xA8\x00\x00\x00\\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x8B\x43\x10", 42))
    {
        PrepSDKCall_SetSignature(SDKLibrary_Server, "@_ZN13CTerrorPlayer5FlingERK6Vector17PlayerAnimEvent_tP20CBaseCombatCharacterf", 0);
    }*/
    
PrepSDKCall_SetFromConf(Game_File_MeSDKConf_Signature"CTerrorPlayer_Fling");
    
PrepSDKCall_AddParameter(SDKType_VectorSDKPass_ByRef);
    
PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Plain);
    
PrepSDKCall_AddParameter(SDKType_CBasePlayerSDKPass_Pointer);
    
PrepSDKCall_AddParameter(SDKType_FloatSDKPass_Plain);
    
sdkCallPushPlayer EndPrepSDKCall(); 

http://s2.ax1x.com/2020/02/24/3890G4.png

http://s2.ax1x.com/2020/02/24/389sMR.png

"42" is not true number! it will trobule the game
Attached Files
File Type: txt gamedata.txt (525 Bytes, 15 views)
L4d2mylove88 is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 02-23-2020 , 23:46   Re: [l4d2]PrepSDKCall_SetSignature Problem?
Reply With Quote #2

The double slash is wrong, remove 1. The number is 41 bytes.

Why are you hardcoding it into the plugin and not using a GameData file?
__________________

Last edited by Silvers; 02-23-2020 at 23:47.
Silvers is offline
L4d2mylove88
New Member
Join Date: Feb 2020
Old 02-24-2020 , 00:36   Re: [l4d2]PrepSDKCall_SetSignature Problem?
Reply With Quote #3

Quote:
Originally Posted by Silvers View Post
The double slash is wrong, remove 1. The number is 41 bytes.

Why are you hardcoding it into the plugin and not using a GameData file?
very nice, gentleman!

i just want another way to rewrite my file, i think it may be something code rule

but it just a mistake in that file!
L4d2mylove88 is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 02-24-2020 , 00:44   Re: [l4d2]PrepSDKCall_SetSignature Problem?
Reply With Quote #4

PrepSDKCall_SetSignature is fine for testing plugins or personal private plugins (why you would do that I don't know), but if you're going to release something you shouldn't hardcode and instead use the gamedata file. It's there to prevent people having to re-compile plugins when simply the signature breaks.

Also not being able to determine Windows/Linux and blinding searching for those bytes is bad, with shorter signatures you could find something on Linux using Windows sig.

One legitimate usage would be providing a way to search for signatures like I did with sm_sig plugin.
__________________

Last edited by Silvers; 02-24-2020 at 00:48.
Silvers is offline
L4d2mylove88
New Member
Join Date: Feb 2020
Old 02-24-2020 , 01:01   Re: [l4d2]PrepSDKCall_SetSignature Problem?
Reply With Quote #5

Quote:
Originally Posted by Silvers View Post
PrepSDKCall_SetSignature is fine for testing plugins or personal private plugins (why you would do that I don't know), but if you're going to release something you shouldn't hardcode and instead use the gamedata file. It's there to prevent people having to re-compile plugins when simply the signature breaks.

Also not being able to determine Windows/Linux and blinding searching for those bytes is bad, with shorter signatures you could find something on Linux using Windows sig.

One legitimate usage would be providing a way to search for signatures like I did with sm_sig plugin.
It's too late for us to wait for your masterpiece!
L4d2mylove88 is offline
Reply


Thread Tools
Display Modes

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 10:16.


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