- Messages
- 1,069
- Country

I was able to create some really cool sound effects at the NAS Alameda Air base I created over at SOH. We have worked on it for the past 5 months and it is ready to release. I created a bgl to activate the morning and evening colors each day on the base. It was done for a monthly range of 1,12 no problem. BUT and a big one for accuracy: Morning Colors are played each day at 08:00 local time on every U.S. military base in the world. Evening colors though are played at sunset when the flag is lowered ceremoniously. Sunset occurs at a different time every month (each day but I am not that crazy) which I averaged since we are only talking about a few minutes difference and this IS flight simulation.
I can create a bgl from my xml files one month at a time but I do not want to have my users changing the bgl every month. I tried to write a file with the twelve months in it, code below but it will NOT compile. Can anyone here tell me what is wrong with the code. I even created 12 effect files with <effect.../> around each date/time range but that did not work either. Any help greatly appreciated before I release the final version this week. Thank you. Here is my xml code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Created by Scenery Design Engine (SDE) on 5/16/2016 -->
<FSData
version="9.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<SceneryObject
lat="37.786492027"
lon="-122.300349099"
alt="0.0M"
altitudeIsAgl="TRUE"
pitch="0"
bank="0"
heading="0"
imageComplexity="NORMAL">
<Effect effectName="Cntrl_morningcolors" effectParams="MOY1,12;DOM=01,31;HOD=08,08;MOH=00,10;"/>
</SceneryObject>
<SceneryObject
lat="37.786492027"
lon="-122.300349099"
alt="0.0M"
altitudeIsAgl="TRUE"
pitch="0"
bank="0"
heading="0"
imageComplexity="NORMAL">
<Effect effectName="Cntrl_eveningcolors" effectParams=
"MOY1,1;DOM=01,31;HOD=17,20;MOH=20,10;"
"MOY2,2;DOM=01,29;HOD=17,20;MOH=50,10;"
"MOY3,3;DOM=01,31;HOD=19,20;MOH=00,10;"
"MOY4,4;DOM=01,30;HOD=19,20;MOH=45,10;"
"MOY5,5;DOM=01,31;HOD=20,20;MOH=15,10;"
"MOY6,6;DOM=01,30;HOD=20,20;MOH=25,10;"
"MOY7,7;DOM=01,31;HOD=20,20;MOH=25,10;"
"MOY8,8;DOM=01,31;HOD=20,20;MOH=25,10;"
"MOY9,9;DOM=01,30;HOD=19,20;MOH=25,10;"
"MOY10,10;DOM=01,31;HOD=18,20;MOH=35,10;"
"MOY11,11;DOM=01,30;HOD=17,20;MOH=05,10;"
"MOY12,12;DOM=01,31;HOD=16,20;MOH=55,10;"/>
</SceneryObject>
</FSData>
I can create a bgl from my xml files one month at a time but I do not want to have my users changing the bgl every month. I tried to write a file with the twelve months in it, code below but it will NOT compile. Can anyone here tell me what is wrong with the code. I even created 12 effect files with <effect.../> around each date/time range but that did not work either. Any help greatly appreciated before I release the final version this week. Thank you. Here is my xml code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Created by Scenery Design Engine (SDE) on 5/16/2016 -->
<FSData
version="9.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<SceneryObject
lat="37.786492027"
lon="-122.300349099"
alt="0.0M"
altitudeIsAgl="TRUE"
pitch="0"
bank="0"
heading="0"
imageComplexity="NORMAL">
<Effect effectName="Cntrl_morningcolors" effectParams="MOY1,12;DOM=01,31;HOD=08,08;MOH=00,10;"/>
</SceneryObject>
<SceneryObject
lat="37.786492027"
lon="-122.300349099"
alt="0.0M"
altitudeIsAgl="TRUE"
pitch="0"
bank="0"
heading="0"
imageComplexity="NORMAL">
<Effect effectName="Cntrl_eveningcolors" effectParams=
"MOY1,1;DOM=01,31;HOD=17,20;MOH=20,10;"
"MOY2,2;DOM=01,29;HOD=17,20;MOH=50,10;"
"MOY3,3;DOM=01,31;HOD=19,20;MOH=00,10;"
"MOY4,4;DOM=01,30;HOD=19,20;MOH=45,10;"
"MOY5,5;DOM=01,31;HOD=20,20;MOH=15,10;"
"MOY6,6;DOM=01,30;HOD=20,20;MOH=25,10;"
"MOY7,7;DOM=01,31;HOD=20,20;MOH=25,10;"
"MOY8,8;DOM=01,31;HOD=20,20;MOH=25,10;"
"MOY9,9;DOM=01,30;HOD=19,20;MOH=25,10;"
"MOY10,10;DOM=01,31;HOD=18,20;MOH=35,10;"
"MOY11,11;DOM=01,30;HOD=17,20;MOH=05,10;"
"MOY12,12;DOM=01,31;HOD=16,20;MOH=55,10;"/>
</SceneryObject>
</FSData>