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

Orpheu: Patching strings in memory


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-11-2010 , 04:44   Re: Orpheu: Patching strings in memory
Reply With Quote #41

Before wanted to solve SVC_BAD problems, it would be important to understand firstly when and why it happens exactly, so to use Orpheu intelligently with the right functions.
__________________
Arkshine is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 05-11-2010 , 07:53   Re: Orpheu: Patching strings in memory
Reply With Quote #42

Quote:
Originally Posted by Tirant View Post
Will this be able to be used to solve (some) SVC_BAD errors?

As far as I know, mostly svc_bad errores comes from a custom mods that uses RegUserMsg.

For example

- First you join a server with some server side custom msg (like sxe anticheat)
- Play normally
- Disconnect and try to join another server but without sxe (server side)

That will give you svc_bad error because your client has a custom msg registered and the server doesn't recognize it.

That's as far what I know.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Lt.RAT
Member
Join Date: Sep 2008
Location: Russia Yekaterinburg
Old 05-11-2010 , 15:23   Re: Orpheu: Patching strings in memory
Reply With Quote #43

Quote:
Originally Posted by joropito View Post
That will give you svc_bad error because your client has a custom msg registered and the server doesn't recognize it.
Very strange. At connect server sends to client
Code:
svc_serverinfo
svc_sendextrainfo
svc_deltadescription (each delta in his own svc_deltadescription)
svc_newmovevars
svc_cdtrack

    Packet: svc_newusermsg (0x27)
      Message Id: 145
      Length: -1
      Description: HudTextArgs
    Packet: svc_newusermsg (0x27)
      Message Id: 144
      Length: 0
      Description: ShowTimer
    Packet: svc_newusermsg (0x27)
      Message Id: 143
      Length: 7
      Description: Fog
    Packet: svc_newusermsg (0x27)
      Message Id: 142
      Length: -1
      Description: Brass

etc
so, server sends to client supported messages by server. If error with different number of registered usermsg exists, it`s client side error and we cant fix it.

Also svc_bad errors could come from buffer overflow. Server fills his buffer, and then last message could be broken. Client tried to parse message, and parsed some random values until "packet" with number "00" (svc_bad). So error not in transmitted svc_bad, but much early.
Lt.RAT is offline
Send a message via ICQ to Lt.RAT
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 05-11-2010 , 20:59   Re: Orpheu: Patching strings in memory
Reply With Quote #44

I am experimenting with this and I'm trying to change the "(Terrorist) %s : %s" to something else. I'm not sure you can change that one though, I've been fiddling with it for a little over an hour.
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-11-2010 , 21:19   Re: Orpheu: Patching strings in memory
Reply With Quote #45

Quote:
Originally Posted by Tirant View Post
I am experimenting with this and I'm trying to change the "(Terrorist) %s : %s" to something else. I'm not sure you can change that one though, I've been fiddling with it for a little over an hour.
Can't you just return PLUGIN_HANDLED on say_team and mimic the original chat message but with your own prefix?
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 05-11-2010 , 21:21   Re: Orpheu: Patching strings in memory
Reply With Quote #46

I wanted to experiment with this
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-12-2010 , 04:03   Re: Orpheu: Patching strings in memory
Reply With Quote #47

Yes you can. For cs1.6 linux, the address to this string is : 0x1AA1FF (rodata) and windows, 0x1186C4 (data).
__________________
Arkshine is offline
TSuNaMi_
BANNED
Join Date: Jan 2009
Location: After 2018 World
Old 05-12-2010 , 08:17   Re: Orpheu: Patching strings in memory
Reply With Quote #48

how can i delete dlfile command from engine?? i found it but i click right and i see copy command. Edit pls help...
TSuNaMi_ is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 05-12-2010 , 09:06   Re: Orpheu: Patching strings in memory
Reply With Quote #49

Quote:
Originally Posted by TSuNaMi_ View Post
how can i delete dlfile command from engine?? i found it but i click right and i see copy command. Edit pls help...
Maybe you can hook SV_BeginFileDownload_f()
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
TSuNaMi_
BANNED
Join Date: Jan 2009
Location: After 2018 World
Old 05-12-2010 , 11:30   Re: Orpheu: Patching strings in memory
Reply With Quote #50

Quote:
Originally Posted by joropito View Post
Maybe you can hook SV_BeginFileDownload_f()
i removed dlfile command and compiled engine so files. But now, players cant download maps from server =)

Last edited by TSuNaMi_; 05-13-2010 at 11:41.
TSuNaMi_ 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 23:46.


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