Problem UCGO cars + DG bug found!

RisingFury

OBSP developer
Addon Developer
Joined
Aug 15, 2008
Messages
6,290
Reaction score
120
Points
153
Location
Among bits and Bytes...
I'm posting this in a public thread instead of over PM because I'd like the rest of the O-F community to confirm the bug and be aware of it...

1.) Open "AI cars Dance.scn" scenario in a text editor.
2.) Change the date into the future. I used Date MJD 52006.7896195801
3.) Add a DeltaGlider into the scenario. Use this:
Code:
GL-01:Deltaglider
  STATUS Orbiting Earth
  RPOS 4317805.97 1359391.54 4485027.41
  RVEL -426.724 18.891 400.454
  AROT 57.24 36.34 44.57
  VROT 6.99 2.09 -3.81
  AFCMODE 0
  PRPLEVEL 0:0.977501 1:1.000000
  THLEVEL 0:0.887911 1:0.887911
  NAVFREQ 0 0 0 0
  XPDR 0
  AAP 0:0 0:0 0:0
END

4.) Load "AI cars Dance.scn" scenario in Orbiter and you'll get a CTD.
5.) Go back into text editor, switch the focus and camera to:
Code:
BEGIN_FOCUS
  Ship DG GL-01
END_FOCUS

BEGIN_CAMERA
  TARGET DG GL-01
  MODE Cockpit
  FOV 50.00
END_CAMERA

6.) Run Orbiter again and start switching between UCGO cars. Within a few focus changes (5 to 20) you'll get a CTD. It only happens with UCGO cars. Date needs to be changed into the future and DG added. So I have no idea what's going on here.

(For anyone who tries it, here's the original date in the scenario: 52006.7883195489)

Orbiter log shows nothing, but it's good practice to post it, so here it is:
Code:
**** Orbiter.log
Build Aug 30 2010 [v.100830]
Timer precision: 2.79365e-007 sec
Found 0 joystick(s)
Devices enumerated: 3
Devices accepted: 3
==> RGB Emulation
==> Direct3D HAL
==> Direct3D T&L HAL
Module AtlantisConfig.dll .... [Build 100830, API 100830]
Module AtmConfig.dll ......... [Build 100830, API 100830]
Module DGConfigurator.dll .... [Build 100830, API 100830]
Module CustomMFD.dll ......... [Build 100830, API 100830]
Module LuaConsole.dll ........ [Build 100830, API 100830]
Module ScriptMFD.dll ......... [Build 100830, API 100830]
Module ScnEditor.dll ......... [Build 100830, API 100830]
Module AutoHideInfoText.dll .. [Build 110822, API 101016]
Module LuaMFD.dll ............ [Build 100830, API 100830]
Module OBSP.dll .............. [Build 111011, API 100830]
Module OBSP MFD.dll .......... [Build 110811, API 100830]

**** Creating simulation session
DirectDraw interface OK
Direct3D interface OK
Graphics: Viewport: Window 1274 x 928 x 32
Graphics: Hardware T&L capability: Yes
Graphics: Z-buffer depth: 32 bit
Graphics: Stencil buffer depth: 8 bit
Graphics: Active lights supported: 8
Loading 15382 records from star database
Module Sun.dll ............... [Build 100830, API 100830]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
Module Earth.dll ............. [Build 100830, API 100830]
Module EarthAtmNRLMSISE00.dll  [Build 100830, API 100830]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
Finished initialising world
Module DeltaGlider.dll ....... [Build 100830, API 100830]
Module LuaInline.dll ......... [Build 100830, API 100830]
Module UCGOArrow.dll ......... [Build ******, API 060425]
Module UCGODynamicCargo.dll .. [Build ******, API 060425]
Module UCGOCars.dll .......... [Build ******, API 060425]
Finished initialising status
Finished initialising camera
Finished initialising panels
Finished setting up render state

This is almost a clean install. OBSP and OBSP MFD were both disabled. The only thing enabled was AutoHideInfoText, but it can't have any influence because we've already confirmed the bug on an Orbiter install without that module.

Here's the default scenario, so you can restore it afterwards:
Code:
BEGIN_DESC
AI cars Dance (CTD ? see at end of description)

-----------------------


Just watch the scene as trucks, forklifts and fuel trucks load/unload cargo and refuel the mother ship.


NOTE: You can create complete "dance" around a base where you plan to land. AI cars will be disabled and inactive when you'll be far away and start to "dance" when you'll approach the base.


GOT A CTD ?

-----------------

If you get a CTD after 41 seconds in this scenario it's due to LolaMFD that doesn't support Vessel deletion and so cause CTD with cargo release/grapple - Please Disable LolaMFD


END_DESC

BEGIN_ENVIRONMENT
System Sol
Date MJD 52006.7883195489
END_ENVIRONMENT

BEGIN_FOCUS
Ship TRUCKAI1
END_FOCUS

BEGIN_CAMERA
TARGET AR01
MODE Extern
POS 0.73 -57.15 -2.15
TRACKMODE Ground Earth
GROUNDLOCATION -80.67572 28.51918 11.94
GROUNDDIRECTION 50.71 -8.97
FOV 50.00
END_CAMERA

BEGIN_VC
END_VC


BEGIN_SHIPS
ISS:ProjectAlpha_ISS
STATUS Orbiting Earth
RPOS -1382696.75 6401518.18 -1540509.99
RVEL 7396.385 1160.432 -1786.211
AROT 9.04 -9.69 -65.56
VROT 0.02 0.00 0.11
IDS 0:588 100 1:586 100 2:584 100 3:582 100 4:580 100
NAVFREQ 0 0
XPDR 466
END
Mir
STATUS Orbiting Earth
RPOS 6521636.19 -67628.96 -1341586.15
RVEL 1567.497 470.131 7571.320
AROT 3.77 -72.87 87.49
IDS 0:540 100 1:542 100 2:544 100
XPDR 482
END
Luna-OB1:Wheel
STATUS Orbiting Moon
RPOS 596321.60 -2157120.21 -34.65
RVEL 1426.535 394.438 0.007
AROT -0.00 -0.00 87.51
VROT 0.00 -0.00 10.00
IDS 0:560 100 1:564 100
XPDR 494
END
AR01:UCGO\Vessels\UCGOArrowFreighter
STATUS Landed Earth
POS -80.6745960 28.5197640
HEADING 358.18
PRPLEVEL 0:0.200
IDS 0:320 100
NAVFREQ 260 0
XPDR 300
O2_RESERVE 70.00
SAVEVAR00 0§0,1§0.00,2§1,3§1.00,4§0,5§0.00,6§0,7§1,8§0.00,9§1,10§0.00,11§0.00,12§0,13§0,14§0,15§0.00,16§0,17§0,18§2,19§1,20§4,21§0,22§1,
UMMUCREW Capt-Peter_Falcon-41-65-74
UMMUCREW Eng-Fanny_Gorgeous-27-67-55
UMMUCREW -Albert_Jr_Falcon-15-70-45
UCGO @@0,1,0,0,@@1,1,0,0,@@2,1,0,0,@@3,1,0,0,@@4,1,0,0,@@5,1,0,0,@@6,1,0,0,@@7,1,0,0,
UCGO @@8,1,0,0,@@9,1,0,0,@@10,1,0,0,@@11,1,0,0,@@12,1,0,0,@@13,1,0,0,@@14,1,0,0,
UCGO @@15,1,0,0,@@16,1,0,0,@@17,1,0,0,@@18,1,0,0,@@19,1,0,0,@@20,1,0,0,@@21,1,0,0,
UCGO @@22,1,0,0,@@23,1,1,1134,CargoOxygen,@@24,1,1,54,CargoFlagKitSP,
UCGO @@25,1,1,54,CargoFlagKitDE,@@26,1,1,1048,CargoBarrelFuel,@@27,1,1,54,CargoFlagKitUS,
UCGO @@28,1,0,0,@@29,1,0,0,@@30,1,0,0,@@31,1,0,0,@@32,1,0,0,@@33,1,0,0,@@34,1,0,0,
UCGO @@35,1,0,0,@@36,1,0,0,@@37,1,0,0,@@38,1,0,0,@@39,1,0,0,
END
cCONNT01:UCGO\Cargos\CargoBaseConnect
STATUS Landed Earth
POS -80.6745817 28.5197644
HEADING 358.18
CargoUnpacked 0
END
cCONTR01:UCGO\Cargos\CargoBaseControl
STATUS Landed Earth
POS -80.6745674 28.5197648
HEADING 358.18
CargoUnpacked 0
END
cFUEL01:UCGO\Cargos\CargoBarrelFuel
STATUS Landed Earth
POS -80.6745531 28.5197652
HEADING 358.18
IsRessource 1
RessourceMass 1048.00
END
cMODUL01:UCGO\Cargos\CargoBaseModule
STATUS Landed Earth
POS -80.6745388 28.5197656
HEADING 358.18
CargoUnpacked 0
END
cSOLAR01:UCGO\Cargos\CargoBaseSolar
STATUS Landed Earth
POS -80.6745965 28.5197766
HEADING 358.18
CargoUnpacked 0
END
cTANK01:UCGO\Cargos\CargoBaseTank
STATUS Landed Earth
POS -80.6745822 28.5197770
HEADING 358.18
CargoUnpacked 0
END
cCONTR02:UCGO\Cargos\CargoBaseControl
STATUS Landed Earth
POS -80.6745679 28.5197774
HEADING 358.18
CargoUnpacked 0
END
cOXYG01:UCGO\Cargos\CargoOxygen
STATUS Landed Earth
POS -80.6745535 28.5197778
HEADING 358.18
IsRessource 1
RessourceMass 1134.00
END
cMODUL02:UCGO\Cargos\CargoBaseModule
STATUS Landed Earth
POS -80.6745392 28.5197782
HEADING 358.18
CargoUnpacked 0
END
cFLAGO01:UCGO\Cargos\CargoFlagKitGO
STATUS Landed Earth
POS -80.6745969 28.5197891
HEADING 358.18
CargoUnpacked 0
END
cLIGHT01:UCGO\Cargos\CargoBaseLight
STATUS Landed Earth
POS -80.6745826 28.5197895
HEADING 358.18
PRPLEVEL 0:1.000
CargoUnpacked 0
END
cSOLAR02:UCGO\Cargos\CargoBaseSolar
STATUS Landed Earth
POS -80.6745683 28.5197899
HEADING 358.18
CargoUnpacked 0
END
cMODUL03:UCGO\Cargos\CargoBaseModule
STATUS Landed Earth
POS -80.6745540 28.5197903
HEADING 358.18
CargoUnpacked 0
END
cSOLAR03:UCGO\Cargos\CargoBaseSolar
STATUS Landed Earth
POS -80.6745397 28.5197907
HEADING 358.18
CargoUnpacked 0
END
cFLAGF01:UCGO\Cargos\CargoFlagKitFR
STATUS Landed Earth
POS -80.6755974 28.5228017
HEADING 358.18
CargoUnpacked 0
END
cLIGHT02:UCGO\Cargos\CargoBaseLight
STATUS Landed Earth
POS -80.6755831 28.5228021
HEADING 358.18
PRPLEVEL 0:1.000
CargoUnpacked 0
END
cFLAGG01:UCGO\Cargos\CargoFlagKitGB
STATUS Landed Earth
POS -80.6755688 28.5228025
HEADING 358.18
CargoUnpacked 0
END
cCONNT02:UCGO\Cargos\CargoBaseConnect
STATUS Landed Earth
POS -80.6755545 28.5228029
HEADING 358.18
CargoUnpacked 0
END
cFLAGO02:UCGO\Cargos\CargoFlagKitGO
STATUS Landed Earth
POS -80.6755402 28.5228033
HEADING 358.18
CargoUnpacked 0
END
cTANK02:UCGO\Cargos\CargoBaseTank
STATUS Landed Earth
POS -80.6755978 28.5228143
HEADING 358.18
CargoUnpacked 0
END
cLIGHT03:UCGO\Cargos\CargoBaseLight
STATUS Landed Earth
POS -80.6755835 28.5228147
HEADING 358.18
PRPLEVEL 0:1.000
CargoUnpacked 0
END
cXPDR01:UCGO\Cargos\CargoLandingBeacon
STATUS Landed Earth
POS -80.6755692 28.5228151
HEADING 358.18
CargoUnpacked 0
END
cCONTR03:UCGO\Cargos\CargoBaseControl
STATUS Landed Earth
POS -80.6755549 28.5228155
HEADING 358.18
CargoUnpacked 0
END
FUELAI:UCGO\Cars\CarTruckFuel
STATUS Landed Earth
POS -80.6750506 28.5189261
HEADING 23.61
NAVFREQ 0 0
AIInFonction 1
CurrentWpt 2
EngineStarted 1.0000000000
SAVEVAR00 0§-80.6755960000,1§28.5187640000,2§0,3§-80.6750975422,4§28.5188716634,5§0,6§-80.6749368305,7§28.5198883531,8§0,9§-80.6746694229,10§28.5202436020,11§16,12§-80.6746076607,13§28.5206502300,14§0,15§-80.6749871309,
SAVEVAR01 16§28.5207979551,17§0,18§-80.6750930238,19§28.5196617794,20§0,23§0,26§0,29§0,32§0,35§0,38§0,41§0,44§0,47§0,50§0,53§0,56§0,59§0,200§7,301§0,400§1,401§1,403§1,405§1,407§1,
END
TRUCKAI1:UCGO\Cars\CarTruckFlatbed
STATUS Landed Earth
POS -80.6751700 28.5203796
HEADING 173.71
NAVFREQ 0 0
AIInFonction 1
CurrentWpt 8
EngineStarted 1.0000000000
SAVEVAR00 0§-80.6746619994,1§28.5197920785,2§14,3§-80.6745242355,4§28.5205488203,5§0,6§-80.6748315404,7§28.5208074373,8§0,9§-80.6749341018,10§28.5212460436,11§0,12§-80.6753328801,13§28.5217099822,14§0,15§-80.6754946563,
SAVEVAR01 16§28.5227304701,17§15,18§-80.6760520974,19§28.5221780335,20§0,21§-80.6751694499,22§28.5212973099,23§0,24§-80.6751017634,25§28.5198352063,26§0,29§0,32§0,35§0,38§0,41§0,44§0,47§0,50§0,53§0,56§0,59§0,200§9,
SAVEVAR02 301§0,400§1,401§1,403§1,405§1,407§1,
UCGO @@0,1,0,0,@@1,1,0,0,@@2,1,0,0,@@3,1,0,0,@@4,1,0,0,@@5,1,0,0,@@6,1,0,0,@@7,1,0,0,
END
AITRUCK2:UCGO\Cars\CarTruckFlatbed
STATUS Landed Earth
POS -80.6754159 28.5214804
HEADING 135.43
NAVFREQ 0 0
AIInFonction 1
CurrentWpt 6
EngineStarted 1.0000000000
SAVEVAR00 0§-80.6744945775,1§28.5197424727,2§15,3§-80.6749812721,4§28.5197658775,5§0,6§-80.6750992416,7§28.5212003018,8§0,9§-80.6761382391,10§28.5222077452,11§0,12§-80.6756709862,13§28.5228181948,14§14,15§-80.6759433601,
SAVEVAR01 16§28.5220677694,17§0,18§-80.6751497642,19§28.5212429726,20§0,21§-80.6750843512,22§28.5209652903,23§0,24§-80.6744236065,25§28.5207764013,26§0,27§-80.6742497081,28§28.5199429093,29§0,32§0,35§0,38§0,41§0,
SAVEVAR02 44§0,47§0,50§0,53§0,56§0,59§0,200§10,301§0,400§1,401§1,403§1,405§1,407§1,
UCGO @@0,1,1,567,CargoBaseConnect,@@1,1,1,567,CargoBaseConnect,@@2,1,1,38,CargoBaseLight,
UCGO @@3,1,1,287,CargoBaseTank,@@4,1,1,54,CargoFlagKitGB,@@5,1,1,54,CargoFlagKitUS,
UCGO @@6,1,1,1048,CargoBarrelFuel,@@7,1,1,1048,CargoBarrelFuel,
END
FORK01:UCGO\Cars\CarForkLift
STATUS Landed Earth
POS -80.6753013 28.5201279
HEADING 305.21
NAVFREQ 0 0
UMMUCREW Tech-Alan_Worker-36-70-70
AIInFonction 1
CurrentWpt 5
EngineStarted 1.0000000000
SAVEVAR00 0§-80.6745620000,1§28.5197340000,2§14,3§-80.6751830143,4§28.5198390589,5§0,6§-80.6754497122,7§28.5199643001,8§0,9§-80.6755282029,10§28.5200241224,11§15,12§-80.6754000042,13§28.5198374880,14§0,15§-80.6743925832,
SAVEVAR01 16§28.5195812537,17§0,20§0,23§0,26§0,29§0,32§0,35§0,38§0,41§0,44§0,47§0,50§0,53§0,56§0,59§0,200§6,301§0,400§1,401§1,403§1,405§1,407§1,
UCGO @@0,1,0,0,
END
FORK02:UCGO\Cars\CarForkLift
STATUS Landed Earth
POS -80.6751161 28.5196594
HEADING 132.87
NAVFREQ 0 0
UMMUCREW Tech-Badel_HardWork-36-70-70
AIInFonction 1
CurrentWpt 5
EngineStarted 1.0000000000
SAVEVAR00 0§-80.6751867035,1§28.5197958632,2§0,3§-80.6745668357,4§28.5198077029,5§15,6§-80.6744271237,7§28.5197908051,8§0,9§-80.6743283390,10§28.5196401758,11§0,12§-80.6750254347,13§28.5196030453,14§0,15§-80.6755180855,
SAVEVAR01 16§28.5199829332,17§14,20§0,23§0,26§0,29§0,32§0,35§0,38§0,41§0,44§0,47§0,50§0,53§0,56§0,59§0,200§6,301§0,400§1,401§1,403§1,405§1,407§1,
UCGO @@0,1,1,1048,CargoBarrelFuel,
END
END_SHIPS
 
Last edited:

escapetomsfate

OBSP Developer
Addon Developer
Joined
Jun 21, 2008
Messages
287
Reaction score
0
Points
0
Location
GB
I can confirm this on a clean install with just UCGO.

What could be the general cause? Must be something wider than the combined DG and time specifically.
 

astrosammy

Dash!
Addon Developer
Donator
Joined
Apr 27, 2008
Messages
2,124
Reaction score
0
Points
0
Location
ICAO ID: EDFB
No time to test it currently.

But
Code:
BEGIN_FOCUS
  Ship DG GL-01
END_FOCUS
looks a bit wrong... Shouldn't it be
Code:
BEGIN_FOCUS
  Ship GL-01
END_FOCUS
?

However I doubt that this is causing the bug...
 

RisingFury

OBSP developer
Addon Developer
Joined
Aug 15, 2008
Messages
6,290
Reaction score
120
Points
153
Location
Among bits and Bytes...
For the record, it's not the focus line that's causing this bug. It can be resolved by switching time into the past.

I'm just curious why it would crash - what is it about the DG / UCGO / date combination...
 

Izack

Non sequitur
Addon Developer
Joined
Feb 4, 2010
Messages
6,667
Reaction score
1
Points
0
Location
The Wilderness, N.B.
Could it have something to do with the car AI dance being time-dependant? Can't see anything about it in the scenario, though... :shrug:
 

elocoreloco

New member
Joined
May 9, 2011
Messages
19
Reaction score
0
Points
0
Location
San Salvador
Within a few focus changes (5 to 20) you'll get a CTD.

I get the same problem but when i'm focusing an XR5, when i try to switch from one XR5 to another XR5 i get the CTD, but once i get that CTD i can't load the scenario, keeps crashing, then i edit the scn file and change the focus to ISS and then it loads normally until the next few focus switching on the XR5's.

PS: I got one AI runing for this scn file.

:hailprobe:
 

RisingFury

OBSP developer
Addon Developer
Joined
Aug 15, 2008
Messages
6,290
Reaction score
120
Points
153
Location
Among bits and Bytes...
It seems to be caused by UCGO. All these failures gravitate towards it, but it always need a catalyst for the CTD to occur.

My guess would be the AI also. I can't really think of anything else :S
 
Top