disappearing pilot

A quiet place for budding model makers to share thoughts, get answers to questions and request and share references.

Moderators: Guru's, The Ministry

User avatar
Rick Piper
The Gurus
Posts: 4773
Joined: 18 Jun 2004, 17:20
Location: In front of screen learning 3ds max :/ ...............Done it :)

Re: disappearing pilot

Post by Rick Piper »

Hi Rob

Not sure if i know what the question is but

No idea if mine show in the preview or not as i really would not mind if they didn't but this is for FSX (slight difference in syntax)

I use Hydraulic pressure as it takes 30 seconds for the pilot to dissapear after shutdown

Regards
Rick

Code: Select all

<PartInfo>
	<Name>Pilot1</Name>
	  <Visibility>
		<Parameter>
			<Code>(A:ENG1 HYDRAULIC PRESSURE, psi) 1 ></Code>
		</Parameter>
	</Visibility>
</PartInfo>

robcarrich
Concorde
Concorde
Posts: 1301
Joined: 12 Aug 2008, 15:58
Location: Alconbury Weston, UK

Re: disappearing pilot

Post by robcarrich »

Thank you Rick,
Yes they do, your pilots show in preview that is.
I agree its not important but I don't want to give the game away that I haven't got a clue what I'm doing.
I am using FSX, is that code OK, I'll give it a try right away.
Thank you again

Rob

User avatar
Rick Piper
The Gurus
Posts: 4773
Joined: 18 Jun 2004, 17:20
Location: In front of screen learning 3ds max :/ ...............Done it :)

Re: disappearing pilot

Post by Rick Piper »

Hi Rob

You can also add other bits to make it more complex but that is all i use for the chipmunk (Not finished yet) :$

not sure if many of my models have a hiding pilot so it may not show in the preview

Check it once you have the code working

Also you may not know that Visibility xml codes don't have a GUID entry at the top of the modeldef.xml

Regards
Rick

User avatar
ukmil
Concorde
Concorde
Posts: 1233
Joined: 11 Jun 2005, 18:35
Location: Scotland
Contact:

Re: disappearing pilot

Post by ukmil »

i use a mix of visability and animation tags

I sometimes use this
<PartInfo>
<Name>parked_pilot</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(A:GENERAL ENG RPM:1,RPM) 100 < (A:SIM on GROUND, bool) + (A:BRAKE PARKING POSITION, bool) + 3 ==
</Code>
</Parameter>
</Animation>
</PartInfo>
you will notice this uses ANIMATION tags. Using this, you start with your Pilot in the normal position. Then at Frame 1, move him somewhere hidden, like in the fuselage. This only works if you have a fuselage big enough to hide him tho :thumbsup:

This code will remove the crew, when the aircraft is ON THE GROUND, the PARKING BRAKE IS ON, and the engine Number 1 is below 1 RPM.

as i said, you can use visability, also. I use the same code, but in that mode, to show ground equipment, which comes on in the same conditions
<PartInfo>
<Name>parked_part</Name>
<Visibility>
<Parameter>
<Code>
(A:GENERAL ENG RPM:1,RPM) 100 < (A:SIM on GROUND, bool) + (A:BRAKE PARKING POSITION, bool) + 3 ==
</Code>
</Parameter>
</Visibility>
</PartInfo>
Image

User avatar
Rick Piper
The Gurus
Posts: 4773
Joined: 18 Jun 2004, 17:20
Location: In front of screen learning 3ds max :/ ...............Done it :)

Re: disappearing pilot

Post by Rick Piper »

Hi Dave

I don't use the "Sim on Ground" code if at all possible as it causes a lot of problems in FSX SP2 onwards including OOMs and CTDs for a lot of users

seems to work fine on Ai stuff but causes problems on flyable for me (No idea why but there is some info on the FSDeveloper forums about it somewhere)

But good post anyway mate ;)

Regards
Rick

robcarrich
Concorde
Concorde
Posts: 1301
Joined: 12 Aug 2008, 15:58
Location: Alconbury Weston, UK

Re: disappearing pilot

Post by robcarrich »

Thank you both very much,
The "sim on ground" bit did not work for me when I fist started playing with this code. I think I'll just keep it simple with your code Rick as it works very well , it does not show in preview but if its good enough for you then its more than good enough for me.

Regards
Rob

SkippyBing
Concorde
Concorde
Posts: 1460
Joined: 30 Aug 2006, 18:21

Re: disappearing pilot

Post by SkippyBing »

As I understand it the preview window is a shutdown aircraft, with the gear and flaps up with any custom variables (i.e. L:Variable Name) set to 0. Thinking about it that may well be all variables /animations set to 0, so you have to write your code to take that into account.
Image

User avatar
nazca_steve
Concorde
Concorde
Posts: 787
Joined: 18 Nov 2005, 17:38
Location: South Orange County, California (ex-pat from Cambs.)
Contact:

Re: disappearing pilot

Post by nazca_steve »

If anyone ever needs this code for FS9, try this:

<part>
<name>pilot</name>
<visible_in_range>
<parameter>
<code>
(A:SIM on GROUND, bool) ! == (A:BRAKE PARKING POSITION, bool) == if{ (A:ENG1 HYDRAULIC PRESSURE, psi) ! 100 * } els{ 0 }
</code>
</parameter>
<minvalue>-1</minvalue>
<maxvalue>0</maxvalue>
</visible_in_range>
</part>

a great place for working XML and overall knowledge is FFDS:

http://www.aerodynamika.com/cgi-bin/yab ... ?board=XML

ATB,

Steve
Image

Steven Beeny, repainter and modeller. New Canberra series for FS9 out now.
http://www.flyingstations.com

Post Reply