This is the Java code for the 109L5 that will load as an object/display in the FMB/QMB but not actually fly as a plane.
In case there was a problem with the wing mounted gunpods loading (which would not display at all in the QMB window, unlike on the 109L4) I did try creating a version with the gunpods taken out of the class file completely, but had the same error code.
Could this error be down to the FM file not being compiled properly?
package com.maddox.il2.objects.air;
import com.maddox.rts.Finger;
import com.maddox.rts.Property;
import com.maddox.util.HashMapInt;
import java.util.ArrayList;
// Referenced classes of package com.maddox.il2.objects.air:
// Scheme1, PaintSchemeBMPar03, TypeTransport, Aircraft,
// NetAircraft
public class BF_109L5C3 extends BF_109LXX4 {
public BF_109L5C3() {
}
static {
Class class1 = com.maddox.il2.objects.air.BF_109L5C3.class;
new NetAircraft.SPAWN(class1);
Property.set(class1, "iconFar_shortClassName", "Bf109");
Property.set(class1, "meshName", "3do/plane/Bf-109L/hier.him");
Property.set(class1, "PaintScheme", new PaintSchemeFMPar06());
Property.set(class1, "yearService", 1945.9F);
Property.set(class1, "yearExpired", 1955F);
Property.set(class1, "FlightModel", "FlightModels/BF109L5C3.fmd:BF109L5C3_FM");
Property.set(class1, "cockpitClass", new Class[] {
com.maddox.il2.objects.air.CockpitBF_109LEZ42.class });
Property.set(class1, "LOSElevation", 0.7498F);
// Property.set(class1, "IgnoreCodWeapon", 1);
Aircraft.weaponTriggersRegister(class1, new int[] {
0, 0, 1, 1, 1, 1, 1, 9, 9, 9,
9, 3, 2, 0, 0 });
Aircraft.weaponHooksRegister(class1, new String[] {
"_MGUN01", "_MGUN02", "_CANNON01", "_CANNON02", "_CANNON03",
"_CANNON04", "_CANNON05", "_ExternalDev01", "_ExternalDev01",
"_ExternalDev02", "_ExternalDev03", "_ExternalBomb01",
"_ExternalBomb01", "_CANNON02", "_CANNON03" });
try {
ArrayList arraylist = new ArrayList();
Property.set(class1, "weaponsList", arraylist);
HashMapInt hashmapint = new HashMapInt();
Property.set(class1, "weaponsMap", hashmapint);
byte byte0 = 15;
Aircraft._WeaponSlot a_lweaponslot[] = new Aircraft._WeaponSlot[byte0];
String s = "default";
a_lweaponslot = new Aircraft._WeaponSlot[byte0];
a_lweaponslot[0] = new Aircraft._WeaponSlot(0, "MGunMG213MGsi", 1000);
a_lweaponslot[1] = new Aircraft._WeaponSlot(0, "MGunMG213MGsi", 1000);
a_lweaponslot[2] = new Aircraft._WeaponSlot(1, "MGunMK213si", 500);
a_lweaponslot[3] = null;
a_lweaponslot[4] = null;
a_lweaponslot[5] = null;
a_lweaponslot[6] = null;
a_lweaponslot[7] = null;
a_lweaponslot[8] = null;
a_lweaponslot[9] = null;
a_lweaponslot[10] = null;
a_lweaponslot[11] = null;
a_lweaponslot[12] = null;
a_lweaponslot[13] = null;
a_lweaponslot[14] = null;
arraylist.add(s);
hashmapint.put(Finger.Int(s), a_lweaponslot);
s = "2OMM_GUNPODS";
a_lweaponslot = new Aircraft._WeaponSlot[byte0];
a_lweaponslot[0] = new Aircraft._WeaponSlot(0, "MGunMG213MGsi", 1000);
a_lweaponslot[1] = new Aircraft._WeaponSlot(0, "MGunMG213MGsi", 1000);
a_lweaponslot[2] = new Aircraft._WeaponSlot(1, "MGunMK213si", 500);
a_lweaponslot[3] = new Aircraft._WeaponSlot(1, "MGunMG213MGsih", 1000);
a_lweaponslot[4] = new Aircraft._WeaponSlot(1, "MGunMG213MGsih", 1000);
a_lweaponslot[5] = null;
a_lweaponslot[6] = null;
a_lweaponslot[7] = null;
a_lweaponslot[8] = null;
a_lweaponslot[9] = null;
a_lweaponslot[10] = null;
a_lweaponslot[11] = null;
a_lweaponslot[12] = null;
a_lweaponslot[13] = null;
a_lweaponslot[14] = null;
arraylist.add(s);
hashmapint.put(Finger.Int(s), a_lweaponslot);
s = "3OMM_GUNPODS";
a_lweaponslot = new Aircraft._WeaponSlot[byte0];
a_lweaponslot[0] = new Aircraft._WeaponSlot(0, "MGunMG213MGsi", 1000);
a_lweaponslot[1] = new Aircraft._WeaponSlot(0, "MGunMG213MGsi", 1000);
a_lweaponslot[2] = new Aircraft._WeaponSlot(1, "MGunMK213si", 500);
a_lweaponslot[3] = new Aircraft._WeaponSlot(1, "MGunMK213sh", 500);
a_lweaponslot[4] = new Aircraft._WeaponSlot(1, "MGunMK213sh", 500);
a_lweaponslot[5] = null;
a_lweaponslot[6] = null;
a_lweaponslot[7] = null;
a_lweaponslot[8] = null;
a_lweaponslot[9] = null;
a_lweaponslot[10] = null;
a_lweaponslot[11] = null;
a_lweaponslot[12] = null;
a_lweaponslot[13] = null;
a_lweaponslot[14] = null;
arraylist.add(s);
hashmapint.put(Finger.Int(s), a_lweaponslot);
s = "MK214_Motorkanone";
a_lweaponslot = new Aircraft._WeaponSlot[byte0];
a_lweaponslot[0] = new Aircraft._WeaponSlot(0, "MGunMG213MGsi", 1000);
a_lweaponslot[1] = new Aircraft._WeaponSlot(0, "MGunMG213MGsi", 1000);
a_lweaponslot[2] = new Aircraft._WeaponSlot(1, "MGunMK214A", 100);
a_lweaponslot[3] = null;
a_lweaponslot[4] = null;
a_lweaponslot[5] = null;
a_lweaponslot[6] = null;
a_lweaponslot[7] = null;
a_lweaponslot[8] = null;
a_lweaponslot[9] = null;
a_lweaponslot[10] = null;
a_lweaponslot[11] = null;
a_lweaponslot[12] = null;
a_lweaponslot[13] = null;
a_lweaponslot[14] = null;
arraylist.add(s);
hashmapint.put(Finger.Int(s), a_lweaponslot);
s = "MK214_Motorkanone+MK214_gunpods";
a_lweaponslot = new Aircraft._WeaponSlot[byte0];
a_lweaponslot[0] = new Aircraft._WeaponSlot(0, "MGunMG213MGsi", 1000);
a_lweaponslot[1] = new Aircraft._WeaponSlot(0, "MGunMG213MGsi", 1000);
a_lweaponslot[2] = new Aircraft._WeaponSlot(1, "MGunMK214A", 100);
a_lweaponslot[3] = new Aircraft._WeaponSlot(1, "MGunMK214Ah", 100);
a_lweaponslot[4] = new Aircraft._WeaponSlot(1, "MGunMK214Ah", 100);
a_lweaponslot[5] = null;
a_lweaponslot[6] = null;
a_lweaponslot[7] = null;
a_lweaponslot[8] = null;
a_lweaponslot[9] = null;
a_lweaponslot[10] = null;
a_lweaponslot[11] = null;
a_lweaponslot[12] = null;
a_lweaponslot[13] = null;
a_lweaponslot[14] = null;
arraylist.add(s);
hashmapint.put(Finger.Int(s), a_lweaponslot);
s = "none";
a_lweaponslot = new Aircraft._WeaponSlot[byte0];
for (int i = 0; i < byte0; i++)
a_lweaponslot[i] = null;
arraylist.add(s);
hashmapint.put(Finger.Int(s), a_lweaponslot);
} catch (Exception exception) {
}
}
}