Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » General Discussions » General Discussion » .INI Configuration format?
.INI Configuration format? [message #317617] Sun, 17 February 2008 16:26 Go to next message
bat66wat6
Messages: 331
Registered: September 2007
Karma: 0
Recruit
In order for some things I need I have to use a .configuration format INI file.
Unfortunately I can't create these .config files by simply saving a Text Document in the format or renaming the text document to BlaBla.config or BlaBla.configuration.

Can someone please tell me how I create a configuration file?

Thanks...
Re: .INI Configuration format? [message #317618 is a reply to message #317617] Sun, 17 February 2008 16:37 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
[section]

key = data
key2 = data

[section2]

key = data
key2 = data




Not hard tbh
Re: .INI Configuration format? [message #317619 is a reply to message #317618] Sun, 17 February 2008 16:43 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
RoShamBo wrote on Sun, 17 February 2008 17:37

[section]

key = data
key2 = data

[section2]

key = data
key2 = data




Not hard tbh


lol what does this do?
Re: .INI Configuration format? [message #317622 is a reply to message #317617] Sun, 17 February 2008 16:56 Go to previous messageGo to next message
Dave Anderson is currently offline  Dave Anderson
Messages: 1953
Registered: December 2004
Location: United States
Karma: 0
General (1 Star)
An INI file simply stores configuration information. Sections are used to categorize your keys, and the keys simply provide a unique name for that "setting". Here's an example:

[Appearance]
BackgroundColor=Blue
ForegroundColor=White

[Behavior]
Cache=True


Roshambo's example is just as easy to follow though..


David Anderson
Founder, Software Consultant
DCOM Productions
Microsoft Partner (MSP)

[Updated on: Sun, 17 February 2008 16:57]

Report message to a moderator

Re: .INI Configuration format? [message #317631 is a reply to message #317617] Sun, 17 February 2008 18:06 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
Not sure about either of you but isn't he asking for the file extension?

When you come to save the file, encapsulate the file name in quotation marks.

Example:

"config.cfg"
"settings.ini"

So-on and so-forth.
Re: .INI Configuration format? [message #317659 is a reply to message #317631] Sun, 17 February 2008 20:29 Go to previous messageGo to next message
bat66wat6
Messages: 331
Registered: September 2007
Karma: 0
Recruit
No.

I aint on about C++. Your precious little C++ programme is bitchin me about, I can't even get all the stuff the dude wants me to. That SDK thing is having problems...
Takes 20 mins to get 3/4 download then freezes! Dont Get It

Besides, I was on about this to be more exact!
The type of Configuration Settings file that opens with Notepad!
SS explains even further if needed!
Re: .INI Configuration format? [message #317663 is a reply to message #317659] Sun, 17 February 2008 20:39 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
bat66wat6 wrote on Mon, 18 February 2008 03:29

No.

I aint on about C++. Your precious little C++ programme is bitchin me about, I can't even get all the stuff the dude wants me to. That SDK thing is having problems...
Takes 20 mins to get 3/4 download then freezes! Dont Get It

Besides, I was on about this to be more exact!
The type of Configuration Settings file that opens with Notepad!
SS explains even further if needed!


Read mine and Dave's post.
Re: .INI Configuration format? [message #317665 is a reply to message #317663] Sun, 17 February 2008 20:44 Go to previous messageGo to next message
bat66wat6
Messages: 331
Registered: September 2007
Karma: 0
Recruit
I think that you have done a bit to much coding RoShamBo. You seem to speak almost in 0010100's to me sometimes...

Key=1
Key=0

What the hell is that sort of stuff gonna do for me?
All I need to know from this query is how the hell when I open up Notepad(or .txt file) I can save it in Configuration Settings format???? So it's properties are like that of the above SS in previous post???
Re: .INI Configuration format? [message #317674 is a reply to message #317617] Sun, 17 February 2008 21:37 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

bat66wat6, you are so fucking stupid it makes me want to club a baby seal.

Zion Fox already told you how to save a file in the INI format. When you are saving the file, type the name in quotes. EX: "config.ini"


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: .INI Configuration format? [message #317677 is a reply to message #317674] Sun, 17 February 2008 21:56 Go to previous message
bat66wat6
Messages: 331
Registered: September 2007
Karma: 0
Recruit
KK, I got what I needed. Thanks guys.

Case closed. Please, lock topic... Big Grin
Previous Topic: Audiosurf
Next Topic: Randoms ss's
Goto Forum:
  


Current Time: Tue Nov 05 15:37:16 MST 2024

Total time taken to generate the page: 0.01006 seconds