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

FSX Compiling Placement,xml file

Messages
235
Country
ca-ontario
I have been away from FS developer forum for a while since I have been busy "sailing" down the Mississippi River in my Boat that I made thanks to all the help from this forum. I have not done all the insides of the boat yet, but the cockpit is were I need it to be to enjoy sailing it. Now I am looking at adding buoys along the route as they would exist in the real work. I have marine charts to locate them.
Since these will be taken from the "global scenery " file, I don't have to bother with making a library,bgl file as I did when I dabble at making a couple of ports. But I will need a placement.bgl file, which I will be placing under the "scenery/generic/scenery" folder of FSX as described under the "Compiling BGL" literature of the SDK. This SDK literature also shows the format for the XML file. My problem at the moment is in the instruction for the sample given is says "Run the BGLComp compiler on the file". I am pretty sure I have done this before, since I have pacement,bgl file for my ports. I have been looking all over for how to compile the placement file and I can't find it and I can't remember how I did it before. Is it something that was done when I was compiling the library file, or was it done separately?

Can somebody remind me how it's done?

Michel Paquette
 
I may have just found out how simple it is. I noticed I had a shortcut for the >BglComp.exe on my desk top. So I finally decided to just drag my file to that shortcut, and it created a BGL file. Is it that simple?
If so, I have something else wrong because once I put the BGL file in its place and I cant see my buoy. Am I missing a step for the new file to be read by FSX?

Michel Paquette
 
Are you looking in the right place?
I may have just found out how simple it is. I noticed I had a shortcut for the >BglComp.exe on my desk top. So I finally decided to just drag my file to that shortcut, and it created a BGL file. Is it that simple?
Yes
If so, I have something else wrong because once I put the BGL file in its place and I cant see my buoy. Am I missing a step for the new file to be read by FSX?
Did you add the textures?

Are you looking in the correct place?
 
George
I made sure to locate it just ahead of my boat's present location.

If the buoy was taken from the FSX global scenery file, would the texture not already be there?

Michel
 
George
Back at my computer this morning and I took another look at my placement file. Stupid typo. I put N29 19.01 instead of N29 49.01. You suddenly realize how far 30 minutes in latitude is.
One more thing. The SDK says to put the placement file under Scenery/generic/scenery, but I still did not see it.
When I did my ports, I seem to remember that the object bgl file and the placement bgl file needed to be in the same directory. So I tried putting the placement file in the same directory as the object BGL file which is Scenery/global/scenery, and this works.
Although it was suppose to be directly in front of my boat, but it ended up about 50 yards to the right, but this could be rounding off of the decimal of minutes too much by using only 2 decimal for the minutes. I will try using 3 decimal places instead of just 2

Thanks you for your valid questions.

Michel
 
Hi again
On more question on these buoy. I would like to add a flashing beacon on top of the buoy.
I have notice that the buoy already has a light (red or green) on the top that is sort of visible at knight if I am close enough. But what I am looking for is mor aof a flashing light that can be seen in daytime also.
According to the "Compiling BGL" this is what I add to my placement file to add the beacon (I think this is what I need, or should I be looking at strobe lights):

<AttachedObject
attachpointName="attachpt_beacon"
pitch="0"
bank="0"
heading="0">


<Beacon
type="CIVILIAN"
baseType="SEA_BASE"/>
</AttachedObject>

Is trere something else to add so that it blinks or light up?

Michel
 
The model would need a beacon attachpoint (done in gmax) for that to work and it would be the default rotating beacon you see at all the airports. You can place an effect the same way you placed the buoys, in fact you could add a placement for each one using the same coords you used for the buoy. If you want the beacon to be lit only at dawn/dusk/night you have to place it twice and specify effectParams="DAY=0;NIGHT=1" in one and effectParams="DAWN=1;DUSK=1" in the other. Otherwise just place it once and leave that line out if you want them on all the time. IIRC fx_obslight2.fx is a flashing red obstruction light so try this using the coords from one of your buoys:

Code:
<SceneryObject
  lat="48.7292242904541"
  lon="-116.293408601814"
  alt="13.591M"      <!-- adjust this as needed to put the effect on top of the buoy, "F" (feet) works too -->
  altitudeIsAgl="TRUE"
  pitch="0"
  bank="0"
  heading="0"
  imageComplexity="NORMAL">
  <Effect
  effectName="fx_obslight2.fx"
  effectParams="DAY=0;NIGHT=1"/>
</SceneryObject>

<SceneryObject
  lat="48.7292242904541"
  lon="-116.293408601814"
  alt="13.591M"
  altitudeIsAgl="TRUE"
  pitch="0"
  bank="0"
  heading="0"
  imageComplexity="NORMAL">
  <Effect
  effectName="fx_obslight2.fx"
  effectParams="DAWN=1;DUSK=1"/>
</SceneryObject>
 
Last edited:
JRobinson
On my first attempt at leaving the parameter line out I forgot the "/>" at the end of effect name.
I believe you know what that means.

Finally, I got it right. Looking at the effect folder, I saw that I have many other option for my light.
I will experiment whit different one to see which I prefer. At the moment I have "fx_lightObsWhiteFlash40Hi.fx". Which is visible from a distance in daylight. Since I only do my yachting in daytime, I need something visible in daylight.

Thank you for your help.

Miche
 
Back
Top