pearl hrabour project

S

scruffbag

Guest
how do i add the air bases so that they show up in mission builder.i cant even find them.
 
Airbases.dat File

For display in the MB, you'll need to add the bases to your Airbases.dat file that is found in your Info folder (C: Program Files > Microsoft Games > CFS 2 > Info > airbases.dat).

Open up the file with word or notepad and add the following lines:

[runway.124] <<< Use the next available number. These must be in sequence. Do not duplicate.
id=8051 <<< You can use any number, just don't duplicate. These don't need to be in sequence.
name=Wheeler Field
base_lat=N21 28.78
base_lon=W158 2.75
base_alt=841.28
heading=58.10
allegiance=0
units_across=2
takeoff_start_pos=-400,0
takeoff_stop_pos=1600,200
landing_start_pos=5000,350
landing_touchdown_pos=500,0
landing_stop_pos=-250,0

[runway.125]
id=8052
name=Haleiwa
base_lat=N21 36.71
base_lon=W158 5.57
base_alt=4.67
heading=218.40
allegiance=0
units_across=2
takeoff_start_pos=-400,0
takeoff_stop_pos=1600,200
landing_start_pos=5000,350
landing_touchdown_pos=500,0
landing_stop_pos=-250,0

[runway.126]
id=8053
name=Bellows Field
base_lat=N21 21.34
base_lon=W157 43.52
base_alt=7.36
heading=39.60
allegiance=0
units_across=2
takeoff_start_pos=-400,0
takeoff_stop_pos=1600,200
landing_start_pos=5000,350
landing_touchdown_pos=500,0
landing_stop_pos=-250,0

[runway.127]
id=8054
name=Ford Island Air Station
base_lat=N21 21.56
base_lon=W157 57.97
base_alt=7.06
heading=46.40
allegiance=0
units_across=2
takeoff_start_pos=-400,0
takeoff_stop_pos=1600,200
landing_start_pos=5000,350
landing_touchdown_pos=500,0
landing_stop_pos=-250,0

[runway.128]
id=8055
name=Hickam Field
base_lat=N21 20.03
base_lon=W157 57.63
base_alt=7.37
heading=39.60
allegiance=0
units_across=2
takeoff_start_pos=-400,0
takeoff_stop_pos=1600,200
landing_start_pos=5000,350
landing_touchdown_pos=500,0
landing_stop_pos=-250,0
 
well thats torn it.message says"failed to initialise the databases.some files may be corrupt or missing.reinstall."i dont recall adding these air bases else where.(scene bd or wherever they go),and i dont have bellows in my list of air fileds.now it wont even let be into mission builder.bugger.
 
Make sure that you did not accidentally delete/over-write the end of file marker- the little square thingy- at the end of the airbases.dat file. That will cause a failure to initialize error- pretty sure.
View attachment 19664
Also, I believe the airbases.dat file can only hold a certain number of entries- at least it used to be that way- the file couldn't greater than 64kb. That has changed I think on newer Windows versions.
 
ive just checked the airfileds( talons and jagdflieger)against each other,and some of the data is different,,ie one heading is a certain number/s compared to a heading of the same airfield by whoever,and some of the other numbers are different to to others of the same catagory.also some names differ,ie ford island against ford island air station.dunno whats goin on.it was fine till i entered the airbase data in to INFO/AIRBASE.dat.then it went tits up.i removed all the new data but no good.
 
Well, if you have a back up copy of your airbases.dat file you can copy and paste.

If you do not have a back up copy you will need to open the file in a decent word processing program like Word. Move your cursor to the end of the file, on the menu bar click on insert/symbol. From the font box scroll down and choose "symbol". Scroll down a ways until you come to a couple of rows of square boxes. Choose one and click insert. That should do it. Save and close.

Make sure you leave a blank line between the last line of your last runway entry and the EOF marker!

PS: It probably doesn't matter much just what font you choose- just so long as it includes one of those box deals.
 
Well, that is one problem handled anyway. Why don't you post the entire file here so everyone can have a look at it.

BTW what windows version are you running and what is the file size of your airbases.dat file?
 
[runway.123]
id=8050
name=Gasmata
base_lat=S6 15.77
base_lon=E150 20.22
base_alt=0
heading=223
allegiance=0
units_across=2
takeoff_start_pos=-400,0
takeoff_stop_pos=1600,200
landing_start_pos=5000,350
landing_touchdown_pos=500,0
landing_stop_pos=-250,0

[runway.124]
id=8051
name=Wheeler Field
base_lat=N21 28.78
base_lon=W158 2.75
base_alt=841.28
heading=58.10
allegiance=0
units_across=2
takeoff_start_pos=-400,0
takeoff_stop_pos=1600,200
landing_start_pos=5000,350
landing_touchdown_pos=500,0
landing_stop_pos=-250,0

[runway.125]
id=8052
name=Haleiwa
base_lat=N21 36.71
base_lon=W158 5.57
base_alt=4.67
heading=218.40
allegiance=0
units_across=2
takeoff_start_pos=-400,0
takeoff_stop_pos=1600,200
landing_start_pos=5000,350
landing_touchdown_pos=500,0
landing_stop_pos=-250,0

[runway.126]
id=8053
name=Bellows Field
base_lat=N21 21.34
base_lon=W157 43.52
base_alt=7.36
heading=39.60
allegiance=0
units_across=2
takeoff_start_pos=-400,0
takeoff_stop_pos=1600,200
landing_start_pos=5000,350
landing_touchdown_pos=500,0
landing_stop_pos=-250,0

[runway.127]
id=8054
name=Ford Island Air Station
base_lat=N21 21.56
base_lon=W157 57.97
base_alt=7.06
heading=46.40
allegiance=0
units_across=2
takeoff_start_pos=-400,0
takeoff_stop_pos=1600,200
landing_start_pos=5000,350
landing_touchdown_pos=500,0
landing_stop_pos=-250,0

[runway.128]
id=8055
name=Hickam Field
base_lat=N21 20.03
base_lon=W157 57.63
base_alt=7.37
heading=39.60
allegiance=0
units_across=2
takeoff_start_pos=-400,0
takeoff_stop_pos=1600,200
landing_start_pos=5000,350
landing_touchdown_pos=500,0
landing_stop_pos=-250,0

 
Don't forget to put a space between the last line of the last runway entry and the EOF marker.

Also, this is your entire airbases.dat file?

If so then it might be an issue that the runway numbers aren't 000-005.
 
Also, scruffbag, there is an airbase.dat file checking utility, DCG_Checker or something like that, available at Simviation that will automatically check your airbases.dat file for potential problems- doesn't fix them- just points them out to you.
 
no,this is just the last few,i copied and pasted from the last original base,gasmata.which numbers do you mean(000-005).oh,and i did leave a line between the last base and that symbol.(i didnt have a box,just an arrow)
 
i tried your idea talon.i deleted my .dat,and copied yours in to info.still failing to initialize ...
 
no,this is just the last few,i copied and pasted from the last original base,gasmata.which numbers do you mean(000-005).oh,and i did leave a line between the last base and that symbol.(i didnt have a box,just an arrow)

Never mind about the numbers. Leave 'em be. I think Talon has cut the Gordian knot for us!
 
no,i only installed it today.i started again cuz i had the failded to initialise message come up.and its back.it got something to do with the airbase . dat,its what happend last time
 
Back
Top