FSDeveloper Community

Go Back   FSDeveloper Community > Microsoft Flight Simulator development > Aircraft Design > Modeling

Modeling Use this forum for all your modelling related discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 20 Jan 2012, 03:30
mile high mile high is offline
  australia
Join Date: Sep 2008
Posts: 51
Needed XML code script for an AI canopy cover

Hi friends,

I'm trying to place a canopy cover on my freeware FS2004 AI aircraft model that I developed in FSDS 3.5.1 but I only wish to have the canvas cover over the canopy glass at night.
I have tried several xml codes but nothing so far seems to work for me, can any of the xml guru's that understand this stuff help me out please.

Can anybody see where this script may be incorrect!

Thanks,

<part>
<name>YOURPARTNAME</name>
<visible_in_range>
<parameter>
<code>(A:TIME OF DAY, enum)</code>
</parameter>
<minvalue>2</minvalue>
<maxvalue>3</maxvalue>
</visible_in_range>
</part>
Reply With Quote
  #2  
Old 02 Feb 2012, 17:46
delivery guy's Avatar
delivery guy delivery guy is offline
  unitedstates
Location: California
Join Date: Jan 2010
Posts: 638
you need to specify one of the 3 choices.

General time of day:
1 = Day
2 = Dusk/Dawn
3 = Night

<code>(A:TIME OF DAY:3, enum)</code>

or

<code> 3 (A:TIME OF DAY, enum)</code>

Try this
Reply With Quote
  #3  
Old 02 Feb 2012, 18:23
tgibson tgibson is online now
  us-california
Location: San Diego
Join Date: Sep 2006
Posts: 3,191
Actually his code is correct. You do not put the value as an index (:3). What's probably wrong is it should be E:, not A:. It is an Environment variable, not an Aircraft variable.

Hope this helps,
__________________
Tom Gibson
CalClassic Propliners
http://www.calclassic.com
Reply With Quote
  #4  
Old 02 Feb 2012, 19:59
n4gix n4gix is offline
  unitedstates
Location: Hammond, Indiana
Join Date: Sep 2006
Posts: 8,522
Code:
<part>
     <name>YOURPARTNAME</name>
     <visible_in_range>
          <parameter>
               <code>(E:TIME OF DAY, enum)</code>
          </parameter>
          <minvalue>2</minvalue>
          <maxvalue>3</maxvalue>
     </visible_in_range>
</part>
__________________
Bill Leaming
3d Modeler Max/GMax
C & XML Gauge Programmer
Eaglesoft Development Group
http://eaglesoftdg.com

Intel® Core™ i7-3770k 4.2GHz - Crucial 16GB DDR3 - Dual Radeon HD770 1GB DDR5 (Crossfire) - Eco II Watercooling - Win7 64bit
Intel® Core™ i7-2600k 3.4GHz - Crucial 4GB DDR3 - NVIDIA GeForce GTX550Ti 1GB - Win7 64bit
Intel® Core™ i7-860 2.8GHz - Crucial 8GB DDR3 - NVIDIA GeForce GTS240 1GB - Win8 64bit
NOTE: Unless explicitly stated otherwise, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...
Reply With Quote
  #5  
Old 07 Feb 2012, 08:24
mile high mile high is offline
  australia
Join Date: Sep 2008
Posts: 51
Thanks guy's for the reply and confirmations, the "e" made all the difference and is working a treat. A bunch of new freeware AI models will be using this code to delight fellow simmers.

Cheer's,

Mark
Reply With Quote
  #6  
Old 09 Aug 2012, 09:09
Here for the Beer Here for the Beer is offline
  unitedkingdom
Location: Wiltshire, England
Join Date: Mar 2007
Posts: 282
Just noticed this while looking for ideas about canopies masking out aircraft parts for no good reason.

I know this is a late response, but is a canopy by time of day a good idea? What if the AI flight plan gets the aircraft airborne at a time when the canopy is still there?

I'm still trying to get the crew to vanish when the AI is inactive, and surely the canopy would be better conforming to that idea instead.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FSXA] XML Code Help needed mike november Gauges 8 17 Feb 2012 18:27
[FS2004] Canopy transparency and prop0_blurred rotation John Young Modeling 10 25 Jan 2011 15:25
Help needed - FSX Gamepack GUID script problem OryxSim GMax and 3DS Max 1 25 Jul 2010 06:53
Gauge code question lionheart Gauges 1 12 Aug 2009 14:58
ILS Altitude Alan McGaughey Airport Design Editor 18 06 Aug 2008 04:49


All times are GMT -4. The time now is 12:51.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.