Raised This Month: $32 Target: $400
 8% 

.cfg or .ini?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-13-2009 , 16:46   .cfg or .ini?
Reply With Quote #1

I've never really know which file extension to use for any particular situation.

I wrote a plugin (from a request) for this file:
Code:
// Configure the maximum number of rounds per map.
cs_italy 2
// cs_office 99
de_dust 38
de_aztec 22
So, .cfg or .ini?

Comment lines are "//" and ";" respectively correct?
__________________
fysiks is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 03-13-2009 , 16:57   Re: .cfg or .ini?
Reply With Quote #2

Quote:
// Configure the maximum number of rounds per map.
cs_italy 2
// cs_office 99
de_dust 38
de_aztec 22
It needs to be a .ini file i suppose

Because in a cfg needs to be cvars...

This aint really cvars
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 03-13-2009 , 17:21   Re: .cfg or .ini?
Reply With Quote #3

ini would be more likely... cfg is for cvars but can be used for anything actually, depends on how you read it and what data it contains... you can place any extension at all ... rounds_per_map.myCustomData or something, it doesn't really matter as long as it contains what you need
__________________
Hunter-Digital is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-13-2009 , 17:53   Re: .cfg or .ini?
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
I've never really know which file extension to use for any particular situation.
You can use any that you wish. There is no required format to use.

Quote:
So, .cfg or .ini?
Personally, I would pick ini for this situation, unless they are CVARS.

Quote:
Comment lines are "//" and ";" respectively correct?
If you are reading and parsing the file yourself, comment lines can be whatever you wish
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-13-2009 , 18:59   Re: .cfg or .ini?
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
If you are reading and parsing the file yourself, comment lines can be whatever you wish
I realized that I could choose anything but it's less confusing if you go with the standard. .

I'm just reading those in as mapnames so ini it will be. Thanks for the replies guys.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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 21:31.


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