Raised This Month: $47 Target: $400
 11% 

[EXTENSION] [L4D2] Defibrillator Bug Fix (on servers higher than 8 players) [1.0.1]


Post New Thread Reply   
 
Thread Tools Display Modes
crasx
Member
Join Date: May 2011
Location: Lakewood, CO
Old 01-05-2014 , 01:54   Re: [EXTENSION] [L4D2] Defibrillator Bug Fix (on servers higher than 8 players) [1.0.
Reply With Quote #151

Quote:
Originally Posted by johnng0102 View Post
any update / gamedata or link ? not work on 2134 ?

thanks a lot again.

[01] <FAILED> file "defibfix.ext.dll": Cannot SetupHooks or GetOffset.
[02] <FAILED> file "l4d2_bugfixes.ext.dll":
did you try the sig I posted? What does your error log say?
crasx is offline
johnng0102
Member
Join Date: Jun 2012
Location: HK
Old 01-05-2014 , 11:03   Re: [EXTENSION] [L4D2] Defibrillator Bug Fix (on servers higher than 8 players) [1.0.
Reply With Quote #152

Quote:
Originally Posted by crasx View Post
did you try the sig I posted? What does your error log say?
u mean this message ?

L 01/01/2014 - 23:48:57: [DefibFix] CBaseEntity__SetAbsOrigin = 0x56440230
L 01/01/2014 - 23:48:59: [GEOIP] GeoIP database info: GEO-106FREE 20091001 Build 1 Copyright (c) 2009 MaxMind Inc All Rights Reserved
johnng0102 is offline
RDiver
Member
Join Date: Mar 2010
Old 01-07-2014 , 02:20   Re: [EXTENSION] [L4D2] Defibrillator Bug Fix (on servers higher than 8 players) [1.0.
Reply With Quote #153

Quote:
Originally Posted by johnng0102 View Post
u mean this message ?

L 01/01/2014 - 23:48:57: [DefibFix] CBaseEntity__SetAbsOrigin = 0x56440230
L 01/01/2014 - 23:48:59: [GEOIP] GeoIP database info: GEO-106FREE 20091001 Build 1 Copyright (c) 2009 MaxMind Inc All Rights Reserved
Old Ghost bro ! crasx has already posted a set of the new signature for the gamedata file of the extension. You need to edit the file yourself by replacing the similar set of code. However I haven't tested yet so not sure it really works.

Quote:
Originally Posted by crasx View Post
Code:
			"DefibrillatorOnStartAction"
			{
				"library"	"server"
				"windows"	"\x55\x8B\xEC\xD9\xEE\x53\x56\x57\x8B\x7D\x0C"
				/*"windows"	"\x55\x8b\xec\x0f\x57\xc0\x53\x56\x57\x8b\x7d*\x6a\x00\x51\xf3****\x68"*/
				"linux"		"@_ZN18CItemDefibrillator13OnStartActionEN17CBaseBackpackItem22BackpackItemActionTypeEP13CTerrorPlayerP11CBaseEntityf"
			}

Last edited by RDiver; 01-07-2014 at 02:22.
RDiver is offline
johnng0102
Member
Join Date: Jun 2012
Location: HK
Old 01-07-2014 , 10:11   Re: [EXTENSION] [L4D2] Defibrillator Bug Fix (on servers higher than 8 players) [1.0.
Reply With Quote #154

Quote:
Originally Posted by RDiver View Post
Old Ghost bro ! crasx has already posted a set of the new signature for the gamedata file of the extension. You need to edit the file yourself by replacing the similar set of code. However I haven't tested yet so not sure it really works.

rd, long time no see. thanks your message.

[03] DefibFix Extension (1.0.1) by V10
[04] [L4D2] 8+ Players BugFixes (1.0.0.7) by V10

updated & no error message.
johnng0102 is offline
Accelerator74
AlliedModders Donor
Join Date: Dec 2010
Location: Russia
Old 02-06-2014 , 03:54   Re: [EXTENSION] [L4D2] Defibrillator Bug Fix (on servers higher than 8 players) [1.0.
Reply With Quote #155

Slightly updated this extension.

Changes:
* Added function that further scans all dead players on the server. If all players are alive, dead body is removed.
Attached Files
File Type: zip defibfix.zip (108.2 KB, 1715 views)
File Type: zip src.zip (35.8 KB, 472 views)

Last edited by Accelerator74; 02-06-2014 at 04:17.
Accelerator74 is offline
Send a message via ICQ to Accelerator74
extrav3rt
AlliedModders Donor
Join Date: Jul 2014
Old 09-15-2014 , 03:14   Re: [EXTENSION] [L4D2] Defibrillator Bug Fix (on servers higher than 8 players) [1.0.
Reply With Quote #156

Code:
warning: .dynamic section for "/home/gameserver/games/steam/l4d2-1/left4dead2/addons/sourcemod/extensions/defibfix.ext.so" is not at the expected address (wrong library or version mismatch?)

warning: .dynamic section for "bin/steamclient.so" is not at the expected address (wrong library or version mismatch?)
email debug.log to [email protected]
Пн. сент. 15 10:36:58 MSK 2014: Server restart in 10 seconds
#Using breakpad minidump system
Using breakpad crash handler
extrav3rt is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 02-19-2015 , 16:34   Re: [EXTENSION] [L4D2] Defibrillator Bug Fix (on servers higher than 8 players) [1.0.
Reply With Quote #157

Needs to be fixed:

Quote:
L 02/19/2015 - 162:28: SourceMod error session started
L 02/19/2015 - 162:28: Info (map "c8m1_apartment") (file "errors_20150219.log")
L 02/19/2015 - 162:28: [DefibFix] Sigscan for DefibrillatorOnStartAction failed - Disabling detour to prevent crashes
L 02/19/2015 - 162:28: [SM] Unable to load extension "defibfix.ext": Cannot SetupHooks or GetOffset.
__________________
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 03-10-2015 , 10:34   Re: [EXTENSION] [L4D2] Defibrillator Bug Fix (on servers higher than 8 players) [1.0.
Reply With Quote #158

I have a question.

Is it somehow possible to change the client index for who the survivor_death_model belongs to?

As in, change who will get revived if you defib the death model?
__________________
DeathChaos25 is offline
spumer
Senior Member
Join Date: Aug 2011
Old 03-11-2015 , 03:21   Re: [EXTENSION] [L4D2] Defibrillator Bug Fix (on servers higher than 8 players) [1.0.
Reply With Quote #159

DeathChaos25, as i can see in `int CSurvivorDeathModel::Create(CTerrorPlayer *pPlayer)` function, you can do this.

PHP Code:
CSurvivorDeathModel::SetPlayer(pNewDeathModelpPlayer); 
Source: http://pastebin.com/yG7Ryc3V

I don't test this of course. If you need some help in investigate this - just PM me.


UPD: SetPlayer just set m_nCharacterType [#], i think you need detour "search function" in place where player retrieved by m_nCharacterType.
I did something like this in my Left4Fix extension when detour search player for infected ghost teleport.
__________________

Last edited by spumer; 03-11-2015 at 03:34.
spumer is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 03-11-2015 , 20:09   Re: [EXTENSION] [L4D2] Defibrillator Bug Fix (on servers higher than 8 players) [1.0.
Reply With Quote #160

Quote:
Originally Posted by spumer View Post
DeathChaos25, as i can see in `int CSurvivorDeathModel::Create(CTerrorPlayer *pPlayer)` function, you can do this.

PHP Code:
CSurvivorDeathModel::SetPlayer(pNewDeathModelpPlayer); 
Source: http://pastebin.com/yG7Ryc3V

I don't test this of course. If you need some help in investigate this - just PM me.


UPD: SetPlayer just set m_nCharacterType [#], i think you need detour "search function" in place where player retrieved by m_nCharacterType.
I did something like this in my Left4Fix extension when detour search player for infected ghost teleport.
I REALLY need to learn how to make extensions.

For my L4D1 survivors mourn fix plugin, I made it so that If people ragdoll upon death,it creates an invisible survivor_death_model where they died and became a ragdoll.

PHP Code:
public PlayerHurt_Event(Handle:event, const String:name[], bool:dontBroadcast)
{
 
    new 
client GetClientOfUserId(GetEventInt(event"userid"))
    
    if (!
IsSurvivor(client))
    {
        return
    }
    
    new 
health GetEventInt(event"health")
    
    if (
health 0)
    {
        return
    }
 
    new 
entity;
    new 
String:modelname[128];
    
GetEntPropString(clientProp_Data"m_ModelName"modelname128);
    
    
entity CreateEntityByName("survivor_death_model");
    
SetEntityModel(entitymodelname);
    
    new 
Float:g_Origin[3];
    new 
Float:g_Angle[3];
    
    
GetClientAbsOrigin(clientg_Origin);
    
GetClientAbsAngles(clientg_Angle);
    
    
TeleportEntity(entityg_Origing_AngleNULL_VECTOR);
    
DispatchSpawn(entity);
    
SetEntityRenderMode(entityRENDER_NONE);

By using this extension (defib fix) you can actually revive players from these death models, however, because I have no way of assigning who gets revived from what survivor_death_model, the engine just gets whatever dead survivor it finds first in the player index.

I'll have a look at the source and look up how to code extensions and see what I can come up with.
__________________
DeathChaos25 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 13:32.


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