Special Aircraft Service

Please login or register.

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

Author Topic: Air.ini format control  (Read 185 times)

0 Members and 1 Guest are viewing this topic.

UberDemon

  • UberDemon/danzigzag
  • Modder
  • member
  • Offline Offline
  • Posts: 1574
Air.ini format control
« on: March 09, 2025, 10:12:56 PM »

As I write UQMG I note much of the time I write my code has to deal with the IL-2 files, as expected.  Recently as I started creating scripts to port BAT 4.3 into UQMG, I ran into new issues dealing with the modded version of the initialization files.  It is impossible to write code that predicts every error/variation in formatting so my request is that the initialization files have some standard format so that 3rd party developers such as myself can write predictable code.

To deal with some of the issues, I write code to remove common mistakes in the air.ini file, for example:
Code: [Select]
'Remove unwanted strings from Air.ini
Public Sub LoadBadWordsAirIni()
    Array.Resize(strBadWords, 10)
    'strBadWords() = ""
    strBadWords(0) = "[AIR]"
    strBadWords(1) = "NOINFO"
    strBadWords(2) = "NOQUICK"
    strBadWords(3) = "DESERT"
    strBadWords(4) = "SUMMER"
    strBadWords(5) = "WINTER"
    strBadWords(6) = ChrW(&HFC) ' "ü" or U+00FC, or Alt+0252
    strBadWords(7) = "�"
    strBadWords(8) = "SUMME"
    strBadWords(9) = "NOINF"
End Sub

Entries 8 and 9 are because I encountered them in TGA for BAT 4.3. obviously mistyped... but it would be better if I (or other coders) did not have to update code to handle these types of errors in the entry.

I request that entries in the initialization files stick to a repeatable format for every entry (this is really a request to the modders out there)... to include actual valid country codes (some are not), and perhaps using the intended country code...  if nothing else it may be advisable to stick to default r01 and g01, although it would not take that much work to assign the correct country default regiment to the intended plane.

Examples of standard/correct entries (from TGA):
Code: [Select]
Curtiss_Jenny                            air.Jenny                     1  NOINFO   usa01   SUMMER
Junkers_K53                              air.Junkers_K53               2  NOINFO   g01     SUMMER

Some weird entries:
Code: [Select]
Breguet_Bizerte                          air.Bizerte                   1  NOINFO   f01     SUMMER
Bristol_F2b                              air.Bristol_F2b               1  r01      SUMMER
Ca-309                                   air.Ca_309                    2  it01     SUMMER
FokkerFXX                                air.Fokker_FXX                   1  NOINFO   f01     SUMME
HP45_Heracles                            air.HERACLES                  1  NOINF    gb01    SUMMER

* Why does a French Breguet uses default Finland regiment?
* I know I contradict, but why would a Bristol have USSR as default?
* it01 is not a valid regiment/country...
* Mistyping SUMMER as SUMME makes the angels cry...
* Mistyping NOINFO as NOINF kills baby kitty cats...

Some entries do not include NOINFO tag... but since none of the mods have encyclopedia entries, it would make sense to include NOINFO in all entries

Anyhoo, I can certainly help with that, but it gets harder as the number of planes are in the thousands these days.

Is that a reasonable request?

(I apologize in advance... daylight time savings just happened, which means we lost one hour and we are all tired and bitchy... sorry...)
Logged
Best Regards, UberDemon/danzigzag, Get UQMG at SAS BAT Mission area.  www.uberdemon.net no longer exists.  (** Alienware Aurora R7 / i7-8700 3.20GHz / 16GB RAM / Win 10 x64 / NVIDIA GeForce GTX 1080 **)

Knochenlutscher

  • Flying Ass Clown #10
  • Modder
  • member
  • Offline Offline
  • Posts: 4621
  • aka Segfej
Re: Air.ini format control
« Reply #1 on: March 10, 2025, 02:12:09 AM »

I'm dealing with re-designing of older Mod-Slots.
Encountered strange entries myself. Dunno what's the purpose.

Best is to wait for such stuff to be fixed. It must be dealt with in the Slot Java.
Sometimes old Mods got shifted with additional air/paintscheme Files.
Their purpose? Ask me. I can't tell.

I can faintly remember an old Hurricane built that came with a switchable Red Code Markings Option.
There you would have switched air/paintscheme allocation to get red codes.
The purpose of this was to give immersion, let these Hurries in Weapon Selection/ingame stay out from the rest.
Purely optical stuff.

You dunno, there's a part of our Member Fanbase absolutely nerdish about correct Roundel, codes useage.
Even going for customized stuf, like these Red coded things. Modding drove very strange things in the past and now.


Here an example from Veltro/Gitanos Seafires
Code: [Select]
SeafireMkIINV                            air.SEAFIRE2CNV                        1 NOINFO   1830sq  SUMMER
SeafireMkII45                            air.SEAFIRE245                         1 NOINFO   1830sq  DESERT

Dimon uses another strange entity code
Code: [Select]
Hurricane.MkII                         air.HURRICANE_2                        1 NOINFO   RZ_NN   SUMMER
But good you mention this, so I can tag this to my To-Do-List in the WIPs. For most I dealt with, some I encountered still running on such weird stuff.
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."

UberDemon

  • UberDemon/danzigzag
  • Modder
  • member
  • Offline Offline
  • Posts: 1574
Re: Air.ini format control
« Reply #2 on: March 10, 2025, 10:10:40 AM »

IMHO I think it is best to stick with the default countries for each assignment, r01, g01, f01, br01,

Basically the last entry in this "=" divided list I use in UQMG Max (0_U20_UQMGCRegimentPrep.ini)
Code: [Select]
1=1=nn=None=NoNe
2=1=ru=USSR=r01
681=1=pl=Poland=pl01
707=1=re=Russian Empire=re01
709=1=bo=Bolivia=bo01
711=1=mx=Mexico=mx01
713=1=dk=Denmark=dk01
715=1=ph=Philippines=ph01
717=1=pe=Peru=pe01
719=1=is=Israel=is01
724=1=kr=Korea South (Red)=kr01
726=1=ty=Thailand (Postwar)=ty01
743=1=sx=Syria (Red)=sx01
747=1=ex=Egypt (Red)=ex01
751=1=ix=Iraq (Red)=ix01
759=1=ct=Canada=ct01
811=1=fr=France=fr01
994=1=fl=Finland Allied=fl01
996=1=rl=Romania Allied=rl01
1008=1=es=Spain Republican=es01
1022=1=il=Italy (ICAF) Allied=il01
1058=1=ur=Uruguay=ur01
1060=1=gr=Greece=gr01
1079=1=br=Brazil=br01
1081=1=pt=Portugal=pt01
1085=1=sa=South Africa=sa01
1106=1=yu=Yugoslavia RYAF=yu01
1142=1=yp=Yugoslavia JRV (Jugoslovensko Ratno vazduhoplovstvo)=yp01
1154=1=no=Norway=no01
1156=1=at=Austria=at01
1158=1=ch=Switzerland=ch01
1168=1=cn=China=cn01
1181=1=mg=Managua=mg01
1183=1=be=Belgium=be01
1195=1=bl=Bulgaria (Allied)=bl01
1197=1=dd=German Democratic Republic=dd01
1199=1=cz=Czechoslovakia=cz01
1207=1=cx=China Red (PLA post 1945)=cx01
1210=1=kx=Korea North (Red)=kx01
1213=1=ab=Abyssinia=ab01
1215=1=hy=Hungary (red sided)=hy01
1217=1=nl=Netherlands (LV Europe)=nl01
1219=1=id=India=id01
1221=1=gb=RAF=gb01
1594=1=ca=RCAF=CA_NN
1639=1=du=NL=DU_NN
1643=1=rz=RNZAF=RZ_NN
1666=1=ra=RAAF=RA_NN
1719=1=rn=RN=RN_NN
1796=1=us=USAAF=usa01
2307=1=um=USMC=UM_NN
2402=1=un=USN=UN_NN
2511=1=az=Angola=az01
2513=1=mz=Mozambique=mz01
2515=1=rd=Generic Red=rd01
2517=1=do=Indonesia=do01
2519=1=ho=Honduras=ho01
2521=1=le=Lebanon=le01
2523=1=jo=Jordan=jo01
2525=1=cu=Cuba=cu01
2527=1=sl=Syldavia=sl01
2530=1=nv=Vietnam (North)=nv01
2538=1=ng=Nigeria=ng01
2540=1=al=Albania=al01
2542=1=cr=Costa Rica=cr01
2544=1=vz=Venezuela=vz01
2546=1=ag=Algeria=ag01
2548=1=ci=Chile=ci01
2550=1=eh=Ethiopia=eh01
2552=1=ly=Libya=ly01
2554=1=bt=Botswana=bt01
2556=1=ug=Uganda=ug01
2558=1=su=Saudi Arabia=su01
2560=1=cm=Cambodia=cm01
2562=1=mm=Myanmar=mm01
2564=2=de=Germany=g01
3058=2=bg=Bulgaria=bg01
3060=2=hr=Croatia=hr01
3083=2=rb=Russian Liberation Army=rb01
3085=2=sp=Spain Nationalist=sp01
3096=2=vb=RAF (Postwar)=vb01
3192=2=ar=Argentina=ar01
3195=2=ik=Iraq=ik01
3203=2=pa=Paraguay=pa01
3205=2=tk=Turkey=tk01
3239=2=sw=Sweden=sw01
3242=2=ee=Estonia=ee01
3244=2=lv=Latvia=lv01
3246=2=lt=Lithuania=lt01
3248=2=co=Colombia=co01
3250=2=na=USA (Postwar)=na01
3587=2=vi=France Vichy=vi01
3634=2=pn=Poland (Blue)=pn01
3636=2=fi=Finland=f01
3653=2=it=Italy=i01
3846=2=an=Italy (ANR, 1943-45)=an01
3877=2=ro=Romania=ro01
3932=2=hu=Hungary=h01
3946=2=sk=Slovakia=sk01
3948=2=mk=Manchukuo=mk01
3950=2=ir=Iran=ir01
3953=2=pk=Pakistan=pk01
3955=2=ja=IJA=ja01
4061=2=in=IJN=IN_NN
4188=2=cc=China (PLA post 1945)=cc01
4191=2=kp=Korea North (Blue)=kp01
4196=2=tw=Taiwan (Blue)=tw01
4198=2=fc=Finland (Postwar)=fc01
4200=2=ss=South Africa (Postwar)=ss01
4202=2=sb=South Africa (Republic)=sb01
4204=2=sy=Syria=sy01
4208=2=eg=Egypt=eg01
4212=2=pq=Portugal (Blue)=pq01
4216=2=aq=Austria (Blue)=aq01
4218=2=mq=Mexico (Blue)=mq01
4220=2=dq=Denmark (Blue)=dq01
4222=2=pw=Philippines (Blue)=pw01
4224=2=pz=Peru (Blue)=pz01
4226=2=uq=Uruguay (Blue)=uq01
4228=2=iq=Israel (Blue)=iq01
4233=2=kq=Korea South (Blue)=kq01
4235=2=gq=Greece (Blue)=gq01
4237=2=cq=Canada (Postwar)=cq01
4289=2=th=Thailand=th01
4306=2=bu=Generic Blue=bu01
4308=2=ni=Nicaragua=ni01
4310=2=el=El Salvador=el01
4312=2=my=Malaysia=my01
4314=2=si=Singapore=si01
4316=2=as=RAAF (Postwar)=as01
4318=2=nz=RNZAF (Postwar)=nz01
4320=2=gp=Germany (Postwar)=gp01
4327=2=vn=Vietnam (South)=vn01
4329=2=cv=Costa-Verde=cv01
4331=2=bi=Biafra=bi01
4333=2=bd=Borduria=bd01
4336=2=ad=Ireland=ad01
4338=2=pm=Panama=pm01
4340=2=gl=Guatemala=gl01
4342=2=mr=Morocco=mr01
4344=2=et=Eritrea=et01
Logged
Best Regards, UberDemon/danzigzag, Get UQMG at SAS BAT Mission area.  www.uberdemon.net no longer exists.  (** Alienware Aurora R7 / i7-8700 3.20GHz / 16GB RAM / Win 10 x64 / NVIDIA GeForce GTX 1080 **)

Knochenlutscher

  • Flying Ass Clown #10
  • Modder
  • member
  • Offline Offline
  • Posts: 4621
  • aka Segfej
Re: Air.ini format control
« Reply #3 on: March 10, 2025, 10:20:50 AM »

Yupp, agree, as these Default countries are really default and not making mess.
 ;)

Thanks for the quick Post of this, goes to my Working Desktop as a reminder.

Cheers
Tobi
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."
Pages: [1]   Go Up
 

Page created in 0.063 seconds with 20 queries.