Did you remember to comment out the unmodded fighters from your lua and add the modded versions in? Anyway, if you don't remove the original fighters from the ReadDataFile lines under the ALL.lvl and IMP.lvl, these unchanged fighters will still show up, even if you included the fighters from your own side.lvl file.
Here's what I have in my lua, and both sides have cockpit views set and working for all spacecraft:
Code: Select all
function SetupUnits()
ReadDataFile("SIDE\\all.lvl",
"all_inf_pilot",
"all_inf_marine",
"all_inf_rifleman_fleet",
"all_inf_officer",
"all_inf_sniper_fleet",
"all_inf_wookiee",
"all_inf_engineer",
-- "all_fly_xwing_sc",
-- "all_fly_ywing_sc",
-- "all_fly_awing",
-- "all_fly_gunship_sc",
"all_veh_remote_terminal")
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_pilot",
"imp_inf_marine",
"imp_inf_rifleman",
"imp_inf_officer",
"imp_inf_sniper",
"imp_inf_dark_trooper",
"imp_inf_engineer",
-- "imp_fly_tiefighter_sc",
-- "imp_fly_tiebomber_sc",
-- "imp_fly_tieinterceptor",
-- "imp_fly_trooptrans",
"imp_veh_remote_terminal")
ReadDataFile("dc:SIDE\\cmb.lvl",
"cmb_imp_inf_pilot",
"cmb_imp_inf_rifleman",
"cmb_imp_inf_sniper",
"cmb_imp_inf_marine",
"cmb_imp_inf_engineer",
"cmb_imp_inf_officer_gray",
"cmb_imp_inf_dark_trooper",
"imp_fly_tiefighter_sc",
"imp_fly_tiebomber_sc",
"imp_fly_tieinterceptor",
"imp_fly_trooptrans",
"cmb_all_inf_pilot",
"cmb_all_inf_marine",
"cmb_all_inf_rifleman_fleet",
"cmb_all_inf_officer",
"cmb_all_inf_sniper_fleet",
"cmb_all_inf_wookiee",
"cmb_all_inf_engineer_fleet",
"all_fly_xwing_sc",
"all_fly_ywing_sc",
"all_fly_awing",
"all_fly_gunship_sc")
ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_spa_all_beam",
"tur_bldg_spa_all_recoilless",
"tur_bldg_spa_all_chaingun",
"tur_bldg_spa_imp_beam",
"tur_bldg_spa_imp_recoilless",
"tur_bldg_spa_imp_chaingun",
"tur_bldg_chaingun_roof"
)
end