AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Metamod:Source Questions (https://forums.alliedmods.net/forumdisplay.php?f=74)
-   -   Querying ConVars (https://forums.alliedmods.net/showthread.php?t=48839)

L. Duke 12-21-2006 13:19

Querying ConVars
 
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).

sslice 12-22-2006 01:00

Re: Querying ConVars
 
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.

L. Duke 12-22-2006 14:01

Re: Querying ConVars
 
Yes, it looks like Windows DODS is still at ServerGameDLL005.

And thanks for all the help yesterday sslice!

BAILOPAN 12-23-2006 19:06

Re: Querying ConVars
 
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.

L. Duke 12-23-2006 21:21

Re: Querying ConVars
 
???

How would you do that? The functions haven't even been added to the binary have they?

cybermind 12-23-2006 23:02

Re: Querying ConVars
 
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.

BAILOPAN 12-24-2006 11:50

Re: Querying ConVars
 
I have a rather nifty idea to solving this but I don't want to say anything until I'm sure it'll work.

c0ldfyr3 03-12-2007 08:32

Re: Querying ConVars
 
So has anyone gotten anywhere with this yet?

I'm a bit behind but I'm guessing GetClientConVarValue doesn't work anymore?

L. Duke 03-12-2007 11:18

Re: Querying ConVars
 
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.

c0ldfyr3 03-12-2007 12:17

Re: Querying ConVars
 
Quote:

Originally Posted by L. Duke (Post 451699)
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?


All times are GMT -4. The time now is 09:46.

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