Raised This Month: $ Target: $400
 0% 

Logging every cvar on a mod?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
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 #1

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 #2

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 #3

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 #4

I thought you meant actually catch when the cvar was changed.. got my hopes up.
stupok is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-03-2007 , 12:04   Re: Logging every cvar on a mod?
Reply With Quote #5

Quote:
Originally Posted by stupok69 View Post
I thought you meant actually catch when the cvar was changed.. got my hopes up.
No, that's not really possible. It might be possible if you did it with a module (i.e. catch the pointers of the cvars and any time the memory changes, do something), but not truly possible in Pawn.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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