Project C57D Cruiser

Kendo

New member
Joined
Oct 16, 2007
Messages
589
Reaction score
1
Points
0
Looks good. Robby was only 6ft 11" tall, he looked taller than that in the films.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,711
Reaction score
2,683
Points
203
Location
Dallas, TX
Thanks. Unfortunately he does load in Meshwizard I get a runtime error.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,711
Reaction score
2,683
Points
203
Location
Dallas, TX
I got permission to use Robby. One slight coding issue. This looks at what vessels are present and if a tractor is there it deletes it. But if no tractor is present you get a CTD.

Code:
if(key==OAPI_KEY_N)
    {
for (DWORD i = 0; i < oapiGetVesselCount(); i++) {
                    OBJHANDLE hV = oapiGetVesselByIndex (i);    //get handle for ship
                   if (strncmp (hV->GetVesselByName(), "TRACTOR1", 8)!=0  ){
        OBJHANDLE Focusvessel = oapiGetVesselByName("TRACTOR1");


   oapiDeleteVessel (Focusvessel);

                            }}
        return 1;
    }

.\C57D.CPP(1351) : error C2227: left of '->GetVesselByName' must point to class/struct/union/generic type
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,711
Reaction score
2,683
Points
203
Location
Dallas, TX
I have run into a issue I hope someone can help.

I have the 2 style of crew and robby as Ummu.s

It looks at the slot and ID of the ummu present and shows the correct mesh.
If no one is in the car then it makes them never seen.

So with no one in the car:
https://dl.dropboxusercontent.com/u/71242599/ROBBYCAR1.jpg

then robby enters the car a crew guy is shown
https://dl.dropboxusercontent.com/u/71242599/ROBBYCAR2UMMU.jpg


Code:
const char *p1MiscID = Crew.GetCrewMiscIdBySlotNumber(0);
const char *p2MiscID = Crew.GetCrewMiscIdBySlotNumber(1);
//const char *p3MiscID = Crew.GetCrewMiscIdBySlotNumber(2);

if(Crew.GetCrewTotalNumber()==0){
SetMeshVisibilityMode( CREW1RIB, MESHVIS_NEVER ); 
SetMeshVisibilityMode( CREW2RIB, MESHVIS_NEVER ); 
SetMeshVisibilityMode( CREW1SHIRT, MESHVIS_NEVER ); 
SetMeshVisibilityMode( CREW2SHIRT, MESHVIS_NEVER ); 
SetMeshVisibilityMode( ROBBY, MESHVIS_NEVER ); 
}


if(Crew.GetCrewTotalNumber()==1){
   //show only correct mesh
SetMeshVisibilityMode( CREW2RIB, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW1RIB, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW1SHIRT, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW2SHIRT, MESHVIS_NEVER );
SetMeshVisibilityMode( ROBBY, MESHVIS_NEVER );

	if(!_strnicmp(p1MiscID,"FPR",3)){SetMeshVisibilityMode( CREW1RIB, MESHVIS_ALWAYS );//rib 1 driver
	//	SetMeshVisibilityMode( CREW2RIB, MESHVIS_NEVER );//rib 2 driver
	//	SetMeshVisibilityMode( CREW1SHIRT, MESHVIS_NEVER );//1 shirt driver
	//	SetMeshVisibilityMode( CREW2SHIRT, MESHVIS_NEVER );//shirt 2 driver
	//	SetMeshVisibilityMode( ROBBY, MESHVIS_NEVER ); 

	}

	if(!_strnicmp(p1MiscID,"FPS",3)){SetMeshVisibilityMode( CREW1SHIRT, MESHVIS_ALWAYS ); //shirt 1 driver
	//	SetMeshVisibilityMode( CREW2RIB, MESHVIS_NEVER );//rib 2 driver
	//	SetMeshVisibilityMode( CREW1RIB, MESHVIS_NEVER );//1 shirt driver
	//	SetMeshVisibilityMode( CREW2SHIRT, MESHVIS_NEVER );//shirt 2 driver
	//	SetMeshVisibilityMode( ROBBY, MESHVIS_NEVER ); 

	}
if(!_strnicmp(p1MiscID,"ROB",3)){//SetMeshVisibilityMode( CREW1RIB, MESHVIS_NEVER );//rib 1 driver
		//SetMeshVisibilityMode( CREW2RIB, MESHVIS_NEVER );//rib 2 driver
		//SetMeshVisibilityMode( CREW1SHIRT, MESHVIS_NEVER );//1 shirt driver
		//SetMeshVisibilityMode( CREW2SHIRT, MESHVIS_NEVER );//shirt 2 driver
		SetMeshVisibilityMode( ROBBY, MESHVIS_ALWAYS ); 

	}
}


from the scenario
ROBBYCAR:ROBBYCAR
STATUS Landed Earth
POS -80.6759784 28.5232026
HEADING 306.51
AFCMODE 7
PRPLEVEL 0:1.000000
NAVFREQ 0 0
XPDR 0
DOOR 1 1.0000
UMMUCREW ROBY-ROBBY1-33-66-70
END
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,711
Reaction score
2,683
Points
203
Location
Dallas, TX
I got the robby mesh part fixed.

But on the tractor have run into a rudder/animation issue/question.

The range of the rudder is (-1- 0- 1). The range of animation is (0- 1). So I can add .5 to the rudder so when the rudder is at 0 middle the value is .5 center for the animation.

And when the rudder goes to 1 it is actually 1.5 but the animation max range is 1. so the wheel is turn the max and the same for the left turn.

BUT what is the vessel is in revese then the values need to be revesed so the wheel turn in the opposite direction.

Does a front steerable landing gear do that?
 

CigDriver

Donator
Donator
Joined
Mar 27, 2008
Messages
194
Reaction score
0
Points
0
The range of the rudder is (-1- 0- 1). The range of animation is (0- 1). So I can add .5 to the rudder so when the rudder is at 0 middle the value is .5 center for the animation.

Take your rudder value and add 1, then divide by 2. That will give you a 0-1 range. :)
 
Top