Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter SDK
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter SDK Orbiter software developers post your questions and answers about the SDK, the API interface, LUA, meshing, etc.

Reply
 
Thread Tools
Old 08-18-2012, 01:07 AM   #1
Hlynkacg
Aspiring rocket scientist
 
Hlynkacg's Avatar


Default Strange UMMU CTD

So there is something in my lunar Lander that prevents Orbiter from focusing on a UMMU.

UMMUs can coexist withing the scenarior and can transfer to/from the lander as normal but if I hit F3 and select a UMMU orbiter CTDs the moment focus shifts.

This is on a clean install of orbiter 2010 with only OrbitSound and UMMU/UCCGO installed.

The UMMU code in my Lander was copy/pasted directly from Dan Stephs tutorial and remains unchanged.

I had it working before but it's been some time since I conciously tried an EVA, as such I don't know what change is to blame for this new behavior.

Because I have no idea what's causing this I don't even know where to start troubleshooting.
Hlynkacg is offline   Reply With Quote
Old 08-18-2012, 01:45 AM   #2
NTpspE
Orbinaut
Default

Hi There,

Not sure if this is relevant, but I've had a few CTD using F3 in general, mainly when switching from something on one planet to the other (my PC is low-end) though if it's an EVA'd ummu it should be pretty close to the vessel.

The only thing coding wise I'd check, is whether it's actually EVA'ing the UMMU, and not creating an exact copy and leaving the current in the vehicle. Not sure if this would affect anything, but worth a shot.

Kind Regards,
NT
NTpspE is offline   Reply With Quote
Old 08-18-2012, 08:42 AM   #3
jedidia
shoemaker without legs
 
jedidia's Avatar
Default

Are you certain that the UMMU egressed correctly? To check whether there is indeed a problem with your vessel, egress a UMMU, delete the vessel, then switch to the UMMU. If no crash, you have a problem. A possible cause that comes to mind are unsecured HUD-calls, that is, calls to the HUD that get executed although your vessel doesn't have focus. But it is just as possible that I'm on the completely wrong track.

If the crash still happens, create a UMMU with the scenario editor or egress it from a vessel that you know to work, and try switching to that. If that works, your UMMU is mutilated at egress (although I only had that problem when transferring to a vessel with a space in the filename, it's still possible that it can happen by other mistakes...)
jedidia is offline   Reply With Quote
Old 08-19-2012, 03:36 AM   #4
Hlynkacg
Aspiring rocket scientist
 
Hlynkacg's Avatar


Default

Quote:
Originally Posted by jedidia View Post
 Are you certain that the UMMU egressed correctly? To check whether there is indeed a problem with your vessel, egress a UMMU, delete the vessel, then switch to the UMMU. If no crash, you have a problem.
Yes, and I do.

Quote:
A possible cause that comes to mind are unsecured HUD-calls, that is, calls to the HUD that get executed although your vessel doesn't have focus. But it is just as possible that I'm on the completely wrong track.
Unsecured HUD-calls you say?

How does one go about securing them?
Hlynkacg is offline   Reply With Quote
Old 08-20-2012, 04:57 PM   #5
Hlynkacg
Aspiring rocket scientist
 
Hlynkacg's Avatar


Default

Ok it was definatly the HUD.

When I commented out my custom reticle the crashes stopped.
Hlynkacg is offline   Reply With Quote
Old 08-22-2012, 11:15 AM   #6
jedidia
shoemaker without legs
 
jedidia's Avatar
Default

I'm a bit late, so maybe you already figured out how to fix the problem. If not, here's what you have to do:
As with panel redraws, make sure that your Hud calls only execute if you vessel has focus, like

Code:
if (oapiGetFocusInterface() == this)
{
      -hud calls
}
jedidia is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter SDK


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 01:08 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2007 - 2012, Orbiter-Forum.com. All rights reserved.