Raised This Month: $32 Target: $400
 8% 

[EXTENSION] [L4D2] 8+ players Bug Fixes (1.0.2)


Post New Thread Reply   
 
Thread Tools Display Modes
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 03-20-2016 , 20:43   Re: [EXTENSION] [L4D2] 8+ players Bug Fixes (1.0.2)
Reply With Quote #241

You are using the wrong offset for witch attack.
__________________
Spirit_12 is offline
dr_lex
Member
Join Date: Dec 2014
Old 08-11-2016 , 05:31   Re: [EXTENSION] [L4D2] 8+ players Bug Fixes (1.0.2)
Reply With Quote #242

Linux Versions
==================
Metamod 1.10.7-git9522
SourceMod 1.8.0-git5928

Last edited by dr_lex; 02-12-2020 at 08:54.
dr_lex is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 09-20-2016 , 06:37   Re: [EXTENSION] [L4D2] 8+ players Bug Fixes (1.0.2)
Reply With Quote #243

This extension, also, no longer works due to WitchAttack::WitchAttack signature change after the latest patch of L4D2.
cravenge is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 09-20-2016 , 07:39   Re: [EXTENSION] [L4D2] 8+ players Bug Fixes (1.0.2)
Reply With Quote #244

Learn signature searching so you can find the new signature yourself.
Potato Uno is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 09-20-2016 , 15:51   Re: [EXTENSION] [L4D2] 8+ players Bug Fixes (1.0.2)
Reply With Quote #245

Quote:
Originally Posted by cravenge View Post
This extension, also, no longer works due to WitchAttack::WitchAttack signature change after the latest patch of L4D2.
Extensions works fine on Linux, don't know about Windows.

Quote:
Originally Posted by Potato Uno View Post
Learn signature searching so you can find the new signature yourself.
This one requires an offset and not just a signature. I tried to learn that, but couldn't wrap my head around it.
__________________
Spirit_12 is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 09-20-2016 , 17:06   Re: [EXTENSION] [L4D2] 8+ players Bug Fixes (1.0.2)
Reply With Quote #246

If you need an offset then can't you get it from https://asherkin.github.io/vtable/ ?
Potato Uno is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 09-20-2016 , 18:08   Re: [EXTENSION] [L4D2] 8+ players Bug Fixes (1.0.2)
Reply With Quote #247

Quote:
Originally Posted by Potato Uno View Post
If you need an offset then can't you get it from https://asherkin.github.io/vtable/ ?
The offset that is used in this extension is not a virtual one. I already tried dumping the tables manually and its just not there.
__________________
Spirit_12 is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 09-21-2016 , 07:46   Re: [EXTENSION] [L4D2] 8+ players Bug Fixes (1.0.2)
Reply With Quote #248

If you need an offset that points to a C++ class property, then you are in for some real serious pain.

Unless if you can reverse engineer the game AND know the game's internals really well, you won't be able to find it. Essentially you are looking for a C++ property like m_bDisabled or m_nTotalCurrency, which doesn't show up symbolically (variable names don't get preserved), but rather show up as something like (pointer + offset) like: *(this + 934), where 934 is the offset you are looking for.

You need to know where this C++ property is located (which functions accesses it), locate at least one of those functions in both linux and windows, and read the offset (similar to signature scanning except here neither windows nor linux has the symbol to the property of interest).

Since the extension works on linux, you can try to search for the offset in linux and cross-reference to windows. Alternatively, if you are lazy, do +/- 4 to the windows offset and keep restarting your server until the extension works (no guarantee of working but it's definitely an option). For example, test offset 1052, 1044, 1040, 1036, ...until you run out of patience.

Last edited by Potato Uno; 09-21-2016 at 07:59. Reason: Removed wall of text
Potato Uno is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 09-21-2016 , 13:11   Re: [EXTENSION] [L4D2] 8+ players Bug Fixes (1.0.2)
Reply With Quote #249

I'm not sure, if the offset has changed for windows this time or not, but I updated the signatures. Would someone be willing to test it?

PHP Code:
/* created by V10 aka maldersoft */
"Games"
{
    
"left4dead2"
    
{    
        
"Offsets"
        
{
            
"WitchAttackCharaster"
            
{
                
"windows"    "275"
                "linux"        "14"
            
}
            
            
"SurvivorCounters"
            
{
                
"windows"    "1056"
                "linux"        "1048"
            
}
                        
            
/* Offset into CDirectorMusicBanks::OnRoundStart */
            
"TheDirector"
            
{
                
"windows"    "12"
            
}            
        }
        
"Signatures"
        
{
            
"WitchAttack::WitchAttack"
            
{
                
"library"    "server"
                "windows"    "\x55\x8B\xEC\x83\xEC\x10\x53\x33\xDB\x56\x89\x4D\x2A\x38\x5D\x2A\x74\x0C\xA1\xEC\x2A\x2A\x2A\xF3\x0F\x2A\x2A\x2A\xEB\x0B\x8B\x0D"
                "linux"        "@_ZN11WitchAttackC1EP11CBaseEntity"
                
/* 55 8B EC 83 EC 10 53 33 DB 56 89 4D ? 38 5D ? 74 0C A1 EC ? ? ? F3 0F ? ? ? EB 0B 8B 0D */
            
}
        
            
"CCharge::HandleCustomCollision_code"
            
{
                
"library"    "server"
                "windows"    "\x0F\x85\x2A\x2A\x2A\x00\xC6\x00\x01\x8B\x15\x2A\x2A\x2A\x2A\xF3\x0F\x10\x42\x2A\xF3\x0F\x59\xC0\x0F"
                "linux"        "\x0F\x85\x2A\x2A\xFF\xFF\xC6\x84\x2A\x2A\x2A\x2A\x00\x01\xF3\x0F\x58\xC1\xA1\x2A\x2A\x2A\x2A\xF3\x0F\x58\xC2\xF3"
                
/* 0F 85 2A 2A 2A 00 C6 00 01 8B 15 ? ? ? ? F3 0F 10 42 ? F3 0F 59 C0 0F */
            
}
            
            
"CCharge::HandleCustomCollision"
            
{
                
"library"    "server"
                "windows"    "\x55\x8B\xEC\x81\xEC\x2A\x2A\x00\x00\xA1\x2A\x2A\x2A\x2A\x33\xC5\x89\x45\x2A\x8B\x45\x2A\x53\x8B\xD9\x89\x45\x2A\x8B\x83\x2A\x2A\x00\x00\x56\x8B\x75"
                "linux"        "@_ZN7CCharge21HandleCustomCollisionEP11CBaseEntityRK6VectorS4_P10CGameTraceP9CMoveData"
                
/* 55 8B EC 81 EC ? ? 00 00 A1 ? ? ? ? 33 C5 89 45 ? 8B 45 ? 53 8B D9 89 45 ? 8B 83 ? ? 00 00 56 8B 75 */
            
}
            
            
"CTerrorGameRules::CalculateSurvivalMultiplier"
            
{
                
"library"    "server"
                "windows"    "\x55\x8B\xEC\x83\xEC\x2A\x80\x7D\x2A\x00\x53\x56\x8B\xD9\x0F\x84\x2A\x2A\x00\x00"
                "linux"        "@_ZN16CTerrorGameRules27CalculateSurvivalMultiplierEb"
                
/* 55 8B EC 83 EC ? 80 7D ? 00 53 56 8B D9 0F 84 ? ? 00 00 */
            
}
            
            
"TheDirector"
            
{
                
"library"    "server"
                "linux"        "@TheDirector"
            
}
            
            
"DirectorMusicBanks::OnRoundStart"
            
{
                
"library"    "server"
                "windows"   "\x55\x8B\xEC\x83\xEC\x2A\x56\x57\x8B\xF9\x8B\x0D\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x84\xC0\x0F\x85"
                
/* 55 8B EC 83 EC ? 56 57 8B F9 8B 0D ? ? ? ? E8 ? ? ? ? 84 C0 0F 85 */
            
}
            
            
"CDirector::AreTeamsFlipped"
            
{
                
"library"    "server"
                "windows"   "\x57\x8B\xF9\xE8\x2A\x2A\x2A\x2A\x84\xC0\x75\x2A\xF7\x05\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x00\x56\x74\x2A\xBE"
                "linux"        "@_ZNK9CDirector15AreTeamsFlippedEv"
                
/* 57 8B F9 E8 ? ? ? ? 84 C0 75 ? F7 05 ? ? ? ? ? ? ? 00 56 74 ? BE */
            
}
            
        }
    }

Attached Files
File Type: txt l4d2_bugfixes.txt (2.6 KB, 185 views)
__________________

Last edited by Spirit_12; 09-21-2016 at 13:14.
Spirit_12 is offline
bazrael
Senior Member
Join Date: Jan 2010
Location: Where Lucy became superw
Old 12-28-2016 , 10:41   Re: [EXTENSION] [L4D2] 8+ players Bug Fixes (1.0.2)
Reply With Quote #250

Quote:
Originally Posted by Spirit_12 View Post
I'm not sure, if the offset has changed for windows this time or not, but I updated the signatures. Would someone be willing to test it?
I've used for a month and found out that it would accidentally crash the Windows server with latest Sourcemod when players or bot survivors died.
bazrael 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 00:34.


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