Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: (Visual / GUI) Aircraft secondary names  (Read 768 times)

0 Members and 1 Guest are viewing this topic.

Chaoic16

  • Modder
  • member
  • Offline Offline
  • Posts: 930
(Visual / GUI) Aircraft secondary names
« on: February 02, 2022, 04:30:51 AM »

Hello everyone,

I was working on the next mod project known as AAL Expanded (Alternative Aircraft List) where I was hoping that I would split the aircraft with shared names into their own names. 

Here is an example, Avia B-153

Quote
Avia_B135              air.Avia_B135      2      NOINFO      g01      SUMMER

This is what I tried to do:

Quote
Avia_B135_SILI              air.Avia_B135      2      NOINFO      g01      SUMMER
Avia_B135              air.Avia_B135      2      NOINFO      g01      SUMMER



Avia_B135_SILI         DAR-11 Ljastuvka, 1939
Avia_B135                 B-135, 1941

You can see, I was trying to have two versions of B-135 showing up in aircraft list.  One for Czech and Bulgaria.  That way there are unique name for each aircraft, instead of having an aircraft with combined names while having the same access to java.   That way it won't waste any java spaces, due to java wall situation.

The problem occured when I did it this way; In a quick mission, by selecting DAR-11, then click on aircraft screen to change weapon, skin, etc.  When I go there, I see default aircraft (in AAL, it's jetman) instead of DAR-11.  I had to manually select DAR-11 again.  And when I am done flying and return to quick mission, I see B-135 selected by default instead of DAR-11.  Other problems occured, during in-flight, I noticed aircraft name showed up as B-135 instead of DAR-11.

Therefore, I am writing the ideas where I hope modders can come up with the way to make game see secondary name for any aircraft and display it in GUI and in-flight. 

Suppose I write this codes in air.ini:

Quote
Avia_B135              air.Avia_B135      2      NOINFO      g01      SUMMER
Avia_B135_1              air.Avia_B135      2      NOINFO      g01      SUMMER
Avia_B135_2              air.Avia_B135      2      NOINFO      g01      SUMMER



Avia_B135                     B-135, 1941
Avia_B135_1                 DAR-11 Ljastuvka, 1939
Avia_B135_2                 (Other names)

If the game could read an increasing numbers after original name, would accept it as secondary name and display in any screen and in-flight while being referenced to to an original aircraft java class, including skin folder.

With that, we are able to have the proper aircraft name for any specific nation.  it always bothered me to see any aircraft with lengthy shared names.  If this is achieved, I am more than happy to use it in AAL project too.
Logged

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9544
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: (Visual / GUI) Aircraft secondary names
« Reply #1 on: February 02, 2022, 06:25:20 AM »

... Other problems occured, during in-flight, I noticed aircraft name showed up as B-135 instead of DAR-11.
The name displayed during the flight is given by the aircraft's Java code!
The name on the left in the air.ini is only for the name of the skins folder!
Example :
      Property.set(class1, "iconFar_shortClassName", "Bk-534");

For the rest, still in the Java code of the aircraft, it is possible to have several countries...
Example :
      Property.set(class1, "meshName_sk", "3DO/Plane/AviaBk-534/hier.him");
      Property.set(class1, "PaintScheme_sk", new PaintSchemeFMPar03s());
      Property.set(class1, "meshName_de", "3DO/Plane/AviaBk-534/hier.him");
      Property.set(class1, "PaintScheme_de", new PaintSchemeFMPar06s());
      Property.set(class1, "meshName", "3DO/Plane/AviaBk-534/hier.him");
      Property.set(class1, "PaintScheme", new PaintSchemeFMPar09s());

This is a far-fetched example... but it is possible...
Otherwise a real example...

      Property.set(class1, "meshName_sk", "3DO/Plane/AviaBk-534(sk)/hier.him");
      Property.set(class1, "PaintScheme_sk", new PaintSchemeFMPar00s());
      Property.set(class1, "meshName_de", "3DO/Plane/AviaBk-534(de)/hier.him");
      Property.set(class1, "PaintScheme_de", new PaintSchemeFMPar00s());
      Property.set(class1, "meshName", "3DO/Plane/AviaBk-534/hier.him");
      Property.set(class1, "PaintScheme", new PaintSchemeFMPar00s());



Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

Knochenlutscher

  • Flying Ass Clown #10
  • Modder
  • member
  • Offline Offline
  • Posts: 4591
  • aka Segfej
Re: (Visual / GUI) Aircraft secondary names
« Reply #2 on: February 02, 2022, 09:42:33 AM »

Sorry to run into your Backyard with your Door on my back.

A simple thing, send me that Bv135 Humppa Vehicle and I reslot a Dard11 for you.

I can't see you suffering.
Logged
Wiseman : "Did you speak the exact words?" Ash : "Look, maybe I didn't say every single little tiny syllable, no. But basically I said them, yeah."

Chaoic16

  • Modder
  • member
  • Offline Offline
  • Posts: 930
Re: (Visual / GUI) Aircraft secondary names
« Reply #3 on: February 02, 2022, 03:02:55 PM »

... Other problems occured, during in-flight, I noticed aircraft name showed up as B-135 instead of DAR-11.
The name displayed during the flight is given by the aircraft's Java code!
The name on the left in the air.ini is only for the name of the skins folder!
Example :
      Property.set(class1, "iconFar_shortClassName", "Bk-534");

For the rest, still in the Java code of the aircraft, it is possible to have several countries...
Example :
      Property.set(class1, "meshName_sk", "3DO/Plane/AviaBk-534/hier.him");
      Property.set(class1, "PaintScheme_sk", new PaintSchemeFMPar03s());
      Property.set(class1, "meshName_de", "3DO/Plane/AviaBk-534/hier.him");
      Property.set(class1, "PaintScheme_de", new PaintSchemeFMPar06s());
      Property.set(class1, "meshName", "3DO/Plane/AviaBk-534/hier.him");
      Property.set(class1, "PaintScheme", new PaintSchemeFMPar09s());

This is a far-fetched example... but it is possible...
Otherwise a real example...

      Property.set(class1, "meshName_sk", "3DO/Plane/AviaBk-534(sk)/hier.him");
      Property.set(class1, "PaintScheme_sk", new PaintSchemeFMPar00s());
      Property.set(class1, "meshName_de", "3DO/Plane/AviaBk-534(de)/hier.him");
      Property.set(class1, "PaintScheme_de", new PaintSchemeFMPar00s());
      Property.set(class1, "meshName", "3DO/Plane/AviaBk-534/hier.him");
      Property.set(class1, "PaintScheme", new PaintSchemeFMPar00s());





Thank you for the advice!  If the java code is edited, it is possible to have an access to multi names and skin folder?!

May I ask, what does (sk) and (de) mean?

Where can I edit this file?  I am completely new to modding IL-2 1946 beyond notepad editing. I have the basic experiences with java coding though.
Logged

Chaoic16

  • Modder
  • member
  • Offline Offline
  • Posts: 930
Re: (Visual / GUI) Aircraft secondary names
« Reply #4 on: February 02, 2022, 03:13:03 PM »

Sorry to run into your Backyard with your Door on my back.

A simple thing, send me that Bv135 Humppa Vehicle and I reslot a Dard11 for you.

I can't see you suffering.

Interesting poetry.  I am a fan of poem.  It is my first time to reply in a such poetric ways.  It is my first time doing this, let me give it a try!  (Clears throat) Here it go:

Quote
Forgiven that you are...

Such the goal... Distance from me...

Helped that it can not be...

Not knowing the modding....How to....

Seeking... Searching.. The answer...

Aircraft alternative names.. Oh thou difficult must be...

Such a suffering.... Not knowing... The modding, how to....

The answers.. Seeking... Searching...

Possible, Exist, can be done...   The answers

Wonderful, helpful, informative...

Such a teamwork...

The modding community!
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 24 queries.