• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

A problem with a windsock...

Messages
46
Country
unitedkingdom
Yes it sounds funny, but after putting this code in the XML, when I try to compile, I get an error message..

Can anyone tell me where Ive gone wrong here...

Code:
 <SceneryObject lat="53 04.35" lon="-06 02.76" alt="0" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="VERY_SPARSE">

<Windsock
poleHeight="5.5"
sockLength="3.5"
lighted="TRUE">

<SockColor
red="255"/>

</Windsock>

       	       	<LibraryObject name="c545a27311d2e2ec1000849c2ae60c5a" scale="1.0" />


</SceneryObject>

Thanks...

Daryl
 
Time for the usual question, what error message do you get? That will probably tell us more then the code itself :D.

From the source code I only get the idea that you forgot to define the green and blue value of the color, I only see the red value.
 
This is what I get..

I only want the sock to be red...
 

Attachments

  • xml.jpg
    xml.jpg
    52.5 KB · Views: 634
This is the only way i've got a windsock to work. I've tried to use the library object windsock and it just sits there all grey and doesnt move with the wind.

for just red, set the other two colours to zero.

I did this quite a while ago so hope it's right ;-)

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<FSData version="9.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bglcomp.xsd">

<SceneryObject 
      lat="xx xx.xxxx" 
      lon="xx xx.xxxx" 
      alt="0"   
      pitch="0"   
      bank="0" 
      heading="0" 
      altitudeIsAgl="TRUE"  
      imageComplexity="NORMAL">
		
<Windsock
      poleHeight="4"
      sockLength="2"
      lighted="TRUE">
<PoleColor
      red="235"
      blue="235"
      green="235"/>
<SockColor
      red="255"
      blue="0"
      green="0"/>

</Windsock>

</SceneryObject>


</FSData>

Stevo
 
Last edited by a moderator:
Back
Top