Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Weather theme question for Christian

Featured Replies

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.

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

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

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

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

Thanks Christian, I sent you the source and binary.

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

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.

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.

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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.