Project Explorer (Babylon 5) Deep Space Vessel

Status
Not open for further replies.

PhantomCruiser

Wanderer
Moderator
Tutorial Publisher
Joined
Jan 23, 2009
Messages
5,607
Reaction score
169
Points
153
Location
Cleveland
I really like what you've done with her so far...
She's still a handfull to navigate. I did the whole trip using IFMD, but doing the burns manually. For some reason IMFD would only do a short burst, then shut the engines down. So, manual burns it was... But I got there!

If you maybe make the texture less cartoony(?), less saturated I guess maybe, this would be a great addition to anyones gigantically big ship collection. It's already pretty good, but I think your tweaking of it will make it go from good to great.

Hope you can get some of it done before your trip, if not. Well, I'm always one who can wait for "good", rather than "good-enough".


Slightly off topic, I just took a DGIV for a spin around Babylon 5 station. I can't say anything about it without someone doing a "that's what she said" post.

 
Last edited:

n122vu

Addon Developer
Addon Developer
Donator
Joined
Nov 1, 2007
Messages
3,196
Reaction score
51
Points
73
Location
KDCY
If you maybe make the texture less cartoony(?), less saturated I guess maybe, this would be a great addition to anyones gigantically big ship collection.

Well, believe it or not, the texture is actually pretty spot-on for the ship in the series in my opinion, with the exception of the internals of the hangar bays (which I will definitely be reworking as a planned future upgrade).

vlcsnap-223846.png

This image is a screen grab from the only regular-series episode she appeared in.

It's already pretty good, but I think your tweaking of it will make it go from good to great.

Hope you can get some of it done before your trip, if not. Well, I'm always one who can wait for "good", rather than "good-enough".
Thanks. Working hard to get her done. Getting there, although I'm hitting a brick wall right out of the gate. Went to compile this evening and got the following errors:
Code:
------ Build started: Project: Explorer 2, Configuration: Release Win32 ------
  Explorer2.cpp
     Creating library ..\..\..\..\..\..\Orbiter2010\Modules\Explorer 2.lib and object ..\..\..\..\..\..\Orbiter2010\Modules\Explorer 2.exp
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL3::clbkGetRadiationForce(union VECTOR3 const &,union VECTOR3 &,union VECTOR3 &)" (__imp_?clbkGetRadiationForce@VESSEL3@@UAEXABTVECTOR3@@AAT2@1@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL3::clbkRenderHUD(int,struct HUDPAINTSPEC const *,void *)" (__imp_?clbkRenderHUD@VESSEL3@@UAEXHPBUHUDPAINTSPEC@@PAX@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall VESSEL3::clbkDrawHUD(int,struct HUDPAINTSPEC const *,class oapi::Sketchpad *)" (__imp_?clbkDrawHUD@VESSEL3@@UAE_NHPBUHUDPAINTSPEC@@PAVSketchpad@oapi@@@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall VESSEL3::clbkLoadPanel2D(int,void *,unsigned long,unsigned long)" (__imp_?clbkLoadPanel2D@VESSEL3@@UAE_NHPAXKK@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual int __thiscall VESSEL3::clbkGeneric(int,int,void *)" (__imp_?clbkGeneric@VESSEL3@@UAEHHHPAX@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall VESSEL3::clbkPanelRedrawEvent(int,int,void *,void *)" (__imp_?clbkPanelRedrawEvent@VESSEL3@@UAE_NHHPAX0@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall VESSEL3::clbkPanelMouseEvent(int,int,int,int,void *)" (__imp_?clbkPanelMouseEvent@VESSEL3@@UAE_NHHHHPAX@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall VESSEL3::VESSEL3(void *,int)" (__imp_??0VESSEL3@@QAE@PAXH@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall VESSEL::AddExhaust(void *,double,double,union VECTOR3 const &,union VECTOR3 const &,void *)const " (__imp_?AddExhaust@VESSEL@@QBEIPAXNNABTVECTOR3@@10@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall VESSEL::SetDockParams(union VECTOR3 const &,union VECTOR3 const &,union VECTOR3 const &)const " (__imp_?SetDockParams@VESSEL@@QBEXABTVECTOR3@@00@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall VESSEL::AddMesh(char const *,union VECTOR3 const *)const " (__imp_?AddMesh@VESSEL@@QBEIPBDPBTVECTOR3@@@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall VESSEL::SetCameraOffset(union VECTOR3 const &)const " (__imp_?SetCameraOffset@VESSEL@@QBEXABTVECTOR3@@@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void * __thiscall VESSEL::CreateThrusterGroup(void * *,int,enum THGROUP_TYPE)const " (__imp_?CreateThrusterGroup@VESSEL@@QBEPAXPAPAXHW4THGROUP_TYPE@@@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void * __thiscall VESSEL::CreateThruster(union VECTOR3 const &,union VECTOR3 const &,double,void *,double,double,double)const " (__imp_?CreateThruster@VESSEL@@QBEPAXABTVECTOR3@@0NPAXNNN@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void * __thiscall VESSEL::CreatePropellantResource(double,double,double)const " (__imp_?CreatePropellantResource@VESSEL@@QBEPAXNNN@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall VESSEL::SetPMI(union VECTOR3 const &)const " (__imp_?SetPMI@VESSEL@@QBEXABTVECTOR3@@@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall VESSEL::SetCrossSections(union VECTOR3 const &)const " (__imp_?SetCrossSections@VESSEL@@QBEXABTVECTOR3@@@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall VESSEL::SetEmptyMass(double)const " (__imp_?SetEmptyMass@VESSEL@@QBEXN@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall VESSEL::SetSize(double)const " (__imp_?SetSize@VESSEL@@QBEXN@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall VESSEL2::clbkVCRedrawEvent(int,int,void *)" (__imp_?clbkVCRedrawEvent@VESSEL2@@UAE_NHHPAX@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall VESSEL2::clbkVCMouseEvent(int,int,union VECTOR3 &)" (__imp_?clbkVCMouseEvent@VESSEL2@@UAE_NHHAATVECTOR3@@@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall VESSEL2::clbkLoadVC(int)" (__imp_?clbkLoadVC@VESSEL2@@UAE_NH@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall VESSEL2::clbkPanelRedrawEvent(int,int,void *)" (__imp_?clbkPanelRedrawEvent@VESSEL2@@UAE_NHHPAX@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall VESSEL2::clbkPanelMouseEvent(int,int,int,int)" (__imp_?clbkPanelMouseEvent@VESSEL2@@UAE_NHHHH@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall VESSEL2::clbkLoadPanel(int)" (__imp_?clbkLoadPanel@VESSEL2@@UAE_NH@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall VESSEL2::clbkLoadGenericCockpit(void)" (__imp_?clbkLoadGenericCockpit@VESSEL2@@UAE_NXZ)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual int __thiscall VESSEL2::clbkConsumeBufferedKey(unsigned long,bool,char *)" (__imp_?clbkConsumeBufferedKey@VESSEL2@@UAEHK_NPAD@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual int __thiscall VESSEL2::clbkConsumeDirectKey(char *)" (__imp_?clbkConsumeDirectKey@VESSEL2@@UAEHPAD@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkAnimate(double)" (__imp_?clbkAnimate@VESSEL2@@UAEXN@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkDockEvent(int,void *)" (__imp_?clbkDockEvent@VESSEL2@@UAEXHPAX@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkNavMode(int,bool)" (__imp_?clbkNavMode@VESSEL2@@UAEXH_N@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkMFDMode(int,int)" (__imp_?clbkMFDMode@VESSEL2@@UAEXHH@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkHUDMode(int)" (__imp_?clbkHUDMode@VESSEL2@@UAEXH@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkADCtrlMode(unsigned long)" (__imp_?clbkADCtrlMode@VESSEL2@@UAEXK@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkRCSMode(int)" (__imp_?clbkRCSMode@VESSEL2@@UAEXH@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkDrawHUD(int,struct HUDPAINTSPEC const *,struct HDC__ *)" (__imp_?clbkDrawHUD@VESSEL2@@UAEXHPBUHUDPAINTSPEC@@PAUHDC__@@@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkVisualDestroyed(void *,int)" (__imp_?clbkVisualDestroyed@VESSEL2@@UAEXPAXH@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkVisualCreated(void *,int)" (__imp_?clbkVisualCreated@VESSEL2@@UAEXPAXH@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall VESSEL2::clbkPlaybackEvent(double,double,char const *,char const *)" (__imp_?clbkPlaybackEvent@VESSEL2@@UAE_NNNPBD0@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkPostStep(double,double,double)" (__imp_?clbkPostStep@VESSEL2@@UAEXNNN@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkPreStep(double,double,double)" (__imp_?clbkPreStep@VESSEL2@@UAEXNNN@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkFocusChanged(bool,void *,void *)" (__imp_?clbkFocusChanged@VESSEL2@@UAEX_NPAX1@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkPostCreation(void)" (__imp_?clbkPostCreation@VESSEL2@@UAEXXZ)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkSetStateEx(void const *)" (__imp_?clbkSetStateEx@VESSEL2@@UAEXPBX@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkLoadStateEx(void *,void *)" (__imp_?clbkLoadStateEx@VESSEL2@@UAEXPAX0@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall VESSEL2::clbkSaveState(void *)" (__imp_?clbkSaveState@VESSEL2@@UAEXPAX@Z)
Explorer2.obj : error LNK2001: unresolved external symbol "void __cdecl dummy(void)" (?dummy@@YAXXZ)
..\..\..\..\..\..\Orbiter2010\Modules\Explorer 2.dll : fatal error LNK1120: 47 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Not really sure where to start. I have this declared as a VESSEL3, so I'm a bit thrown off by the VESSEL2 references in the errors

Here is the source as it stands currently:
Code:
// Explorer.cpp : Defines the exported functions for the DLL application.
//

#define STRICT
#define ORBITER_MODULE
#include "orbitersdk.h"

HINSTANCE g_hDLL;

// Vessel Parameters
const double EXP_SIZE = 3000; // mean radius in meters
const VECTOR3 EXP_CS = {4327830,2655468,29516712}; //Explorer cross section in m^2
const VECTOR3 EXP_PMI = {15.5,22.1,7.7}; //Principal Moments of Inertia, normalized, m^2
const double EXP_EMPTYMASS = 100000000; //empty vessel mass in kg
const double EXP_FUELMASS =     50000000; //max fuel mass in kg
const double EXP_ISP = 500000; //fuel-specific impulse in m/s
const double EXP_MAXMAINTH = 44.3e7; 
const double EXP_RCSTH = 7.5e7; 

const VECTOR3 EXP_DOCK0_POS = {0,-10,1400.8};
const VECTOR3 EXP_DOCK0_DIR = {0,0,1};
const VECTOR3 EXP_DOCK0_ROT = {0,1,0};

const VECTOR3 EXP_DOCK1_POS = {-95,-145,1800.8};
const VECTOR3 EXP_DOCK1_DIR = {0,0,1};
const VECTOR3 EXP_DOCK1_ROT = {0,1,0};

const VECTOR3 EXP_DOCK2_POS = {-95,-100,1800.8};
const VECTOR3 EXP_DOCK2_DIR = {0,0,1};
const VECTOR3 EXP_DOCK2_ROT = {0,1,0};




// Explorer vessel class interface
class Explorer: public VESSEL3 { 
public: 
    Explorer (OBJHANDLE hVessel, int flightmodel);  
    ~Explorer()  ;
    void clbkSetClassCaps(FILEHANDLE cfg); 
}; 

Explorer::Explorer(OBJHANDLE hVessel, int flightmodel)
    :VESSEL3(hVessel, flightmodel)
{
}

Explorer::~Explorer()
{
}




DLLCLBK void InitModule (HINSTANCE hModule)
{
g_hDLL = hModule;



}




void Explorer::clbkSetClassCaps (FILEHANDLE cfg) 
{ 
    THRUSTER_HANDLE th_main, th_rcs[14], th_group[4];

    SetSize (EXP_SIZE);
    SetEmptyMass (EXP_EMPTYMASS);
    SetPMI (EXP_PMI);
    SetCrossSections (EXP_CS);

    SetDockParams (EXP_DOCK0_POS, EXP_DOCK0_DIR, EXP_DOCK0_ROT);
    SetDockParams (EXP_DOCK1_POS, EXP_DOCK1_DIR, EXP_DOCK1_ROT);
    SetDockParams (EXP_DOCK2_POS, EXP_DOCK2_DIR, EXP_DOCK2_ROT);

    PROPELLANT_HANDLE ph_main = CreatePropellantResource(EXP_FUELMASS);

    //main engine definition and exhaust locations
    th_main = CreateThruster(_V(0,0,-2268.6), _V(0,0,1), EXP_MAXMAINTH, ph_main, EXP_ISP);
    CreateThrusterGroup(&th_main, 8, THGROUP_MAIN);
    AddExhaust(th_main, 200, 61, _V(-117.6,0,-2268.6), _V(0,0,-1));
    AddExhaust(th_main, 200, 61, _V(117.6,0,-2268.6), _V(0,0,-1));
    AddExhaust(th_main, 150, 38, _V(-82,-138.3,-2212.4), _V(0,0,-1));
    AddExhaust(th_main, 150, 38, _V(82,-138.3,-2212.4), _V(0,0,-1));
    AddExhaust(th_main, 150, 38, _V(82,138.3,-2212.4), _V(0,0,-1));
    AddExhaust(th_main, 150, 38, _V(-82,138.3,-2212.4), _V(0,0,-1));
    AddExhaust(th_main, 150, 38, _V(-255,0,-2213.5), _V(0,0,-1));
    AddExhaust(th_main, 150, 38, _V(255,0,-2213.5), _V(0,0,-1));

    //RCS Engine Definitions
    // **Port-side Aft**
    th_rcs[0] = CreateThruster(_V(-310, 0, -2017.5),_V(1,0,0), EXP_RCSTH, ph_main, EXP_ISP);

    // **Starboard-side Aft**
    th_rcs[1] = CreateThruster(_V(310, 0, -2017.5),_V(-1,0,0), EXP_RCSTH, ph_main, EXP_ISP);
    
    // **Top Aft**
    th_rcs[2] = CreateThruster(_V(-85.28, 190.9, -2001.8), _V(0,-1,0), EXP_RCSTH, ph_main, EXP_ISP);
    th_rcs[3] = CreateThruster(_V(85.28, 190.9, -2001.8), _V(0,-1,0), EXP_RCSTH, ph_main, EXP_ISP);
    
    // **Bottom Aft**
    th_rcs[4] = CreateThruster(_V(-85.28, -190.9, -2001.8), _V(0,1,0), EXP_RCSTH, ph_main, EXP_ISP);
    th_rcs[5] = CreateThruster(_V(85.28, -190.9, -2001.8), _V(0,1,0), EXP_RCSTH, ph_main, EXP_ISP);

    // **Port-side Front**
    th_rcs[6] = CreateThruster(_V(-305.97,0,1847.05), _V(1,0,0), EXP_RCSTH, ph_main, EXP_ISP);

    // **Starboard-side Front**
    th_rcs[7] = CreateThruster(_V(305.97,0,1847.05), _V(-1,0,0), EXP_RCSTH, ph_main, EXP_ISP);

    // **Bow, Topside**
    th_rcs[8] = CreateThruster(_V(85.28,101.08,1874.62), _V(0,-1,0), EXP_RCSTH, ph_main, EXP_ISP);
    th_rcs[9] = CreateThruster(_V(-85.28,101.08,1874.62), _V(0,-1,0), EXP_RCSTH, ph_main, EXP_ISP);

    // **Bow, Bottom**
    th_rcs[10] = CreateThruster(_V(85.28,-101.08,1874.62), _V(0,1,0), EXP_RCSTH, ph_main, EXP_ISP);
    th_rcs[11] = CreateThruster(_V(-85.28,-101.08,1874.62), _V(0,1,0), EXP_RCSTH, ph_main, EXP_ISP);

    // **forward translation thruster (located on stern of ship)
    th_rcs[12] = CreateThruster(_V(0,0,-2300), _V(0,0,1), EXP_RCSTH, ph_main, EXP_ISP);

    // **reverse translation thruster (located on bow of ship)
    th_rcs[13] = CreateThruster(_V(0,0,2300), _V(0,0,-1), EXP_RCSTH, ph_main, EXP_ISP);

//Define Thruster Groups for Attitude Control

    //**Pitch Up**
    th_group[0] = th_rcs[2];
    th_group[1] = th_rcs[3];
    th_group[2] = th_rcs[10];
    th_group[3] = th_rcs[11];
    CreateThrusterGroup (th_group, 4, THGROUP_ATT_PITCHUP);

    //**Pitch Down**
    th_group[0] = th_rcs[4];
    th_group[1] = th_rcs[5];
    th_group[2] = th_rcs[8];
    th_group[3] = th_rcs[9];
    CreateThrusterGroup (th_group, 4, THGROUP_ATT_PITCHDOWN);

    //**Bank Left**
    th_group[0] = th_rcs[2];
    th_group[1] = th_rcs[9];
    th_group[2] = th_rcs[10];
    th_group[3] = th_rcs[5];
    CreateThrusterGroup (th_group, 4, THGROUP_ATT_BANKLEFT);

    //**Bank Right**
    th_group[0] = th_rcs[3];
    th_group[1] = th_rcs[8];
    th_group[2] = th_rcs[4];
    th_group[3] = th_rcs[11];
        CreateThrusterGroup (th_group, 4, THGROUP_ATT_BANKRIGHT);

    //**Attitude Up**
    th_group[0] = th_rcs[4];
    th_group[1] = th_rcs[5];
    th_group[2] = th_rcs[10];
    th_group[3] = th_rcs[11];
    CreateThrusterGroup (th_group, 4, THGROUP_ATT_UP);

    //**Attitude Down**
    th_group[0] = th_rcs[2];
    th_group[1] = th_rcs[3];
    th_group[2] = th_rcs[8];
    th_group[3] = th_rcs[9];
    CreateThrusterGroup (th_group, 4, THGROUP_ATT_DOWN);

    //**Yaw Left**
    th_group[0] = th_rcs[7];
    th_group[2] = th_rcs[0];
    CreateThrusterGroup (th_group, 2, THGROUP_ATT_YAWLEFT);

    //**Yaw Right**
    th_group[0] = th_rcs[6];
    th_group[1] = th_rcs[1];
    CreateThrusterGroup (th_group, 2, THGROUP_ATT_YAWRIGHT);

    //**Attitude Left**
    th_group[0] = th_rcs[1];
    th_group[1] = th_rcs[7];
    CreateThrusterGroup (th_group, 2, THGROUP_ATT_LEFT);

    //**Attitude Right**
    th_group[0] = th_rcs[0];
    th_group[1] = th_rcs[6];
    CreateThrusterGroup (th_group, 2, THGROUP_ATT_RIGHT);

    //**Attitude Forward**
    CreateThrusterGroup (th_rcs+12, 1, THGROUP_ATT_FORWARD);
    CreateThrusterGroup (th_rcs+13, 1, THGROUP_ATT_BACK);

    //**Camera Offset**
    SetCameraOffset (_V(0,101.08,1874.62));

    //**Add the mesh**
    AddMesh("Explorer"); 


}







DLLCLBK VESSEL *ovcInit (OBJHANDLE hvessel, int flightmodel) 
{ 
    return new Explorer (hvessel, flightmodel);
}



DLLCLBK void ovcExit (VESSEL *vessel) 
{ 
    if (vessel) delete (Explorer*)vessel; 
}

Thoughts? Any input is GREATLY appreciated...
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,898
Reaction score
2,152
Points
203
Location
between the planets
Not really sure where to start. I have this declared as a VESSEL3, so I'm a bit thrown off by the VESSEL2 references in the errors

VESSEL3 is inherited from VESSEL2, which in turn is inherited from VESSEL. That means any function call you make on a VESSEL3 that was declared in the VESSEL2 class will automatically be redirected there, so it isn't surprising at all.

The error log looks pretty much like you failed to specify orbiter.lib in your projects properties. Right click on your project in the solution explorer (usually to the left of the screen), select properties, select the linker tab, then general, and add your orbitersdk/lib folder to the line "additional library directories", that should take care of the LNK2001's. They can be really annoying if you don't know exactly what library you have lacking, was a major pain for me in the beginning as well.

In general, whenever you have an LNK showing up, it doesn't mean that there's something wrong with your code per se. Either you have missing libraries (i.e. you need to change something in the project setup, not in the code), or you are trying to link to them from several entry points at once without proper specification (which shouldn't be the case for your project, since it has only one thread...)
 
Last edited:

PhantomCruiser

Wanderer
Moderator
Tutorial Publisher
Joined
Jan 23, 2009
Messages
5,607
Reaction score
169
Points
153
Location
Cleveland
Well, believe it or not, the texture is actually pretty spot-on...

Oh yes, I was just thinking they look a little glossy, maybe that's a poor explanation, but I figured the finish should be more like a satin or matte finish instead of a high gloss (if that makes any sense).
 

n122vu

Addon Developer
Addon Developer
Donator
Joined
Nov 1, 2007
Messages
3,196
Reaction score
51
Points
73
Location
KDCY
VESSEL3 is inherited from VESSEL2, which in turn is inherited from VESSEL. That means any function call you make on a VESSEL3 that was declared in the VESSEL2 class will automatically be redirected there, so it isn't surprising at all.

The error log looks pretty much like you failed to specify orbiter.lib in your projects properties. Right click on your project in the solution explorer (usually to the left of the screen), select properties, select the linker tab, then general, and add your orbitersdk/lib folder to the line "additional library directories", that should take care of the LNK2001's. They can be really annoying if you don't know exactly what library you have lacking, was a major pain for me in the beginning as well.

In general, whenever you have an LNK showing up, it doesn't mean that there's something wrong with your code per se. Either you have missing libraries (i.e. you need to change something in the project setup, not in the code), or you are trying to link to them from several entry points at once without proper specification (which shouldn't be the case for your project, since it has only one thread...)

Already checked that. orbitersdk/lib is already added in the additional libraries. Any other suggestions?
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,681
Reaction score
2,407
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
Already checked that. orbitersdk/lib is already added in the additional libraries. Any other suggestions?

Not just orbitersdk.lib, but also orbiter.lib.

Also you should remember that you need to add more than just the folder to the project, you also need to specify explicitly, which libraries to be used (Really starts to make sense when you have debug and release versions of libraries)
 

orb

New member
News Reporter
Joined
Oct 30, 2009
Messages
14,020
Reaction score
4
Points
0
Already checked that. orbitersdk/lib is already added in the additional libraries. Any other suggestions?

I can suggest you to use as inherited property sheets "Orbitersdk/resources/Orbiter vessel.vsprops", and additionally "Orbitersdk/resources/Orbiter debug.vsprops" for debug. And of course setting a path to Orbiter in "Orbitersdk/resources/orbiterroot.vsprops" for "OrbiterDir" user macro.

This simplifies creating projects, as all paths and standard Orbiter libraries and includes are set by those inherited property sheets, and you don't need to add them manually.
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,898
Reaction score
2,152
Points
203
Location
between the planets
You know, I just took her out for a little spin, and there's something weird going on here... The center of mass seemed to be disturbed too strongly by the docked small vessels. Once I undocked them, the Explorer suddenly maneuvered like a star fury. I checked the ini file, the mass seems to be ok with 100'000 tons and 50'000 tons of fuel, so I assume that the problem is that the support vessels are docked so far astern and the rcs being located so close to the center. Still, it seems strange that the mass of those two vessels should disturb the center of mass so much when accelerating...
 

Izack

Non sequitur
Addon Developer
Joined
Feb 4, 2010
Messages
6,665
Reaction score
13
Points
113
Location
The Wilderness, N.B.
That is a known issue with Spacecraft3. The [ame="http://orbithangar.com/searchid.php?ID=4832"]LDDSV[/ame] had the same problem with docked vessels. I believe the author got around it by using an invisible docked vessel with powerful RCS thrusters on one end.
 

n122vu

Addon Developer
Addon Developer
Donator
Joined
Nov 1, 2007
Messages
3,196
Reaction score
51
Points
73
Location
KDCY
Not just orbitersdk.lib, but also orbiter.lib.

Also you should remember that you need to add more than just the folder to the project, you also need to specify explicitly, which libraries to be used (Really starts to make sense when you have debug and release versions of libraries)

Is this different when starting with a blank project? I normally set only the folders, as outlined by the compiler setup instructions on orbiterwiki, and am able to compile the included samples, even against the 2010 sdk, and with VS2010.

From the wiki:

SDKInstall5.png


Again, ShuttlePB and DG both compile just fine with the same setup. I'll go back and double-check when I get home this evening to make sure I didn't miss a step.

Thanks,
n122vu
 

Wishbone

Clueless developer
Addon Developer
Joined
Sep 12, 2010
Messages
2,421
Reaction score
1
Points
0
Location
Moscow
This missing step is Linker/Input page, the top line stating AFAIR
Code:
Orbiter.lib Orbitersdk.lib
 
Last edited:

orb

New member
News Reporter
Joined
Oct 30, 2009
Messages
14,020
Reaction score
4
Points
0
Is this different when starting with a blank project? I normally set only the folders, as outlined by the compiler setup instructions on orbiterwiki, and am able to compile the included samples, even against the 2010 sdk, and with VS2010.
The method presented on the wiki isn't the best way to set up new projects. This should be updated for Orbiter 2010, for which this process is much simpler with using just files that are already available in the Orbitersdk (and even they can be used with Orbiter 2006 SDK).

From the wiki:

SDKInstall5.png
Paths to "Microsoft Platform SDK" directories should be already set via INCLUDE and LIB system environment variables.

Paths to Orbitersdk include and lib, and additional dependencies, as also Output Path/File can be set by property sheets I've written about in my earlier post.

Try setting inherited property sheets like I instructed earlier, or if you want to do all by hand, add orbitersdk.lib and orbiter.lib to "Additional dependencies".
 

n122vu

Addon Developer
Addon Developer
Donator
Joined
Nov 1, 2007
Messages
3,196
Reaction score
51
Points
73
Location
KDCY
This missing step is Linker/Input page, the top line stating AFAIR
Code:
Orbiter.lib Orbitersdk.lib

Ok. I see that is populated by default when I go into the properties of the example projects (on my work PC over lunch). I bet that's where I've missed it. I now understand what Urwumpe was referring to. Will correct that this evening when I am at home.

Thanks guys.
n122vu

**EDIT** I'll also try it with the inherited property sheets, as orb has suggested. Thanks again guys.

---------- Post added at 02:35 PM ---------- Previous post was at 12:30 PM ----------

I can suggest you to use as inherited property sheets "Orbitersdk/resources/Orbiter vessel.vsprops", and additionally "Orbitersdk/resources/Orbiter debug.vsprops" for debug. And of course setting a path to Orbiter in "Orbitersdk/resources/orbiterroot.vsprops" for "OrbiterDir" user macro.

This simplifies creating projects, as all paths and standard Orbiter libraries and includes are set by those inherited property sheets, and you don't need to add them manually.


Ok, I created a new project, and added these as you suggested. However, the only properties that ended up being set were the additional dependencies. I still had to add the include and lib directories manually.

Now down to the following errors:

Code:
Error    5    error LNK2001: unresolved external symbol __DllMainCRTStartup@12    c:\Users\bcrane\documents\visual studio 2010\Projects\Explorer2\Explorer2\LINK    Explorer2
Error    2    error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)    c:\Users\bcrane\documents\visual studio 2010\Projects\Explorer2\Explorer2\Explorer2.obj    Explorer2
Error    4    error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)    c:\Users\bcrane\documents\visual studio 2010\Projects\Explorer2\Explorer2\Explorer2.obj    Explorer2
Error    3    error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)    c:\Users\bcrane\documents\visual studio 2010\Projects\Explorer2\Explorer2\Explorer2.obj    Explorer2
Error    6    error LNK1120: 4 unresolved externals    c:\source\orbiter\Modules\Explorer2.dll    Explorer2
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,898
Reaction score
2,152
Points
203
Location
between the planets
another lib is missing, though I can't tell you from a glance which it is. Probably orbiter unrelated...?

I usually just take a sample project, clean it out and start to put my code in to avoid tinkering with the project setup too much.
 

n122vu

Addon Developer
Addon Developer
Donator
Joined
Nov 1, 2007
Messages
3,196
Reaction score
51
Points
73
Location
KDCY
Figured out the remaining errors. I removed msvcirt.lib and msvcrt.lib from the Ignore Specific Default Libraries section.

Successfully compiled with 0 errors, 0 warnings.

Created a config file for the class and a scenario containing the Explorer. Getting a CTD on load with no trace of the problem in orbiter.log

Code:
**** Orbiter.log
Build Aug 30 2010 [v.100830]
Timer precision: 2.79365e-007 sec
Found 0 joystick(s)
Devices enumerated: 6
Devices accepted: 5
==> RGB Emulation
==> Direct3D HAL
==> Direct3D T&L HAL
==> Direct3D HAL (ATI MOBILITY RADEON 7500  )
==> Direct3D T&L HAL (ATI MOBILITY RADEON 7500  )
Module AtlantisConfig.dll .... [Build 100830, API 100830]
Module AtmConfig.dll ......... [Build 100830, API 100830]
Module DGConfigurator.dll .... [Build 100830, API 100830]
Module OrbiterSound.dll ...... [Build ******, API 060425]
---------------------------------------------------------------
>>> WARNING: Obsolete API function used: oapiRegisterMFDMode
At least one active module is accessing an obsolete interface function.
Addons which rely on obsolete functions may not be compatible with
future versions of Orbiter.
---------------------------------------------------------------
Module LuaConsole.dll ........ [Build 100830, API 100830]
Module LuaMFD.dll ............ [Build 100830, API 100830]
Module ExtMFD.dll ............ [Build 100830, API 100830]
Module CustomMFD.dll ......... [Build 100830, API 100830]
Module ScnEditor.dll ......... [Build 100830, API 100830]
Module ScriptMFD.dll ......... [Build 100830, API 100830]
Module transx.dll ............ [Build 100824, API 100823]
Module InterMFD55.dll ........ [Build 100826, API 100704]
Module Rcontrol.dll .......... [Build 100830, API 100830]
Module LaunchMFD.dll ......... [Build 100816, API 100606]
Module AttitudeMFD.dll ....... [Build ******, API 060425]

**** Creating simulation session
DirectDraw interface OK
Direct3D interface OK
Graphics: Viewport: Fullscreen 1024 x 768 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 8816 records from star database
Module Sun.dll ............... [Build 100830, API 100830]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
Module Mercury.dll ........... [Build 100830, API 100830]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
Module Venus.dll ............. [Build 100830, API 100830]
Module VenusAtm2006.dll ...... [Build 100830, API 100830]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
Module Earth.dll ............. [Build 100830, API 100830]
Module EarthAtm2006.dll ...... [Build 100830, API 100830]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
Module Moon.dll .............. [Build 100830, API 100830]
ELP82: Precision 1e-005, Terms 116/829
Module Mars.dll .............. [Build 100830, API 100830]
Module MarsAtm2006.dll ....... [Build 100830, API 100830]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
Module Phobos.dll ............ [Build ******, API 060425]
Module Deimos.dll ............ [Build ******, API 060425]
Module Galsat.dll ............ [Build 100217, API 100215]
Module Jupiter.dll ........... [Build 100830, API 100830]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
Module Io.dll ................ [Build 100217, API 100215]
Module Europa.dll ............ [Build 100217, API 100215]
Module Ganymede.dll .......... [Build 100217, API 100215]
Module Callisto.dll .......... [Build 100217, API 100215]
Module Satsat.dll ............ [Build 100215, API 100212]
Module Saturn.dll ............ [Build 100830, API 100830]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
Module Mimas.dll ............. [Build 100215, API 100212]
SATSAT Mimas: Terms 113
Module Enceladus.dll ......... [Build 100215, API 100212]
SATSAT Enceladus: Terms 33
Module Tethys.dll ............ [Build 100215, API 100212]
SATSAT Tethys: Terms 101
Module Dione.dll ............. [Build 100215, API 100212]
SATSAT Dione: Terms 59
Module Rhea.dll .............. [Build 100215, API 100212]
SATSAT Rhea: Terms 68
Module Titan.dll ............. [Build 100215, API 100212]
SATSAT Titan: Terms 100
Module Iapetus.dll ........... [Build 100215, API 100212]
SATSAT Iapetus: Terms 605
Module Uranus.dll ............ [Build 100830, API 100830]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
Module Miranda.dll ........... [Build ******, API 060425]
Module Ariel.dll ............. [Build ******, API 060425]
Module Umbriel.dll ........... [Build ******, API 060425]
Module Titania.dll ........... [Build ******, API 060425]
Module Oberon.dll ............ [Build ******, API 060425]
Module Neptune.dll ........... [Build 100830, API 100830]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
Finished initialising world
Module ShuttlePB.dll ......... [Build 100830, API 100830]
Module DeltaGlider.dll ....... [Build 100830, API 100830]
Module LuaInline.dll ......... [Build 100830, API 100830]
Module ShuttleA.dll .......... [Build 100830, API 100830]
Finished initialising status
Finished initialising camera
Finished initialising panels
Finished setting up render state
---------------------------------------------------------------
>>> WARNING: Obsolete API function used: oapiGetStationCount
At least one active module is accessing an obsolete interface function.
Addons which rely on obsolete functions may not be compatible with
future versions of Orbiter.
---------------------------------------------------------------
**** Respawning Orbiter process


**** Orbiter.log
Build Aug 30 2010 [v.100830]
Timer precision: 2.79365e-007 sec
Found 0 joystick(s)
Devices enumerated: 6
Devices accepted: 5
==> RGB Emulation
==> Direct3D HAL
==> Direct3D T&L HAL
==> Direct3D HAL (ATI MOBILITY RADEON 7500  )
==> Direct3D T&L HAL (ATI MOBILITY RADEON 7500  )
Module AtlantisConfig.dll .... [Build 100830, API 100830]
Module AtmConfig.dll ......... [Build 100830, API 100830]
Module DGConfigurator.dll .... [Build 100830, API 100830]
Module OrbiterSound.dll ...... [Build ******, API 060425]
---------------------------------------------------------------
>>> WARNING: Obsolete API function used: oapiRegisterMFDMode
At least one active module is accessing an obsolete interface function.
Addons which rely on obsolete functions may not be compatible with
future versions of Orbiter.
---------------------------------------------------------------
Module LuaConsole.dll ........ [Build 100830, API 100830]
Module LuaMFD.dll ............ [Build 100830, API 100830]
Module ExtMFD.dll ............ [Build 100830, API 100830]
Module CustomMFD.dll ......... [Build 100830, API 100830]
Module ScnEditor.dll ......... [Build 100830, API 100830]
Module ScriptMFD.dll ......... [Build 100830, API 100830]
Module transx.dll ............ [Build 100824, API 100823]
Module InterMFD55.dll ........ [Build 100826, API 100704]
Module Rcontrol.dll .......... [Build 100830, API 100830]
Module LaunchMFD.dll ......... [Build 100816, API 100606]
Module AttitudeMFD.dll ....... [Build ******, API 060425]

**** Creating simulation session
DirectDraw interface OK
Direct3D interface OK
Graphics: Viewport: Window 794 x 575 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 8816 records from star database
Module Sun.dll ............... [Build 100830, API 100830]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
Module Mercury.dll ........... [Build 100830, API 100830]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
Module Venus.dll ............. [Build 100830, API 100830]
Module VenusAtm2006.dll ...... [Build 100830, API 100830]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
Module Earth.dll ............. [Build 100830, API 100830]
Module EarthAtm2006.dll ...... [Build 100830, API 100830]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
Module Moon.dll .............. [Build 100830, API 100830]
ELP82: Precision 1e-005, Terms 116/829
Module Mars.dll .............. [Build 100830, API 100830]
Module MarsAtm2006.dll ....... [Build 100830, API 100830]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
Module Phobos.dll ............ [Build ******, API 060425]
Module Deimos.dll ............ [Build ******, API 060425]
Module Galsat.dll ............ [Build 100217, API 100215]
Module Jupiter.dll ........... [Build 100830, API 100830]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
Module Io.dll ................ [Build 100217, API 100215]
Module Europa.dll ............ [Build 100217, API 100215]
Module Ganymede.dll .......... [Build 100217, API 100215]
Module Callisto.dll .......... [Build 100217, API 100215]
Module Satsat.dll ............ [Build 100215, API 100212]
Module Saturn.dll ............ [Build 100830, API 100830]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
Module Mimas.dll ............. [Build 100215, API 100212]
SATSAT Mimas: Terms 113
Module Enceladus.dll ......... [Build 100215, API 100212]
SATSAT Enceladus: Terms 33
Module Tethys.dll ............ [Build 100215, API 100212]
SATSAT Tethys: Terms 101
Module Dione.dll ............. [Build 100215, API 100212]
SATSAT Dione: Terms 59
Module Rhea.dll .............. [Build 100215, API 100212]
SATSAT Rhea: Terms 68
Module Titan.dll ............. [Build 100215, API 100212]
SATSAT Titan: Terms 100
Module Iapetus.dll ........... [Build 100215, API 100212]
SATSAT Iapetus: Terms 605
Module Uranus.dll ............ [Build 100830, API 100830]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
Module Miranda.dll ........... [Build ******, API 060425]
Module Ariel.dll ............. [Build ******, API 060425]
Module Umbriel.dll ........... [Build ******, API 060425]
Module Titania.dll ........... [Build ******, API 060425]
Module Oberon.dll ............ [Build ******, API 060425]
Module Neptune.dll ........... [Build 100830, API 100830]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
Finished initialising world
Module ShuttlePB.dll ......... [Build 100830, API 100830]
Module DeltaGlider.dll ....... [Build 100830, API 100830]
Module LuaInline.dll ......... [Build 100830, API 100830]
Module ShuttleA.dll .......... [Build 100830, API 100830]
Finished initialising status
Finished initialising camera
Finished initialising panels
Finished setting up render state
---------------------------------------------------------------
>>> WARNING: Obsolete API function used: oapiGetStationCount
At least one active module is accessing an obsolete interface function.
Addons which rely on obsolete functions may not be compatible with
future versions of Orbiter.
---------------------------------------------------------------
**** Respawning Orbiter process


**** Orbiter.log
Build Aug 30 2010 [v.100830]
Timer precision: 2.79365e-007 sec
Found 0 joystick(s)
Devices enumerated: 6
Devices accepted: 5
==> RGB Emulation
==> Direct3D HAL
==> Direct3D T&L HAL
==> Direct3D HAL (ATI MOBILITY RADEON 7500  )
==> Direct3D T&L HAL (ATI MOBILITY RADEON 7500  )
Module AtlantisConfig.dll .... [Build 100830, API 100830]
Module AtmConfig.dll ......... [Build 100830, API 100830]
Module DGConfigurator.dll .... [Build 100830, API 100830]
Module OrbiterSound.dll ...... [Build ******, API 060425]
---------------------------------------------------------------
>>> WARNING: Obsolete API function used: oapiRegisterMFDMode
At least one active module is accessing an obsolete interface function.
Addons which rely on obsolete functions may not be compatible with
future versions of Orbiter.
---------------------------------------------------------------
Module LuaConsole.dll ........ [Build 100830, API 100830]
Module LuaMFD.dll ............ [Build 100830, API 100830]
Module ExtMFD.dll ............ [Build 100830, API 100830]
Module CustomMFD.dll ......... [Build 100830, API 100830]
Module ScnEditor.dll ......... [Build 100830, API 100830]
Module ScriptMFD.dll ......... [Build 100830, API 100830]
Module transx.dll ............ [Build 100824, API 100823]
Module InterMFD55.dll ........ [Build 100826, API 100704]
Module Rcontrol.dll .......... [Build 100830, API 100830]
Module LaunchMFD.dll ......... [Build 100816, API 100606]
Module AttitudeMFD.dll ....... [Build ******, API 060425]

**** Creating simulation session
DirectDraw interface OK
Direct3D interface OK
Graphics: Viewport: Window 794 x 575 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 8816 records from star database
Module Sun.dll ............... [Build 100830, API 100830]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
Module Mercury.dll ........... [Build 100830, API 100830]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
Module Venus.dll ............. [Build 100830, API 100830]
Module VenusAtm2006.dll ...... [Build 100830, API 100830]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
Module Earth.dll ............. [Build 100830, API 100830]
Module EarthAtm2006.dll ...... [Build 100830, API 100830]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
Module Moon.dll .............. [Build 100830, API 100830]
ELP82: Precision 1e-005, Terms 116/829
Module Mars.dll .............. [Build 100830, API 100830]
Module MarsAtm2006.dll ....... [Build 100830, API 100830]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
Module Phobos.dll ............ [Build ******, API 060425]
Module Deimos.dll ............ [Build ******, API 060425]
Module Galsat.dll ............ [Build 100217, API 100215]
Module Jupiter.dll ........... [Build 100830, API 100830]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
Module Io.dll ................ [Build 100217, API 100215]
Module Europa.dll ............ [Build 100217, API 100215]
Module Ganymede.dll .......... [Build 100217, API 100215]
Module Callisto.dll .......... [Build 100217, API 100215]
Module Satsat.dll ............ [Build 100215, API 100212]
Module Saturn.dll ............ [Build 100830, API 100830]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
Module Mimas.dll ............. [Build 100215, API 100212]
SATSAT Mimas: Terms 113
Module Enceladus.dll ......... [Build 100215, API 100212]
SATSAT Enceladus: Terms 33
Module Tethys.dll ............ [Build 100215, API 100212]
SATSAT Tethys: Terms 101
Module Dione.dll ............. [Build 100215, API 100212]
SATSAT Dione: Terms 59
Module Rhea.dll .............. [Build 100215, API 100212]
SATSAT Rhea: Terms 68
Module Titan.dll ............. [Build 100215, API 100212]
SATSAT Titan: Terms 100
Module Iapetus.dll ........... [Build 100215, API 100212]
SATSAT Iapetus: Terms 605
Module Uranus.dll ............ [Build 100830, API 100830]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
Module Miranda.dll ........... [Build ******, API 060425]
Module Ariel.dll ............. [Build ******, API 060425]
Module Umbriel.dll ........... [Build ******, API 060425]
Module Titania.dll ........... [Build ******, API 060425]
Module Oberon.dll ............ [Build ******, API 060425]
Module Neptune.dll ........... [Build 100830, API 100830]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
Finished initialising world
Module Explorer2.dll ......... [Build 101101, API 100830]

Running in the VS2010 debugger produces the following output:
Code:
'orbiter.exe': Loaded 'C:\Orbiter2010\orbiter.exe', Binary was not built with debug information.
'orbiter.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\dinput.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\msvcp80.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\msvcr80.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\shimeng.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', Cannot find or open the PDB file
'orbiter.exe': Unloaded 'C:\WINDOWS\system32\shimeng.dll'
'orbiter.exe': Loaded 'C:\Documents and Settings\All Users\Application Data\Real\RealPlayer\BrowserRecordPlugin\Chrome\Hook\rpchromebrowserrecordhelper.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\msvcp71.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\msvcr71.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\msctf.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\version.dll', Cannot find or open the PDB file
'orbiter.exe': Unloaded 'C:\WINDOWS\system32\version.dll'
'orbiter.exe': Loaded 'C:\WINDOWS\system32\apphelp.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\msctfime.ime', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\mslbui.dll', Cannot find or open the PDB file
'orbiter.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', Cannot find or open the PDB file
The program '[1632] orbiter.exe: Native' has exited with code 0 (0x0).

Digging through it to see if I can find the cause. As always, any input is appreciated.

Thanks,
n122vu
 

Wishbone

Clueless developer
Addon Developer
Joined
Sep 12, 2010
Messages
2,421
Reaction score
1
Points
0
Location
Moscow
As it says, you have to build with debugging options on to be able to debug. The easiest way to get some feedback is using IIRC oapiWriteLog at various points to find out the line that fails.
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,681
Reaction score
2,407
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
As it says, you have to build with debugging options on to be able to debug. The easiest way to get some feedback is using IIRC oapiWriteLog at various points to find out the line that fails.

And

Code:
sprintf_s(oapiDebugString(), 255, "output string", [variables]);
 

n122vu

Addon Developer
Addon Developer
Donator
Joined
Nov 1, 2007
Messages
3,196
Reaction score
51
Points
73
Location
KDCY
Ok, got that one worked out. Was kicking out at the thruster group definition. I had defined the thruster group for the main engines improperly. Fixed that, now it is terminating, saying there is no vessel class configuration file defined for:
but it doesn't list a vessel name. Then references the Vessel::OpenConfigFile method in vessel.cpp.
Code:
**** Orbiter.log
Build Aug 30 2010 [v.100830]
Timer precision: 2.79365e-007 sec
Found 0 joystick(s)
Devices enumerated: 6
Devices accepted: 5
==> RGB Emulation
==> Direct3D HAL
==> Direct3D T&L HAL
==> Direct3D HAL (ATI MOBILITY RADEON 7500  )
==> Direct3D T&L HAL (ATI MOBILITY RADEON 7500  )
Module AtlantisConfig.dll .... [Build 100830, API 100830]
Module AtmConfig.dll ......... [Build 100830, API 100830]
Module DGConfigurator.dll .... [Build 100830, API 100830]
Module OrbiterSound.dll ...... [Build ******, API 060425]
---------------------------------------------------------------
>>> WARNING: Obsolete API function used: oapiRegisterMFDMode
At least one active module is accessing an obsolete interface function.
Addons which rely on obsolete functions may not be compatible with
future versions of Orbiter.
---------------------------------------------------------------
Module LuaConsole.dll ........ [Build 100830, API 100830]
Module LuaMFD.dll ............ [Build 100830, API 100830]
Module ExtMFD.dll ............ [Build 100830, API 100830]
Module CustomMFD.dll ......... [Build 100830, API 100830]
Module ScnEditor.dll ......... [Build 100830, API 100830]
Module ScriptMFD.dll ......... [Build 100830, API 100830]
Module transx.dll ............ [Build 100824, API 100823]
Module InterMFD55.dll ........ [Build 100826, API 100704]
Module Rcontrol.dll .......... [Build 100830, API 100830]
Module LaunchMFD.dll ......... [Build 100816, API 100606]
Module AttitudeMFD.dll ....... [Build ******, API 060425]

**** Creating simulation session
DirectDraw interface OK
Direct3D interface OK
Graphics: Viewport: Window 794 x 575 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 8816 records from star database
Module Sun.dll ............... [Build 100830, API 100830]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
Module Mercury.dll ........... [Build 100830, API 100830]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
Module Venus.dll ............. [Build 100830, API 100830]
Module VenusAtm2006.dll ...... [Build 100830, API 100830]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
Module Earth.dll ............. [Build 100830, API 100830]
Module EarthAtm2006.dll ...... [Build 100830, API 100830]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
Module Moon.dll .............. [Build 100830, API 100830]
ELP82: Precision 1e-005, Terms 116/829
Module Mars.dll .............. [Build 100830, API 100830]
Module MarsAtm2006.dll ....... [Build 100830, API 100830]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
Module Phobos.dll ............ [Build ******, API 060425]
Module Deimos.dll ............ [Build ******, API 060425]
Module Galsat.dll ............ [Build 100217, API 100215]
Module Jupiter.dll ........... [Build 100830, API 100830]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
Module Io.dll ................ [Build 100217, API 100215]
Module Europa.dll ............ [Build 100217, API 100215]
Module Ganymede.dll .......... [Build 100217, API 100215]
Module Callisto.dll .......... [Build 100217, API 100215]
Module Satsat.dll ............ [Build 100215, API 100212]
Module Saturn.dll ............ [Build 100830, API 100830]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
Module Mimas.dll ............. [Build 100215, API 100212]
SATSAT Mimas: Terms 113
Module Enceladus.dll ......... [Build 100215, API 100212]
SATSAT Enceladus: Terms 33
Module Tethys.dll ............ [Build 100215, API 100212]
SATSAT Tethys: Terms 101
Module Dione.dll ............. [Build 100215, API 100212]
SATSAT Dione: Terms 59
Module Rhea.dll .............. [Build 100215, API 100212]
SATSAT Rhea: Terms 68
Module Titan.dll ............. [Build 100215, API 100212]
SATSAT Titan: Terms 100
Module Iapetus.dll ........... [Build 100215, API 100212]
SATSAT Iapetus: Terms 605
Module Uranus.dll ............ [Build 100830, API 100830]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
Module Miranda.dll ........... [Build ******, API 060425]
Module Ariel.dll ............. [Build ******, API 060425]
Module Umbriel.dll ........... [Build ******, API 060425]
Module Titania.dll ........... [Build ******, API 060425]
Module Oberon.dll ............ [Build ******, API 060425]
Module Neptune.dll ........... [Build 100830, API 100830]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
Finished initialising world
>>> ERROR: No vessel class configuration file found for:
---------------------------------------------------------------
>>> ERROR: 
>>> [Vessel::OpenConfigFile | .\Vessel.cpp | 252]
---------------------------------------------------------------
>>> TERMINATING <<<


I have a config file in place in config/vessels. Here is the content:

Code:
; ===Configuration file for vessel class Explorer===

ClassName = Explorer
Module = Explorer

Contents of the Scenario file:
Code:
BEGIN_DESC
Explorer parked in geosyncronous orbit.
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 60247.7188273481
END_ENVIRONMENT

BEGIN_FOCUS
  Ship Explorer
END_FOCUS

BEGIN_CAMERA
  TARGET Explorer
  MODE Extern
  POS 0.88 -157.28 -13.70
  TRACKMODE TargetRelative
  FOV 60.00
END_CAMERA

BEGIN_HUD
  TYPE Docking
END_HUD

BEGIN_MFD Left
  TYPE Docking
  NAV 0
END_MFD

BEGIN_MFD Right
  TYPE COM/NAV
END_MFD


BEGIN_SHIPS

Explorer:Explorer
  STATUS Orbiting Earth
  RPOS 17293847.95 -14836420.51 35392545.26
  RVEL -2808.642 -541.003 1138.046
  AROT 164.23 15.73 3.85
  PRPLEVEL 0:0.992
END


END_SHIPS

Going to keep pushing on. Need to get this worked out soon so I can start focusing on coding the animation for the grav wheel.
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,681
Reaction score
2,407
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
Remove the empty lines between BEGIN_SHIPS and END_SHIPS
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,898
Reaction score
2,152
Points
203
Location
between the planets
Interesting... After reading and manipulating scenarios on the fly for Orbiter Galaxy for quite a while now, I thought I knew almost everything about them... But it never occured to me that an empty line at the wrong place could mess it up completely.

It seems logical in retrospect since there's no unified parameter designation in front of the vessels name that Orbiter could look for, though...
 
Status
Not open for further replies.
Top