I've been trying to get my Lunar Lander to a state where I wont be embarassed to share it and have hit a snag.
If I load a scenario, quit, and then try to load "(Current state)" Orbiter crashes to desktop upon scenario start.
This only happens after seperating from the descent stage and I've narrowed it down to the following line...
With the red line commented out the scenario loads normaly. With it in there I CTD.
Does anyone know why this might be happening or have any ideas for a work-around?
If I load a scenario, quit, and then try to load "(Current state)" Orbiter crashes to desktop upon scenario start.
This only happens after seperating from the descent stage and I've narrowed it down to the following line...
Code:
void Spider::clbkPostCreation ()
{
if (STATUS==Ascent) // If the scenario spawns us in ascent configuration we need to aplly the changes that would normally occur durring stage seperation.
{
DelMesh(mesh_DS); // Delete descent stage mesh
[COLOR="Red"]ShiftCG(LM_AscentOFFSET);[/COLOR] //Shift center of gravity *Triggering CTD?*
ApplyAscentConfig(); // Apply vessel parameters
}
...
With the red line commented out the scenario loads normaly. With it in there I CTD.
Does anyone know why this might be happening or have any ideas for a work-around?
Last edited: