Discussion Space: 1999 updates ?

Thanks for the help.:)

Ok now that the eagle can read the attachment id!!!!!!!!!
Now I need it to create the thrusters to match.

So if stage ==0 no attachment there should be only 4 if stage ==3 then 8

Code:
if (stage ==0)
    {
        SetEngineLevel(ENGINE_HOVER,0.0);
        for (i=3; i<8; i++)
            DelThruster (th_hover[i]);
        NumHover=4;
    }

    if (stage ==3)
        NumHover=8;


    for (i=0; i<NumHover; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y+1.3,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);


But this is what I get
hoverth.jpg


stage =0 so there should be 4 there are 3

and now attached pod so stage =3!!!!!!!!!!!!!!!!!
but the same thrusters
hoverth1.jpg
 
stage =0 so there should be 4 there are 3

and now attached pod so stage =3!!!!!!!!!!!!!!!!!
but the same thrusters
Can you list the contents of HoverEngineOfs array?
 
Here you go.
Code:
// Los de la estructura principal
    HoverEngineOfs[0]=_V( 0.64,-1.5,9.379);
    HoverEngineOfs[1]=_V(-0.64,-1.5,9.379);
    HoverEngineOfs[2]=_V(-0.64,-1.5,-9.399);
    HoverEngineOfs[3]=_V( 0.64,-1.5,-9.399);
    // Los del módulo de carga
    HoverEngineOfs[4]=_V( 1.073,-3.15, 4.189);
    HoverEngineOfs[5]=_V(-1.0730,-3.15,4.189);
    HoverEngineOfs[6]=_V(-1.0730,-3.15,-4.148);
    HoverEngineOfs[7]=_V( 1.0730,-3.15,-4.148);
It looked like #0 was not seen and then the rest of them 4-7 for when stage=3

---------- Post added at 03:57 PM ---------- Previous post was at 09:30 AM ----------

ok now I get 4 thruster all the time. NumHover is always 0. Stage changes from 0 to 3 depending on attachment id and status.

Code:
if (stage ==0)
        NumHover=4;


    if (stage ==3)
        NumHover=8;


    for (i=0; i<NumHover; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
....
Code:
//smoke

 sprintf(oapiDebugString(),"NumHover %d stage %d",NumHover,stage);

int NumHover, i;
    double level, alt;
    level=GetThrusterGroupLevel(THGROUP_HOVER);
    alt=GetAltitude();
    // If stage=1 only 4 hovers, here's no cargo module
    if (stage == 0)
        NumHover=4;
    if (stage == 3)
    
        NumHover=8;

    // Conditions to add smoke to hovers:
    // 1: Altitude below 10m
    // 2: Here's no previous defined smoke for hovers (humo flag in false condition)
    if ((alt <10) && (smoke==0))
    {
        for (i=0; i<NumHover; i++)
            hover_humo[i]=AddExhaustStream (th_hover[i], _V(HoverEngineOfs[i].x,HoverEngineOfs[i].y-7.5,HoverEngineOfs[i].z), &exhaust_hover);
        smoke=1;
There are always 32 thrusters (4 Main, 4 retro 20 Rcs and 4 hover) If attached there should be 4 more


If I make NumHover 8 then I see all eight thrusters. So for some reason it will not switch to 4 isf stage =1 and 8 if stage =3

---------- Post added at 07:48 PM ---------- Previous post was at 03:57 PM ----------

Closer I can get it to see the numHover is 8 when stage is 3. But It is not creating then extra 4 thrusters.
Code:
if (stage ==0)
    {
        SetEngineLevel(ENGINE_HOVER,0.0);
        for (i=3; i<8; i++)
            DelThruster (th_hover[i]);
        NumHover=4;
    }

    else
        NumHover=8;
    for (i=0; i<NumHover; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);
h.
Code:
THRUSTER_HANDLE th_main[4],th_retro[4],th_hover[8],th_rcs[20],th_group[4];
THRUSTER_HANDLE thg_main,thg_retro,thg_hover;


---------- Post added 10-02-10 at 06:48 AM ---------- Previous post was 10-01-10 at 07:48 PM ----------

One thought is it is not seeing when stage =3 then add the extra thrusters. All thrusters are made here:
Code:
void EAGLE3::AddTransporterExhaust()
{
    int i;

    //Se crean los motores principales y sus escapes con humo
    for (i=0; i<4; i++)
    {
        th_main[i] = CreateThruster (_V(0,0,0), _V(0,0,1), MAX_MAIN_THRUST, ph_main, ISP_FUS);
        AddExhaust (th_main[i],2,0.5,_V(MainEngineOfs[i].x,MainEngineOfs[i].y,MainEngineOfs[i].z+2.3),_V(0,0,-1));
        AddExhaustStream (th_main[i], MainEngineOfs[i], &exhaust_main);
    };
    AddExhaustStream (th_main[1],_V(0,0,-24),&contrail_main);

    // Se crea el grupo motor principal
    thg_main = CreateThrusterGroup (th_main, 4, THGROUP_MAIN);
 
    sprintf(oapiDebugString(),"NumHover %d stage %d",NumHover,stage);
    
    //Motores elevadores
if (stage ==0)
    {
        SetEngineLevel(ENGINE_HOVER,0.0);
        for (i=3; i<10; i++)
            DelThruster (th_hover[i]);
        NumHover=4;
    }

    else
        if (stage=3)
        NumHover=8;
else
        if (stage=2)
        NumHover=10;
    for (i=0; i<NumHover; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);
it is referenced here:
Code:
void EAGLE3::clbkSetClassCaps (FILEHANDLE cfg)
{
    // physical specs
    SetSize (17);
    SetEmptyMass (173000.0);
    SetCW (0.9, 0.9, 2, 1.4);
    SetWingAspect (0.1);
SetClipRadius(27.0);
    SetWingEffectiveness (0.1);
    SetCrossSections (_V(132.2, 237.9, 42.4));
    SetRotDrag (_V(0.7, 0.7, 0.3));
    if (GetFlightModel() >= 1) {
        SetPitchMomentScale (0);
        SetBankMomentScale (0);
    }
    SetPMI (_V(86.6, 89.8, 5.5));
    SetTrimScale (0.05);
    SetCameraOffset (_V(-2.18532,2.9,13));
    SetClipRadius(0.1);
    SetTouchdownPoints  (_V(0,-3.124,8.7), _V(-5.45,-3.124,-9.6), _V(5.45,-3.124,-9.6));; 

DOCKHANDLE main1=CreateDock (_V(0,0.8,15.8), _V(0,0,1), _V(0,1,0));
ATTACHMENTHANDLE MAIN;
MAIN = CreateAttachment (true, _V(0,-3.131,0),_V(0,-1,0),_V(0,0,1),"APR",false);
P1 = CreateAttachment (false, _V(0,1.68,0),_V(0,1,0),_V(1,0,0),"top",false);
BUG = CreateAttachment (false, _V(0,-.591,-6.792),_V(0,-1,0),_V(1,0,0),"EGLEB",false);


EnableTransponder (true);
EnableIDS (main1, true);
SetIDSChannel(main1,8);

SetMeshVisibilityMode (AddMesh (oapiLoadMeshGlobal ("EAGLEBUGGY4B")),  MESHVIS_EXTERNAL | MESHVIS_EXTPASS); //Main ship mesh  | MESHVIS_EXTPASS
SetMeshVisibilityMode (AddMesh (oapiLoadMeshGlobal ("EAGLEVC1")),  MESHVIS_COCKPIT ); //Main ship mesh
SetMeshVisibilityMode (AddMesh (oapiLoadMeshGlobal ("EAGLEVC1")),  MESHVIS_VC ); //Main ship mesh
  [COLOR=Red]  AddTransporterExhaust();[/COLOR]

// Call clbkSetClassCaps_UMMU and select a member
    SelectedUmmuMember=0;
    clbkSetClassCaps_UMMu();



}
I noticed when I ran this the numhover and stage did not appear

---------- Post added at 07:15 PM ---------- Previous post was at 06:48 AM ----------

ok a slight change but no results
Code:
//void EAGLE3::clbkSetClassCaps (FILEHANDLE cfg)
void EAGLE3::SetTransporter()
changed this and also added this:
Code:
DLLCLBK void ovcSetClassCaps (VESSEL *vessel, FILEHANDLE cfg)
{
    ((EAGLE3*)vessel)->SetTransporter();
}
Now if I add this line then I have the extra thruster but no exhaust for them
Code:
void EAGLE3::AddTransporterExhaust()
{
    int i;

    //Se crean los motores principales y sus escapes con humo
    for (i=0; i<4; i++)
    {
        th_main[i] = CreateThruster (_V(0,0,0), _V(0,0,1), MAX_MAIN_THRUST, ph_main, ISP_FUS);
        AddExhaust (th_main[i],2,0.5,_V(MainEngineOfs[i].x,MainEngineOfs[i].y,MainEngineOfs[i].z+2.3),_V(0,0,-1));
        AddExhaustStream (th_main[i], MainEngineOfs[i], &exhaust_main);
    };
    AddExhaustStream (th_main[1],_V(0,0,-24),&contrail_main);

    // Se crea el grupo motor principal
    thg_main = CreateThrusterGroup (th_main, 4, THGROUP_MAIN);
 
    
    
    //Motores elevadores
if (stage ==0)
    {
        SetEngineLevel(ENGINE_HOVER,0.0);
        for (i=3; i<10; i++)
            DelThruster (th_hover[i]);
        NumHover=4;
    }

    else
        if (stage=3)
        NumHover=8;
else
        if (stage=2)
        NumHover=10;

[COLOR=Red]NumHover=10;[/COLOR]
    for (i=0; i<NumHover; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);
So If set Numhover=10 then I get 38 thrusters but only exhaust for the 4 hovers.

Not sure where to go from here.

---------- Post added 10-03-10 at 06:12 AM ---------- Previous post was 10-02-10 at 07:15 PM ----------

It determines the right amount of NumHover based on attachment id XS=8 and XL=10.

But it doesn't make the additional hover thrusters.

In my thinking it doesn't go back to void EAGLE3::AddTransporterExhaust()


If I set NumHover =10 in void EAGLE3::AddTransporterExhaust() I get 10 hover.

I also tried to make sethover a part of
Code:
void EAGLE3::clbkPostStep(double simt, double simdt, double mjd)
{
...
SetHover();

By doing this:
Code:
void EAGLE3::SetHover()
{
    int i;
if (stage ==0)
    {
        SetEngineLevel(ENGINE_HOVER,0.0);
        for (i=3; i<10; i++)
            DelThruster (th_hover[i]);
        NumHover=4;
    }

    else
        if (stage==3)
        NumHover=8;
else
        if (stage==2)
        NumHover=10;

//NumHover=10;
    for (i=0; i<NumHover; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
   
    // Se crea el grupo motor elevador
    thg1_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);
}

but it creates a lot of thrusters. even though it is set at 10.

THRUSTER_HANDLE th_main[4],th_retro[4],th_hover[10],th_rcs[20],th_group[4];

---------- Post added at 07:19 PM ---------- Previous post was at 06:12 AM ----------

I think this would do it but the thrusters created doesn't stop at 10. Why? It looks like if stage =o no attach then del the pod thruster 4-9. If attached then change NumHover.

Then create hover thrusters starting at 4 to 10

Code:
void EAGLE3::SetHover()
{
    int i;
if (stage ==0)
    {
        SetEngineLevel(ENGINE_HOVER,0.0);
        for (i=3; i<10; i++)
            DelThruster (th_hover[i]);
        NumHover=4;
    }

    else
        if (stage==3)
        NumHover=8;
else
        if (stage==2)
        NumHover=10;

//NumHover=10;
    for (i=0; i<10; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);
}
 
Last edited:
Thanks to orb and others I am getting closer.
this makes the 4 Eagle hover thruster

Code:
    for (i=0; i<4; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);


This set the right hover thrusters
Code:
if  ((stage)!=(oldstage)){

            if (stage==3){
                oldstage=stage;
                NumHover=8;
                SetHover();
    
            }
            if (stage==2){
                oldstage=stage;
                NumHover=10;
                SetHover();
    
            }
//if stage=0 then don't add thrusters
//if (stage==0){
//                oldstage=stage;    
            
//        }
        }
//if stage was 3 and now 0 then delete the extra thrusters
if  ((stage)!=(oldstage)){

            if (oldstage==3){
                oldstage=stage;    
                NumHover1=8;
RemHover();
            }
                        if (oldstage==2){
                oldstage=stage;    
                NumHover1=10;
RemHover();
            }

                        if (stage==0){
                oldstage=stage;    
            
        }
}

Code:
void EAGLE3::RemHover()
{
int i;
    //if (stage ==0)
    {
        //SetEngineLevel(ENGINE_HOVER,0.0);
        for (i=3; i<NumHover1; i++)
            DelThruster (th_hover[i]);
        
    }
}
void EAGLE3::SetHover()
//creates hoverthrusters
{
    
    int i;
    for (i=3; i<NumHover; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);
}


Code:
HoverEngineOfs[0]=_V( 0.64,-1.5,9.379);
    HoverEngineOfs[1]=_V(-0.64,-1.5,9.379);
    HoverEngineOfs[2]=_V(-0.64,-1.5,-9.399);
    HoverEngineOfs[3]=_V( 0.64,-1.5,-9.399);
    // Los del módulo de carga
    HoverEngineOfs[4]=_V( 1.073,-2, 4.189);
    HoverEngineOfs[5]=_V(-1.0730,-2,4.189);
    HoverEngineOfs[6]=_V(-1.0730,-2,-4.148);
    HoverEngineOfs[7]=_V( 1.0730,-2,-4.148);
    HoverEngineOfs[8]=_V(-4.354,-2,.088);
    HoverEngineOfs[9]=_V( 4.354,-2,0);


This all works except when I cut the thrust one stay lit
 
Last edited:
Code:
void EAGLE3::RemHover()
{
int i;
    //if (stage ==0)
    {
        //SetEngineLevel(ENGINE_HOVER,0.0);
        for (i=[color=red]3[/color]; i<NumHover1; i++)
            DelThruster (th_hover[i]);
        
    }
}
void EAGLE3::SetHover()
//creates hoverthrusters
{
    
    int i;
    for (i=[color=red]3[/color]; i<NumHover; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);
}
I'm wondering why are you starting from 3, since there are 4 main hover engines, that are never removed or added once again. If you start from 3, "th_hover[3]" is overwritten, and depending on what is called first, whether SetHover or RemHover, the third hover engine will be either created twice, and that's why it is lit, or it won't be lit at all when there should be only 4 thrusters on the vessel otherwise.
 
Thanks

I changed it to 4 and it is still lit.

One other odd thing I noticed if I attach. I have to reduce the thrust and then give it hover thrust and then I see the exhaust of the extra thrusters

And when I should have 36 thrusters I get 37
 
Last edited:
ok if I have no pod attached I have 32 thrusters. that is right.

but if i add a pod then stage =3 and I should have 36 32+4 extra. I have 37. Number 8 thrust will not fire off.

but if i add a pod then stage =2 and I should have 38 32+6 extra. I have 39.

That is with this code.
make the 1st 4
Code:
    for (i=0; i<4; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);

Code:
if  ((stage)!=(oldstage)){

            if (stage==3){
                oldstage=stage;
                NumHover=8;
                SetHover();
    
            }
            if (stage==2){
                oldstage=stage;
                NumHover=10;
                SetHover();
    
            }

if  ((stage)!=(oldstage)){

            if (oldstage==3){
                oldstage=stage;    
                NumHover1=8;
RemHover();
            }
                        if (oldstage==2){
                oldstage=stage;    
                NumHover1=10;
RemHover();
            }

                        if (stage==0){
                oldstage=stage;    
            
        }
}

Code:
void EAGLE3::RemHover()
{
int i;
    //if (stage ==0)
    {
        //SetEngineLevel(ENGINE_HOVER,0.0);
        for (i=4; i<NumHover1; i++)
            DelThruster (th_hover[i]);
        
    }
}
void EAGLE3::SetHover()
//creates hoverthrusters
{
    
    int i;
    for (i=4; i<NumHover; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);
}
 
Last edited:
Now I get the right amount of thrusters

But the amount of thrust is the the same

the 4 thrusters that are not added/deleted. come on but the amount of thrust in those is not the same as the added.
Now under full hover with the 4 I was able to lift off. Now I am able to under full throttle
 
Last edited:
Ok almost done. The only issue is if hovers are active. And then you attach the new hovers are on a different level as the existing hovers.

Not sure hot to fix that?

Code:
void EAGLE3::SetHover()
//creates hoverthrusters
{
    
    int i;
    for (i=4; i<NumHover; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);
}



ok 1 issue. When the lab is attached then should be 6 extra thrusters. there are 38 which is right but the thrust on the left doesn't light up.

Code:
void EAGLE3::SetHover()
//creates hoverthrusters
{
    
    int i;
    for (i=4; i<NumHover; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);
}


Code:
// Los de la estructura principal
    HoverEngineOfs[0]=_V( 0.64,-1.5,9.379);
    HoverEngineOfs[1]=_V(-0.64,-1.5,9.379);
    HoverEngineOfs[2]=_V(-.64,-1.5,-9.399);
    HoverEngineOfs[3]=_V( 0.64,-1.5,-9.399);
    // Los del módulo de carga
    HoverEngineOfs[4]=_V( 1.073,-2, 3.9);
    HoverEngineOfs[5]=_V(-1.0730,-2,3.9);
    HoverEngineOfs[6]=_V(-1.0730,-2,-3.9);
    HoverEngineOfs[7]=_V( 1.0730,-2,-3.9);
    HoverEngineOfs[8]=_V(-5,-2,.088);
    HoverEngineOfs[9]=_V( 5,-2,0);
 
Last edited:
Ok not sure about why the thrust level is different. on the 4 hover thrust when set at 9.60% the extra thrusters are at 6.4%.

Here is where the first 4 are created
Code:
for (i=0; i<4; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);



Then depending on this part the extra ones are made:
Code:
if  ((stage)!=(oldstage)){

            if (stage==3){
                oldstage=stage;
                NumHover=8;
                SetHover();
    
            }
            if (stage==2){
                oldstage=stage;
                NumHover=10;
                SetHover();
    
            }

So either the max number of hovers are 8 or 10.

Code:
void EAGLE3::SetHover()
//creates hoverthrusters
{
    
    int i;
    for (i=4; i<NumHover; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAX_HOVER_THRUST, ph_main, ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y,HoverEngineOfs[i].z),_V(0,-1,1));
    }
    
    // Se crea el grupo motor elevador
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);
}


On the Lab pod there should be 6 extra thruster. only 5 are showing up. Even though I get 38 thrusters
Here are where the exhaust is to be:
Code:
// Los de la estructura principal
    HoverEngineOfs[0]=_V( 0.64,-1.5,9.379);
    HoverEngineOfs[1]=_V(-0.64,-1.5,9.379);
    HoverEngineOfs[2]=_V(-.64,-1.5,-9.399);
    HoverEngineOfs[3]=_V( 0.64,-1.5,-9.399);
    // Los del módulo de carga
    HoverEngineOfs[4]=_V( 1.073,-2, 3.9);
    HoverEngineOfs[5]=_V(-1.0730,-2,3.9);
    HoverEngineOfs[6]=_V(-1.0730,-2,-3.9);
    HoverEngineOfs[7]=_V( 1.0730,-2,-3.9);
    HoverEngineOfs[8]=_V(-5,-2,.088);
    HoverEngineOfs[9]=_V( 5,-2,0);  //This one is  not shown


---------- Post added 10-07-10 at 07:53 AM ---------- Previous post was 10-06-10 at 08:51 PM ----------

#8 is not lit.
HoverEngineOfs[8]=_V(-5,-2,.088);


But still the % of thrust to the extra one is not the same as the first 4.

no idea why. They are made into the same group
 
Last edited:
Airlock are fixed. I noticed another odd thing in 2010 and 2010p1 on the internal camera. I have it set so you can see above the Eagle so you can align the pods,....

but you don't see the eagle at all when you are in Cockpit view

Code:
SetMeshVisibilityMode (AddMesh (oapiLoadMeshGlobal ("EAGLEBUGGY4B")),  MESHVIS_EXTERNAL | MESHVIS_EXTPASS); //Main ship mesh  | MESHVIS_EXTPASS
SetMeshVisibilityMode (AddMesh (oapiLoadMeshGlobal ("EAGLEVC1")),  MESHVIS_COCKPIT ); //Main ship mesh
SetMeshVisibilityMode (AddMesh (oapiLoadMeshGlobal ("EAGLEVC1")),  MESHVIS_VC ); //Main ship mesh

but using the same code you see the mba except for the always and external
Code:
SetMeshVisibilityMode (AddMesh (oapiLoadMeshGlobal ("NEWMBA1RAIL")), MESHVIS_ALWAYS | MESHVIS_EXTPASS); //Main ship mesh


---------- Post added at 08:06 AM ---------- Previous post was at 05:54 AM ----------

Thanks to Thorton for pointing the fix. Now the camera is in the right direction.

I guess the last issue is why the mesh isn't showing up in internal cockpit view.

I thought would fix that MESHVIS_EXTERNAL | MESHVIS_EXTPASS)

---------- Post added at 09:52 AM ---------- Previous post was at 08:06 AM ----------

Eagle mesh can be seen now I went with MESHVIS_ALWAYS | MESHVIS_EXTPASS

Now just a minor is the gear and the touchdown points.
 
Last edited:
I'm reading this from a bar in Santa Fe, NM. Thanks to Thorton and a hearty well done to you Gattispilot! I'll be back next week.

Ben
 
Ben hope you have a good trip.


Here is Eagle3 in the A-PAD. The crane/hoist move the eagle3 from the hangar area to the launch pad, if lowered. Then you just dettach from the rail and attach to the pad raise the pad add hover and dettach and there you go.

Apad4.jpg


BUT there is an issue. Not sure how to fix it though. So any help will be appreciated.

When the Eagle3 is released from the hoist. It rises up thru the rail and then lands on the ground.

It does it on the moon and on Earth. My guess is it is where the attachment is made?

I have the attachment point of the rail set at the bottom is and the Eagle3 top.
 
Last edited:
Getting closer.
:thumbup:
So we are thinking one big zip of all the files.

Short of unzipping into a new install of Orbiter is there a easy way to make sure all the files are there?
 
Might want to have a new install in another directory and then do a file diff to see what files changes and/or were added.
 
We're finished! Coming to a computer near you: Moonbase Alpha 101027 by Gattispilot with help from Ben Sisko & the Orbiter community. We'll have it up on Orbit Hangar late today.

Thanks to all who have helped us :cheers:
 
Back
Top