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

client_disconnect forward has been disabled - check your game data files


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
STekLyAToR
Member
Join Date: May 2016
Old 07-21-2016 , 10:33   client_disconnect forward has been disabled - check your game data files
Reply With Quote #1

Met this problem in Sven Co-op dedicated server, сhecked gamedata, there is nothing obvious to fix.
How fix this problem? Thanks.
STekLyAToR is offline
Old 07-21-2016, 10:58
HamletEagle
This message has been deleted by HamletEagle.
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-21-2016 , 11:24   Re: client_disconnect forward has been disabled - check your game data files
Reply With Quote #2

Windows?
__________________
Arkshine is offline
STekLyAToR
Member
Join Date: May 2016
Old 07-21-2016 , 11:32   Re: client_disconnect forward has been disabled - check your game data files
Reply With Quote #3

Yes, Windows 7.
STekLyAToR is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-21-2016 , 12:01   Re: client_disconnect forward has been disabled - check your game data files
Reply With Quote #4

The client_disconnected() forward relies on an engine function. Since SC uses a new one (i.e compiled differently), you need a new signature for that function.
Gamedatas are located in amxmodx/data/gamedata/ and you can overwrite the default values.

What you can do:

0) Stop your server
1) Create a folder named "custom" in amxmodx/data/gamedata/common.games/.
2) Create a file named "functions.engine.txt" inside that folder.
3) Open the file and paste the following content:
Spoiler

4. Start your server, and see if it works. You should have a message saying something like "[AMXX] Parsed custom gamedata override file: ..". Did not test the signature.
__________________

Last edited by Arkshine; 07-21-2016 at 12:47.
Arkshine is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 07-21-2016 , 12:10   Re: client_disconnect forward has been disabled - check your game data files
Reply With Quote #5

What's wrong with client_disconnect()?
__________________
gabuch2 is offline
STekLyAToR
Member
Join Date: May 2016
Old 07-21-2016 , 12:11   Re: client_disconnect forward has been disabled - check your game data files
Reply With Quote #6

Not work Try replace string "windows" in 'gamedata/common.games/functions.engine.txt'
STekLyAToR is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-21-2016 , 12:16   Re: client_disconnect forward has been disabled - check your game data files
Reply With Quote #7

I'm pretty sure it should work. You can replace directly the signature in gamedata/functions.engine.txt too, but if one day you're updating you might overwrite this file. It's safer to use custom/ directory.

I can try later myself, not sure If I have SC.
__________________
Arkshine is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 07-21-2016 , 12:16   Re: client_disconnect forward has been disabled - check your game data files
Reply With Quote #8

No I mean, there are two similar functions.
client_disconnect() which is now marked as deprecated and the new client_disconnected() which doesn't work in Sven Co-op 5.

That's the reason why I keep using the deprecated forward.
__________________

Last edited by gabuch2; 07-21-2016 at 12:17.
gabuch2 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-21-2016 , 12:18   Re: client_disconnect forward has been disabled - check your game data files
Reply With Quote #9

Try the step I gave above. I've taken the signature from the SC engine (hw.dll, if it's the right file).
__________________
Arkshine is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 07-21-2016 , 12:19   Re: client_disconnect forward has been disabled - check your game data files
Reply With Quote #10

What's new on client_disconnected?
__________________
gabuch2 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 19:03.


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