General Question Need General Help with Payload Manager UCGO

tauruslittrow84

New member
Joined
Nov 12, 2011
Messages
58
Reaction score
0
Points
0
Need to know what code and where to put it to make a new vessel "payload manager" supported. I have installed Payload Manager and Universal Cargo Deck. I have Orbiter Vessel Wizard installed on VS Express 2008 and it compiles my vessel fine. I simply want to upgrade to payload capable, but these extra utilities don't have detailed instructions. I've already browsed the PMdemonstration.cpp and associated files. This doesn't help. I'm new to C ++ but have had good luck in developing my own vessel so far. I just don't now what names to swap with my vessel name for instance. The name of my vessel is chippersat. I've included the chippersat.cpp file here. I want to be able to add two pieces of cargo which will be called casing1 and casing2. These will be jettisoned.(no functionality) do they need to be .msh or .dll? I know probably in the end i will call up scenario editor and click payload manager and add these 2 pieces via some fooling around with 3 numbered vertices....got that.....just don't now how to get that far....where do the #include files go for instance(chippersat project file in VS) What do I name the .h .lib files? Should a new type of vessel now show up in Vessel Wizard like VesselwithPM?. If I just had a .cpp file of a vessel that was very basic like mine and payload manager supported I could figure this out.Thanks for any assistance or code you could send. See .cpp
 
Last edited:

n122vu

Addon Developer
Addon Developer
Donator
Joined
Nov 1, 2007
Messages
3,196
Reaction score
51
Points
73
Location
KDCY
You mentioned that you already browsed the PMDemonstrator files. Did you also check out the spec in PayloadManager_SDK .pdf, located in the Doc folder? It should tell you everything you need to know.

In general, follow the section "Making an addon with Payload Manager support," replacing the instances of "MyVessel" with your vessel's name.

Example:

Code:
class My_vessel:
public VesselWithPM<My_vessel>
{
public:
My_vessel (OBJHANDLE hObj, int fmodel);
~My_vessel ();
/* Custom methods of your vessel
.........
.........
.........
*/
}

Would become:

Code:
class Chippersat:
public VesselWithPM Chippersat
{
public:
Chippersat(OBJHANDLE hObj, int fmodel);
~Chippersat ();
/* Custom methods of your vessel
.........
.........
.........
*/
}

Hope this helps.

Regards,
n122vu
 
Last edited:

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,728
Reaction score
2,692
Points
203
Location
Dallas, TX
OK. This is weird. I have made vessels with payload manager before. But now when I compile with no errors and run it. Payload manager doesn't show up in the scenario editor. Other vessels that I made loaded and work.
Any ideas?

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

It seems with newer VS its nor working. I am using 2010 and 2013 full versions.
 
Top