Jump to content
Sign in to follow this  
OMGBBQ32

Modifying Weather Themes

Recommended Posts

I almost thought that picture was another screenshot you took from Flight. ^_^

Share this post


Link to post
Share on other sites

Well I considered this. I wanted to kill off the winds in each weather theme. However once I saw how much work with little room for for error using the cmd lines, and that those errors could lead me to require a reinstall. It wont be worth the risk. Since reinstall is iffy as well at this point. If it had been as simple as just editf the XML or a cfg then yes. I will be sitting this one out. Odd you can't just edit the xml.

 

Moe

Share this post


Link to post
Share on other sites

I've been trying to create new weather themes instead of modifying the existing themes, but I've run into problems. This is what I'm doing:

  • Taking an existing weather theme including the meta file and renaming it
  • Assigning a new GUID to the meta file
  • Changing the name and the description of the weather theme

When I take these two files and insert them into the original CoreContent1.pak, the new weather theme shows up correctly in the menu and also works fine ingame.

When I create an addon containing these two files, the new weather theme shows up correctly in the menu, but the physics ingame are horribly broken.

 

Why is this? Am I missing some dependencies?

Share this post


Link to post
Share on other sites

Can you post the .flightAddon, or the source files along with the .addonSettings?

 

Also, are you using Non-GFWL mode, or GFWL mode?  They load addons in a slightly different order.

Share this post


Link to post
Share on other sites

It looks like something is wrong with the weatherTheme in the addon.  The values for speed etc are massive.

 

<WindLayer>

 

<Altitude>2.695882E+08</Altitude>

 

<Speed>2000000</Speed>

 

<GustSpeed>3000000</GustSpeed>

 

<Direction>1.875033E+08</Direction>

 

<Variance>2E+07</Variance>

 

<TurbulenceLevel>LIGHT</TurbulenceLevel>

 

</WindLayer>

 

What did you use to generate the binary files?

Share this post


Link to post
Share on other sites

I was using the AddonBuilder to export the .flightAddon. I guess it's a problem with floating point numbers since my system is using decimal commas. I think it would be best if the compiler ignored the locale settings and always used decimal points.

 

On another note, I was unaware that the AddonBuilder generates binary files out of the .weatherThemes. The original .weatherThemes are XML files so I guess it shouldn't be necessary for them.

Share this post


Link to post
Share on other sites

Yeah, it converts simprop to the binary version to improve load speed in Flight.

 

Ok, so your weatherTheme xml has the floating point numbers with decimal points, but your system is set to decimal commas?  Or do you have decimal commas in the xml?

Share this post


Link to post
Share on other sites

Ok, so your weatherTheme xml has the floating point numbers with decimal points, but your system is set to decimal commas?

 

Exactly, my weatherTheme XML looks like this:

 

<WindLayer>

<Altitude>269.588226</Altitude>

<Speed>2.000000</Speed>

<GustSpeed>3.000000</GustSpeed>

<Direction>187.503265</Direction>

<Variance>20.000000</Variance>

<TurbulenceLevel>LIGHT</TurbulenceLevel>

</WindLayer>

 

Compiling this results in the .flightAddon I posted above, probably due to my locale settings.

 

 

When I use the SimPropCompiler to convert SPB files, entries like these appear in the resulting XML:

<WorldPosition>21,5786833332914,-158,208286111111,19,6200092946451</WorldPosition>

 

I assume it should actually look like this:

<WorldPosition>21.5786833332914,-158.208286111111,19.6200092946451</WorldPosition>

 

In this case compiling the XML again fails because of the ambiguous commas:

 

Unhandled Exception: System.IO.InvalidDataException: Float was not the expected size

   at FlightToolkit.Property.ReadXML(XmlTextReader xr)

   at FlightToolkit.PropertySet.ReadXML(Symbols symbols, XmlTextReader xr)

   at FlightToolkit.PropertySet.ReadXML(Symbols symbols, XmlTextReader xr)

   at FlightToolkit.PropertySet.ReadXML(Symbols symbols, XmlTextReader xr)

   at FlightToolkit.XML.Read(Symbols symbols, Stream inputStream)

   at FlightToolkit.SimProp.ReadFromXML(Stream inputStream, Symbols symbols)

   at FlightToolkit.SimProp.ReadFromXML(String input, Symbols symbols)

   at spb2xml.Program.Main(String[] args)

Share this post


Link to post
Share on other sites

Awesome, thanks for the detailed description.  I'll try to look into this over the weekend and hopefully have a new version out with a couple other fixes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...