The website and forum will be intermittently unavailable while we're making some security updates.
File uploads to the download hangar are also disabled until further notice.

no pilot in the cockpit!!

Share hints and tricks or your own modifications for MAIW Packages in Flight Simulator X and Prepar3D.
Post Reply
chrisprevost
Second Lieutenant
Second Lieutenant
Posts: 23
Joined: 02 Dec 2012, 06:56
Version: P3D

no pilot in the cockpit!!

Post by chrisprevost »

Hello I have a problem: when I converted a plane AI (Grob tutor), everything is fine but every time I miss the pilot and the cockpit is empty ... can you tell me what to do for when the aircraft starts, there is a pilot?

thank you in advance
User avatar
hschuit
MAIW Developer
MAIW Developer
Posts: 594
Joined: 20 Jul 2011, 07:25
Version: P3D
Location: Near EHSB

Re: no pilot in the cockpit!!

Post by hschuit »

Looks like you forgot to add a visibility tag to the pilot model part. If you analyze a comparable MAIW converted FSX/P3D AI model in the MCX hierarchy editor you should be able to find a piot/crew visibility tag and copy the xml code.

Henk.
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12112
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: no pilot in the cockpit!!

Post by Firebird »

If the pilots move their heads then there chances are that they are tick18 anims, which are not compatible with FSX/P3D there is something else that you have to convert them too - I think.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
User avatar
John Young
MAIW Developer
MAIW Developer
Posts: 4206
Joined: 12 Jul 2008, 15:15

Re: no pilot in the cockpit!!

Post by John Young »

In that case, the pilot's body carries the visibility tag. The head carries the animation tag "ambient" and is linked to the body, so it disappears when the body does.
chrisprevost
Second Lieutenant
Second Lieutenant
Posts: 23
Joined: 02 Dec 2012, 06:56
Version: P3D

Re: no pilot in the cockpit!!

Post by chrisprevost »

excuse me I do not understand the explanations! can explain to me or I have to go and what I have to do
thank you
User avatar
gavinc
MAIW Conversion Team
MAIW Conversion Team
Posts: 556
Joined: 25 Aug 2013, 09:26
Version: FSX

Re: no pilot in the cockpit!!

Post by gavinc »

Can you clarify your issue please?
Are you saying that you convert the model and that there is no pilot (but that there is one in FS9)

Or
You have a pilot but you need to know how to make the pilot appear only when the aircraft starts moving.

thanks
Gavin
chrisprevost
Second Lieutenant
Second Lieutenant
Posts: 23
Joined: 02 Dec 2012, 06:56
Version: P3D

Re: no pilot in the cockpit!!

Post by chrisprevost »

Yes that's the model fs9 I had a pilot, but when I convert P3DV4 there is no ...
User avatar
gavinc
MAIW Conversion Team
MAIW Conversion Team
Posts: 556
Joined: 25 Aug 2013, 09:26
Version: FSX

Re: no pilot in the cockpit!!

Post by gavinc »

Ok,
Does the pilot appear all the time in the FS9 model or only when the aircraft is moving?

If it is the 2nd then you need to set the appropriate variable when you import the FS9 model.
Under Options / SCASMReader make sure Use Conditions is set to UserSpecified.

now when you import the FS9 model you will get a dialog box that allows you to set the variables. You should be able to set each of the variables to 1 in turn and then you will find which one triggers the pilot.
Once you have the pilot, you will still need to assign the pilot the visibility condition as Henk described, otherwise it will always appear.

BTW
You will see one called Prop0still, this is the variable that controls the prop - set it to 10000 for blurred props
chrisprevost
Second Lieutenant
Second Lieutenant
Posts: 23
Joined: 02 Dec 2012, 06:56
Version: P3D

Re: no pilot in the cockpit!!

Post by chrisprevost »

Hello

I found the pilot in hierachy editor and then I did what because I do not understand anything

Thank you for your reply
User avatar
gavinc
MAIW Conversion Team
MAIW Conversion Team
Posts: 556
Joined: 25 Aug 2013, 09:26
Version: FSX

Re: no pilot in the cockpit!!

Post by gavinc »

If you have found the pilot in the Hierarchy Editor you just need to assign a visibility condition so the pilot only appears when the conditions are right.

Make sure you have the following code in your modeldef.xml

Code: Select all

  <!-- Show part like pilot if AI is running or moving triggered by beacon light at pushback -->
  <PartInfo>
    <Name>Custom_vis_AI_BEACON_OR_MOVING_CREW</Name>
    <Visibility>
      <Parameter>
        <Code>(A:LIGHT BEACON,bool) (A:GROUND VELOCITY, knots) 0 != or if{ 1 } els{ 0 }</Code>
      </Parameter>
    </Visibility>
  </PartInfo>
Highlight the pilot and on the right side of the Hierarchy Editor you will see that Visibility Condition is set to none, click on None and you will get a list of the visibility conditions available.
Now you should be able to assign Custom_vis_AI_BEACON_OR_MOVING_CREW as the visibility condition to the ModelPart for the pilot.

Gavin
chrisprevost
Second Lieutenant
Second Lieutenant
Posts: 23
Joined: 02 Dec 2012, 06:56
Version: P3D

Re: no pilot in the cockpit!!

Post by chrisprevost »

Hello

Question stupid but where is the modeldef.xml?
User avatar
gavinc
MAIW Conversion Team
MAIW Conversion Team
Posts: 556
Joined: 25 Aug 2013, 09:26
Version: FSX

Re: no pilot in the cockpit!!

Post by gavinc »

chrisprevost wrote: 28 Mar 2019, 06:24 Hello

Question stupid but where is the modeldef.xml?
Stupid Answer - it is wherever you put it :-)

You needed to tell MCX where it was when you setup MCX. Assuming you are using P3D SDK then it usually is under
SDK directory\Modeling\3ds Max\bin.

To verify where it is open MCX and check Options/FS related settings/ModelDefPath. That will show you where the modeldef.xml file is that is being used by MCX

Gavin
chrisprevost
Second Lieutenant
Second Lieutenant
Posts: 23
Joined: 02 Dec 2012, 06:56
Version: P3D

Re: no pilot in the cockpit!!

Post by chrisprevost »

Hello

In my opinion, I do not do what is right. Is there a complete procedure for converting fs9 / Fsx aircraft to P3DV4?
Because there I swim in the "Sauerkraut" as they say in French
User avatar
gavinc
MAIW Conversion Team
MAIW Conversion Team
Posts: 556
Joined: 25 Aug 2013, 09:26
Version: FSX

Re: no pilot in the cockpit!!

Post by gavinc »

chrisprevost wrote: 01 Apr 2019, 07:45 Hello

In my opinion, I do not do what is right. Is there a complete procedure for converting fs9 / Fsx aircraft to P3DV4?
Because there I swim in the "Sauerkraut" as they say in French
Hi,
I did write a draft document
https://www.alpha-india.net/forums/inde ... ic=25691.0

It is a bit out of date now. MCX does a lot better job of parsing the animations than when I wrote the document but at least it should get you in the right direction.

Gavin
chrisprevost
Second Lieutenant
Second Lieutenant
Posts: 23
Joined: 02 Dec 2012, 06:56
Version: P3D

Re: no pilot in the cockpit!!

Post by chrisprevost »

Thank you but the link is dead sorry
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12112
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: no pilot in the cockpit!!

Post by Firebird »

Chris, I just tried it and it brought up the forum page no problem. Try another browser.
The pdf is attached at the bottom of the first post and does work.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
Post Reply