1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FSX Arno's windsock won't compile

Discussion in 'Library Creator XML' started by dbur, 2/8/11.

  1. dbur

    dbur

    Joined:
    17/4/11
    Messages:
    31
    Country:
    france
    Hi Arno,
    I've downloaded your windsock.zip and wanted to create my own library object with windsock.mdl in order to use it in my scenery.
    Unfortunately I've got the following error message:

    Code:
    Parsing document: library_creator_xml_temp_compile.xml
    
    INTERNAL COMPILER ERROR:  #C2033: XML Parse Error (line, column, error)
    
    ERROR: 2, 122, L'attribut 'name' de cet élément n'est pas défini dans la DTD/schéma.
    
    INTERNAL COMPILER ERROR:  #C2952: Attribute 'name' is not allowed in element 'ModelData'!
    INTERNAL COMPILER ERROR:  #C2031: Failed element parse <ModelData>
    INTERNAL COMPILER ERROR:  #C2032: XML Parse Error!  Element tree follows:
    
    ERROR: <FSData 
    ERROR: 	version = 9.0
    ERROR: >
    ERROR: 	<ModelData 
    ERROR: 		sourceFile = C:\Users\bur\Dossiers\Divers\FSX\Objects\windsock.mdl
    ERROR: 		name = 81eec038427145d2fa9fd3b972a43051
    ERROR: 	>
    ERROR: 
    INTERNAL COMPILER ERROR:  #C2453: Model (C:\Users\bur\Dossiers\Divers\FSX\Objects\windsock.mdl) is not an FSX scenery model.  Please use new tools!
    INTERNAL COMPILER ERROR:  #C2014: Failed to load model data in file: C:\Users\bur\Dossiers\Divers\FSX\Objects\windsock.mdl
    INTERNAL COMPILER ERROR:  #C2149: Failed to load model data!  Does the file exist?
    INTERNAL COMPILER ERROR:  #C2340: Failed to finalize MODEL_DATA!
    INTERNAL COMPILER ERROR:  #C2032: XML Parse Error!  Element tree follows:
    
    ERROR: <FSData 
    ERROR: 	version = 9.0
    ERROR: >
    ERROR: 	<ModelData 
    ERROR: 		sourceFile = C:\Users\bur\Dossiers\Divers\FSX\Objects\windsock.mdl
    ERROR: 		name = 81eec038427145d2fa9fd3b972a43051
    ERROR: 	>
    ERROR: 
    INTERNAL COMPILER ERROR:  #C2024: Failed to process closing element tag <ModelData> near line 2!
    INTERNAL COMPILER ERROR:  #C2607: Compilation errors detected, compilation failed!
    
    
    Parse complete!
    You say in the download page of windsock.zip that it should also works with FSX.
    Have you got it to work in FSX or am I missing something ?

    Attached Files:

  2. ALain152

    ALain152

    Joined:
    23/8/07
    Messages:
    534
    Country:
    france
    Hi
    You have to compile as fs9 object (with fs9 SDK) and use under FSX
    FSX compatible doesn't mean FSX native...
  3. dbur

    dbur

    Joined:
    17/4/11
    Messages:
    31
    Country:
    france
    Thanks Alain,
    Is it possible to install FS9 SDK without FS9 itself installed ?
    The ideal would be to ask someone to compile it for me ;)
  4. jdberg

    jdberg Resource contributor

    Joined:
    19/6/04
    Messages:
    338
    Country:
    germany
    Hi,

    yes it is, you only need the Gmax Gamepack for FS2004. I installed Gmax one time and start different versions for FS2002, FS2004 and FSX gampacks on the same machine. So you will hopefully manage it.

    Jörg
  5. mmann

    mmann

    Joined:
    20/4/10
    Messages:
    522
    Country:
    ca-britishcolumbia
    The windsock.bgl is used in most of Don Grovestine's scenery files and some my own (Mike Mann) scenery files. Both Don's and my scenery files are available at both AVSIM Library and FlightSim.Com Files; just ZipDive! (AVSIM) or View (FlightSim.Com) to make sure that there is a Windsock.bgl in the file (my British Columbia PNW Tofino does for sure).

    Regards, Mike Mann
  6. dbur

    dbur

    Joined:
    17/4/11
    Messages:
    31
    Country:
    france
    Thanks thanks thanks guys !:)
  7. GaryGB

    GaryGB

    Joined:
    23/12/05
    Messages:
    1,550
    Country:
    us-illinois
    Hello:

    I really like this windsock, and I'm very grateful to the team that created and made it available to the FS Community via FSDeveloper. :twocents:


    When I recently checked the file dates, it seems the models in "Windsock Animated" have not been updated for either FS9 or FSX since originally posted here in 2006, so I would like to respectfully offer some feedback, and inquire if perhaps it is possible to post an updated version, as I had discovered what I believe to be an error when I first worked with this windsock model in 2009. :duck:


    I believe that it may be appropriate for the developers to issue an update which corrects for apparent internal 3D model "face" or "Heading" rotation approximately 8.5 degrees from the desired "0" reference point heading in the 3-D World.


    IMHO, that would make for less confusion on the part of end users, and would bring this windsock into compliance with what I believe is an existing FS SDK standard:

    "0" degrees XML placement heading is used with the default FS windsock object for it to work correctly. :scratchch


    The result when using the existing 'Windsock' and 'Windsock_Lighted' models posted as "Windsock Animated" in the FSDeveloper Downloads area, is that when a heading in XML placement of "0" degrees is used, the object rendered in FS at run time does not precisely follow the FS "Wind Direction" ('Wind Direction' is always expressed in degrees Magnetic).


    This can, of course, be compensated for by the end user when writing the XML placement code prior to compilation via an adjustment of the "Heading" value by 8.5 degrees.

    Alternatively, if the compiled into a FS XML-place-able scenery object library, one can compensate via an adjustment of the "Heading" value by 8.5 degrees in a live-preview placement tool such as Instant Scenery, FSX SDK "OPT", Whisplacer etc..



    AFAIK, there have been very few 3rd party Windsocks made available to the FS Community as an alternative to the rather ugly (but adaptable and functional) XML-place-able one available via internal FS object code.

    Although some may like the option to choose colors offered by the FS default windsock object, IMHO the visual model and texturing offered by the "Windsock Animated" in the FSDeveloper Downloads area is vastly superior to the FS default object.


    IIUC, it is usually considered desirable for 3-D scenery objects to be modeled with their "face" at a "3-D World" heading of 0 degrees in GMAX or FSDS, yet we see a wide variety of resulting orientations and headings for models out in the wild that we try to remember to correct for when we place and test objects in scenery.

    However, most of us don't routinely fly with ambient or fixed winds in FS, so it is understandable that an atypical Windsock 3-D model heading might evade the Authors' and Beta testers discovery that can benefit from a quick, simple, 3D re-positioning and re-export. :ziplip:



    But since the original "Windsock Animated" was released in 2006, I believe many of us would be even more grateful to see an updated FS9 and FSX compatible version made available in the FSDeveloper downloads area.... perhaps even including version pre-compiled inside a FS XML-place-able scenery object library for both FS9 and FSX. ;)

    [EDITED]

    NOTE: I observed the presumed "error" in 3D world "heading" of the Windsock Animated in question via this process:

    1.) XML-place this windsock with a Heading of "0" degrees (activate object and placement BGL in FS scenery library)

    2.) In FSX, set a 16 kt. Wind Direction of 180 degrees Magnetic

    3.) In FSX set display of Coordinates/Frame Rate "on" by pressing {SHIFT+Z} on the keyboard 3 times

    4.) Enter Slew Mode by pressing "Y" on the keyboard 1 time

    5.) Set FSX aircraft Heading North/Attitude Level by pressing {CTRL+SPACEBAR} on the keyboard 1 time

    6.) Observe windsock orientation in a zoomed Top-Down view {F12}

    7.) In zoomed Virtual Cockpit view {F9}, Slew aircraft up/down/around ...into exact alignment with opening(s) of windsock

    8.) Observe aircraft "Heading" on-axis with windsock opening(s) via on-screen parameters displayed in Red at top of the screen

    [END_EDIT]

    PS: The FS2004 BGLCompiler SDK can be downloaded in the FSDeveloper downloads area:

    http://www.fsdeveloper.com/forum/downloads.php?do=file&id=29


    FYI: Use of Arno's excellent "Compile Helper" utility can make the manual compilation process with FS-related compilers much easier:

    http://www.fsdeveloper.com/forum/downloads.php?do=file&id=75



    Again, many thanks for making this superb Windsock visual model available as an alternative to the FS default windsock.


    Hope this helps ! :)

    GaryGB
    Last edited: 3/8/11
  8. GaryGB

    GaryGB

    Joined:
    23/12/05
    Messages:
    1,550
    Country:
    us-illinois
    'Bumped' for edits in my post above. :rolleyes:

    GaryGB
  9. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,302
    Country:
    netherlands
    Hi Gary,

    I haven't seen that error yet, but I'll take a look. What I find interesting is that you say the wind direction is magnetic. AFAIK all object placement is not with magnetic heading. So that would mean the 8.5 degree offset is probably depending on the magnetic variation in the region you are using.

    It might be a good idea to release a library version of the windsock as well, so that not every user has to make its own. It will be a FS2004 library though, since the tweaked animations can not be made in FSX format.
  10. GaryGB

    GaryGB

    Joined:
    23/12/05
    Messages:
    1,550
    Country:
    us-illinois
    Hi Arno:

    Thanks for looking into this.


    I had intended to condense and edit my <...rather over-exuberant at the time :eek: > contributions to a troubleshooting thread on the use of this "Windsock Animated" in the payware "Plum Island" scenery package by Bill Womack (aka "spotlope") published by FSAddon.


    FYI: The entire original support forum including this thread is archived (and thus locked to further discretionary edits), minus the previously available screenies and download attachments by Bill and me, but is otherwise still online here:

    http://forums.fsaddon.eu/viewtopic.php?t=2474


    Indeed, Magnetic Variation may have a "bearing" :p on the way this windsock behaved at it's default placement location at 2B2, and it was fascinating to learn so much about that aspect of FS at the time that thread was active.

    [​IMG]


    Perhaps some re-worked versions of the info I had posted on Magnetic Declination and how FS represents Wind Direction might be considered for a Wiki here at FSDeveloper in the future ?


    I'd be interested in what your analysis of the situation is with regard to the FSDeveloper "Windsock Animated" package as used in the context of its placement at 2B2. ;)


    Perhaps as a result, we might also identify how end-users may make more appropriate use of that excellent package at 2B2 and elsewhere in the FS scenery building process... if indeed we must consider local Magnetic Declination when placing a windsock object. :idea:

    GaryGB
    Last edited: 3/8/11
  11. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,302
    Country:
    netherlands
    Hi Gary,

    Thanks for the update. Could indeed be the magnetic variation, but I will look into it. If it is, that should be updated in the readme so that people are aware of it.
  12. dbur

    dbur

    Joined:
    17/4/11
    Messages:
    31
    Country:
    france
    Great job, thanks again all :)
  13. toprob

    toprob

    Joined:
    27/6/04
    Messages:
    630
    Off the point a bit, but there is a lot of interest in this particular model -- a great solution to a difficult issue. I used this windsock in the initial Vector Land Class library, but I did plan to replace it with my own once I figured it all out. This actually turned out to be far too much coding for me, but I did end up with a workable solution which gives me a placeable windsock in my FSX library, without any coding. If anyone is interested in a quick tutorial on how I did this, let me know.

    Remember, it isn't a nice elegant solution like Arno's, but it does let you create your own windsocks which can be placed as a normal FSX object.
  14. jdberg

    jdberg Resource contributor

    Joined:
    19/6/04
    Messages:
    338
    Country:
    germany
    I never thought it would produce so such discussions when I started to design this windsock several years ago. With the help of Arno and Jon we got a worldwide used object indeed and I am a bit proud of seeing it on many places...

    But so far to the past, AFAIK (nearly) all wind directions given by ATIS or Tower are magenetic so I guess the "global_winds_surface_direction" of the FS used for the macro is also magnetic. In Germany where I use my windsock we have a value of 0-2 deg so not a big difference but in other parts of the world it is a different story.

    So we should change the manual and add a hint with the magnetic wind direction.

    But there will be no native FSX object because all the coding was done in FS2004 asm code.

    Hope that helps
    Jörg
  15. lordofwings

    lordofwings

    Joined:
    5/11/06
    Messages:
    559
    Country:
    panama
    Where is da sock? that is if available as BGL with guid. Can;t do any fs9 compilation.
  16. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,302
    Country:
    netherlands
    It's in the download section, but not as bgl, as mdl object.
  17. GaryGB

    GaryGB

    Joined:
    23/12/05
    Messages:
    1,550
    Country:
    us-illinois
    Hi Emilo:

    [EDITED]

    You may wish to review this post for a discussion of how to add MDLs to ADE's "Model List", and then directly place such MDLs via ADE:

    http://www.fsdeveloper.com/forum/showpost.php?p=628935&postcount=27


    Otherwise, if you prefer to only use a scenery object library BGL format for object placement, one must manually add the windsock MDL(s) under discussion here to a FS scenery object library using ex: Arno's Library Creator XML utility:

    http://www.fsdeveloper.com/forum/downloads.php?do=file&id=93


    [END_EDIT]


    PS: Feel free to explore the FS Developer downloads section; it has a wealth of resources for several versions of FS ...ex:

    http://www.fsdeveloper.com/forum/downloads.php?do=cat&id=10


    Hope this helps ! :)

    GaryGB
    Last edited: 23/2/13
  18. Tejal Bernardo

    Tejal Bernardo

    Joined:
    21/3/11
    Messages:
    2,612
    Country:
    spain
    but this work as a default fsx windsock ?
  19. tgibson

    tgibson

    Joined:
    22/9/06
    Messages:
    4,544
    Country:
    us-california
    No, not that I know of. It has to be added separately as an MDL file or a library object.
  20. Tejal Bernardo

    Tejal Bernardo

    Joined:
    21/3/11
    Messages:
    2,612
    Country:
    spain
    would be great to have one, as can be seen only work with fs9

Share This Page