C++ Question Codeing Help

Why? I have successfully built vessels without it before. It is not a pure virtual member of VESSEL2.

I usually have trouble with add-ons not implementing it...might be superstition now.
 
Here:
Code:
void salyut6::clbkSetClassCaps (FILEHANDLE cfg)
{
    //...
    CreateThrusterGroup (th_group,2,THGROUP_MAIN);
    //...
}
th_group has not been initialised at this point and holds no valid thruster handles. th_main, on the other hand, holds the thruster handles for the main thrusters (from the previous two lines). Change to this:
Code:
void salyut6::clbkSetClassCaps (FILEHANDLE cfg)
{
    //...
    CreateThrusterGroup ([B][COLOR=Red]th_main[/COLOR][/B],2,THGROUP_MAIN);
    //...
}
 
Here:
Code:
void salyut6::clbkSetClassCaps (FILEHANDLE cfg)
{
    //...
    CreateThrusterGroup (th_group,2,THGROUP_MAIN);
    //...
}
th_group has not been initialised at this point and holds no valid thruster handles. th_main, on the other hand, holds the thruster handles for the main thrusters (from the previous two lines). Change to this:
Code:
void salyut6::clbkSetClassCaps (FILEHANDLE cfg)
{
    //...
    CreateThrusterGroup ([B][COLOR=Red]th_main[/COLOR][/B],2,THGROUP_MAIN);
    //...
}

YESS!!!

ThankYou all for helping me with my first DLL.

It works perfectialy, now i just need to add animations and a whole slew of other features.

I have attached the fixed version.

NOTE: The thrusters are still screwy, killrot just trends toward infinate rotational speed, I think I got some things backwards.
 

Attachments

NOTE: The thrusters are still screwy, killrot just trends toward infinate rotational speed, I think I got some things backwards.
I would say check your RCS thruster groups. Use the rotational RCS keys and run through each one in turn, eg, do you pitch up when you press numpad-2? Orbiter (and other addons) relies on these groups being defined correctly so its auto-pilots can work.
 
I would say check your RCS thruster groups. Use the rotational RCS keys and run through each one in turn, eg, do you pitch up when you press numpad-2? Orbiter (and other addons) relies on these groups being defined correctly so its auto-pilots can work.

Yeah, I am working on fixing that right now, Orbiter is more important then sleep.

Although i am tired.
 
Back
Top