Jump to content
Sign in to follow this  
Rocky

XML: Pie Drawing - FS9/FSX

Recommended Posts

Guest flyawayboy777
Well... This is a pity... The following will draw the initial StartAngle correctly, but it will never update... :(This is the final thing I need to accomplish somehow...
<Pie Radius="41" StartAngle="(A:TURB ENG CORRECTED N1:1,percent)" EndAngle="0" LineWidth="2" Color="White" FillColor="#545454" Bright="Yes">

b787mfd000006ts6.jpg

Were may I obtain this lovely panel of the 787? Is it freeware of payware? I want it REALLY badly!

Share this post


Link to post
Share on other sites
Were may I obtain this lovely panel of the 787? Is it freeware of payware? I want it REALLY badly!
It was commissioned by ABACUS for their B787 release.NOTE: I've "necro'd" this post to recover the "lost XML script" that Jan provided:
Hi,This works, just a test, a workaround?:
<Element><Position X="100" Y="100"/><Element><Visible>(A:general eng1 throttle lever position,part) 0.33 <</Visible> <Pie Radius="50" StartAngle="360" EndAngle="270" LineWidth="2" Color="dkgray" FillColor="red" Bright="yes"><Pivot X="51" Y="51"/></Pie><Rotate><Value>(A:general eng1 throttle lever position,part)</Value><Nonlinearity><Item Value="0" X="50" Y="0"/><Item Value="0.4" X="0" Y="50"/></Nonlinearity></Rotate></Element><Element><Visible>(A:general eng1 throttle lever position,part) 0.33 > (A:general eng1 throttle lever position,part) 0.66 < and</Visible> <Pie Radius="50" StartAngle="360" EndAngle="180" LineWidth="2" Color="dkgray" FillColor="red" Bright="yes"><Pivot X="51" Y="51"/></Pie><Rotate><Value>(A:general eng1 throttle lever position,part)</Value><Nonlinearity><Item Value="0" X="50" Y="0"/><Item Value="0.4" X="0" Y="50"/></Nonlinearity></Rotate></Element><Element><Visible>(A:general eng1 throttle lever position,part) 0.66 ></Visible> <Pie Radius="50" StartAngle="360" EndAngle="90"  LineWidth="2" Color="dkgray" FillColor="red" Bright="yes"><Pivot X="51" Y="51"/></Pie><Rotate><Value>(A:general eng1 throttle lever position,part)</Value><Nonlinearity><Item Value="0" X="50" Y="0"/><Item Value="0.4" X="0" Y="50"/></Nonlinearity></Rotate></Element><Element><Position X="0" Y="-50"/><Polygon LineWidth="2" Color="dkgray" FillColor="green" Bright="yes"><Point X="-30" Y="-1"/><Point X="-1" Y="50"/><Point X="50" Y="50"/><Point X="50" Y="-1"/><Point X="-30" Y="-1"/></Polygon></Element></Element>

By testing you will see what i mean.Change Lines and Colours etc.Hope it helps,Jan"Beatus ille qui procul negotiis..."


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest flyawayboy777
It was commissioned by ABACUS for their B787 release.NOTE: I've "necro'd" this post to recover the "lost XML script" that Jan provided:
thats abacus!!!??? when is it coming! Can i have a link to this? Is it FSX? thanks

Share this post


Link to post
Share on other sites
Guest flyawayboy777
thats abacus!!!??? when is it coming! Can i have a link to this? Is it FSX? thanks
Why is the regular panel with default 747 and 737 gauges? How do I get this panel with my Abacus 787?!

Share this post


Link to post
Share on other sites
Why is the regular panel with default 747 and 737 gauges? How do I get this panel with my Abacus 787?!
I suspect that they (ABACUS) simply never bothered to update the screenshots. I do know that they only commissioned me to create an entirely NEW 2d panel and VC update after the original release......which I coded specifically to be both FS9 and FSX compatible.Presumably this was due to poor sales and customer dissatisfaction. Once I sent ABACUS what they'd contracted and paid for, that ended my responsibility for their product.In that case, before purchasing, I highly advise emailing custsupp@abacuspub.com and asking them if it's a case of them having OLD screenshots, and whether they are -in fact- using the updates I coded for them. :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest flyawayboy777
I suspect that they (ABACUS) simply never bothered to update the screenshots. I do know that they only commissioned me to create an entirely NEW 2d panel and VC update after the original release......which I coded specifically to be both FS9 and FSX compatible.Presumably this was due to poor sales and customer dissatisfaction. Once I sent ABACUS what they'd contracted and paid for, that ended my responsibility for their product.In that case, before purchasing, I highly advise emailing custsupp@abacuspub.com and asking them if it's a case of them having OLD screenshots, and whether they are -in fact- using the updates I coded for them. :(
Great coding LOL! Well so If I just buy the product from the site then this panel will come with it? Also when was this UPDATE available? I had this Abacus Dreamliner with the default 737 gauges! How do I update to this? I hate the old gauges! Is it like and UPDATE file that I may obtain to fix the default gagues? THANKS a BILLION!!!! I am really looking forward to this thrilling panel!

Share this post


Link to post
Share on other sites
Guest flyawayboy777
Great coding LOL! Well so If I just buy the product from the site then this panel will come with it? Also when was this UPDATE available? I had this Abacus Dreamliner with the default 737 gauges! How do I update to this? I hate the old gauges! Is it like and UPDATE file that I may obtain to fix the default gagues? THANKS a BILLION!!!! I am really looking forward to this thrilling panel!
I want a panel update because I hate the regular default gauges! Is that possible? I want that panel that you had in the picture.

Share this post


Link to post
Share on other sites
Guest flyawayboy777
I want a panel update because I hate the regular default gauges! Is that possible? I want that panel that you had in the picture.
Anyone! Please help out!

Share this post


Link to post
Share on other sites

As stated above, the only way to get that panel is if ABACUS supplies it. I couldn't legally give away the files required even were I inclined to do so. I sold all rights to ABACUS.


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest flyawayboy777
As stated above, the only way to get that panel is if ABACUS supplies it. I couldn't legally give away the files required even were I inclined to do so. I sold all rights to ABACUS.
I contacted them and they helped me out! Love the new IMPROVED jet! :)
The only folks that can actually help you are Abacus. Did you e-mail them, custsupp@abacuspub.com, as Bill suggested?
I contacted them and they helped me!

Share this post


Link to post
Share on other sites

That's good to hear. Adam at ABACUS is usually quite helpful!


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest flyawayboy777
That's good to hear. Adam at ABACUS is usually quite helpful!
Yup he helped me! I love the bird now! I have a suggestion though. Maybe, in an update, The team should fix the 767 nose part, ground wing flex, and the spikes that the ends of the engines! Great work team!

Share this post


Link to post
Share on other sites

(* bumped to top after resurrecting and formatting the XML script examples yet again! *)

  • Upvote 1

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Just found this post. Have a working n1 gauge I designed with no mask images and working pie.. only image is background image and its 148 x95. Highlighted the Angle Script

N1-BMP.png

 

<SimBase.Document Type="AceXML" version="4,5" id="N1 Gauge">
    <Descr>AceXML Document</Descr>
    <Filename>Test N1 Gauge.xml</Filename>
    <SimGauge.Gauge id="N1 Gauge" ArtDirectory="C:\Program Files\Lockheed Martin\Prepar3D v4\gauges\P3D_mini_panel">
        <FloatPosition>0.000000,0.000000</FloatPosition>
        <Image id="n1_background.bmp" Name="n1_background.bmp">
            <Transparent>True</Transparent>
        </Image>
        <Element id="n1 Pie 1">
            <FloatPosition>68.000000,36.000000</FloatPosition>
            <Element id="Eng1 N1 Pie">
                <FloatPosition>0.000000,0.000000</FloatPosition>
                <Pie id="Pie 1">
                    <Axis>52.000000,52.000000</Axis>
                    <Bright>True</Bright>
                    <Radius>52</Radius>
                    <FillColorScript>(A:TURB ENG1 N1, percent) 103 &gt; if{ &apos;red&apos; } els{ &apos;gray&apos; }</FillColorScript>
                    <LineColor>White</LineColor>
                    <StartAngleScript>(A:TURB ENG1 N1, part)</StartAngleScript>
                    <EndAngleScript>(A:TURB ENG1 N1, part) 2 * 100 * near 360 - abs</EndAngleScript>
                </Pie>
                <Rotation id="Rotation">
                    <Expression id="Expression">
                        <Script>(A:TURB ENG1 N1, part)</Script>
                    </Expression>
                    <NonlinearityTable id="NonlinearityTable">
                        <NonlinearityEntry id="NonlinearityEntry">
                            <ExpressionResult>0.000000</ExpressionResult>
                            <Degrees>0.000100</Degrees>
                            <FloatPosition>0.000000,0.000000</FloatPosition>
                        </NonlinearityEntry>
                        <NonlinearityEntry id="NonlinearityEntry">
                            <ExpressionResult>1.000000</ExpressionResult>
                            <Degrees>200.000000</Degrees>
                            <FloatPosition>0.000000,0.000000</FloatPosition>
                        </NonlinearityEntry>
                    </NonlinearityTable>
                </Rotation>
            </Element>
        </Element>
        <Element id="Element">
            <FloatPosition>68.000000,36.000000</FloatPosition>
            <HorizontalLine id="HorizontalLine">
                <Width>51</Width>
                <LineWidth>3</LineWidth>
                <LineColor>gray</LineColor>
            </HorizontalLine>
        </Element>
        <Element id="Arc">
            <FloatPosition>0.000000,0.000000</FloatPosition>
            <Arc id="Arc">
                <Axis>-14.000000,16.000000</Axis>
                <Radius>52</Radius>
                <LineWidth>3</LineWidth>
                <LineColor>white</LineColor>
                <StartAngle>205</StartAngle>
                <EndAngle>357</EndAngle>
            </Arc>
        </Element>
        <Element id="Red Line">
            <FloatPosition>0.000000,0.000000</FloatPosition>
            <PolyLine id="PolyLine">
                <LineWidth>3</LineWidth>
                <LineColor>red</LineColor>
                <Point id="Point">
                    <FloatPosition>12.000000,6.000000</FloatPosition>
                </Point>
                <Point id="Point">
                    <FloatPosition>24.000000,14.000000</FloatPosition>
                </Point>
            </PolyLine>
        </Element>
        <Element id="ReadOut Box">
            <FloatPosition>68.000000,4.000000</FloatPosition>
            <Rectangle id="Rectangle">
                <LineWidth>3</LineWidth>
                <Width>75</Width>
                <Height>29</Height>
            </Rectangle>
        </Element>
        <Element id="&apos;10&apos; Tick Mark">
            <FloatPosition>0.000000,0.000000</FloatPosition>
            <PolyLine id="PolyLine">
                <LineWidth>2</LineWidth>
                <Point id="Point">
                    <FloatPosition>20.000000,18.000000</FloatPosition>
                </Point>
                <Point id="Point">
                    <FloatPosition>27.000000,22.000000</FloatPosition>
                </Point>
            </PolyLine>
        </Element>
        <Element id="&apos;9&apos; Tick Mark">
            <FloatPosition>0.000000,0.000000</FloatPosition>
            <PolyLine id="PolyLine">
                <LineWidth>2</LineWidth>
                <Point id="Point">
                    <FloatPosition>17.000000,35.500000</FloatPosition>
                </Point>
                <Point id="Point">
                    <FloatPosition>24.000000,35.500000</FloatPosition>
                </Point>
            </PolyLine>
        </Element>
        <Element id="&apos;8&apos; Tick Mark">
            <FloatPosition>0.000000,0.000000</FloatPosition>
            <PolyLine id="PolyLine">
                <LineWidth>2</LineWidth>
                <Point id="Point">
                    <FloatPosition>21.000000,54.000000</FloatPosition>
                </Point>
                <Point id="Point">
                    <FloatPosition>26.000000,52.000000</FloatPosition>
                </Point>
            </PolyLine>
        </Element>
        <Element id="&apos;7&apos; Tick Mark">
            <FloatPosition>0.000000,0.000000</FloatPosition>
            <PolyLine id="PolyLine">
                <LineWidth>2</LineWidth>
                <Point id="Point">
                    <FloatPosition>35.000000,64.000000</FloatPosition>
                </Point>
                <Point id="Point">
                    <FloatPosition>29.000000,69.000000</FloatPosition>
                </Point>
            </PolyLine>
        </Element>
        <Element id="&apos;6&apos; Tick Mark">
            <FloatPosition>0.000000,0.000000</FloatPosition>
            <PolyLine id="PolyLine">
                <LineWidth>2</LineWidth>
                <Point id="Point">
                    <FloatPosition>42.000000,81.000000</FloatPosition>
                </Point>
                <Point id="Point">
                    <FloatPosition>47.000000,74.000000</FloatPosition>
                </Point>
            </PolyLine>
        </Element>
        <Element id="&apos;5&apos; Tick Mark">
            <FloatPosition>0.000000,0.000000</FloatPosition>
            <PolyLine id="PolyLine">
                <LineWidth>2</LineWidth>
                <Point id="Point">
                    <FloatPosition>61.000000,80.000000</FloatPosition>
                </Point>
                <Point id="Point">
                    <FloatPosition>58.000000,87.000000</FloatPosition>
                </Point>
            </PolyLine>
        </Element>
        <Element id="&apos;4&apos; Tick Mark">
            <FloatPosition>0.000000,0.000000</FloatPosition>
            <PolyLine id="PolyLine">
                <LineWidth>2</LineWidth>
                <Point id="Point">
                    <FloatPosition>77.000000,87.000000</FloatPosition>
                </Point>
                <Point id="Point">
                    <FloatPosition>76.000000,79.000000</FloatPosition>
                </Point>
            </PolyLine>
        </Element>
        <Element id="&apos;3&apos; Tick Mark">
            <FloatPosition>0.000000,0.000000</FloatPosition>
            <PolyLine id="PolyLine">
                <LineWidth>2</LineWidth>
                <Point id="Point">
                    <FloatPosition>94.000000,80.000000</FloatPosition>
                </Point>
                <Point id="Point">
                    <FloatPosition>90.000000,75.000000</FloatPosition>
                </Point>
            </PolyLine>
        </Element>
        <Element id="&apos;2&apos; Tick Mark">
            <FloatPosition>0.000000,0.000000</FloatPosition>
            <PolyLine id="PolyLine">
                <LineWidth>2</LineWidth>
                <Point id="Point">
                    <FloatPosition>107.000000,69.000000</FloatPosition>
                </Point>
                <Point id="Point">
                    <FloatPosition>101.000000,64.000000</FloatPosition>
                </Point>
            </PolyLine>
        </Element>
        <Element id="&apos;1&apos; Tick Mark">
            <FloatPosition>0.000000,0.000000</FloatPosition>
            <PolyLine id="PolyLine">
                <LineWidth>2</LineWidth>
                <Point id="Point">
                    <FloatPosition>116.000000,55.000000</FloatPosition>
                </Point>
                <Point id="Point">
                    <FloatPosition>110.000000,51.000000</FloatPosition>
                </Point>
            </PolyLine>
        </Element>
        <Element id="number 0">
            <FloatPosition>100.000000,32.000000</FloatPosition>
            <GaugeText id="GaugeText">
                <Bold>True</Bold>
                <Charset>arial</Charset>
                <FontColor>white</FontColor>
                <FontHeight>18</FontHeight>
                <GaugeString>0</GaugeString>
                <Size>10,18</Size>
                <Transparent>True</Transparent>
            </GaugeText>
        </Element>
        <Element id="number 2">
            <FloatPosition>90.000000,48.000000</FloatPosition>
            <GaugeText id="GaugeText">
                <Bold>True</Bold>
                <Charset>arial</Charset>
                <FontColor>white</FontColor>
                <FontHeight>18</FontHeight>
                <GaugeString>2</GaugeString>
                <Size>10,18</Size>
                <Transparent>True</Transparent>
            </GaugeText>
        </Element>
        <Element id="number 4">
            <FloatPosition>70.000000,60.000000</FloatPosition>
            <GaugeText id="GaugeText">
                <Bold>True</Bold>
                <Charset>arial</Charset>
                <FontColor>white</FontColor>
                <FontHeight>18</FontHeight>
                <GaugeString>4</GaugeString>
                <Size>10,18</Size>
                <Transparent>True</Transparent>
            </GaugeText>
        </Element>
        <Element id="number 6">
            <FloatPosition>45.000000,55.000000</FloatPosition>
            <GaugeText id="GaugeText">
                <Bold>True</Bold>
                <Charset>arial</Charset>
                <FontColor>white</FontColor>
                <FontHeight>18</FontHeight>
                <GaugeString>6</GaugeString>
                <Size>10,18</Size>
                <Transparent>True</Transparent>
            </GaugeText>
        </Element>
        <Element id="number 8">
            <FloatPosition>28.000000,37.000000</FloatPosition>
            <GaugeText id="GaugeText">
                <Bold>True</Bold>
                <Charset>arial</Charset>
                <FontColor>white</FontColor>
                <FontHeight>18</FontHeight>
                <GaugeString>8</GaugeString>
                <Size>10,18</Size>
                <Transparent>True</Transparent>
            </GaugeText>
        </Element>
        <Element id="number &apos; 1&apos; in 10">
            <FloatPosition>26.000000,12.000000</FloatPosition>
            <GaugeText id="GaugeText">
                <Bold>True</Bold>
                <Charset>arial</Charset>
                <FontColor>white</FontColor>
                <FontHeight>18</FontHeight>
                <GaugeString>1</GaugeString>
                <Length>2</Length>
                <Size>10,18</Size>
                <Transparent>True</Transparent>
            </GaugeText>
        </Element>
        <Element id="number &apos; 1&apos; in 11">
            <FloatPosition>34.000000,12.000000</FloatPosition>
            <GaugeText id="GaugeText">
                <Bold>True</Bold>
                <Charset>arial</Charset>
                <FontColor>white</FontColor>
                <FontHeight>18</FontHeight>
                <GaugeString>0</GaugeString>
                <Length>2</Length>
                <Size>10,18</Size>
                <Transparent>True</Transparent>
            </GaugeText>
        </Element>
        <Element id="Needle">
            <FloatPosition>68.000000,35.000000</FloatPosition>
            <HorizontalLine id="HorizontalLine">
                <Width>51</Width>
                <LineWidth>3</LineWidth>
            </HorizontalLine>
            <Rotation id="Rotation">
                <Expression id="Expression">
                    <Script>(A:TURB ENG1 N1, part)</Script>
                </Expression>
                <NonlinearityTable id="NonlinearityTable">
                    <NonlinearityEntry id="NonlinearityEntry">
                        <ExpressionResult>0.000000</ExpressionResult>
                        <Degrees>0.000100</Degrees>
                        <FloatPosition>0.000000,0.000000</FloatPosition>
                    </NonlinearityEntry>
                    <NonlinearityEntry id="NonlinearityEntry">
                        <ExpressionResult>1.000000</ExpressionResult>
                        <Degrees>200.000000</Degrees>
                        <FloatPosition>0.000000,0.000000</FloatPosition>
                    </NonlinearityEntry>
                </NonlinearityTable>
            </Rotation>
        </Element>
        <Element id="Percent Readout">
            <FloatPosition>60.000000,6.000000</FloatPosition>
            <GaugeText id="GaugeText">
                <FontColor>#FFFFFF</FontColor>
                <FontFace>Arial</FontFace>
                <FontHeight>20</FontHeight>
                <FontWeight>1</FontWeight>
                <GaugeString>%((A:TURB ENG1 N1, percent) abs)%!5.1f!</GaugeString>
                <HorizontalAlign>CENTER</HorizontalAlign>
                <Length>5</Length>
                <Size>70,20</Size>
                <Transparent>True</Transparent>
                <VerticalAlign>BOTTOM</VerticalAlign>
            </GaugeText>
        </Element>
    </SimGauge.Gauge>
</SimBase.Document>
 

Edited by Swamech
added pic

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...