Problem SCN BEGIN_VC Issue

tl8

Addon Developer
Addon Developer
Tutorial Publisher
Joined
Oct 16, 2007
Messages
3,644
Reaction score
25
Points
88
Location
Gold Coast QLD
With my tug, I now only have a VC. The problem is when saving a scenario, a BEGIN_VC END_VC tag is put into the scn. When this scn is reloaded, the tug doesn't loading into the VC. F8 needs to be pressed before the VC loads.

I have checked a few other vessels, and they deal with the BEGIN_VC tags fine.

What could be causing this and how can I fix it?

https://www.dropbox.com/s/gsfbgdfb9qzo28b/VC.cpp
https://www.dropbox.com/s/gnulfftln3476kq/JBT_B1200.h
https://www.dropbox.com/s/dp07w1vinrqonj1/JBT_Lua.cpp

Working SCN

Code:
BEGIN_DESC
Contains the latest simulation state.
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 55986.3478773375
END_ENVIRONMENT

BEGIN_FOCUS
  Ship B1200
END_FOCUS

BEGIN_CAMERA
  TARGET B1200
  MODE Cockpit
  FOV 40.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_MFD Left
  TYPE Surface
  SPDMODE 1
END_MFD

BEGIN_MFD Right
  TYPE User
  MODE Burn Time MFD
END_MFD

BEGIN_SHIPS
XR5-01:XR5VanguardTowTest
  STATUS Landed Earth
  POS -14.4278655 -7.9572529
  HEADING 28.25
  RCSMODE 0
  PRPLEVEL 0:0.954461 1:1.000000 2:1.000000
  IDS 0:199 100
  NAVFREQ 94 524 84 114
  XPDR 193
  SECONDARY_HUD 3
  LAST_ACTIVE_SECONDARY_HUD 0
  ADCTRL_MODE 0
  TAKEOFF_LANDING_CALLOUTS 0.000000 0.000000 0.000000 0.000000 0.000000
  APU_FUEL_QTY 0.619115
  LOX_QTY 0.999692
  CABIN_O2_LEVEL 0.209000
  CREW_STATE 0
  INTERNAL_SYSTEMS_FAILURE 0
  COGSHIFT_MODES 0 0 0
  MWS_ACTIVE 0
  COOLANT_TEMP 31.200000
  DMG_0 1.000000 Left Wing
  DMG_1 1.000000 Right Wing
  DMG_2 1.000000 Left Aileron
  DMG_3 1.000000 Right Aileron
  DMG_4 1.000000 Landing Gear
  DMG_5 1.000000 Docking Port
  DMG_6 1.000000 Retro Doors
  DMG_7 1.000000 Top Hatch
  DMG_8 1.000000 Radiator
  DMG_9 1.000000 Airbrake
  DMG_10 1.000000 Left Main Engine
  DMG_11 1.000000 Right Main Engine
  DMG_12 1.000000 Left SCRAM Engine
  DMG_13 1.000000 Right SCRAM Engine
  DMG_14 1.000000 Fore Hover Engine
  DMG_15 1.000000 Aft Hover Engine
  DMG_16 1.000000 Left Retro Engine
  DMG_17 1.000000 Right Retro Engine
  DMG_18 1.000000 Forward Lower RCS
  DMG_19 1.000000 Aft Upper RCS
  DMG_20 1.000000 Forward Upper RCS
  DMG_21 1.000000 Aft Lower RCS
  DMG_22 1.000000 Forward Star. RCS
  DMG_23 1.000000 Aft Port RCS
  DMG_24 1.000000 Forward Port RCS
  DMG_25 1.000000 Aft Star. RCS
  DMG_26 1.000000 Outboard Upper Port RCS
  DMG_27 1.000000 Outboard Lower Star. RCS
  DMG_28 1.000000 Outboard Upper Star. RCS
  DMG_29 1.000000 Outboard Lower Port RCS
  DMG_30 1.000000 Aft RCS
  DMG_31 1.000000 Forward RCS
  DMG_32 1.000000 Bay Doors
  DMG_33 1.000000 Elevator
  IS_CRASHED 0
  MET_STARTING_MJD -1.000000
  INTERVAL1_ELAPSED_TIME -1.000000
  INTERVAL2_ELAPSED_TIME -1.000000
  MET_RUNNING 0
  INTERVAL1_RUNNING 0
  INTERVAL2_RUNNING 0
  ACTIVE_MDM 0
  TEMP_SCALE 2
  CUSTOM_AUTOPILOT_MODE 0
  AIRSPEED_HOLD_ENGAGED 0
  SCRAM0DIR 0.000000 0.000000 1.000000
  SCRAM1DIR 0.000000 0.000000 1.000000
  HOVER_BALANCE 0.000000
  MAIN0DIR 0.000000 0.000000 1.000000
  MAIN1DIR 0.000000 0.000000 1.000000
  GIMBAL_BUTTON_STATES 0 0 0 0 0 0
  ATTITUDE_HOLD_DATA 0.000000 0.000000 0 0 0.000000
  DESCENT_HOLD_DATA 0.000000 -3.000000 0
  AIRSPEED_HOLD_DATA 15.000000
  OVERRIDE_INTERLOCKS 0 0
  TERTIARY_HUD_ON 1
  CREW_DISPLAY_INDEX 0
  GEAR 1 1.0000
  RCOVER 0 0.0000
  DOCKINGPORT 0 0.0000
  AIRLOCK 0 0.0000
  IAIRLOCK 0 0.0000
  CHAMBER 0 0.0000
  AIRBRAKE 0 0.0000
  RADIATOR 0 0.0000
  LADDER 0 0.0000
  HATCH 0 0.0000
  SCRAM_DOORS 0 0.0000
  HOVER_DOORS 0 0.0000
  BAY_DOORS 0 0.0000
  ELEVATOR 0 0.0000
  APU_STATUS 0
  EXTCOOLING_STATUS 1
  TRIM 0.000000
  LIGHTS 1 0 1
  XRUMMU_CREW_DATA_VALID 1
  UMMUCREW XI0-Tom_Fisher-37-65-78
  UMMUCREW XI1-Russ_Hicks-29-65-54
  UMMUCREW XI2-Doug_Beachy-36-68-58
  UMMUCREW XI3-Steve_Tyler-24-71-68
  UMMUCREW XI4-Katherine_Quinn-28-67-56
  UMMUCREW XI5-Cameron_Mitchell-36-65-77
  UMMUCREW XI6-Samantha_Carter-33-66-53
  UMMUCREW XI7-Daniel_Jackson-35-68-75
  UMMUCREW XI8-Teal_c-31-64-104
  UMMUCREW XI9-Vala_Mal_Doran-30-67-53
  UMMUCREW XI10-Elizabeth_Weir-36-68-56
  UMMUCREW XI11-John_Sheppard-34-64-77
  UMMUCREW XI12-Rodney_McKay-35-72-90
  UMMUCREW XI13-Teyla_Emmagan-27-68-57
  UMMUCREW XI14-Ronon_Dex-32-63-97
  UMMUCREW XI15-Carson_Beckett-38-74-95
  UMMUCREW XI16-Lee_Adama-26-65-74
  UMMUCREW XI17-Kara_Thrace-26-67-55
  RCS_DOCKING_MODE 0
  ACTIVE_EVA_PORT 0
  PAYLOAD_SCREENS_DATA 0.2 4 1 0
END
XR5-01_Bay:XRPayloadBay
  STATUS Landed Earth
  POS -14.4279667 -7.9574394
  HEADING 28.25
  ATTACHED 0:36,XR5-01
  AFCMODE 7
END
B1200:JBT_B1200
  STATUS Landed Earth
  POS -14.4279020 -7.9573190
  HEADING 28.28
  AFCMODE 7
  PRPLEVEL 0:1.000000
  NAVFREQ 0 0
  UMMUCREW Eng-Garu_Falcon-28-65-74
  MODE 0 0.000000 0
  TRANS 0 0 176.800000
  LENG 0.000000 0.000000 0.000000 0.000000
  ANGL 3.141593 0.000000 0.000000
END
END_SHIPS

Non working SCN
Code:
BEGIN_DESC
Contains the latest simulation state.
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 55986.3479143415
END_ENVIRONMENT

BEGIN_FOCUS
  Ship B1200
END_FOCUS

BEGIN_CAMERA
  TARGET B1200
  MODE Cockpit
  FOV 40.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_MFD Left
  TYPE Surface
  SPDMODE 1
END_MFD

BEGIN_MFD Right
  TYPE User
  MODE Burn Time MFD
END_MFD

BEGIN_VC
END_VC

BEGIN_SHIPS
XR5-01:XR5VanguardTowTest
  STATUS Landed Earth
  POS -14.4278655 -7.9572529
  HEADING 28.25
  RCSMODE 0
  PRPLEVEL 0:0.954461 1:1.000000 2:1.000000
  IDS 0:199 100
  NAVFREQ 94 524 84 114
  XPDR 193
  SECONDARY_HUD 3
  LAST_ACTIVE_SECONDARY_HUD 0
  ADCTRL_MODE 0
  TAKEOFF_LANDING_CALLOUTS 0.000000 0.000000 0.000000 0.000000 0.000000
  APU_FUEL_QTY 0.619115
  LOX_QTY 0.999692
  CABIN_O2_LEVEL 0.209000
  CREW_STATE 0
  INTERNAL_SYSTEMS_FAILURE 0
  COGSHIFT_MODES 0 0 0
  MWS_ACTIVE 0
  COOLANT_TEMP 31.200000
  DMG_0 1.000000 Left Wing
  DMG_1 1.000000 Right Wing
  DMG_2 1.000000 Left Aileron
  DMG_3 1.000000 Right Aileron
  DMG_4 1.000000 Landing Gear
  DMG_5 1.000000 Docking Port
  DMG_6 1.000000 Retro Doors
  DMG_7 1.000000 Top Hatch
  DMG_8 1.000000 Radiator
  DMG_9 1.000000 Airbrake
  DMG_10 1.000000 Left Main Engine
  DMG_11 1.000000 Right Main Engine
  DMG_12 1.000000 Left SCRAM Engine
  DMG_13 1.000000 Right SCRAM Engine
  DMG_14 1.000000 Fore Hover Engine
  DMG_15 1.000000 Aft Hover Engine
  DMG_16 1.000000 Left Retro Engine
  DMG_17 1.000000 Right Retro Engine
  DMG_18 1.000000 Forward Lower RCS
  DMG_19 1.000000 Aft Upper RCS
  DMG_20 1.000000 Forward Upper RCS
  DMG_21 1.000000 Aft Lower RCS
  DMG_22 1.000000 Forward Star. RCS
  DMG_23 1.000000 Aft Port RCS
  DMG_24 1.000000 Forward Port RCS
  DMG_25 1.000000 Aft Star. RCS
  DMG_26 1.000000 Outboard Upper Port RCS
  DMG_27 1.000000 Outboard Lower Star. RCS
  DMG_28 1.000000 Outboard Upper Star. RCS
  DMG_29 1.000000 Outboard Lower Port RCS
  DMG_30 1.000000 Aft RCS
  DMG_31 1.000000 Forward RCS
  DMG_32 1.000000 Bay Doors
  DMG_33 1.000000 Elevator
  IS_CRASHED 0
  MET_STARTING_MJD -1.000000
  INTERVAL1_ELAPSED_TIME -1.000000
  INTERVAL2_ELAPSED_TIME -1.000000
  MET_RUNNING 0
  INTERVAL1_RUNNING 0
  INTERVAL2_RUNNING 0
  ACTIVE_MDM 0
  TEMP_SCALE 2
  CUSTOM_AUTOPILOT_MODE 0
  AIRSPEED_HOLD_ENGAGED 0
  SCRAM0DIR 0.000000 0.000000 1.000000
  SCRAM1DIR 0.000000 0.000000 1.000000
  HOVER_BALANCE 0.000000
  MAIN0DIR 0.000000 0.000000 1.000000
  MAIN1DIR 0.000000 0.000000 1.000000
  GIMBAL_BUTTON_STATES 0 0 0 0 0 0
  ATTITUDE_HOLD_DATA 0.000000 0.000000 0 0 0.000000
  DESCENT_HOLD_DATA 0.000000 -3.000000 0
  AIRSPEED_HOLD_DATA 15.000000
  OVERRIDE_INTERLOCKS 0 0
  TERTIARY_HUD_ON 1
  CREW_DISPLAY_INDEX 0
  GEAR 1 1.0000
  RCOVER 0 0.0000
  DOCKINGPORT 0 0.0000
  AIRLOCK 0 0.0000
  IAIRLOCK 0 0.0000
  CHAMBER 0 0.0000
  AIRBRAKE 0 0.0000
  RADIATOR 0 0.0000
  LADDER 0 0.0000
  HATCH 0 0.0000
  SCRAM_DOORS 0 0.0000
  HOVER_DOORS 0 0.0000
  BAY_DOORS 0 0.0000
  ELEVATOR 0 0.0000
  APU_STATUS 0
  EXTCOOLING_STATUS 1
  TRIM 0.000000
  LIGHTS 1 0 1
  XRUMMU_CREW_DATA_VALID 1
  UMMUCREW XI0-Tom_Fisher-37-65-78
  UMMUCREW XI1-Russ_Hicks-29-65-54
  UMMUCREW XI2-Doug_Beachy-36-68-58
  UMMUCREW XI3-Steve_Tyler-24-71-68
  UMMUCREW XI4-Katherine_Quinn-28-67-56
  UMMUCREW XI5-Cameron_Mitchell-36-65-77
  UMMUCREW XI6-Samantha_Carter-33-66-53
  UMMUCREW XI7-Daniel_Jackson-35-68-75
  UMMUCREW XI8-Teal_c-31-64-104
  UMMUCREW XI9-Vala_Mal_Doran-30-67-53
  UMMUCREW XI10-Elizabeth_Weir-36-68-56
  UMMUCREW XI11-John_Sheppard-34-64-77
  UMMUCREW XI12-Rodney_McKay-35-72-90
  UMMUCREW XI13-Teyla_Emmagan-27-68-57
  UMMUCREW XI14-Ronon_Dex-32-63-97
  UMMUCREW XI15-Carson_Beckett-38-74-95
  UMMUCREW XI16-Lee_Adama-26-65-74
  UMMUCREW XI17-Kara_Thrace-26-67-55
  RCS_DOCKING_MODE 0
  ACTIVE_EVA_PORT 0
  PAYLOAD_SCREENS_DATA 0.2 4 1 0
END
XR5-01_Bay:XRPayloadBay
  STATUS Landed Earth
  POS -14.4279667 -7.9574394
  HEADING 28.25
  ATTACHED 0:36,XR5-01
  AFCMODE 7
END
B1200:JBT_B1200
  STATUS Landed Earth
  POS -14.4279020 -7.9573190
  HEADING 28.28
  AFCMODE 7
  PRPLEVEL 0:1.000000
  NAVFREQ 0 0
  UMMUCREW Eng-Garu_Falcon-28-65-74
  MODE 0 0.000000 0
  TRANS 0 0 176.800000
  LENG 0.000000 0.000000 0.000000 0.000000
  ANGL 3.141593 0.000000 0.000000
END
END_SHIPS
 
Are BEGIN_VC and END_VC valid Orbiter tags? I did a quick search through the Orbiter API and didn't find them. This means you would probably have to write the code yourself which checks if the BEGIN_VC/END_VC tags exist and switch the view to the VC if they exist.
 
They are default tags. The XRs and the DG produce (and honour them)
 
BTW there is no custom code in the XRs to read or write the BEGIN_VC / END_VC tags -- AFAIK the Orbiter core handles all that itself and decides whether to activate the VC when the vessel is created.
 
Back
Top