• 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.

FSXA Simple Object placing

Messages
246
Country
southafrica
Good day,
I am trying to place a simple default object with an xml file.

I did the following:
1)Saved a flight, named HeliObj
2) Open the HeliObj.FLT in Notepad, and added the following:
[ObjectFile]()
File =HeliObj

3) Create a HeliObj.XML file, in the smae file location as the FLT file, containing this:

Code:
<?xml version="1.0" encoding="UTF-8"?>

<SimBase.Document Type="MissionFile" version="1,0">
    <WorldBase.Flight>
        <SimContain.Container InstanceId="{3DFAE2AF-4F42-4BB5-8444-AE3440A09427}">
            <Descr>Gen_Stretcher</Descr>
            <WorldPosition>S25° 49'08",E28° 9'82",+000047.00</WorldPosition>
            <Orientation>0.000,0.000,0</Orientation>
            <ContainerTitle>Gen_Stretcher</ContainerTitle>
            <ContainerID>0</ContainerID>
            <IsOnGround>True</IsOnGround>
        </SimContain.Container></WorldBase.Flight>
    <MissionBuilder.MissionBuilder>
    </MissionBuilder.MissionBuilder>
</SimBase.Document>

What am I doing wrong as the stretcher is not showing up?


Any help will be appreciated
 
Hi,

That is not the standard way to place an object. Are you using a mission?

Else the normal approach is to make a BGL file to place your object. This can be done with BGLComp (and some XML).
 
Hi Arno,

I am trying to make a simple application that place custom scenery. basically an object placer that only place the objects in a selected flight - thus not permanent. So yes, basically a mission builder. I am trying to create an application that goes with a new helicopter I am making that have a sling. Very few people know how to place liftable objects in FSXA - including me I guess :)
 
Ok, I am using this placement as an example: http://nzff.org/forum/index.php?showtopic=18418

As fas as I can see, the Aircraft.cfg of a heli just need to have a sling
Code:
[Sling.0]
hoist_extend_rate = 5 //Feet per second
hoist_retract_rate = -5 //Feet per second
position = 0.5, 4.5, 5.5 //Feet from datum
max_stretch = 2.0 //Max stretch distance at ultimate load
damping_ratio = 0.6 //0 for no damping to 1.0 for critically damped.
rated_load = 600 //Characteristics tension of cable in pounds
ultimate_load = 2250 //Breaking force in pounds
tolerance_angle=45 //Angle, in degrees, used to determine lateral breaking force limit
auto_pickup_range = 8 //Max Range, in feet, for auto-pickup
auto_pickup_max_speed = 8.5 //Maximum speed (feet per second) for auto-pickup
hoist_payload_station = 4 //Payload station in which the hoist will load in and out of. 1 is first station.
hoist_door=3 //Door associated with hoist. Must be open for use.

[Sling.1]
position = 0.5, 0.0, 0.0 //Feet from datum
max_stretch = 2.0 //Max stretch distance at ultimate load
damping_ratio = 0.75 //0 for no damping to 1.0 for critically damped.
rated_load = 8000 //Characteristics tension of cable in pounds
ultimate_load = 23000 //Breaking force in pounds
tolerance_angle=70 //Angle, in degrees, used to determine lateral breaking force limit
auto_pickup_range = 8 //Max Range, in feet, for auto-pickup
auto_pickup_max_speed = 8.5 //Maximum speed (feet per second) for auto-pickup

Then, a saved flight (FLT) file must be opened in notepad, and the objects.xml file name is to be added to the flt file
Code:
[ResourcePath]
Path=flights\other\

[ObjectFile]
File=_Test_Slingload_EGNL_Master

[Payload.0]
PayloadList=-1

[Sling.0.0]
Object=
CableLength=0
HoistSwitch=0

[Sling.1.0]
Object=
CableLength=40
HoistSwitch=0

and, finally, The ObjectFile XML, Named as per above code:

Code:
<?xml version="1.0" encoding="UTF-8"?>

<SimBase.Document Type="MissionFile" version="1,0">
    <WorldBase.Flight>
        <SimContain.Container InstanceId="{6F25B78C-9F56-47EE-AA3D-931DBDEEECB7}">
            <Descr>ag_ussilo01_1</Descr>
            <WorldPosition>N54° 7' 47.000000",W3° 15' 53.000000",+000047.00</WorldPosition>
            <Orientation>0.000,0.000,90.000</Orientation>
            <ContainerTitle>ag_ussilo01</ContainerTitle>
            <ContainerID>0</ContainerID>
            <IsOnGround>False</IsOnGround>
        </SimContain.Container>
        </WorldBase.Flight>
    <MissionBuilder.MissionBuilder>
    </MissionBuilder.MissionBuilder>
</SimBase.Document>

If I am correct, it should show up at the location in the XML when you load the saved flight. But it doesn't
Any idea why?
 
Back
Top