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.

Macros that appear only in winter

Featured Replies

I want to build some mounds of snow alongside a swept runway. I can use Novasim to build the mounds but there is no inbuilt function to make the .api macro only appear in winter. I believe the "IfVarRange" parameter in the .api macro needs to be changed to do this. Can anyone tell me the code please?Thanks in anticipation,John

  • Commercial Member

Try to place this directly after the Area command:[tt]IfVarRange( : 6F8 0 0 )[/tt]A better option would probably be to use the day of the year (38A) instead of the season (6F8) variable, as the season variable does just split the year in four parts and does not consider that winter is longer on some places then on others, while the landclass/mesh scenery does consider that. But to get the day of the year working correct you would need to know which days belong to your area (Gerrish Grey did some research on that).

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Thanks for you prompt reply Arno. I just tested the 6F8 variable and that works fine for mid-winter. I understand what you are saying about the length of seasonality and have the problem you refer to with my ground tiles. I used "Groundmaker" to bolt together 516 x 516 tiles and that works fine but there is a mismatch in the seasonal dates between it and FS9 that I do not know how to correct.I would like to explore the 38A code a little more and if you could tell me how to specify the start and finish date in the macro I might be able to look at the "Groundmaker" code and correct that too.John

  • Commercial Member

Then you would have to try something like this:[tt]IfVarRange( :toend 38A 60 330 )Jump32( :showit ):toendJump32( : ):showit[/tt]Because winter normally goes over the new year you can't check it with one statement. I chose to use the reverse check (so no winter) and then jump to the correct source. You could also use two IfVarRange commands to check the end of the year and the begin. In this case I assumed winter is roughly december till february, but that should be adjusted for your region of course.

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Thanks Arno, that's very useful. I will get working on it this afternoon.John

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.