Raised This Month: $ Target: $400
 0% 

Logging every cvar on a mod?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 01-02-2007 , 16:39   Logging every cvar on a mod?
Reply With Quote #1

Hi, does anyone know how I can log every cvar there is on a mod?
hlstriker is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 01-02-2007 , 16:56   Re: Logging every cvar on a mod?
Reply With Quote #2

cvarlist in the server console

If you mean log when a cvar is changed, as far as I know it cannot be done with AMXX.

Last edited by stupok; 01-02-2007 at 16:58.
stupok is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 01-02-2007 , 17:05   Re: Logging every cvar on a mod?
Reply With Quote #3

Oh, I didn't know the engine came with a command already for that.

Thanks.
hlstriker is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-02-2007 , 18:24   Re: Logging every cvar on a mod?
Reply With Quote #4

Quote:
Originally Posted by stupok69 View Post
cvarlist in the server console

If you mean log when a cvar is changed, as far as I know it cannot be done with AMXX.
Yeah it can, it'll just use an insane amount of memory.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
stupok
Veteran Member
Join Date: Feb 2006
Old 01-02-2007 , 20:41   Re: Logging every cvar on a mod?
Reply With Quote #5

Please show me how. http://forums.alliedmods.net/showthr...t=execute+cvar
stupok is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-02-2007 , 22:36   Re: Logging every cvar on a mod?
Reply With Quote #6

You'd need a list of every cvar to be logged, something like Array (so it doesn't need to be hard coded in terms of size), and a ton of server resources (checking probably every frame).

It's possible, but again probably not worth it.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
stupok
Veteran Member
Join Date: Feb 2006
Old 01-03-2007 , 00:37   Re: Logging every cvar on a mod?
Reply With Quote #7

I thought you meant actually catch when the cvar was changed.. got my hopes up.
stupok 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:28.


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