messing with .cfg files

Forum dedicated to Microsoft FS2004 - "A Century of Flight".

messing with .cfg files

Postby 57Headstock » Thu Dec 02, 2004 12:18 pm

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
57Headstock
Ground hog
Ground hog
 
Posts: 3
Joined: Thu Dec 02, 2004 12:57 pm

Re: messing with .cfg files

Postby eno » Thu Dec 02, 2004 12:24 pm

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
Last edited by eno on Thu Dec 02, 2004 12:27 pm, edited 1 time in total.
[align=center][img]http://www.simviation.com/yabbuploads/imaginsigeno.jpg[/img][/align]
User avatar
eno
Lieutenant Colonel
Lieutenant Colonel
 
Posts: 6708
Joined: Sun Jan 18, 2004 12:30 pm
Location: Derbyshire UK

Re: messing with .cfg files

Postby commoner » Thu Dec 02, 2004 12:31 pm

....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.. ;)
Last edited by commoner on Thu Dec 02, 2004 12:32 pm, edited 1 time in total.
Image"In theory, there is no difference between theory and practice. But, in practice, there is."
User avatar
commoner
Major
Major
 
Posts: 3221
Joined: Sat Aug 28, 2004 2:26 am
Location: Yorkshire. England. UK.

Re: messing with .cfg files

Postby Moach » Thu Dec 02, 2004 12:45 pm

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
If nature wanted a man to fly - It would have given him more money
User avatar
Moach
Captain
Captain
 
Posts: 960
Joined: Thu Nov 28, 2002 3:22 pm
Location: Vancouver, BC

Re: messing with .cfg files

Postby 57Headstock » Thu Dec 02, 2004 12:51 pm

Thanks guys, I'll give it a try. :)
57Headstock
Ground hog
Ground hog
 
Posts: 3
Joined: Thu Dec 02, 2004 12:57 pm

Re: messing with .cfg files

Postby Hagar » Thu Dec 02, 2004 1:00 pm

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.
Image

Founder & Sole Member - Grumpy's Over the Hill Club for Veteran Virtual Aviators
Member of the Fox Four Group
My Google Photos albums
My Flickr albums
User avatar
Hagar
Colonel
Colonel
 
Posts: 30864
Joined: Wed Jun 19, 2002 7:15 am
Location: Costa Geriatrica

Re: messing with .cfg files

Postby wji » Thu Dec 02, 2004 1:41 pm

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
Image PhotoShop 7 user
User avatar
wji
Major
Major
 
Posts: 1644
Joined: Tue May 04, 2004 11:27 am

Re: messing with .cfg files

Postby 57Headstock » Thu Dec 02, 2004 2:56 pm

Thanks guys, now I know about this and it will help me in the future. Everything works fine!
57Headstock
Ground hog
Ground hog
 
Posts: 3
Joined: Thu Dec 02, 2004 12:57 pm

Re: messing with .cfg files

Postby MattNW » Thu Dec 02, 2004 7:58 pm

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".
In Memory of John Consterdine (FS Tipster)1962-2003
User avatar
MattNW
Major
Major
 
Posts: 1705
Joined: Tue Mar 25, 2003 2:34 pm
Location: Indiana

Re: messing with .cfg files

Postby Lethal.Ambition » Thu Dec 02, 2004 9:44 pm

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.
Oderint Dum Metuant - Let them hate as long as they fear.
Proud member of the =XE= Xtreme Eagles
Oderint Dum Metuant
User avatar
Lethal.Ambition
Major
Major
 
Posts: 1284
Joined: Fri Jul 12, 2002 2:00 pm
Location: Florida

Re: messing with .cfg files

Postby MattNW » Fri Dec 03, 2004 12:15 am

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
In Memory of John Consterdine (FS Tipster)1962-2003
User avatar
MattNW
Major
Major
 
Posts: 1705
Joined: Tue Mar 25, 2003 2:34 pm
Location: Indiana

Re: messing with .cfg files

Postby Lethal.Ambition » Fri Dec 03, 2004 2:30 pm



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 :)
Oderint Dum Metuant - Let them hate as long as they fear.
Proud member of the =XE= Xtreme Eagles
Oderint Dum Metuant
User avatar
Lethal.Ambition
Major
Major
 
Posts: 1284
Joined: Fri Jul 12, 2002 2:00 pm
Location: Florida


Return to FS 2004 - A Century of Flight

Who is online

Users browsing this forum: No registered users and 1021 guests