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.

Undocumented bit in VTP files

Featured Replies

Today I found the solution for analyzing MS files with VTP polygons like the nph****.bgl files, which contain polygons for non permanent water bodies. According to MS SDK there is a reserved bit in the VTPPolyCount record. I found that when this bit is set, the next byte that follows (usually 0x01 or 0x02) is part of the VTPPolyCount record: to the number of polygons given in bCount we must add the number contained in that byte multiplied by 128. This way it is possible to have more than 127 polygons with the same layer in the same texture in one VTPDataArea. So the VTPPolyCount macro in TDFMacros.inc should be rewritten, probably with a conditional assembler instruction, either testing for an additional parameter (contents of the additional byte) or testing the size of the Count parameter. For the time being one can add just a "db nn" instruction after the VTPPolyCount macro.-osman

Hi osman.Perhaps this is correct then? :; --------------------------------------------------------------------------------VTPPolyCountEx Macro Ex BYTE Ex ; Ex = multiple of 128EndM; --------------------------------------------------------------------------------In this case, if the Reserved bit is flagged ( = 1 ), then add a second byte that is the whole multiple of 128.EDITED:The format could simply be the same:VTPPolyCount 20,1VTPPolyCountEx 1for a polycount of 148 ...( 1 * 128 ) + 20 = 148 Can you email me a ASM with a poly count of greater than 127? mailto:[email protected]

  • 3 weeks later...

just to confirm you are correct :) I found that a few months ago and have posted that here on the odd occasion. I assume the same will hold true for the other macro with the 127 limit (can't remember the name now). I never found a bgl actually using it and never tested it either but it would make sense...I have even rewritten that macro, Rhumba should have a copy, don't have my TMFmacro.inc here unforunately...I'd still like to know the unknowns in the road / stream data though :(Cheers, 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.