Jump to content

Recommended Posts

while making a campaign for SFP1, I ran into a problem when trying to play a certain unit.

It seems the game tend to only allow you to play a unit as long as it is in order.

The problem is like this

 

[MercUnit001]

UnitName=1st Special Ops Wing

ForceID=1

UnitID=1

StartDate=1995

DescFile=MercDesc.txt

StartText=Campaign1Start3.txt

AircraftType=F-16C_B30

 

[uSAFUnit001]

UnitName=1st TFS

ForceID=1

UnitID=2

StartDate=1995

DescFile=MercDesc.txt

StartText=Campaign1Start3.txt

AircraftType=F-15C

 

[uSAFUnit002]

UnitName=2nd TFS

ForceID=1

UnitID=3

StartDate=1995

DescFile=MercDesc.txt

StartText=Campaign1Start3.txt

AircraftType=F-16C_B30

 

[uSAFUnit003]

UnitName=3rd TFS

ForceID=1

UnitID=4

StartDate=1995

DescFile=MercDesc.txt

StartText=Campaign1Start3.txt

AircraftType=F-15E

 

[uSAFUnit004]

UnitName=4th TFS

ForceID=1

UnitID=5

StartDate=1995

DescFile=MercDesc.txt

StartText=Campaign1Start3.txt

AircraftType=A-10A

 

[uSAFUnit005] <----- This is the problem i need help on

UnitName=5th TFS

ForceID=1

UnitID=55

StartDate=1995

DescFile=MercDesc.txt

StartText=Campaign1Start3.txt

AircraftType=F-16E

 

bear in mind that the first 4 units in the USAF plays like normal. But the problem is playing as the 5th USAF unit.

For some reason, when I try to play as that unit, I instead play as the merc fighter wing.

This problem also apply when i try to play as the enemy side as well.

can anyone help me with this problem.

Share this post


Link to post
Share on other sites

Well, first, unless the USAF made some purchases of Block 60 F-16s, there are no F-16Es in the USAF inventory...especially not back in 1995

 

Mainly though, notice anything unusual in the UnitID number of the entry you are having problems with compared to all the other entries?

 

FC

Edited by FastCargo

Share this post


Link to post
Share on other sites

none that I notice. I put the unit ID in both campaign.INI files in the numbering order.

I've copied this idea from NATO fighters, but i dunno how to get it done right. here is the unit in the campaign data

 

[AirUnit055]

AircraftType=F-16E

UnitName=5th TFS

ForceID=1

Nation=USAF

DefaultTexture=

BaseArea=D3 Airfield

CarrierBased=FALSE

CarrierNumber=

BaseMoveChance=0

RandomChance=100

MissionRate=1.0

MaxAircraft=16

StartAircraft=16

MaxPilots=16

StartPilots=16

Experience=100

Morale=100

Supply=80

Intelligence=100

UpgradeType=Never

MissionChance[sWEEP]=10

MissionChance[CAP]=10

MissionChance[iNTERCEPT]=10

MissionChance[ESCORT]=10

MissionChance=90

MissionChance[CAS]=90

MissionChance[sEAD]=90

MissionChance[ARMED_RECON]=90

MissionChance[ANTI_SHIP]=90

MissionChance[RECON]=0

 

and as for the F-16E, it is not the Block-60 but the F-16XL if it won the enhanced tactical fighter program back in the 1980s . I may plan on putting F-15E's on the USAF and F-16XL for Dhimar.

Share this post


Link to post
Share on other sites
[MercUnit001]

UnitName=1st Special Ops Wing

ForceID=1

UnitID=1

StartDate=1995

DescFile=MercDesc.txt

StartText=Campaign1Start3.txt

AircraftType=F-16C_B30

 

[uSAFUnit001]

UnitName=1st TFS

ForceID=1

UnitID=2

StartDate=1995

DescFile=MercDesc.txt

StartText=Campaign1Start3.txt

AircraftType=F-15C

 

[uSAFUnit002]

UnitName=2nd TFS

ForceID=1

UnitID=3

StartDate=1995

DescFile=MercDesc.txt

StartText=Campaign1Start3.txt

AircraftType=F-16C_B30

 

[uSAFUnit003]

UnitName=3rd TFS

ForceID=1

UnitID=4

StartDate=1995

DescFile=MercDesc.txt

StartText=Campaign1Start3.txt

AircraftType=F-15E

 

[uSAFUnit004]

UnitName=4th TFS

ForceID=1

UnitID=5

StartDate=1995

DescFile=MercDesc.txt

StartText=Campaign1Start3.txt

AircraftType=A-10A

 

[uSAFUnit005] <----- This is the problem i need help on

UnitName=5th TFS

ForceID=1

UnitID=55 <----- Something wrong with the order here methinks

StartDate=1995

DescFile=MercDesc.txt

StartText=Campaign1Start3.txt

AircraftType=F-16E

Share this post


Link to post
Share on other sites

I dont think that's the problem here.

Here's the example in NATO Fighters

 

[uSAFUnit004]

UnitName=10th TFS

ForceID=1

UnitID=4

StartDate=1979

DescFile=woe2Start.txt

StartText=woe2Start1.txt

AircraftType=F-4E

 

[uSAFUnit005]

UnitName=16th TFS 'Tomahawks'

ForceID=1

UnitID=55 <----------------- it works for them, why not for me

StartDate=1979

DescFile=woe2Start.txt

StartText=woe2Start1.txt

AircraftType=F-16A_Blk1

 

[uSAFUnit006]

UnitName=22nd TFS 'Stingers'

ForceID=1

UnitID=5

StartDate=1979

DescFile=woe2Start.txt

StartText=woe2Start1.txt

AircraftType=F-15A

Share this post


Link to post
Share on other sites

I always try to keep my flyable units in the first 25 units.

I have had problems like you are having if I put them farther down the list.

Take a squadron you do not want to fly and cut and paste it down to 55.

Take your squadron and cut and paste it up to where that squadron was. Change numbers(keep them in numerical order)and give it a try.

I'm not sure how far down the game engine reads for flyable units.

Maybe someone who knows could tell us. :dntknw:

Share this post


Link to post
Share on other sites

The unit ID that you list in the *.ini file (n) needs to be the "n'th" unit listed for that force ID in the *_data.ini file.

 

In other words, if the campaign _data.ini file has the first 5 units for Force 1, then 53 units for Force 2, then "Unit 55" with your F-16's, then the unit ID you need to list in the campaign.ini file is UnitID=6, not UnitID=55.

 

Clear as mud?

Share this post


Link to post
Share on other sites

Malibu:

Now I understand. In campaign_data.ini you can change force listings as you add squadrons. To get the correct unit ID you must count down how many units are designated force 1 or force 2 and that is the ID number.

I thought that they had to be in numerical order. All force 1 units and then all force 2 units etc.

His unitID=55 is the 55th unit in the data.ini,but it may only be the 33rd unit for force1.

Does anyone know how many total units game engine will read?

 

I learn something new about this sim almost everyday.

Thanks!! :drinks:

Share this post


Link to post
Share on other sites

Malibu:

Now I understand. In campaign_data.ini you can change force listings as you add squadrons. To get the correct unit ID you must count down how many units are designated force 1 or force 2 and that is the ID number.

I thought that they had to be in numerical order. All force 1 units and then all force 2 units etc.

His unitID=55 is the 55th unit in the data.ini,but it may only be the 33rd unit for force1.

Does anyone know how many total units game engine will read?

 

I learn something new about this sim almost everyday.

Thanks!! :drinks:

 

Well, as far as I know, no one's ever hit a limit. I think some of the SF2V expansion pack campaigns are up over 100 units. Maybe 999 is the limit...?

Share this post


Link to post
Share on other sites

Thanks for the advince. This also applies when I try to set up the campaign that also play as Force 2 as well. Even when I put it in order, it still have the same problem like this.

is there a way to fix that?

Edited by Vambrace

Share this post


Link to post
Share on other sites

As part of a campaign issue, is there a way to make the battle line static yet ground units will fire on each other?

will that also trigger a CAS mission?

Share this post


Link to post
Share on other sites

What triggers CAS is the mission type percentage in the campaign data ini. if you want more CAS simply raise the number

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.