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

[L4D2] l4d2_direct -- Direct plugin access to L4D2 globals


Post New Thread Reply   
 
Thread Tools Display Modes
Devilfish
Senior Member
Join Date: Jan 2006
Old 02-18-2013 , 01:24   Re: [L4D2] l4d2_direct -- Direct plugin access to L4D2 globals
Reply With Quote #11

Gamedata link is still dead for latest offsets any chance this can be fixed
__________________
SimianCage - Where Monkeys have Guns & Drink beer!
>Join Simiancage Steam Community Here<
Is it fixed? D3v can break it!
Devilfish is offline
Send a message via ICQ to Devilfish
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 02-18-2013 , 12:29   Re: [L4D2] l4d2_direct -- Direct plugin access to L4D2 globals
Reply With Quote #12

I typed "l4d2 direct" into google and this was the first link: https://github.com/ConfoglTeam/l4d2_direct
Skyy is offline
ProdigySim
SourceMod Plugin Approver
Join Date: Feb 2010
Old 02-19-2013 , 04:00   Re: [L4D2] l4d2_direct -- Direct plugin access to L4D2 globals
Reply With Quote #13

Updated the gamedata links.
ProdigySim is offline
ajr1234
Senior Member
Join Date: Mar 2011
Location: Chicago, IL, U.S.A.
Old 02-20-2013 , 19:15   Re: [L4D2] l4d2_direct -- Direct plugin access to L4D2 globals
Reply With Quote #14

This is a gold mine. Thanks man
ajr1234 is offline
jesy
Junior Member
Join Date: Jun 2007
Old 03-26-2013 , 20:52   Re: [L4D2] l4d2_direct -- Direct plugin access to L4D2 globals
Reply With Quote #15

I took latest https://github.com/ConfoglTeam/l4d2_...4d2_direct.txt
Im using plugins:
......
And it isnt working. I dont see it listed. Could you help me please? Thank you

//edit: outdated

Last edited by jesy; 03-27-2013 at 07:28.
jesy is offline
jesy
Junior Member
Join Date: Jun 2007
Old 03-27-2013 , 07:27   Re: [L4D2] l4d2_direct -- Direct plugin access to L4D2 globals
Reply With Quote #16

OK. If I compile l4d2_direct-master\scripting\l4d2direct_test.sp it spits me errors:

Code:
 //SourceMod Batch Compiler
 // by the SourceMod Dev Team


 //// l4d2direct_test.sp
 // D:\L4D2.server\left4dead2\left4dead2\addons\sourcemod\scripting\include\l4d2d_internals.inc(264) : error 021: symbol already defined: "GetEntityAddress"
 // D:\L4D2.server\left4dead2\left4dead2\addons\sourcemod\scripting\include\l4d2d_internals.inc(266) : error 010: invalid function or declaration
 // D:\L4D2.server\left4dead2\left4dead2\addons\sourcemod\scripting\include\l4d2d_internals.inc(268) : error 010: invalid function or declaration
 // D:\L4D2.server\left4dead2\left4dead2\addons\sourcemod\scripting\include\l4d2d_internals.inc(271) : error 010: invalid function or declaration
 // D:\L4D2.server\left4dead2\left4dead2\addons\sourcemod\scripting\include\l4d2d_internals.inc(274) : error 010: invalid function or declaration
 // D:\L4D2.server\left4dead2\left4dead2\addons\sourcemod\scripting\include\l4d2d_internals.inc(276) : error 010: invalid function or declaration
 // D:\L4D2.server\left4dead2\left4dead2\addons\sourcemod\scripting\include\l4d2d_internals.inc(281) : error 010: invalid function or declaration
 // D:\L4D2.server\left4dead2\left4dead2\addons\sourcemod\scripting\include\l4d2d_internals.inc(283) : error 010: invalid function or declaration
 // D:\L4D2.server\left4dead2\left4dead2\addons\sourcemod\scripting\include\l4d2d_internals.inc(286) : error 010: invalid function or declaration
 // D:\L4D2.server\left4dead2\left4dead2\addons\sourcemod\scripting\l4d2direct_test.sp(270) : warning 203: symbol is never used: "GetBaseEntitySDKCall"
 //
 // 9 Errors.
 //
 // Compilation Time: 0,16 sec
 // ----------------------------------------

 Press enter to exit ...
Any advices? Thanks

Last edited by jesy; 03-27-2013 at 10:08.
jesy is offline
dcx2
Senior Member
Join Date: Sep 2011
Old 06-19-2013 , 02:50   Re: [L4D2] l4d2_direct -- Direct plugin access to L4D2 globals
Reply With Quote #17

Just thought you might like to know that I found a good use for L4D2 Direct. I needed it to touch the Survivor's Invulnerability Timer for my Jockey Incap Ride plugin. It worked perfectly
__________________

Last edited by dcx2; 07-07-2013 at 02:54.
dcx2 is offline
dcx2
Senior Member
Join Date: Sep 2011
Old 07-07-2013 , 02:56   Re: [L4D2] l4d2_direct -- Direct plugin access to L4D2 globals
Reply With Quote #18

@jesy - I just had the same problem you did. Apparently SM 1.6 has a GetEntityAddress() native all on its own, which conflicts with l4d2_direct's version because of the name. If you go into l4d2d_internals.inc and comment out the entire GetEntityAddress function, it should work.

EDIT:

Found this offset

PHP Code:
            "CTerrorPlayer::InvulnerabilityTimer"
            
{
                
"windows"    "11924"
                "linux"        "11904"
            

Also, copied this from Left4downtown2.

PHP Code:
            "CDirector"
            
{
                
"windows"
                
{
                    
"signature" "DirectorMusicBanks_OnRoundStart"
                    "read" "12"
                
}
                
"linux"
                
{
                    
"signature" "TheDirector"
                
}
                
"read" "0"
            

__________________

Last edited by dcx2; 07-08-2013 at 05:13.
dcx2 is offline
ProdigySim
SourceMod Plugin Approver
Join Date: Feb 2010
Old 07-14-2013 , 08:20   Re: [L4D2] l4d2_direct -- Direct plugin access to L4D2 globals
Reply With Quote #19

Gamedata has been updated to support version 2125 (linux client release).

https://github.com/ConfoglTeam/l4d2_...4d2_direct.txt
ProdigySim is offline
dcx2
Senior Member
Join Date: Sep 2011
Old 07-14-2013 , 12:33   Re: [L4D2] l4d2_direct -- Direct plugin access to L4D2 globals
Reply With Quote #20

That gamedata still has CDirector offset into DirectorMusicBanks_OnRoundStart as 8. Isn't it 12 now?
__________________

Last edited by dcx2; 07-14-2013 at 12:36.
dcx2 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 14:01.


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