Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
add on aircraft in campaigns (Read 1149 times)
Mar 7th, 2003 at 4:51pm
airbone   Guest

 
Is there any way we can fly add on aircraft in the campaings.  I would assume there would have to be some sort of modifications done to code.    Also I tried looking in files to adjust the date that you can fly new aircraft because It is 1943 in my campaign and I am about to win.  I would like the opportunity to fly the jets.  Please respond if anyone knows.
 
IP Logged
 
Reply #1 - Mar 7th, 2003 at 8:10pm

BFMF   Offline
Colonel
Pacific Northwest

Gender: male
Posts: 19820
*****
 
Hi Airborne!

I figured out how to do this and I even wrote a little tutorial on how, but I think it's been buried in the forum. Anyway, here's the instructions. It isn't very good, but it works

To modify an existing campaign to use additional aircraft......
 
These changes will NOT affect future campaigns, only your current campaign.
 
When selecting a campaign in CFS3, it gives you the path to the file. Remember the filename.
 
Now go into “My Documents\Combat Flight Simulator 3.0\Campaigns\saved\fortress europa”, and open the folder named after your CFS3 pilot.
 
My campaign is stored in a file called, ‘1.cmpstat’ which can be edited using Notepad.
 
Go to your aircraft directory and select the B26 folder and open up the aircraft.cfg file.  
 
There are two aircraft entries, one for the B-26C and one for the B-26G. Decide which one you want. For this example I’ll use the ‘C’ model.
 
Copy the model entry which is ‘B_26C’.
 
Now, to edit the file.
 
For example, right now I’m in the middle of a campaign as a fighter pilot, to add the B-26, which is a bomber to my campaign hanger, scroll down to the bottom of the file and look for the technology section.
 
It looks like this....

Quote:
<Technology>
    <TechNode modelname="P_47D" friendlyname="P-47D" country="2" date="3/1/1943" category="512"/>
    <TechNode modelname="P_38J" friendlyname="P-38J" country="2" date="8/1/1943" category="512"/>
    <TechNode modelname="P_51B" friendlyname="P-51B" country="2" date="9/5/1943" category="512"/>
    <TechNode modelname="P_47D_25" friendlyname="P-47D-25" country="2" date="5/1/1944" category="512"/>     <TechNode modelname="P_51D" friendlyname="P-51D" country="2" date="5/1/1944" category="512"/>
    <TechNode modelname="P_38L" friendlyname="P-38L" country="2" date="6/1/1944" category="512"/>
    <TechNode modelname="P_55A" friendlyname="P-55A" country="2" date="12/1/1944" category="512"/>
    <TechNode modelname="P_80A" friendlyname="P-80A" country="2" date="4/1/1945" category="512"/>
   </Technology>

 
Copy one of the entries....
Quote:
   <TechNode modelname="P_47D" friendlyname="P-47D" country="2" date="3/1/1943" category="512"/>

 
Now change the entry to.....
Quote:
   <TechNode modelname="B_26C" friendlyname="B-26C" country="2" date="2/1/1943" category="512"/>

 
Here are the values that needed to be changed
 
modelname=”B_26C” is where you paste the B26 model name as the value
 
friendlyname="B-26C" is what the aircraft label shows up as when flying so having the value set  to something like “B-26C" is fine.
 
country="2" You should check the other aircraft entries for the correct value.
 
date="2/1/1943"  This is the date that you want this aircraft to become available. It’s format is MM/DD/YYYY. For simplicity, making the value ‘2/1/1943’ causes the aircraft to be available no matter where you are in the campaign.
 
category="512" I'm not completely sure what this is for but check the other aircraft entries for the correct value.
 
Cut and paste it between the <Technology> & </technology> tags, save it and when you load your campaign, the B-26 should be available. However, please note that switching between aircraft costs personal prestege
 
IP Logged
 
Reply #2 - Mar 8th, 2003 at 1:40am
airbone   Guest

 
Wow, you know your stuff.  Thanks.  Also can I add aircraft that I have downloaded in the same manner.  I simple yes or no will do but it looks like it will.  Thanks
Esselbach. Grin
 
IP Logged
 
Reply #3 - Mar 8th, 2003 at 1:44am

BFMF   Offline
Colonel
Pacific Northwest

Gender: male
Posts: 19820
*****
 
yep, it works with any aircraft, I just used the B-26 as an example
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print