View Single Post
Old 05-10-07, 03:07 PM   #18
kakemann
Samurai Navy
 
Join Date: Feb 2007
Location: Pretty close to the big german cruiser Blücher in Norway
Posts: 568
Downloads: 29
Uploads: 0
Default

Quote:
Originally Posted by t0maz
Anybody plan to script those new planes to see it in campaign mode?
I'm not planning to script them myself but here is what you can try out to add the planes to the campaing:

here are three files that you have to look into here.
These files are:

DATA/LAND/LAB_SmallAirBaseUS/LAB_SmallAirBaseUS.cfg
DATA/LAND/LAB_MediumAirBaseUS/LAB_MediumAirBaseUS.cfg
DATA/LAND/LAB_LargeAirBaseUS/LAB_LargeAirBaseUS.cfg

Opening one of these, forexample LargeAirbaseUS you will see something similar to this:
Quote:
[Unit]
ClassName=LargeAirBaseUS
3DModelFileName=data/Land/LAB_LargeAirBaseUS/LAB_LargeAirBaseUS
UnitType=406
MaxSpeed=0.000000
MinSpeed=0.000000
Length=1
Width=1

[AirGroup 1]
StartDate=19380101
EndDate=19420601
Squadron1Class=LBSUSSearchPlane
Squadron1No=18

[AirGroup 2]
StartDate=19420602
EndDate=19440101
Squadron1Class=LBSUSSearchPlane
Squadron1No=18
Squadron2Class=USHeavyBomber
Squadron2No=12
Squadron3Class=USTorpedoBomber
Squadron3No=6
Squadron4Class=USFighter
Squadron4No=6

[AirGroup 3]
StartDate=19440102
EndDate=19451231
Squadron1Class=LBSUSSearchPlane
Squadron1No=24
Squadron2Class=USHeavyBomber
Squadron2No=12
Squadron3Class=USTorpedoBomber
Squadron3No=12
Squadron4Class=USFighter
Squadron4No=12
I've highlighted the important lines here.
These lines corresponds to the planes that would be possible to meet when playing campaign mode, but only for the LARGE airbases.

After installing the planes you have to take a look in the

DATA/ROSTER/AMERICAN/AIR directory

If you add a new airgroup or change a existing you have to add one of the new installed squadronclasses based on the name in the corresponding CFG file in the DATA/ROSTER/AMERICAN/AIR and the new installed airplane..

The airbases come in different sizes so in order to add the planes to all the different types of airbases you have to add or change the airgroups in all the three files (LARGE, MEDIUM and SMALL)

Uhhm.. I hope someone understands what I mean!

Do you?
kakemann is offline   Reply With Quote