Sign in to follow this  
Guest christian

Weather theme question for Christian

Recommended Posts

Hi Christian,Not sure if this is the right forum for this question, but weather themes are "scenery" files!I downloaded your pdf on how to create weather themes. Rather than be too ambitious from the outset, I decided to try compiling and running a theme based on the example you provided. I duplicated the relevant lines 1024 times and the source code compiled the .bgl file without any problems at all. I then changed the output file name to have the .wtb extension and created a text-based .wt file of the same name.All seemed OK, except that when I tried to selct the theme from within the FS2004 GUI, I received a message saying the theme could not be loaded and to check the file exists. The file certainly exists - in the correct directory along with the .wt file, and I've checked the source carefully (as I say it compiled successfully).I'm just wondering if you have come across this message and if so what might be the cause of it please? Unfortunately the sim does not seem to produce any error report as to what it thinks is wrong with the .wtb file.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

I suspect your file is corrupt. Can you please post the source code (or parts of it)? I'll have a look then, hard to comment otherwise.Have you created a preview image also?Cheers, Christian

Share this post


Link to post
Share on other sites

Hi Christian,Below is the source code. It should be an exact copy of the example you gave, excepting of course the second header, index and duplications of data. Below is the first 22 lines. In my source code, I have repeated lines 13 to 22 by 1024 times, so the total number of source code lines was 10252. As far as the bitmap was concerned, I just copied and renamed one of the existing ones for the purposes of the test. I'm not sure if the forum will wrap any of the single lines into two, but the source is definitely not wrapped in any way.WTB_HEADER_1WTB_INDEX 2,1,2,1WTB_WIND 985.000000,0.000000,0.000000,0.000000,0.000000,TURBULENCE_NONE,WIND_SHEER_GRADUATEWTB_WIND 2000.000000,20.000000,0.000000,270.000000,0.000000,TURBULENCE_NONE,WIND_SHEER_GRADUATEWTB_WIND 6000.000000,25.000000,0.000000,270.000000,0.000000,TURBULENCE_NONE,WIND_SHEER_GRADUATEWTB_VISIBILITY -1.000000,-450.000000,2598.000000WTB_CLOUDS CLOUDS_CUMULUS,1750.000000,2050.000000,2,TURBULENCE_NONE,PRECIPITATION_NONE,-450.000000,PRECIPITATION_RATE_MODERATE,ICING_NONEWTB_CLOUDS CLOUDS_CIRRUS,12000.000000,12250.000000,6,TURBULENCE_NONE,PRECIPITATION_NONE,-450.000000,PRECIPITATION_RATE_MODERATE,ICING_NONEWTB_THERMAL_STARTWTB_THERMAL 15.000000,5.000000,0.000000WTB_THERMAL_END 1013.099976WTB_HEADER_2 32,32,265WTB_INDEX 2,1,2,1WTB_WIND 985.000000,0.000000,0.000000,0.000000,0.000000,TURBULENCE_NONE,WIND_SHEER_GRADUATEWTB_WIND 2000.000000,20.000000,0.000000,270.000000,0.000000,TURBULENCE_NONE,WIND_SHEER_GRADUATEWTB_WIND 6000.000000,25.000000,0.000000,270.000000,0.000000,TURBULENCE_NONE,WIND_SHEER_GRADUATEWTB_VISIBILITY -1.000000,-450.000000,2598.000000WTB_CLOUDS CLOUDS_CUMULUS,1750.000000,2050.000000,2,TURBULENCE_NONE,PRECIPITATION_NONE,-450.000000,PRECIPITATION_RATE_MODERATE,ICING_NONEWTB_CLOUDS CLOUDS_CIRRUS,12000.000000,12250.000000,6,TURBULENCE_NONE,PRECIPITATION_NONE,-450.000000,PRECIPITATION_RATE_MODERATE,ICING_NONEWTB_THERMAL_STARTWTB_THERMAL 15.000000,5.000000,0.000000WTB_THERMAL_END 1013.099976

Share this post


Link to post
Share on other sites

Hmm, looks ok to me.Can you please attach the weather binary? I think it should fit just as an attachment. I'll try and see what's wrong...Cheers, Christian

Share this post


Link to post
Share on other sites

Actually, you'd better send the file to me directly.Christian

Share this post


Link to post
Share on other sites

Oops. There is a mistake in my manual indeed. Firstly, regarding the clouds base and tops switch the example is correct and the macro is wrong. It doesn't matter though since I basically only misnamed base as top and vice versa, but didn't swap them.The reason it doesn't work though, is because you have to add add 9at the very top (as a version identifier). This should really be in my manual, ahem (slowly walks out of the room, whistling a merry tune)..I didn't see that mistake earlier, because I didn't have an example to compare to yesterday, sorry...try that and I'll bet it'll work.Cheers, Christian

Share this post


Link to post
Share on other sites

Hi Christian,Thanks very much - yes it now works! And I tried a few of my own themes and they work as well. Thanks very much for your document and compilation macros. I guess next time I'm in town I'll have to buy the Idiot's guide to Meteorology so that I can actually do something sensible with it all. Thanks!btw, people don't need to have a bitmap for their own themes, as MS have a default.bmp in the directory, so they only need the two .wtb and .wt files.

Share this post


Link to post
Share on other sites

Hi Christian,Not that anyone can do anything about it, but I think I may have found a bug with the windsocks when using weather themes. See my pos in the FS2004 forum.

Share this post


Link to post
Share on other sites

Thanks, I'll have a read.Great you got it working.Christian

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