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

PartDataDef.txt question

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
That file is used only for FSX modeling, and works in conjunction with modeldef.xml and xtomdl.exe...

It acts as a "substitute" for the Max/GMax plugins Attachpoint Tool and Animation Manager Tool.
 
Messages
139
Country
us-texas
Thank you Bill.

I am stupid and frustrated then. I have followed threads on FSdeveloper and here and just can't make this work. I have not messed with modeldef.xml yet.

I am using Windows Vista Ultimate, FSDS 3.5.1 and FSX SP-2. I have created a windmill in FSDS (with animated blades) and I am trying to attach a light to the top of the windmill structure.

This picture should illustrate what I am trying to accomplish. I'd like to place the light on top of the structure where I've placed the circle in the image.

2008-5-7_13-21-31-86copy.jpg


I am using FSDS and have this as my XML blurb inside of PartdataDefs.txt:

Code:
attachpt_obslight_1               <?xml version="1.0" encoding="ISO-8859-1" ?> <FSMakeMdlData version="9.0"> <Attachpoint name="attachpt_obslight_1"> <AttachedObject> <Effect effectName="fx_lightObsRedSteady" effectParams=""/> </AttachedObject> </Attachpoint> <Visibility name="general_light"> </Visibility> </FSMakeMdlData>

I have named my part "attachpt_obslight_1" in FSDS.

here is what my object placement XML looks like:

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="N20 15.66" 
		lon="W155 51.47" 
		alt="0" 
		pitch="0" 
		bank="0" 
		heading="0" 
		altitudeIsAgl="TRUE" 
		imageComplexity="NORMAL">

		<LibraryObject name="{5BC01C8F-8765-41FA-B2A9-708BB34E1424}" scale="0.100000" />

		<AttachedObject
			attachpointName="attachpt_obslight_1"
			pitch="0"
			bank="0"
			heading="0"> 
			<Effect effectName="fx_lightObsRedSteady" effectParams=""/> 
		</AttachedObject>

	
</SceneryObject>

	<ModelData sourceFile="TestObj.mdl" />

</FSData>


I will gladly paypal someone $20 (sorry, I know the dollar is depressed) if they can help me to make this work. I have blown a day on this and I am getting despondent.

Help! :(
 

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
As I said, I don't use FSDS myself, but even I can tell you that you don't need to "place" the obslight_1 object. That's the purpose of using an Attachpoint to begin with... :D

Code:
attachpt_obslight_1      <?xml version="1.0" encoding="ISO-8859-1" ?> <FSMakeMdlData version="9.0"> <Attachpoint name="attachpt_obslight_1"> <AttachedObject> <Effect effectName="fx_lightObsRedSteady" effectParams=""/> </AttachedObject> </Attachpoint> <Visibility name="general_light"> </Visibility> </FSMakeMdlData>

From what I've read, there need to be precisely SIX spaces between obslight_1 and <?xml...
 
Top