• October 20, 2021, 08:25:04 PM
• Welcome, Guest

Pages: [1]   Go Down

### AuthorTopic: Air.ini / plane.properities secondary aircraft name possible?  (Read 143 times)

0 Members and 1 Guest are viewing this topic.

#### Chaoic16

• Modder
• member
• Offline
• Posts: 533
##### Air.ini / plane.properities secondary aircraft name possible?
« on: September 12, 2021, 04:31:44 PM »

Hello everyone

As always, thank you for your time to answer my questions.

I have been pondering about this, is it somehow possible to give aircraft an alternative name?  For example, if I want to have an exported version of aircraft for a specific nation,  then aircraft would have an alternative name.

If it is not yet possible, I will post it it in a request post.

Cheers
Logged

#### FL2070

• Modder
• member
• Offline
• Posts: 696
• Mod Dispenser Operator In-Training
##### Re: Air.ini / plane.properities secondary aircraft name possible?
« Reply #1 on: September 12, 2021, 04:38:50 PM »

Yes. Here's an example:

air.ini
Code: [Select]
Bf-109G-6         air.BF_109G6 2                                g01   SUMMERBf-109G-6_2         air.BF_109G6 2                                g01   SUMMER
plane.properties
Code: [Select]
Bf-109G-6         Bf 109 G-6 #1Bf-109G-6_2         Bf 109 G-6 #2
This is also partially used in the default ModAct 5.3 air.ini, in which air.Placeholder is referenced many times throughout with different names to denote different sections of the plane list. Note that you cannot differentiate between two references of the same plane class in missions, because missions refer to planes by their class name (air.BF_109G6) and not their air.ini name (Bf-109G-6 and Bf-109G-6_2). Unfortunately, to differentiate between two or more copies of the same plane, you'd need to create new classes for each variant, which would be a great way to run straight into the Java wall.
Logged
On average, the average average averages, averagely, the average average of all averages.

#### Chaoic16

• Modder
• member
• Offline
• Posts: 533
##### Re: Air.ini / plane.properities secondary aircraft name possible?
« Reply #2 on: September 12, 2021, 04:50:45 PM »

Yes. Here's an example:

air.ini
Code: [Select]
Bf-109G-6         air.BF_109G6 2                                g01   SUMMERBf-109G-6_2         air.BF_109G6 2                                g01   SUMMER
plane.properties
Code: [Select]
Bf-109G-6         Bf 109 G-6 #1Bf-109G-6_2         Bf 109 G-6 #2
This is also partially used in the default ModAct 5.3 air.ini, in which air.Placeholder is referenced many times throughout with different names to denote different sections of the plane list. Note that you cannot differentiate between two references of the same plane class in missions, because missions refer to planes by their class name (air.BF_109G6) and not their air.ini name (Bf-109G-6 and Bf-109G-6_2). Unfortunately, to differentiate between two or more copies of the same plane, you'd need to create new classes for each variant, which would be a great way to run straight into the Java wall.

That is noted.  I intend to have cloned aircraft with different names while having the same references. This is another great news!  I am back on re-working aircraft list for WAW and TGA projects.

About About having different references (class), that is noted. I will keep that in mind.  Thank you for the information.
Logged
Pages: [1]   Go Up

Page created in 0.049 seconds with 23 queries.