Raised This Month: $ Target: $400
 0% 

[L4D-L4D2] New custom commands v1.0.9


Post New Thread Reply   
 
Thread Tools Display Modes
TastyCheese
Member
Join Date: Nov 2010
Old 11-23-2012 , 11:39   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #351

Using 1.4.7 snapshot 3589, CTerrorPlayer_OnRevived fails to work for me aswell. Tried the versions machine and dcx2 posted, neither helped. No news on this?
TastyCheese is offline
Machine
Senior Member
Join Date: Apr 2010
Old 11-23-2012 , 12:48   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #352

Can you PM me your gamedata file please?
Machine is offline
dcx2
Senior Member
Join Date: Sep 2011
Old 11-23-2012 , 20:48   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #353

I don't think it has anything to do with sourcemod version. I'm still using SM 1.4.1 (and Windows XP, 32-bit)

Now that I know how to use IDA, I have looked into the most recent server.dll to verify that the signature from left4downtown2 is unique. It's a shorter version of Machine's, so his is unique too. I don't see how it wouldn't work, unless your file was different than mine. The MD5 hash for mine is 22030EA249360A73354923AEDE1B32E8.
__________________
dcx2 is offline
TastyCheese
Member
Join Date: Nov 2010
Old 11-24-2012 , 04:27   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #354

It's the same. I updated to SM 1.5 and even tried wiping and completely reinstalling it, and it keeps failing. Really confusing..
TastyCheese is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 11-25-2012 , 20:34   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #355

Quote:
Originally Posted by dcx2 View Post
I don't think it has anything to do with sourcemod version. I'm still using SM 1.4.1 (and Windows XP, 32-bit)

Now that I know how to use IDA, I have looked into the most recent server.dll to verify that the signature from left4downtown2 is unique. It's a shorter version of Machine's, so his is unique too. I don't see how it wouldn't work, unless your file was different than mine. The MD5 hash for mine is 22030EA249360A73354923AEDE1B32E8.

server.dll MD5 for me : 22030ea249360a73354923aede1b32e8

Quote:
L 11/26/2012 - 024:03: [SM] Plugin encountered error 25: Call was aborted
L 11/26/2012 - 024:03: [SM] Native "SetFailState" reported: Unable to find the "CTerrorPlayer::OnRevived(void)" signature, check the file version!
L 11/26/2012 - 024:03: [SM] Displaying call stack trace for plugin "l4d2_custom_commands.smx":
L 11/26/2012 - 024:03: [SM] [0] Line 260, F:\SRCDS\l4d2\left4dead2\left4dead2\addons\so urcemod\scripting\l4d2_custom_commands.sp::On PluginStart()
A fix temporary:

search :
PHP Code:
new Handle:g_hGameConf  INVALID_HANDLE
add after :
PHP Code:
new Handle:gdowntown_hGameConf  INVALID_HANDLE
search :
PHP Code:
    g_hGameConf LoadGameConfigFile("l4d2customcmds");
    if(
g_hGameConf == INVALID_HANDLE)
    {
        
SetFailState("Couldn't find the offsets and signatures file. Please, check that it is installed correctly.");
    } 
add after :
PHP Code:
    gdowntown_hGameConf LoadGameConfigFile("left4downtown.l4d2");
    if(
gdowntown_hGameConf == INVALID_HANDLE)
    {
        
SetFailState("Couldn't find the offsets and signatures file. Please, check that it is installed correctly.");
    } 
search :
PHP Code:
PrepSDKCall_SetFromConf(g_hGameConfSDKConf_Signature"CTerrorPlayer_OnRevived"); 
replace :
PHP Code:
PrepSDKCall_SetFromConf(gdowntown_hGameConfSDKConf_Signature"CTerrorPlayer_OnRevived"); 
Require : left4downtown

Last edited by eric0279; 11-27-2012 at 21:03.
eric0279 is offline
TastyCheese
Member
Join Date: Nov 2010
Old 11-26-2012 , 07:52   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #356

Quote:
Originally Posted by eric0279 View Post
A fix temporary:

<fix>
Holy crap, thanks a lot. Working like a charm now, now I just need to figure out how to do the same for the incapped meds munch plugin
TastyCheese is offline
dcx2
Senior Member
Join Date: Sep 2011
Old 11-26-2012 , 16:03   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #357

@Eric, I'm confused why that works for you, but the gamedata file I uploaded does not. The signature for CTerrorPlayer_OnRevived was taken from left4downtown2...
__________________
dcx2 is offline
Machine
Senior Member
Join Date: Apr 2010
Old 11-26-2012 , 22:31   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #358

Yeah makes no sense to me either since you aren't even using anything from downtown except for the gamedata, which signatures for that function is exactly the same from the ones you guys showed me.

I even downloaded your gamedata and tested it on my server to see if there was something not visible I wasn't seeing and it worked fine. This really is a new one to me.
Machine is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 11-27-2012 , 01:03   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #359

@dcx yes I use the signature left4downtown2 and I no longer have the error ... The error is strange but good, now the plugin works on Windows, this is essential.
eric0279 is offline
TastyCheese
Member
Join Date: Nov 2010
Old 11-27-2012 , 10:08   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #360

It's indeed weird, seeing how everything BUT OnRevived works despite everything being up to date, which somehow gets fixed when transitioning it to use downtown's gamedata. I tried doing the same for Incapped meds munch which gives the same error but I can't figure out how to do it since the coding looks.. so different. I'm not much of a coder myself, most I've done is add more functions copying a given plugin's current coding and just changing the cvars so I wouldn't know much about it >_<
TastyCheese 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 22:22.


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