Raised This Month: $ Target: $400
 0% 

signature for SwitchTeam


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jimihendrix
Member
Join Date: May 2007
Old 07-09-2011 , 14:12   signature for SwitchTeam
Reply With Quote #1

i have this signature, in old CSS version works

unsigned char *SwitchTeamSig = (unsigned char *)"\x83\xEC\x10\x56\x57\x8B\x7C\x24\x1C\x57\x 8B\xF1\xE8\x7F\xE8\xF9\xFF\x83\xC4\x04\x85\xC 0\x0F\x84\xEA\x00\x00\x00\x83\xFF\x03\x74\x09 \x83\xFF\x02\x0F\x85\xDC\x00\x00\x00\x8B\xCE\ xE8\xAF\x22\xE1\xFF\x3B\xF8\x0F\x84\xDC\x00\x 00\x00\x57\x8B\xCE\xC6\x86\x14\x0E";

char *SwitchTeamMask= "xxxxxxxxxxxxx????xxxxxxxxxxxxxxxxxxxxxxxxxxx x????xxxxxxxxxxxxx??";

ideas?
jimihendrix is offline
jimihendrix
Member
Join Date: May 2007
Old 07-12-2011 , 07:51   Re: signature for SwitchTeam
Reply With Quote #2

i fix it with sourcemod signatures


solved
jimihendrix is offline
jimihendrix
Member
Join Date: May 2007
Old 07-18-2011 , 13:40   Re: signature for SwitchTeam
Reply With Quote #3

in win works ok bt in linux get this message
SigScan ERROR: dlsym() failed for function "CCSPlayer::SwitchTeam" with error: "/home/prog1/srcds_l/orangebox/cstrike/bin/server.so: undefined symbol: _ZN9CCSPlayer10SwitchTeamEi", plugin will not function properly.

dlsym return 0 always
how get in linux

thanks
jimihendrix is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 07-18-2011 , 20:15   Re: signature for SwitchTeam
Reply With Quote #4

The Linux binaries are built with -fvisibility=hidden which makes most symbols invisible as far as dlsym is concerned. SourceMod solves this by reading the symbol table (.symtab section) from the binary and adding the symbol offsets to the base memory address of the binary.

See MemoryUtils::ResolveSymbol: http://hg.alliedmods.net/sourcemod-c...Utils.cpp#l142

The only other option besides that would be to use signatures for Linux too.
DS is offline
jimihendrix
Member
Join Date: May 2007
Old 07-19-2011 , 16:31   Re: signature for SwitchTeam
Reply With Quote #5

thank you very much
I'll try to implement sm code in my plugin
jimihendrix is offline
jimihendrix
Member
Join Date: May 2007
Old 07-21-2011 , 09:46   Re: signature for SwitchTeam
Reply With Quote #6

now works win/linux thanks

solved
jimihendrix 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 03:43.


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