Jump to content
Sign in to follow this  
fedace101

adding ships to anti-shipping missions?

Recommended Posts

Just wondering, what part of the DATA.ini do i need to edit to set a ship to show up as the target in anti-shipping missions?

Share this post


Link to post
Share on other sites

It is in the xxx_data.ini of the ship in groundobjects folder

 

for instance you find this lines

 

FormationSizeBase=1
FormationSizeVariation=6

 

in the CargoShip_data.ini.

Play with the values

Share this post


Link to post
Share on other sites

GroundObjectRole=CARGO_SHIP
Availability=VERY_COMMON

 

 

use Cargo_Ship role for warships

Share this post


Link to post
Share on other sites

You also can use the Single mission editer to see how your ship performs as well.

 

This is a very handy tool to use for testing ground objects.

Share this post


Link to post
Share on other sites

You also can use the Single mission editer to see how your ship performs as well.

 

This is a very handy tool to use for testing ground objects.

 

I knew about the mission editor but it become a bit of a hassle. I already tested a few destroyers for both RED/BLUEFOR and it just gives the anti-shipping missions a bit more kick.

Share this post


Link to post
Share on other sites

In Desert plus or Desert4 terrain. I added these lines to the Targets in the Terrains folder Desert Plus for example here.  I got the off sets from the Single mission edit.  It does take some practice to get use to it.

 

Just make sure you back up your mods folder.


/// ---------------------------- New Targets ------------------------ ///
 
All these ships function with torpedo's and  Missle's with some ini modifications

[TargetArea138]
Name=Yankee Fleet
Position=482543.00,530950.00
//MinFleetSpeed=10.289
Radius=5657
ActiveYear=0
Location=3
Alignment=FRIENDLY
CarrierStation=TRUE
Target[001].Type=CVA-63
Target[001].Offset=0,0
Target[001].Heading=085
Target[002].Type=DD-931
Target[002].Offset=-471,2149
Target[002].Heading=085
Target[003].Type=DD-931
Target[003].Offset=3457,-2881
Target[003].Heading=085
Target[004].Type=SumnerFRAM2
Target[004].Offset=-2881,-3457
Target[004].Heading=085
Target[005].Type=GearingFRAM1B
Target[005].Offset=-3457,2881
Target[005].Heading=085
Target[006].Type=Adams
Target[006].Offset=2881,3457
Target[006].Heading=085
Target[007].Type=DD-931
Target[007].Offset=2250,3897
Target[007].Heading=085
Target[008].Type=GearingFRAM1B
Target[008].Offset=-2149,-542
Target[008].Heading=085
 
[TargetArea139]
Name=Echo Station
Position=400000.0,700000.0
Radius=5657
ActiveYear=0
Location=4
Alignment=FRIENDLY
CarrierStation=TRUE

[TargetArea140]
Name=Whiskey Station
Position=550000,600000
Radius=5657
ActiveYear=0
Location=3
Alignment=FRIENDLY
CarrierStation=TRUE
 
 
 
/// ------------------------------------------------------------- ///
 
I then added this ship to the target types:
/// ----------------------------------- New Objects --------------------- ////

[TargetType72]
Name=Koni
FullName=Parani Koni Frigate
TargetType=WARSHIP
ActiveYear=1955
DamagePoint=100
ArmorValue=0
ArmorType=0
TargetValue=500
UseGroundObject=TRUE
GroundObjectType=Koni
RepairRate=0.150
StartDetectChance=50
StartIdentifiedChance=0
IncreaseDetectChanceKey=0
MaxVisibleDist=15000.0
DamagedModel=//Warship1_Destroyed.lod
DestroyedEffect=//ShipDestroyedEffect
DestroyedModel=//Warship1_Destroyed.lod
SecondaryEffect=LargeOilFire
SecondaryChance=100
 

I Then did a little mod to the DesertPlus in the Terrains folder:

 

 

//MOD FILE by Baffmeister: DesertPlus ver 2.2
 
[Terrain]
TerrainFullName=DesertPlus
DataFile=Desert_data.INI
TargetFile=DesertPlus_targets.ini
TargetTypeFile=Desert_types.ini
MovementFile=DesertPlus_movement.ini
NationsFile=DesertPlus_nations.ini
WaterMap=Desert_Water.bmp
BriefingText=desert_briefing.ini
DogfightFile=desert_dogfight.ini
DogfightOnly=FALSE
CatFile=..\desert\desert.cat
GroundObjectTexture=tan
LimitedNations=TRUE
NavalMap=TRUE
 
[Map]
FilenameFormat=PlanningMap%d.bmp
Width=1000000.0
Height=1000000.0
NumZoomLevels=3
[WeatherChance]
ScatteredChance=50
BrokenChance=25
OvercastChance=4
InclementChance=2

[AllowedMissionTypes]
FriendlyMissionTypes=SWEEP,CAP,ESCORT,INTERCEPT,STRIKE,CAS,SEAD,RECON,ARMED_RECON,ANTI_SHIP,CRUISE_MISSILE,FAC
EnemyMissionTypes=SWEEP,CAP,ESCORT,INTERCEPT,STRIKE,CAS,SEAD,RECON,ARMED_RECON,ANTI_SHIP,CRUISE_MISSILE,FAC
 
[AllowedDates]
StartDate=1948
EndDate=2020

/// --------------- Richo mods as well ------------------------------ ///

 

Then I went into the Flight folder and opened up the Formation's ini and created a Navy Ship line as well as an EgyptBomberSq:

You then can change the formation in the Nations ini as well.

 

 

//-----------------------------------------------------------------------------
[FormationType010]
Name=ShipConvoy
FormationType=NAVAL
BaseLevel=1
Level[01].Name=Convoy
Level[01].Size=12
Level[01].Formation[01]=ConvoyDouble
[FormationType011]
Name=PatrolBoats
FormationType=NAVAL
BaseLevel=1
Level[01].Name=Convoy
Level[01].Size=12
Level[01].Formation[01]=PatrolBoatLine
[FormationType012]
Name=NavyShips
FormationType=NAVAL
BaseLevel=1
Level[01].Name=Convoy
Level[01].Size=10
Level[01].Formation[01]=NavyShipLine
 
///-------------Adds-----------------//

[FormationType013]
Name=EgyptBomber
FormationType=AIR
BaseLevel=2
Level[01].Name=Squadron
Level[01].Size=4
Level[01].Formation[01]=EgyptBomberSq
Level[02].Name=Flight
Level[02].Size=2
Level[02].Formation[01]=EgyptBomberFl
Level[03].Name=Element
Level[03].Size=2

[FormationType014]
Name=USNBomber
FormationType=AIR
BaseLevel=2
Level[01].Name=Squadron
Level[01].Size=4
Level[01].Formation[01]=USNBomberSq
Level[02].Name=Flight
Level[02].Size=2
Level[02].Formation[01]=USNBomberFl
Level[03].Name=Element
Level[03].Size=2
 
//-----------------------------------------------------------------------------

 

//-------------------------------------------
[EgyptBomberSq]
Position[01].Offset=    0,     0,   0
Position[02].Offset=    0, -1400,  00
Position[03].Offset=    0, -2800,  00
Position[04].Offset=    0, -4200,  00

[EgyptBomberFl]
Position[01].Offset=    0,    0,   0
Position[02].Offset= -100,    0,   5
Position[03].Offset= -100, -200,  50
Position[04].Offset=    0, -200,  55
// Position[01].Offset=    0,    0,   0
// Position[02].Offset= -200, -100,  20
// Position[03].Offset=  400, -200,  40
// Position[04].Offset=  600, -300,  60
 
[PatrolBoatLine]
Position[01].Offset=  0,    0, 0
Position[02].Offset= 10, -100, 0
Position[03].Offset=-10, -200, 0
Position[04].Offset=  0, -300, 0
Position[05].Offset= 10, -400, 0
Position[06].Offset=-10, -500, 0
Position[07].Offset=  0, -600, 0
Position[08].Offset= 10, -700, 0
Position[09].Offset=-10, -800, 0
Position[10].Offset=  0, -900, 0
Position[11].Offset= 10,-1000, 0
Position[12].Offset=-10,-1100, 0
Position[13].Offset=  0,-1200, 0
Position[14].Offset= 10,-1300, 0
Position[15].Offset=-10,-1400, 0
 
[NavyShipLine]
Position[01].Offset= 0, 0, 0
Position[02].Offset= 1978, 963, 0
Position[03].Offset=-3002, -200, 0
Position[04].Offset=-3619, -2674, 0
Position[05].Offset=1425, 4269, 0
Position[06].Offset=-4500, -36, 0
Position[07].Offset=1359, -4291, 0
Position[08].Offset=4500, 0, 0
Position[09].Offset=-2250, 3897, 0
Position[10].Offset=-781, -1432, 0
 
Also make sure in your terrains folder and then the targets ini that your ships match up what is in your Ground Objects folder.
 
you can check that your ground objects are working by using the single mission edit.
 

Then I went to the campaign folder and did some modifications to one of my favorite campaigns,  I do not know at the moment who done it but job well done.

I put a star at the end so I know its a mod from me.

[CampaignData]
CampaignName=590901 Operation Burning Sands*
DataFile=Campaign7_data.ini

 

I did get it from the download section on Campaigns. Just make sure you have Naval Campaign in there.

[CampaignData]
StartDate=09/01/1959
StartDateDeviation=30
ForceWithInitiative=0
SurpriseAttack=FALSE
MaxMissions=30
NormalMissionRate=180
NormalMissionRateDeviation=120
OffensiveMissionRate=15
OffensiveMissionRateDeviation=30
StartScreen=CampaignStart2.JPG
CampaignBaseScreen=DesertBase2.JPG
CampaignEndWinScreen=CampaignEndWin1.JPG
CampaignEndLoseScreen=CampaignEndLose1.JPG
CampaignEndStallScreen=CampaignEndLose1.JPG
CampaignEndKIAScreen=CampaignEndLose1.JPG
CampaignEndWinText=Campaign1Win.txt
CampaignEndLoseText=Campaign1Lose.txt
CampaignEndStallText=Campaign1Stall.txt
NavalCampaign=TRUE <----------------------------------------------- This line

 

Then when you select Strike mission you will be able to get random fleet strikes.

 

[AirUnit041]
AircraftType=B-57B
StartDate=09/01/1959
UnitName=2nd Royal Dhimar Bomber Sq
ForceID=1
Nation=Dhimar
BaseArea=Al'Aqar Airbase
RandomChance=60
MaxAircraft=20
StartAircraft=20
MaxPilots=16
StartPilots=16
Experience=30
Morale=100
Supply=50
MissionChance[sWEEP]=0
MissionChance[CAP]=0
MissionChance[iNTERCEPT]=0
MissionChance[ESCORT]=0
MissionChance=80 <--------------------------------This line
MissionChance[CAS]=50
MissionChance[sEAD]=50
MissionChance[ARMED_RECON]=50
MissionChance[ANTI_SHIP]=90 <----------------------------This line
MissionChance[RECON]=10
UpgradeType=ANY

 

 

I hope this did help a bit?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..