Raised This Month: $ Target: $400
 0% 

Query_client_cvar() can not be used in AMXX1.70?


  
 
 
Thread Tools Display Modes
Author Message
leon_008
New Member
Join Date: Jan 2006
Old 03-06-2006 , 04:34   Query_client_cvar() can not be used in AMXX1.70?
#1


Reson has been found:
In AMXX1.70 query_client_cvar() use a new function to query client cvar it is different with 1.60, this new function only be suported in Half-life 1 Dedicated Server build 3382 and client build 3382.

So, only when the server and client both use Cstrike1.6 build 3382 it can works.
When the server build is before 3382 , server report "Client CVAR querying is not enabled ..."
When the server build is 3382, server can work ,but if the client build is before 3382 client will exit and report this "Host_Error: UserMsg: Not Present on Client 58".
In MetaMod 1.19p28 sdk_util.h I find this:
#define QUERY_CLIENT_CVAR_VALUE (*g_engfuncs.pfnQueryClientCvarValue)
#define QUERY_CLIENT_CVAR_VALUE2 (*g_engfuncs.pfnQueryClientCvarValue2)

So should AMXX also give both query_client_cvar() and query_client_cvar2() to keep compatible backward?

Thanks for your work!

----------------------------------------------------------------------------
I have a plugin it uses query_client_cvar() function, it works fine in AMXX1.60, but when I upgrade to 1.70, It can not work.

This is the log:
L 03/09/2006 - 08:40:12: Client CVAR querying is not enabled - check MM version!
L 03/09/2006 - 08:40:12: [AMXX] Displaying debug trace (plugin "cvar_checker.amxx")
L 03/09/2006 - 08:40:12: [AMXX] Run time error 10: native error (native "query_client_cvar")
L 03/09/2006 - 08:40:12: [AMXX] [0] cvar_checker_203.sma::CheckNextCvar (line 277)
L 03/09/2006 - 08:40:12: [AMXX] [1] cvar_checker_203.sma::Task_DelayCvarCheck (line 226)

But, how to enable it?

I use CS1.6[Build 3329] and Metamod ver 1.19p28.
You can download this plugin here (cvar_checker):
http://forums.alliedmods.net/showthread.php?p=155936

In 1.70 changelog, I found this:
[Updated cvarquery system to cvarquery2. This requires Metamod 1.19].

leon_008 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-06-2006 , 05:06  
#2

My guess: you have to wait for the official metamod.
VEN is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 03-06-2006 , 06:26  
#3

do you have MM 1.19p28 ?
__________________
alias White Panther
karlos is offline
Fanatiker
Junior Member
Join Date: Mar 2004
Old 03-06-2006 , 08:56  
#4

same problem with me, even though i have the latest metamod ( 1.19 p28 )
__________________
Please push up my karma!
Fanatiker is offline
leon_008
New Member
Join Date: Jan 2006
Old 03-06-2006 , 11:33   I use AMXMODX 1.70 Full Installer
#5

It included MetaMod 1.19p28
leon_008 is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 03-06-2006 , 12:06  
#6

I have various reports of this on the war3ft forums (war3ft uses this feature)
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-06-2006 , 12:25  
#7

Yup, my ios users said that cvarrules broke as well
__________________
hello, i am pm
PM is offline
Fanatiker
Junior Member
Join Date: Mar 2004
Old 03-06-2006 , 15:06  
#8

to fix up the problem warcraft3 FT is crashing the server, just remove the if query in the warcraft3ft.sma where the function is used. it's only once a time, a useless bot query head for line 377
__________________
Please push up my karma!
Fanatiker is offline
BAILOPAN
Join Date: Jan 2004
Old 03-06-2006 , 17:22  
#9

what mod are you guys running this on.
__________________
egg
BAILOPAN is offline
leon_008
New Member
Join Date: Jan 2006
Old 03-06-2006 , 20:20  
#10

I use Counter-Strike 1.6
leon_008 is offline
 



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 05:24.


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