Does anyone have any knowledge they want to share with regards to XML object placement for missions? I've got some info here, but cannot get t to work:
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: Select all
[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: Select all
[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: Select all
<?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?
Any help will be appreciated
Kind Regards