Special Aircraft Service

Please login or register.

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

Author Topic: Plane- and weapons_ru.properties - are they essential? and, how to edit them?  (Read 4654 times)

0 Members and 1 Guest are viewing this topic.

SAS~Gerax

  • SAS Team
  • member
  • Offline Offline
  • Posts: 480

More and more often I saw the request for the plane and weapons entries.

This explanation by SAS~CirX will help all those who needs this entries
for the "look"of the their game (I am one of this players  ;)) and wants
to edit this entries. It also shows what is possible if you don't want such
technical names like Fw-190A-8U1R4. Maybe you want names like
'Pretty-Queen-Abby'  :D:


Plane- and weapons_ru.properties - are they essential?
and, how to edit them?


You find this two files in the \MODS\STD\i18n or in files \i18 folder.

Those two files are "cosmetic" files. In other words, they will, if needed, give you a more nice looking  and descriptive name, and in the cases of planes with many complicated loadouts, it will give descriptive names to those loadouts, so you know better what it going on when playing the game.

But they are actually not "required", and in the case of a plane like this, with very simple loadout options, and a very simple unconfusing name, not really even wanted so much.

Here is how the reference system works:

In your air.ini file, the game uses that entry to load the plane.
It looks like this:

Bf-109G-2     air.BF_109G2    2                 g01   SUMMER

The second part of the entry (air.BF_109G2) is the important part.
It tells the game which classfile to load.

The first part you can name anything you like.
You can name it "Pretty-Queen-Abby".
So it will read:

Pretty-Queen-Abby   air.BF_109G2 2                  g01   SUMMER

That name, "Pretty-Queen-Abby ", the game will then go look for it in plane_ru. If it does not find it, it will move on with no errors, and in QMB, the plane will be called Pretty-Queen-Abby.

-on a side note, the skin folder the game will use for the plane, will always be called the first part of the air-ini entry. So, in this case, you will have to put your skins in a skin folder called Pretty-Queen-Abby

In plane_ru, there may be an entry like this:

Pretty-Queen-Abby            Bf-109G-2 kissed my ass


Then, all this does is make the name of the plane
as it appears in QMB, into:

Bf-109G-2 kissed my ass

Usually the name will have a relevant year or so in it, like

Bf-109G-2, 1942

Then the games uses that first part of the air.ini entry
(Pretty-Queen Abby)

And it goes into weapons_ru, looking for an entry for that name. If it does not find one, then it will call the weapons loadout options for the plane whatever they are called inside the plane's classfile.

But if it finds an entry like

###############################################
# Pretty-Queen-Abby
###############################################
Pretty-Queen-Abby.default                  Default
Pretty-Queen-Abby.R1-SC250             R1: 1xSC 250
Pretty-Queen-Abby.R1-SC500             R1: 1xSC 500
Pretty-Queen Abby.none                     Empty

It will use the second entry in a line (like "Empty") to describe the loadout option in your mission builder, instead of the word "none" which is what "Empty" is called in the classfile.


That's it. Many thanks to SAS~Cirx and Pretty-Queen Abby
(I don't know her but she seems to be a very important person -
I used the search function and found that she is mentioned
3426 times on this site!?  ???).

Gerax
Logged

SAS~Bombsaway

  • You looking at me????
  • SAS Team
  • member
  • Offline Offline
  • Posts: 1096
  • Point me in the right direction. I'll get him!

Now that is an interesting read on the ru_boobies :o I mean properties. Where do you find these things?
Logged

Benno

  • member
  • Offline Offline
  • Posts: 370
  • Retired Airline Pilot

SAS~CirX & Gerax44 !
Thank you for a good "lesson" !!
Benno  :P
Logged

agracier

  • Modder
  • member
  • Offline Offline
  • Posts: 1289
    • The Great War in a Different Light

Now that is something I've wanted to do, since some planes are named a bit arbitrarily. It's even more applicable now with the new TD patch out.

For instance the Avia B 234 onlys shows up in the FBM or QMB as 'B234' and the Letov Sxxx only shows up as 'Sxxx' ...

I'd like to get the names like 'Letov', 'Avia' 'Fokker', 'Reggiano' etc into the names that appear on the FMB and QMB.

I tried the above explanation, but the planes still up under their old names. The new prefixes I'd written in in air.ini, weapons and planes don't show up.

Everything works and flies fine though, no crashes or anything, which is something at least, but still no new names. Any hints?
Logged

SAS~Malone

  • Nostradamus de Torquemada
  • Editor
  • member
  • Offline Offline
  • Posts: 4320
  • Be Pure! Be Vigilant! BeHave!!

agracier, if you're talking about the planes names as they appear in the QMB and FMB drop-down lists, that's the easiest bit to change.
Its normally the 2nd part of the planes_ru entry that you change to change the name display ingame.
You sure you made the right entries in the planes_ru?
If so, then it might have to be changed in the classfiles, which is a tad trickier to do.
I know the SABRE from another install had the same issue, it had no planes_ru entry, and nothing I did would change the name in the list.
Normally, the planes_ru entry is the ONLY thing you need to change, as in this example:
A-20G                A-20G, 1943   ----this is the default entry
I want it to display in the lists as, say, Malones A-20G. The entry will then be this:
A-20G                Malones A-20G
That's it. Normally.  :D


Logged

agracier

  • Modder
  • member
  • Offline Offline
  • Posts: 1289
    • The Great War in a Different Light

Worked fine ... and so simple ... many thanks. I am always a bit hesitant about changing things in the air/weapons/planes files on my own. I know - back up first - but still. Getting good advice is always worth it ...

Thanks again.
Logged

chanklaus

  • Modder
  • member
  • Offline Offline
  • Posts: 77
    • Sturmovizer

Many thanks for the explanation!

Couldn't you please explain all those "*.ini" files (air.ini, static.ini, etc) in the same manner? Where they are normally located, what they do, what which info in their lines mean, where to get them from if they are nowhere to be found? That would be really helpful!

Best greetings and wishes,

Yours,
                chanklaus!
Logged

Frankiek

  • SAS Team
  • member
  • Offline Offline
  • Posts: 632

Please before asking question try to look for an answer directly and the tech help and the school forus are the best places to start. As we have thousands of post now we have a very simple search tool that can help n locating the topic

here in summary what was already posted on the subject

The ini files are located in
C:\Program Files\Ubisoft\IL-2 Sturmovik 1946\MODS\STD\com\maddox\il2\objects

The ini that you will need are
static.ini: All characteristics of buildings, plates, humans and assimilated etc are stored here
chief.ini: moving objects (but not ships)
ships.ini: naturally just the ships (but not all of them)
stationary.ini: objects such as tanks, planes etc. that will not move
Technics.ini: All characteristics of artillery and vehicles objects are stored here


I am sure that you now everything about the air.ini and the all.ini for the maps

This give you a starting point I am confident that you can find the rest

 ;)
Logged

SAS~GJE52

  • Orchard Studios
  • SAS Team
  • member
  • Offline Offline
  • Posts: 1011
  • St. GJE of SAS

I take it that this is only for changing the Title of the loadout options.  The actual loadout is set in the classfiles and it is, therefore, not possible to add additional loadouts but adding a line in the weapons_ru.

GJE52
Logged

ME109Ace

  • Bf-109F series fanatic
  • member
  • Offline Offline
  • Posts: 3

What do I have to do to add an optional MG151/20 nose cannon for the SAS Bf-109F-2 Trop?
Logged

Beowolff

  • Observer
  • member
  • Offline Offline
  • Posts: 1058
  • "original" ideas since the early 50's
    • Mature Volunteer Group

What do I have to do to add an optional MG151/20 nose cannon for the SAS Bf-109F-2 Trop?

if that gun is not already in the plane's compliled/hashed class file...  you can't add it.  simple as that.  adding a weapon entry to anything 'outside' of the class file won't get the non-modding user anything.  the weapons list inside the class file (*for the most part) govern what guns/loadouts are going to be available for any particular plane.  and unless you have the tools and the skills to alter those class files, changing anything else isn't going to make the weapon appear.  sorry, that's just how it is.  as Cir-X was saying, the Plane and Weapon ru entries are just 'fluff!'  they don't really do anything except pretty up the loadout screen weapon descriptions.  you can't 'add' new stuff using those lines/entries.

S!
Logged

jt189

  • Retired Warrior
  • member
  • Offline Offline
  • Posts: 311

I thank all you people who have spent time doing all this work. And as I read these post they have saved me time and questions have learned from these posts.
Logged
Pages: [1] 2   Go Up