• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

P3D v3 [SOLVED] Particular AI aircraft cause crash

Messages
393
Country
newzealand
Hi Jeff,

I have come across an issue with the AI package I use that causes SODE 1.4.2 to crash when the AI detection system is on and the AI model is in the area.
I've narrowed it down to (at least) the 787-8 and the 787-9. The fact the two SimObject planes are both the 787 from the same creator would lead me to believe that there is an issue with the SimObject.
Looking at the plane and aircraft.cfg I can't see anything obvious that would be an issue.

Removing the two planes from the AI folder resolves the issue, but it would be good to build in some extra redundancy if you see fit.

Here's the log. It crashes when trying to
Code:
[22:32:10.896] DEBUG SODE.ACFTEXITS : No Custom Data Found for P:/P3Dv3/SimObjects/Airplanes/Piper_J3Cub/. Using original aircraft.cfg exit data!
[22:32:11.317] INFO SODE.FSLOOP : SeasonalObjectHandler: Variables initialized!
[22:32:58.372] DEBUG SODE.FSLOOP : Initialize Position after SimStart Event!
[22:32:59.298] INFO SODE.FSLOOP : ### FILTERING OBJECTS WITHIN SIM RADIUS OF 40000m
[22:32:59.298] INFO SODE.FSLOOP : ### Active SimObjects: 0; Active Wind Data Probes: 0
[22:32:59.300] DEBUG SODE.FSLOOP : [AI DETECTION] N monitored AIObjects = 0
[22:32:59.322] DEBUG SODE.FSLOOP : [AI DETECTION] No AI data returned...
[22:33:00.281] INFO SODE.FSLOOP : SeasonalObjectHandler: Refreshing Season/Time Data...
[22:33:03.304] DEBUG SODE.FSLOOP : [AI DETECTION] N monitored AIObjects = 0
[22:33:03.332] DEBUG SODE.FSLOOP : [AI DETECTION] No AI data returned...
[22:33:07.314] DEBUG SODE.FSLOOP : [AI DETECTION] N monitored AIObjects = 0
[22:33:07.349] DEBUG SODE.FSLOOP : [AI DETECTION] No AI data returned...
[22:33:11.335] DEBUG SODE.FSLOOP : [AI DETECTION] N monitored AIObjects = 0
[22:33:11.359] DEBUG SODE.FSLOOP : [AI DETECTION] No AI data returned...
[22:33:15.328] DEBUG SODE.FSLOOP : [AI DETECTION] N monitored AIObjects = 0
[22:33:15.360] DEBUG SODE.FSLOOP : [AI DETECTION] No AI data returned...
[22:33:21.036] DEBUG SODE.FSLOOP : [AI DETECTION] N monitored AIObjects = 0
[22:33:21.067] DEBUG SODE.FSLOOP : [AI DETECTION] RAW AI Response (1/31): ObjID=9, Title=FTX AI Airbus A320-200 Air New Zealand Sharklets International: ID=ZK-OJQ, Model=A320 State=sleep
[22:33:21.067] DEBUG SODE.FSLOOP : [AI DETECTION] Trying to create internal AIObject instance...
[22:33:21.067] DEBUG SODE.FSLOOP : [AI DETECTION] Collecting AI 'A320 ZK-OJQ'
[22:33:21.067] DEBUG SODE.FSLOOP : [AI DETECTION] RAW AI Response (2/31): ObjID=12, Title=FTX AI Airbus A320-200 Air New Zealand Sharklets International: ID=ZK-OXD, Model=A320 State=sleep
[22:33:21.067] DEBUG SODE.FSLOOP : [AI DETECTION] Trying to create internal AIObject instance...
[22:33:21.068] DEBUG SODE.FSLOOP : [AI DETECTION] Collecting AI 'A320 ZK-OXD'
[22:33:21.068] DEBUG SODE.FSLOOP : [AI DETECTION] RAW AI Response (3/31): ObjID=14, Title=FTX AI Boeing B787-9 Air New Zealand: ID=ZK-NZF, Model=B787 State=sleep
[22:33:21.068] DEBUG SODE.FSLOOP : [AI DETECTION] Trying to create internal AIObject instance...


Orbx AU AI, P3D 3.3.5.17625, SODE 1.4.2

I'm happy to recreate it again with a more detailed logger etc.


Here's the 787-9 aircraft.cfg. I don't know if you just read that file? BTW the AI aircraft shows fine in the sim.
Code:
[fltsim.0]
title=FTX AI Boeing B787-9 Air New Zealand ZK-NZE
sim=FSPXAI_B789v1
model=RR
texture=ANZ Black
atc_airline=New Zealand
atc_heavy=1
ui_createdby="FSpainter"
ui_manufacturer=Air New Zealand
ui_type=Boeing B787-9
ui_variation=Air New Zealand ZK-NZE
atc_parking_codes=ANZ
atc_parking_types=GATE
ui_variation=Air New Zealand Black :: Painted by Johan Clausen

[fltsim.1]
title=FTX AI Boeing B787-9 Air New Zealand
sim=FSPXAI_B789v1
model=RR
texture=ANZ
atc_airline=New Zealand
atc_heavy=1
ui_createdby="FSpainter"
ui_manufacturer=Air New Zealand
ui_type=Boeing B787-9
ui_variation=Air New Zealand
atc_parking_codes=ANZ
atc_parking_types=GATE
ui_variation=Air New Zealand :: Painted by Johan Clausen

[fltsim.2]
title=FTX AI Boeing B787-9 United Airlines
sim=FSPXAI_B789v1
model=GE
texture=United
atc_airline=United
atc_heavy=1
ui_createdby="FSpainter"
ui_manufacturer=United Airlines
ui_type=Boeing B787-9
ui_variation=United Airlines
atc_parking_codes=UAL
atc_parking_types=GATE
description=FSP Beoing 787-9 United Airlines - Repaint by Juergen Baumbusch

[fltsim.3]
title=FTX AI Boeing B787-9 All Nippon Airways
sim=FSPXAI_B789v1
model=RR
texture=ANA
atc_heavy=1
atc_airline=All Nippon
ui_createdby="FSpainter"
ui_manufacturer=All Nippon Airways
ui_type=Boeing B787-9
ui_variation=All Nippon Airways
atc_parking_codes=ANA
atc_parking_types=GATE
description=Boeing 787-9 ANA All Nippon Airways :: by Kyle Meeks

[fltsim.4]
title=FTX AI Boeing B787-9 All Nippon Airways Star Wars R2D2
sim=FSPXAI_B789v1
model=RR
texture=ANA R2D2
atc_heavy=1
atc_airline=All Nippon
ui_createdby="FSpainter"
ui_manufacturer=All Nippon Airways
ui_type=Boeing B787-9
ui_variation=All Nippon Airways Star Wars R2D2
atc_parking_codes=ANA
atc_parking_types=GATE
description=Boeing 787-9 ANA All Nippon Airways R2D2:: by Kyle Meeks

[fltsim.5]
title=FTX AI Boeing B787-9 Etihad Airlines
sim=FSPXAI_B789v1
model=GE
texture=Etihad
atc_heavy=1
atc_airline=Etihad
ui_createdby="FSpainter"
ui_manufacturer=Etihad Airlines
ui_type=Boeing B787-9
ui_variation=Etihad Airlines
atc_parking_codes=ETD
atc_parking_types=GATE
description=FSP Beoing 787-9 Etihad Airways - Repaint by marwol

[fltsim.6]
title=FTX AI Boeing B787-9 Scoot
sim=FSPXAI_B789v1
model=RR
texture=Scoot
atc_heavy=1
atc_airline=Scooter
ui_createdby="FSpainter"
ui_manufacturer=Scoot
ui_type=Boeing B787-9
ui_variation=Scoot
atc_parking_codes=SCO
atc_parking_types=GATE
description=FSP Beoing 787-9 Scoot - Repaint by Garry Lewis

[fltsim.7]
title=FTX AI Boeing B787-9 Air Canada
sim=FSPXAI_B789v1
model=GE
texture=Air Canada
atc_heavy=1
atc_airline=Air Canada
ui_createdby="FSpainter"
ui_manufacturer=Air Canada
ui_type=Boeing B787-9
ui_variation=Air Canada
atc_parking_codes=ACA
atc_parking_types=GATE
description=FSP Boeing 787-9 - Repaint by Garry Lewis

[fltsim.8]
title=FTX AI Boeing B787-9 LAN Airlines
sim=FSPXAI_B789v1
model=RR
texture=LAN
atc_heavy=1
atc_airline=LAN Chili
ui_createdby="FSpainter"
ui_manufacturer=LAN Airlines
ui_type=Boeing B787-9
ui_variation=LAN Airlines
atc_parking_codes=LAN
atc_parking_types=GATE
description=FS Painter Boeing 787-9 LATAM CC-BGB By Alfredo Montoya

[General]
atc_type=Boeing
atc_model=B787
editable=0
performance=
Category=airplane

[WEIGHT_AND_BALANCE]
max_gross_weight = 557000                       // (pounds)
empty_weight =     277000                       // (pounds)
reference_datum_position     =     -9, 0, 0        // (feet) distance from FlightSim Reference position: (1/4 chord, centerline, waterline)
empty_weight_CG_position     =     0, 0, 0         // (feet) longitudinal, lateral, vertical distance from specified datum
max_number_of_stations = 5


//Moments of Inertia
empty_weight_pitch_MOI   =  6801816
empty_weight_roll_MOI    =  6350000
empty_weight_yaw_MOI     =  10332000
empty_weight_coupled_MOI = 0


[flight_tuning]
cruise_lift_scalar     = 0.85
parasite_drag_scalar   = 1.20
induced_drag_scalar    = 1.00
elevator_effectiveness = 0.90
aileron_effectiveness  = 1.00
rudder_effectiveness   = 1.00
pitch_stability        = 1.00
roll_stability         = 1.00
yaw_stability          = 1.00
elevator_trim_effectiveness = 1.0
aileron_trim_effectiveness  = 1.0
rudder_trim_effectiveness   = 1.0

[electrical]
flap_motor         = 0, 5 , 17.0
gear_motor         = 0, 5 , 17.0
autopilot          = 0, 5 , 17.0
avionics_bus       = 0, 10, 17.0
avionics           = 1, 5 , 17.0
pitot_heat         = 0, 2 , 17.0
additional_system  = 0, 20, 17.0
marker_beacon      = 1, 2 , 17.0
gear_warning       = 0, 2 , 17.0
fuel_pump          = 0, 5 , 17.0
starter1           = 0, 20, 17.0
light_nav          = 0, 5 , 17.0
light_beacon       = 0, 5 , 17.0
light_landing      = 0, 5 , 17.0
light_taxi         = 0, 5 , 17.0
light_strobe       = 0, 5 , 17.0
light_panel        = 0, 5 , 17.0
max_battery_voltage = 24.0
generator_alternator_voltage = 30.0
max_generator_alternator_amps = 400.0
electric_always_available= 1

[contact_points]

        //0  Class                        <0=none,1=wheel, 2=scrape, 3=float>
        //1  Longitudinal Position        (feet)
        //2  Lateral Position             (feet)
        //3  Vertical Position            (feet)
        //4  Impact Damage Threshold      (Feet Per Minute)
        //5  Brake Map                    (0=None, 1=Left, 2=Right)
        //6  Wheel Radius                 (feet)
        //7  Steer Angle                  (degrees)
        //8  Static Compression           (feet)  (0 if rigid)
        //9  Max/Static Compression Ratio
        //10 Damping Ratio                (0=Undamped, 1=Critically Damped)
        //11 Extension Time               (seconds)
        //12 Retraction Time              (seconds)
        //13 Sound Type
        //14 Airspeed limit for retraction     (KIAS)
        //15 Airspeed that gear gets damage at (KIAS)

//Nose
point.0=1,    83.71,      0, -17.700,  1500, 0, 1.9665, 85.0, 3.068, 1.700, 0.40, 10.5, 10.5, 0, 0.0, 0.0
//Left Main
point.1=1,   -9.9,  -17.000, -18.496,  1600, 2, 2.7665,  0.0, 3.000, 2.300, 0.40, 12.5, 12.5, 2, 0.0, 0.0
//Right Main
point.2=1,   -9.9,   17.000, -18.496,  1600, 3, 2.7665,  0.0, 3.000, 2.300, 0.40, 12.5, 12.5, 3, 0.0, 0.0

max_number_of_points = 3
static_pitch = -0.50
static_cg_height = 17.0
gear_system_type=0

[flaps.0] //Inboard Trailing Edge
type             = 1                                    // 1 - tail, 2 - lead
span-outboard    = 0.2                                  // 0.0 .. 1.0
extending-time   = 35                                   // seconds
flaps-position.0 =  0.00, 0.00                          // degrees
flaps-position.1 = 12.00, 0.00                          // degrees
flaps-position.2 = 25.00, 0.00                          // degrees
flaps-position.3 = 35.00, 0.00                          // degrees
flaps-position.4 = 50.00, 0.00                          // degrees
flaps-position.5 = 50.00, 0.00                          // degrees
damaging-speed   = 260                                  // KIAS
blowout-speed    = 300                                  // KIAS
lift_scalar = 0.210
drag_scalar = 0.64
pitch_scalar= 0.1
system_type = 1                                         //Hydraulic

[flaps.1] //Outboard Trailing Edge
type             = 1                                    // 1 - tail, 2 - lead
span-outboard    = 0.8                                  // 0.0 .. 1.0
extending-time   = 35                                   // seconds
flaps-position.0 =  0.00, 0.00                          // degrees
flaps-position.1 = 12.00, 0.00                          // degrees
flaps-position.2 = 25.00, 0.00                          // degrees
flaps-position.3 = 35.00, 0.00                          // degrees
flaps-position.4 = 50.00, 0.00                          // degrees
flaps-position.5 = 50.00, 0.00                          // degrees
damaging-speed   = 260                                  // KIAS
blowout-speed    = 300                                  // KIAS
lift_scalar = 0.210
drag_scalar = 0.64
pitch_scalar= 0.1
system_type = 1                                         //Hydraulic

[flaps.2] //Inboard Leading Edge Slats
type             = 2                                    // 1 - tail, 2 - lead
span-outboard    = 0.5                                  // 0.0 .. 1.0
extending-time   = 7                                    // seconds
flaps-position.0 = 0 , 0.00                             // degrees
flaps-position.1 = 12 , 0.00                            // degrees
flaps-position.2 = 12 , 0.00                            // degrees
flaps-position.3 = 12 , 0.00                            // degrees
flaps-position.4 = 20 , 0.00                            // degrees
flaps-position.5 = 20., 0.00                            // degrees
damaging-speed   = 260                                  // KIAS
blowout-speed    = 300                                  // KIAS
lift_scalar = 0.08
drag_scalar = 0.45
pitch_scalar= 0.00
system_type = 1                                         //Hydraulic

[LIGHTS]
// 1=Beacon, 2=Strobe, 3=Navigation or Position, 4=Cockpit, 5=Landing, 6=Taxi, 7=Recognition, 8=Wing, 9=Logo, 10=Cabin

//For those who has installed Nick Needham's Exhaust Effects

//light.0 = 7,  4.000,-29.833, -5.700, fx_nicksmokeAI_777_AB
//light.1 = 7,  4.000, 29.833, -5.700, fx_nicksmokeAI_777_AB


[EFFECTS]
wake=fx_wake
water=fx_spray
dirt=fx_tchdrt
touchdown=fx_tchdwn, 1
vaportrail_l= fx_dummy
vaportrail_r= fx_dummy


[fuel] //total:36650 gal
Center1   =     20.0,    0, -3.0,  9550,  3.0
LeftMain    =  16.0, -29.83,  1.0, 13550, 3.0
RightMain   =  16.0,  29.83,  1.0, 13550, 3.0

fuel_type = 2                                   //Fuel type: 1 = Avgas, 2 = JetA
number_of_tank_selectors = 1                   
electric_pump=0


[airplane_geometry]
wing_area               = 3200.0                //Square feet  3647.0
wing_span               = 197                 //Feet
wing_root_chord         = 35.17                 //Feet
wing_dihedral           = 6.60                  //Degrees
wing_incidence          =  0.5                  //Degrees
wing_twist              = -0.5                  //Degrees
oswald_efficiency_factor= 0.6                   //Measure of lift effeciency of wing
wing_winglets_flag      = 0                     //Are winglets available?
wing_sweep              = 35.0                  //Degrees, wing leading edge
wing_pos_apex_lon       = 32.0                  //Feet, longitudinal distance from reference point, negative going aft
wing_pos_apex_vert      = 0.0                   //Feet, vertical distance from reference point, positive going up
htail_area              = 920.0                 //Square feet
htail_span              = 59.16                 //Feet
htail_pos_lon           = -69.0                 //Feet, longitudinal distance from reference point, negative going aft
htail_pos_vert          = 0.0                   //Feet, vertical distance from reference point, positive going up
htail_incidence         = 0.0                   //Degrees
htail_sweep             = 33.0                  //Degrees, horizontal tail leading edge
vtail_area              = 605.0                 //Square feet
vtail_span              = 21.69                 //Feet, tip to body
vtail_sweep             = 40.0                  //Degrees, vertical tail leading edge
vtail_pos_lon           = -66.0                 //Feet, longitudinal distance from reference point, negative going aft
vtail_pos_vert          = 7.0                   //Feet, vertical distance from reference point, positive going up
elevator_area           = 298.1                 //Square feet
aileron_area            = 92.46                 //Square feet
rudder_area             = 110.7                 //Square feet
elevator_up_limit       = 12.0                  //Degrees
elevator_down_limit     = 10.0                  //Degrees
aileron_up_limit        = 25.0                  //Degrees
aileron_down_limit      = 15.0                  //Degrees
rudder_limit            = 30.0                  //Degrees
elevator_trim_limit     = 10.0                  //Degrees
spoiler_limit           = 40.0                  //Degrees
spoilerons_available    = 1                     //Spoilerons Available?
aileron_to_spoileron_gain = 1.5                 //Aileron to spoileron gain
min_ailerons_for_spoilerons = 5                 //Degrees
min_flaps_for_spoilerons = 0                    //Minimum flap handle position when spoilerons activate
auto_spoiler_available=1
spoiler_extension_time=4
positive_g_limit_flaps_up=4.000000
positive_g_limit_flaps_down=3.000000
negative_g_limit_flaps_up=-3.000000
negative_g_limit_flaps_down=-2.000000

[Reference Speeds]
flaps_up_stall_speed    = 161.0                 //Knots True (KTAS)
full_flaps_stall_speed  = 40.0                  //Knots True (KTAS)
cruise_speed            = 486.0                 //Knots True (KTAS)
max_indicated_speed=350.000000
max_mach=0.860000

[autopilot]
autopilot_available=1
flight_director_available=1
default_vertical_speed=0.000000
autothrottle_available=1
autothrottle_arming_required=1
autothrottle_takeoff_ga=1
autothrottle_max_rpm=100
pitch_takeoff_ga= 25.000
use_no_default_pitch = 1                       // 0 = Default to current pitch mode, 1 = No default pitch mode.
use_no_default_bank = 1                        // 0 = Default to Wing Leveler mode, 1 = No default bank mode.
default_pitch_mode=0
default_bank_mode=0
max_pitch=25.000000
max_pitch_acceleration=1.200000
max_pitch_velocity_lo_alt=2.000000
max_pitch_velocity_hi_alt=1.000000
max_pitch_velocity_lo_alt_breakpoint= 10000.000000
max_pitch_velocity_hi_alt_breakpoint=24000.000000
max_bank=25.000000
max_bank_acceleration=1.800000
max_bank_velocity=3.000000
max_throttle_rate=1.0
nav_proportional_control=15.000000
nav_integrator_control=0.250000
nav_derivative_control=0.000000
nav_integrator_boundary=0.05
nav_derivative_boundary=0.05
gs_proportional_control=9.520000
gs_integrator_control=0.260000
gs_derivative_control=0.000000
gs_integrator_boundary=0.700000
gs_derivative_boundary=0.000000
yaw_damper_gain=1.000000
yaw_slip_control_gain=0.000000
yaw_control_uses_trim=0.000000

[GeneralEngineData]
engine_type= 1
Engine.0=  25.000,-28.035, -7.110
Engine.1=  25.000, 28.035, -7.110
fuel_flow_scalar= 0.9
min_throttle_limit=-0.319946

[TurbineEngineData]
bypass_ratio=1
fuel_flow_gain=0.02
inlet_area=50.78
rated_N2_rpm=28000.000000
static_thrust= 62000.0000
afterburner_available= 0
reverser_available= 1

[exits]
number_of_exits = 2
exit.0 = 0.2,  42.1, -8.6, 0, 0  //openclose rate percent per second, longitudinal, lateral, vertical positions from datum (feet), type (0=Main 1=Cargo 2=Emergency)
exit.1 = 0.1, -44.2, 8.40, -7.4, 1  //openclose rate percent per second, longitudinal, lateral, vertical positions from datum (feet), type (0=Main 1=Cargo 2=Emergency)
exit_rate.2 = 100                               ;Percent per second
exit_rate.3 = 100                               ;Percent per second

[vacuum_system]
max_pressure=5.150000
vacuum_type=2
electric_backup_pressure=0.000000
engine_map=0,0,0,0

[pneumatic_system]
max_pressure=18.000000
bleed_air_scalar=1.000000
structural_deice_type=0

[deice_system]
structural_deice_type=1     //0 = None, 1 = Heated Leading Edge, 2 = Bleed Air Boots, 3 = Eng Pump Boots

[brakes]
parking_brake = 1         // Parking brake available
toe_brakes_scale = 0.65    //Brake scalar
auto_brakes = 4
hydraulic_system_scalar = 1  //On brakes dependant on the hydraulic system, ratio hyd system to max brake hyd pressure

[hydraulic_system]
electric_pumps=0
engine_map=1,1,1,0
normal_pressure=3000.000000


[gear_warning_system]
gear_warning_available=0
pct_throttle_limit=0.099976
flap_limit_power=25.496622
flap_limit_idle=5.042029

[keyboard_response]
elevator=150.000000,250.000000
aileron=150.000000,250.000000
rudder=150.000000,250.000000

[pitot_static]
pitot_heat=1.000000
[stall_warning]
type=1
stick_shaker=1

[attitude_indicators]
attitude_indicator.0=1

[turn_indicators]
turn_indicator.0=1,0
[direction_indicators]
direction_indicator.0=3,0

Cheers,
Nick
 
Messages
611
Country
switzerland
Hey Nick

Thanks for reporting.
The presented aircraft.cfg is missing the [Views] entry. I don't know if it is necessary for AI aircraft, but since all the other AI aircraft most probably have it, I thought it was required.
With the eyepoint data missing, SODE crashes when trying to compute internal, relative positions.
Anyhow, I have changed the SODE code to not perform those calculations when that piece of info is not available. The computation is only really needed for the user airplane anyway, but the AI objects use the same piece of code.
Fixed for the next update.

For the time being, you can try to add a dummy [Views] section to the aircraft.cfg:
Code:
[VIEWS]
eyepoint = 0.0, 0.0, 0.0

This should fix it with no issues concerning the AI detection (eyepoint not used for that)
 
Messages
393
Country
newzealand
Hi again, adding the VIEW section to the cfg resolved the issue!

Thanks,

Nick
 
Top