Jump to content

Recommended Posts

Posted

Hi all,

 

I'm trying to learn a bit about campaign files organization and would like to know what assigns unit id numbers to units and where the list is kept in/for a campaign file.

 

For instance, I have a downloaded campaign. The campaign.ini file lists several units with a unit id number. I see a corresponding unit in the campaigndata.ini file.

 

But I can't find what assigns the unit id number or where it's kept. Can I change the unit id number? Is so, where?

 

 

Thanks,

 

 

Geary

Posted

In the campaign.ini you find the UnitID=?. In the campaigndata.ini you will find the

[AirUnit00?]at the top of each squadron. The UnitID number should be the same as the AirUnit number.

You can change the numbers,but I believe that you have to keep the[AirUnit00?]numbers in numerical order as you go down the page of the campaigndata.ini.

AirUnit001,AirUnit002,.......AirUnit069 with no gaps in numbering or you will have trouble loading the campaign.

Posted

ezlead,

 

I would have thought the same thing you explained, but... I downloaded an older campaign that only half worked. It had been added to a former campaign.

 

The unit id's in the campaign.ini didn't match up with the AirUnit numbers in the campaigndata.ini. So, I changed the unit id number in one of the campaign.ini entries repeatedly and started the campaign for that unit until I matched each unit id to a an AirUnit number.

 

So what you tell me and I'd thought to be true, isn't for this campaign. Hence, my question.

 

Thanks for the answer. Gives me more to look into. Any idea if there's a campaign writing tutorial out there any where?

 

 

 

Geary

Posted (edited)

Hi Geary,

 

Note that Friendly and Enemy air units are treated as separate lists for the purposes of the campaign.ini file.

 

Some of the stock campaign_data.ini files mix up red and blue air units in the airunitxxx order, so, when calling out friendly flyable air units from the campaign.ini file, you need to count only friendly air units when working out the UnitID=xx nnumber in the campaign.ini file.

 

 

Likewise, when calling out enemy air units as flyable from the campaign.ini file, if you select UnitID=001 for your first soviet flyable squadron, you will get the first soviet airunit listed in the campaign_data.ini file, even if in the campaign_data.ini file it is listed as AirUnit035 or whatever.

 

I hope that makes sense. It just means that the UnitID= callout in the campaign.ini file will not always match the Airunitxxx number in the campaign_data.ini file.

 

Go figure!

Edited by Baltika
Posted

Baltika,

 

Thanks, I understand the gist of your explanation and as I muddle through dissecting campaigns I'll probably come to understand it better.

 

 

 

Geary

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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..