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

All the L4D Cvars and a logger


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kaffaljidhma
Member
Join Date: Feb 2009
Old 02-24-2009 , 03:25   All the L4D Cvars and a logger
Reply With Quote #1

So I was sick of that cvarlist at left4dead411.com and I made my own parseable cvarlist logger. I've attached a parsed excel file with all the Left 4 Dead cvars neatly arranged for my own convenience and the code to the logger. It saves it a log of all the cvars as milo.txt because I said so. The parse limiter is $, so I just did the Text To Columns thing in excel using $ as the limiter and there you go.


All thanks go to bl4nk for making his code so stealable



edit: I made a few changes to the plugin and also separated versus and campaign cvar values.

edit2: Uh, I accidentally listed the versus cvarlist twice. It's fine now.
Attached Files
File Type: sp Get Plugin or Get Source (cvarlogger.sp - 828 views - 2.1 KB)
File Type: zip l4dcvarlists.zip (240.9 KB, 564 views)

Last edited by kaffaljidhma; 02-24-2009 at 05:01.
kaffaljidhma is offline
Sammy-ROCK!
Senior Member
Join Date: Jun 2008
Location: Near Mrs.Lag
Old 02-24-2009 , 07:01   Re: All the L4D Cvars and a logger
Reply With Quote #2

Quote:
Originally Posted by kaffaljidhma View Post
All thanks go to bl4nk for making his code so stealable
You do know this is a open source community? right?
Sammy-ROCK! is offline
kaffaljidhma
Member
Join Date: Feb 2009
Old 02-24-2009 , 18:13   Re: All the L4D Cvars and a logger
Reply With Quote #3

That's what people keep telling me.



BUT IT DOESN'T REMOVE THE GUILT
kaffaljidhma is offline
madcap
Senior Member
Join Date: Feb 2009
Old 02-27-2009 , 15:52   Re: All the L4D Cvars and a logger
Reply With Quote #4

Nice, I was actually writing something that did exactly this.

It would be nice to add the flags to the output (at least the important ones like CHEAT).

Try:

Code:
flag="";
if(cmdflags&FCVAR_CHEAT){flag="cheat ";}
if(cmdflags&FCVAR_NOTIFY){StrCat(flag, sizeof(flag), "notify ");}
if(cmdflags&FCVAR_PLUGIN){StrCat(flag, sizeof(flag), "plugin ");} 
etc...
TrimString(flag);
(where 'cmdflags' is my variable, I think you call yours 'flags')

Last edited by madcap; 02-27-2009 at 15:54.
madcap is offline
kaffaljidhma
Member
Join Date: Feb 2009
Old 03-01-2009 , 02:18   Re: All the L4D Cvars and a logger
Reply With Quote #5

Well I put the flags you mentioned in there, but I'm afraid I'll have to be selective with them if I'm going to keep the excel file readable. I can put the rest of them in, but it would need to be exported to better database software to be useful.
Attached Files
File Type: sp Get Plugin or Get Source (cvarlogger2.sp - 677 views - 2.3 KB)
File Type: zip l4dcvarflags.zip (251.3 KB, 209 views)
kaffaljidhma is offline
kaffaljidhma
Member
Join Date: Feb 2009
Old 03-02-2009 , 19:28   Re: All the L4D Cvars and a logger
Reply With Quote #6

Oh yeah, and if you're having NAME? problems in excel, that's because some of them start with - and +, which makes excel think they're numbers instead of text.

The solution to this is when you're doing the text to columns thing (btw, the quote specifier is ', not ", so change that too), when it comes time to determine what type of data the columns are, make sure the cvar column's type is 'Text', not 'General'. You can do that to the description column too if you want.
kaffaljidhma is offline
madcap
Senior Member
Join Date: Feb 2009
Old 03-02-2009 , 22:38   Re: All the L4D Cvars and a logger
Reply With Quote #7

You're better off just making a CSV file. Works with excel for the people who want it, the rest of us can just view it as text.

I just happened to be working on the same thing the other day.
Attached Files
File Type: sp Get Plugin or Get Source (listconvars.sp - 766 views - 1.9 KB)
madcap is offline
squirlhntr
Junior Member
Join Date: Mar 2009
Old 03-25-2009 , 19:01   Re: All the L4D Cvars and a logger
Reply With Quote #8

For what it's worth, the new cvars. Looks like, in particular, melee fatigue cvars are now present.



Quote:
'z_gun_swing_vs_amt_penalty' 1
'z_gun_swing_vs_cooldown' 1
'z_gun_swing_vs_max_penalty' 6
'z_gun_swing_vs_min_penalty' 3
'z_gun_swing_vs_restore_time' 4
Attached Files
File Type: zip milo.zip (77.3 KB, 417 views)
squirlhntr 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 15:19.


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