Bug UMMUs can't have focus in scenario file?

Zatnikitelman

Addon Developer
Addon Developer
Joined
Jan 13, 2008
Messages
2,302
Reaction score
6
Points
38
Location
Atlanta, GA, USA, North America
I've found an odd problem with UMMU. Whenever I give the UMMU the control and/or camera focus from the beginning of the scenario, Orbiter crashes, but if I change focus to the Deltaglider, or Shuttle-A, it works. Here's the scenario in question:
Code:
BEGIN_DESC
Your journey starts here!
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 51981.6031558111
END_ENVIRONMENT

BEGIN_FOCUS
  Ship UMmu_KSC
END_FOCUS

BEGIN_CAMERA
  TARGET UMmu_KSC
  MODE Extern
  POS 4.10 31.80 -17.22
  TRACKMODE TargetRelative
  FOV 50.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_PANEL
END_PANEL

BEGIN_SHIPS
GL-01:DeltaGlider
  STATUS Landed Earth
  BASE Cape Canaveral:1
  POS -80.6758964 28.5227640
  HEADING 150.00
  AFCMODE 7
  PRPLEVEL 0:1.000000 1:1.000000
  NAVFREQ 402 94 0 0
  XPDR 0
  GEAR 1 1.0000
  AAP 0:0 0:0 0:0
END
SH-02:ShuttleA
  STATUS Landed Earth
  BASE Cape Canaveral:5
  POS -80.6745292 28.5197208
  HEADING 100.00
  AFCMODE 7
  PRPLEVEL 0:1.000000 1:1.000000
  NAVFREQ 0 0
  XPDR 0
  PODANGLE 0.0000 0.0000
  DOCKSTATE 0 0.0000
  AIRLOCK 0 0.0000
  GEAR 0 0.0000
  PAYLOAD MASS 0.0 0
END
HangarMarker:MarkerVes
  STATUS Landed Earth
  POS -80.6751590 28.5227300
  HEADING 0.00
  AFCMODE 7
  NAVFREQ 0 0
END
UMmu_KSC:UMmu
  STATUS Landed Earth
  BASE Cape Canaveral:4
  POS -80.6742890 28.5201150
  HEADING 330.96
  PRPLEVEL 0:0.997301
  NAVFREQ 0 0
  XPDR 130
  O2Level 100.0000
  O2MaxLevel 100.0000
  CardiacBeat 66.0000
  Age 27
  HudColor 1
  Chute 0
  PressureDeath 0
  MeshName UMmu\UMMu
END
END_SHIPS
Is there a workaround or anything?
 

dgatsoulis

ele2png user
Donator
Joined
Dec 2, 2009
Messages
1,931
Reaction score
357
Points
98
Location
Sparta
First time I've ever seen this kind of thing.
I was able to reproduce the bug, if the scenario starts with the focus on the ummu you get CTD. (I removed the hangar lines because I don't have that one).

The funny part is that if you remove both other ships and leave just the ummu the scenario loads normally.

At first I thought that it was because the ummu wasn't named "properly" (e.g. UMmu_Crew-KSC) and doesn't have a "crewweight" but the CTD happens even if those exist.
 

dansteph

Addon Developer
Addon Developer
Beta Tester
Joined
Apr 30, 2008
Messages
788
Reaction score
64
Points
28
Website
orbiter.dansteph.com
I wasn't able to reproduce the CTD with the beta version of UMmu.

-Try to deactivate all modules first to see if one create the CTD.
-Name properly the UMmu eg: "UMmu_Capt-Robert_Moore:UMmu" in scenery, and don't forget the cam: eg: "TARGET UMmu_Sec-Robert_Moore"

If it still ctd let me know.

In general you should use the utility (SHF+R) to rename UMmu, as the name is used for informations, giving folkloric name might create a lot of problems.
 

dgatsoulis

ele2png user
Donator
Joined
Dec 2, 2009
Messages
1,931
Reaction score
357
Points
98
Location
Sparta
Bug reproduce:

1. Load this scenario

Code:
BEGIN_DESC
Contains the latest simulation state.
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 51981.6035475830
END_ENVIRONMENT

BEGIN_FOCUS
  Ship UMmu_Capt-James_Lovell
END_FOCUS

BEGIN_CAMERA
  TARGET UMmu_Capt-James_Lovell
  MODE Extern
  POS 4.10 31.80 -17.22
  TRACKMODE TargetRelative
  FOV 50.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_PANEL
END_PANEL

BEGIN_SHIPS
UMmu_Capt-James_Lovell:UMmu
  STATUS Landed Earth
  POS -80.6742890 28.5201150
  HEADING 330.96
  RCSMODE 0
  AFCMODE 7
  PRPLEVEL 0:1.000000
  NAVFREQ 0 0
  XPDR 130
  O2Level 100.0000
  O2MaxLevel 100.0000
  CardiacBeat 65.0000
  Age 35
  HudColor 0
  Chute 0
  PressureDeath 0
  MeshName ummu/UMmuP
  crewweight 120.0000
END
END_SHIPS

2. Open scenario editor and Add a Deltaglider named GL1 (don't track and don't set input focus)
3. Select (on the ground) location: Cape Canaveral
4.CTD

Another way:

Steps 1 and 2 same as above
3. Select animation→Gear down
4. CTD

The ummu was named with Shift-R
All modules deactivated, except ScenarioEditor
I downloaded and reinstalled UMMU2.0 and used the patch version 1.5 (didn't find any addons to patch)

Here is the Orbiter.cfg
Code:
; === ORBITER Master Configuration File ===
EchoAllParams = TRUE
LPadRect = 407 6 1024 539

; === Subdirectory locations
ConfigDir = .\Config\
MeshDir = .\Meshes\
TextureDir = .\Textures\
HightexDir = .\Textures2\
ScenarioDir = .\Scenarios\

; === Logical parameters ===
StartPaused = FALSE
FocusFollowsMouse = TRUE
FlightModel = 1
DamageModel = 1
UnlimitedFuel = FALSE
RefuelOnPad = FALSE
MFDTransparent = FALSE
GenericMFDSize = 10
MFDMapVersion = 1
InstrumentUpdateInterval = 0.01
PanelScale = 1
PanelScrollSpeed = 300

; === Visual parameters ===
EnableShadows = TRUE
EnableVesselShadows = TRUE
EnableClouds = TRUE
EnableCloudShadows = TRUE
EnableNightlights = TRUE
EnableWaterReflection = TRUE
EnableSpecularRipples = TRUE
EnableHorizonHaze = TRUE
EnableDistanceFog = TRUE
EnableSpecularReflection = TRUE
EnableReentryFlames = TRUE
EnableParticleStreams = TRUE
EnableLocalLights = FALSE
MaxLights = 8
AmbientLevel = 10
PlanetMaxPatchLevel = 14
PlanetPatchRes = 1
NightlightBrightness = 0.65
StarPrm = 1 0.1 1 0
CSphereBgImage = Visible (DSS2/Wikisky)
CSphereBgPath = csphere\dds2
CSphereBgIntensity = 0.2

; === Visual helper parameters ===
Planetarium = 4504
Bodyforces = 62 4 1
CoordinateAxes = 4 1 1

; === Debugging options ===
ShutdownMode = 2
FixedStep = 0
TimerMode = 0

; === Physics engine ===
DistributedVesselMass = TRUE
NonsphericalGravitySources = TRUE
RadiationPressure = TRUE
StabiliseOrbits = TRUE
StabilisePLimit = 0.05
StabiliseSLimit = 0.01
PertPropSubsampling = 10 0.02
PertPropNonsphericalLimit = 0.05
LinPropStages = 5
LinPropStage0 = 2 0.5
LinPropStage1 = 4 20
LinPropStage2 = 6 100
LinPropStage3 = 8 200
LinPropStage4 = 22
AngPropStages = 4
AngPropStage0 = 2 1 0.0174533
AngPropStage1 = 4 10 0.0698132
AngPropStage2 = 6 100 0.174533
AngPropStage3 = 8
AngPropStage4 = 8
AngPropSubsampling = 100 0.349066
AngPropLimits = 0.523599 62.8319

; === Planet rendering parameters ===
PlanetPreloadMode = 0
PlanetTexLoadFreq = 20
PlanetAnisoMode = 1
PlanetMipmapMode = 1
PlanetMipmapBias = 0

; === Camera parameters ===
CameraPanspeed = 11.2202
HUDColIdx = 2

; === Device settings ===
DeviceIndex = 1
ModeIndex = 8
DeviceForceEnum = TRUE
Fullscreen = FALSE
Stereo = FALSE
NoVSync = FALSE
StencilBuffer = FALSE
FullscreenPageflip = TRUE
WindowWidth = 1024
WindowHeight = 768

; === Joystick parameters ===
JoystickIndex = 0
JoystickThrottleAxis = 1
JoystickThrottleSaturation = 9500
JoystickDeadzone = 2500
IgnoreThrottleOnStart = TRUE

; === Demo parameters ===
DemoMode = FALSE
BackgroundImage = FALSE
BlockExit = FALSE
MaxDemoTime = 300
MaxLaunchpadIdleTime = 15

; === Record/play parameters ===
RecordPosFrame = 1
RecordAttFrame = 1
RecordTimewarp = TRUE
RecordFocusEvent = TRUE
ReplayTimewarp = FALSE
ReplayFocusEvent = TRUE
ReplayCameraEvent = TRUE
SystimeSampling = TRUE
PlaybackNotes = TRUE

; === Font parameters ===
DialogFont_Scale = 1.3
DialogFont1_Face = DS-Digital

; === Multiplayer parameters ===
MP_Name = 
MP_Callsign = 
MP_Connection = 

; === Active plugin list ===
ACTIVE_MODULES
  ScnEditor
END_MODULES

And here is the Orbiter log
Code:
**** Orbiter.log
Build Aug 30 2010 [v.100830]
Timer precision: 6.98413e-008 sec
Found 1 joystick(s)
Devices enumerated: 2
Devices accepted: 2
==> RGB Emulation
==> Direct3D HAL
Module AtlantisConfig.dll .... [Build 100830, API 100830]
Module AtmConfig.dll ......... [Build 100830, API 100830]
Module DGConfigurator.dll .... [Build 100830, API 100830]
Module ScnEditor.dll ......... [Build 100830, API 100830]

**** Creating simulation session
DirectDraw interface OK
Direct3D interface OK
Graphics: Viewport: Window 1018 x 743 x 32
Graphics: Hardware T&L capability: No
Graphics: Z-buffer depth: 32 bit
Graphics: Active lights supported: -1
---------------------------------------------------------------
>>> ERROR: Inconsistent magnitude limits for background star brightness. Disabling background stars.
>>> [Scene::LoadStars | .\Scene.cpp | 581]
---------------------------------------------------------------
Module Sun.dll ............... [Build 100830, API 100830]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
Module Mercury.dll ........... [Build 100830, API 100830]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
Module Venus.dll ............. [Build 100830, API 100830]
Module VenusAtm2006.dll ...... [Build 100830, API 100830]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
Module Earth.dll ............. [Build 100830, API 100830]
Module EarthAtmJ71G.dll ...... [Build 100830, API 100830]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
Module Moon.dll .............. [Build 100830, API 100830]
ELP82: Precision 1e-005, Terms 116/829
Module Mars.dll .............. [Build 100830, API 100830]
Module MarsAtm2006.dll ....... [Build 100830, API 100830]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
Module Phobos.dll ............ [Build ******, API 060425]
**** WARNING: Mesh not found: .\Meshes\Panel_d.msh
BaseObject: Parse error 1
Module Deimos.dll ............ [Build ******, API 060425]
Module Galsat.dll ............ [Build 100217, API 100215]
Module Jupiter.dll ........... [Build 100830, API 100830]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
Module Io.dll ................ [Build 100217, API 100215]
Module Europa.dll ............ [Build 100217, API 100215]
Module Ganymede.dll .......... [Build 100217, API 100215]
Module Callisto.dll .......... [Build 100217, API 100215]
Module Satsat.dll ............ [Build 100215, API 100212]
Module Saturn.dll ............ [Build 100830, API 100830]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
Module Mimas.dll ............. [Build 100215, API 100212]
SATSAT Mimas: Terms 113
Module Enceladus.dll ......... [Build 100215, API 100212]
SATSAT Enceladus: Terms 33
Module Tethys.dll ............ [Build 100215, API 100212]
SATSAT Tethys: Terms 101
Module Dione.dll ............. [Build 100215, API 100212]
SATSAT Dione: Terms 59
Module Rhea.dll .............. [Build 100215, API 100212]
SATSAT Rhea: Terms 68
Module Titan.dll ............. [Build 100215, API 100212]
SATSAT Titan: Terms 100
Module Iapetus.dll ........... [Build 100215, API 100212]
SATSAT Iapetus: Terms 605
Module Uranus.dll ............ [Build 100830, API 100830]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
Module Miranda.dll ........... [Build ******, API 060425]
Module Ariel.dll ............. [Build ******, API 060425]
Module Umbriel.dll ........... [Build ******, API 060425]
Module Titania.dll ........... [Build ******, API 060425]
Module Oberon.dll ............ [Build ******, API 060425]
Module Neptune.dll ........... [Build 100830, API 100830]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
Finished initialising world
Finished initialising status
Finished initialising camera
Finished initialising panels
Finished setting up render state
 

dansteph

Addon Developer
Addon Developer
Beta Tester
Joined
Apr 30, 2008
Messages
788
Reaction score
64
Points
28
Website
orbiter.dansteph.com
Bug reproduce:

I was finally able to get it with Zatnikitelman's scenario.

There is an "illegal instruction in ddraw.dll" with no near call to UMmu's code.
This bug doesn't exist with DX9 client so it might be a bug in Orbiter's graphic engine.

Last this happen only with the deltaGlider, if I replace it with the ShuttleA I don't have this crash anymore in any try that I've made. (several test with different scenery case)

This tend to indicate it's more a "DeltaGlider/Orbiter engine"problem (that might be triggered by the scenario context with UMmu it's true).

Recommendations:

-Focus on DG first
-Use DX9 or DX11 engine (which are better anyway)
 
Last edited:

BruceJohnJennerLawso

Dread Lord of the Idiots
Addon Developer
Joined
Apr 14, 2012
Messages
2,585
Reaction score
0
Points
36
I had this issue when I first started using UMMU, I cant specify what but I know its probably a plugin module causing the problem. :tiphat:
 
Top