[Update on 5 Sep 2023: Resolved here:
https://www.sas1946.com/main/index.php/topic,71120.msg777302.html#msg777302 ]
[Updated my own code to extract the information from classes in IL-2, including inherited classes.]
Requesting a way to export a List of Carrier-Based Aircraft from BAT/IL-2
Greetings, as I continue to develop my new generation of UQMG (
https://www.sas1946.com/main/index.php/topic,71120.0.html), I am now working on an adaptation of the Aircraft Database that I started to create back in my abandoned 2013 version. Here is the problem:
* Today, I extract most “Type” Java parameters from the Java Classes with an old school BATCH script that parses through the classes. It is rudimentary, but works for what I am doing. It is not perfect. As I looked through countless aircraft classes, I noticed there is no single way to determine if an aircraft has an arrestor hook. There are parameters associated with the moving function, some other properties (like velocity, position), but they can often be completely absent from the aircraft class, relying on its parent class, say F4U parent class. So all derivative classes may be missing the clear property because of inheritance.
My question is, outside of going plane by plane, which is a whole lot of work, is there an export function like the one on FMB+ to export whole lists of objects to a text file, only it does for carrier-based aircraft only? If not, could someone create a mod for that?
A Potential Solution:
* Please note the second page in QMB+, and see that there is a switch to select only carrier-based aircraft. I imagine that is possible because once IL-2 is loaded, all aircraft have their full properties (including inherited properties), meaning if the plane is an extension of a base class of aircraft that is a carrier-based aircraft, that is how the actual plane object is also carrier-based.
* Would it be possible to generate a simple text file from that list?
I did several searches in the Forum to avoid asking a repeat question, and did not find anything related, so I thank you for your time and consideration… oh Java gods… Please see below what I am referring to above...