Raised This Month: $51 Target: $400
 12% 

Querying ConVars


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 12-21-2006 , 13:19   Querying ConVars
Reply With Quote #1

Has anyone got this working with an mms plugin? http://developer.valvesoftware.com/w...Server_Plugins

I tried to load the server plugin callback interface so I could hook OnQueryCvarValueFinished, but I get an error about not loading MMS as a Valve server plugin printed to my console about 100 times.

Do I have to make a "dummy" Valve plugin interface instead of just hooking that function?

EDIT: sslice said to add the new functions to to the engine and serverdll interaces, but I haven't got it working yet.

EDIT2: I tried it on Linux and it works fine. Just doesn't seem to be working on Windows (DODS).

Last edited by L. Duke; 12-21-2006 at 15:14.
L. Duke is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 12-22-2006 , 01:00   Re: Querying ConVars
Reply With Quote #2

Has anybody contacted Valve about win32 DoD:S yet?

For those interested in Querying ConVars from clients:
http://developer.valvesoftware.com/w...rom_Server_DLL

From a SourceMM plugin's perspective, this would involve hooking IServerGameDLL::OnQueryCvarValueFinished.
__________________
sslice is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 12-22-2006 , 14:01   Re: Querying ConVars
Reply With Quote #3

Yes, it looks like Windows DODS is still at ServerGameDLL005.

And thanks for all the help yesterday sslice!
L. Duke is offline
BAILOPAN
Join Date: Jan 2004
Old 12-23-2006 , 19:06   Re: Querying ConVars
Reply With Quote #4

I will try to come up with a SourceMM solution to using this on older GameDLL versions. However, it probably won't be before the new year.
__________________
egg
BAILOPAN is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 12-23-2006 , 21:21   Re: Querying ConVars
Reply With Quote #5

???

How would you do that? The functions haven't even been added to the binary have they?
L. Duke is offline
cybermind
Senior Member
Join Date: Oct 2004
Old 12-23-2006 , 23:02   Re: Querying ConVars
Reply With Quote #6

Well, once all the games are updated, all the engines will have the proper functions, but older mods won't have the cvar query callback. I think BAILOPAN is talking about providing a way for mods to still use the cvar querying if the mod doesn't have the callback.
cybermind is offline
BAILOPAN
Join Date: Jan 2004
Old 12-24-2006 , 11:50   Re: Querying ConVars
Reply With Quote #7

I have a rather nifty idea to solving this but I don't want to say anything until I'm sure it'll work.
__________________
egg
BAILOPAN is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 03-12-2007 , 08:32   Re: Querying ConVars
Reply With Quote #8

So has anyone gotten anywhere with this yet?

I'm a bit behind but I'm guessing GetClientConVarValue doesn't work anymore?
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 03-12-2007 , 11:18   Re: Querying ConVars
Reply With Quote #9

They've since updated the DODS binaries, so the new interface works on windows and linux both. GetClientConVarValue never worked on many of the convars anyway, so it's actually better in that sense.
L. Duke is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 03-12-2007 , 12:17   Re: Querying ConVars
Reply With Quote #10

Quote:
Originally Posted by L. Duke View Post
They've since updated the DODS binaries, so the new interface works on windows and linux both. GetClientConVarValue never worked on many of the convars anyway, so it's actually better in that sense.
Ya but how did you do in a sourcemm plug?
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
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 15:56.


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