Page 1 of 1

messing with .cfg files

PostPosted: Thu Dec 02, 2004 12:18 pm
by 57Headstock
Greetings all. I need some help. I found a skin I'd like to add to Mike Stone's C-130 for my FS2004. In the read me it says that I must make alterations to the aircraft.cfg file.

About that change -  a line says " add the following to the aircraft.cfg file sustituting the next numbers instead of x in the line [fltsim.x] where appropriate."

sustituting ???

I understand you can open this file up in notepad but how are you able to make the change and still have it saved as a .cfg file? The default is a text file without the option of .cfg. Is there a better program for editing?

Can anyone make better sense of these instructions for me? ???

Thanks

Re: messing with .cfg files

PostPosted: Thu Dec 02, 2004 12:24 pm
by eno
Sustituting.........= Substituting
Heres an example from the default Cessna 172

so if you look below the bold lines represent the line that needs substituting.

[fltsim.0]
title=Cessna Skyhawk 172SP
sim=Cessna172SP
model=
panel=
sound=
texture=
kb_checklists=Cessna172SP_check
kb_reference=Cessna172SP_ref
atc_id=N176CM
ui_manufacturer=Cessna
ui_type="C172SP Skyhawk"
ui_variation="White with blue and gray"
description="A stable and trustworthy plane, most pilots have logged at least a few hours in a Cessna 172, since it's the most widely available aircraft in the rental fleet, and is used by most flight schools. Since the first prototype was completed in 1955, more than 35,000 C172s have been produced, making it the world's most popular single-engine plane.  One of Cessna's first tricycle-gear airplanes, the 172 quickly became the favorite of a growing class of business pilots.  Its reliability and easy handling (along with thoughtful engineering and structural updates) have ensured its continued popularity for more than 35 years."

[fltsim.1]
title=Cessna Skyhawk 172SP IFR
sim=Cessna172SP
model=
panel=ifr
sound=
texture=
kb_checklists=Cessna172SP_check
kb_reference=Cessna172SP_ref
atc_id=N568OP
ui_manufacturer=Cessna
ui_type="C172SP Skyhawk"
ui_variation="White with blue and gray - IFR panel"
description="A stable and trustworthy plane, most pilots have logged at least a few hours in a Cessna 172, since it's the most widely available aircraft in the rental fleet, and is used by most flight schools. Since the first prototype was completed in 1955, more than 35,000 C172s have been produced, making it the world's most popular single-engine plane.  One of Cessna's first tricycle-gear airplanes, the 172 quickly became the favorite of a growing class of business pilots.  Its reliability and easy handling (along with thoughtful engineering and structural updates) have ensured its continued popularity for more than 35 years."


so [fltsim.x] would = [fltsim.3] to add the new texture.
Make sure you back up the original CFG .... then if you make a mistake its easy to fix.
Hope this helps

Re: messing with .cfg files

PostPosted: Thu Dec 02, 2004 12:31 pm
by commoner
....Then when you have made the changes....click the Red X to close the file and when asked if you want to save the changes click YES.. ;)

Re: messing with .cfg files

PostPosted: Thu Dec 02, 2004 12:45 pm
by Moach
the best program for editing CFGs is: .........*drumroll*........... NOTEPAD!!!! ;D ;D

if you open a .cfg file in notepad you are still able to save it as .cfg
the only limitation is that you can't CREATE a .cfg file through it

but you can allways edit existing files
i see that you're trying to add a different livery to one of your planes, so here's how it's done


open the plane's folder, and paste your new livery's texture folder in it, but name it texture.myliveryname

open the plane's aircraft.cfg file using notepad, you'll see something like this:

[fltsim.0]
title=Boeing 737-700
sim=boeing737-700
model=
panel=
sound=
texture=
checklists=
kb_checklists=Boeing737-700_check
kb_reference=Boeing737-700_ref
atc_id_enable=1
atc_id=
atc_id_color=0xffffffff
atc_airline=
atc_flight_number=737
ui_manufacturer=Boeing
ui_type=737-700 - The 737 Experience
ui_variation=GOL PR-GOO

editable=0
description=The 737 Experience, with detailed virtual cockpit, Model by Moach. FD by Martyn Becker, Textures by Antony Totton and Moach


copy this entry and paste it right after it,  above where it reads [general]
name your new entry [fltsim.1] (if' there is already one named fltsim.1, call yours fltsim.2)

in this new fltsim entry, change the texture= line to texture=myliveryname

chenge the ui_variation entry to the name of your new livery ex: ui_variation=mylivery

then save the file (notepad will keep the .cfg extension so don't worry)

open FS and select your plane, there will be a new variation with your livery

remember to always backup your original file in case something goes awry ;)

hope it helps :)

c ya

Moach

Re: messing with .cfg files

PostPosted: Thu Dec 02, 2004 12:51 pm
by 57Headstock
Thanks guys, I'll give it a try. :)

Re: messing with .cfg files

PostPosted: Thu Dec 02, 2004 1:00 pm
by Hagar
if you open a .cfg file in notepad you are still able to save it as .cfg
the only limitation is that you can't CREATE a .cfg file through it

It might be a tad pedantic of me but this is easily done. Create a New Text Document & rename it, changing the file extension from .txt to .cfg. I often do this myself.

Re: messing with .cfg files

PostPosted: Thu Dec 02, 2004 1:41 pm
by wji
this has been posted here before but i can't find it using Search

Good Luck with adding your new repaint(s)
once the aircraft.cfg is found, here's some notes on what to look for:

File-Section that controls texture
[fltsim.0] must be numbered in sequence
title=Lockheed C-130 USA  (this must be different for each aircraft)
sim=c130 don't change
model=
panel=
sound=
texture=ABC  (texture.ABC folder- new repaint)
kb_checklists=
kb_reference=
atc_id=N1234
atc_airline=USAF
atc_flight_number=1123
atc_parking_types=GATE,RAMP
ui_manufacturer=Lockheed
ui_type=C-130
ui_variation=USAF Mike Stone ABC this must be unique and shows in FS aircraft selection menu
description=
atc_heavy=0

Notes above are in red

bill

Re: messing with .cfg files

PostPosted: Thu Dec 02, 2004 2:56 pm
by 57Headstock
Thanks guys, now I know about this and it will help me in the future. Everything works fine!

Re: messing with .cfg files

PostPosted: Thu Dec 02, 2004 7:58 pm
by MattNW
It might be a tad pedantic of me but this is easily done. Create a New Text Document & rename it, changing the file extension from .txt to .cfg. I often do this myself.


Or you can select "All Files" from the "Save As Type" dropdown and then save the filename as "Notepad.cfg".

Re: messing with .cfg files

PostPosted: Thu Dec 02, 2004 9:44 pm
by Lethal.Ambition
the best program for editing CFGs is: .........*drumroll*........... NOTEPAD!!!! ;D ;D

if you open a .cfg file in notepad you are still able to save it as .cfg
the only limitation is that you can't CREATE a .cfg file through it

but you can allways edit existing files
i see that you're trying to add a different livery to one of your planes, so here's how it's done


open the plane's folder, and paste your new livery's texture folder in it, but name it texture.myliveryname

open the plane's aircraft.cfg file using notepad, you'll see something like this:

[fltsim.0]
title=Boeing 737-700
sim=boeing737-700
model=
panel=
sound=
texture=
checklists=
kb_checklists=Boeing737-700_check
kb_reference=Boeing737-700_ref
atc_id_enable=1
atc_id=
atc_id_color=0xffffffff
atc_airline=
atc_flight_number=737
ui_manufacturer=Boeing
ui_type=737-700 - The 737 Experience
ui_variation=GOL PR-GOO

editable=0
description=The 737 Experience, with detailed virtual cockpit, Model by Moach. FD by Martyn Becker, Textures by Antony Totton and Moach


copy this entry and paste it right after it,  above where it reads [general]
name your new entry [fltsim.1] (if' there is already one named fltsim.1, call yours fltsim.2)

in this new fltsim entry, change the texture= line to texture=myliveryname

chenge the ui_variation entry to the name of your new livery ex: ui_variation=mylivery

then save the file (notepad will keep the .cfg extension so don't worry)

open FS and select your plane, there will be a new variation with your livery

remember to always backup your original file in case something goes awry ;)

hope it helps :)

c ya

Moach

What's the

editable=0

used for? Never seen it before.

Re: messing with .cfg files

PostPosted: Fri Dec 03, 2004 12:15 am
by MattNW
What's the

editable=0

used for? Never seen it before.



Someone correct me if I'm wrong but I think that's a hold over from FS2002 Pro. It came with an aircraft editor that never did work worth a penny. That line in the .cfg file just set whether the aircraft was editable in the editor program. All the default aircraft weren't but of course all you had to do was open the .cfg in Notepad and change the "0" to a "1" and then it was.  ;D

Re: messing with .cfg files

PostPosted: Fri Dec 03, 2004 2:30 pm
by Lethal.Ambition


Someone correct me if I'm wrong but I think that's a hold over from FS2002 Pro. It came with an aircraft editor that never did work worth a penny. That line in the .cfg file just set whether the aircraft was editable in the editor program. All the default aircraft weren't but of course all you had to do was open the .cfg in Notepad and change the "0" to a "1" and then it was.  ;D

I see. Thanks a bunch :)