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.

Need help compiling with BGLC

Featured Replies

I'm trying to edit a default FS2004 FL type BGL file to get rid of some default airport flattens, but I'm not very experienced with using BGLC. I used the cool new program LWMViewer to decompile the bgl file, I edited out the part I don't want, which looks like this:; Start of cell 44 x 193 dataCELLSTART_000002 label wordCellID_000002 EQU LWMCellID 0, 0, _Transparent_, 44, 193 LWMDataAreaDrawPolygons 1,_Flatten_,1,1,15 LWMPoly3 5, 0, _Water_, 46, 80, 46, 80 LWMPoint3 115, 204, 0 LWMPoint3 255, 30, 0 LWMPoint3 255, 217, 0 LWMPoint3 226, 255, 0 LWMPoint3 159, 255, 0 LWMDataAreaDrawPolygons 1,_Flatten_,1,2,14 LWMPoly3 7, 0, _Water_, 46, 80, 46, 80 LWMPoint3 36, 241, 0 LWMPoint3 92, 242, 0 LWMPoint3 163, 156, 0 LWMPoint3 209, 212, 0 LWMPoint3 190, 238, 0 LWMPoint3 190, 255, 0 LWMPoint3 24, 255, 0 LWMDataAreaDrawPolygons 1,_Flatten_,1,2,15 LWMPoly3 8, 0, _Water_, 46, 80, 46, 80 LWMPoint3 24, 1, 0 LWMPoint3 190, 1, 0 LWMPoint3 188, 255, 0 LWMPoint3 128, 255, 0 LWMPoint3 128, 142, 0 LWMPoint3 59, 141, 0 LWMPoint3 1, 217, 0 LWMPoint3 1, 30, 0 LWMDataAreaDrawPolygons 1,_Flatten_,1,1,16 LWMPoly3 3, 0, _Water_, 46, 80, 46, 80 LWMPoint3 159, 1, 0 LWMPoint3 226, 1, 0 LWMPoint3 194, 42, 0 LWMDataAreaDrawPolygons 1,_Flatten_,1,2,16 LWMPoly3 6, 0, _Water_, 46, 80, 46, 80 LWMPoint3 187, 255, 0 LWMPoint3 150, 255, 0 LWMPoint3 150, 240, 0 LWMPoint3 129, 210, 0 LWMPoint3 128, 1, 0 LWMPoint3 188, 1, 0 LWMDataAreaDrawPolygons 1,_Flatten_,1,2,17 LWMPoly3 4, 0, _Water_, 46, 80, 46, 80 LWMPoint3 187, 100, 0 LWMPoint3 149, 99, 0 LWMPoint3 150, 1, 0 LWMPoint3 187, 1, 0CELLEND_000002 label word; End of cell 44 x 193 dataI saved the file, moved it into a foder that contains BGLC, TDFHeaders.inc, and TDFMacros.inc, and dropped it into BGLC. A few lines of code went by, but no bgl file was generated. I've tried lots of things to try to make this work. I made sure that TDFMacros is more recent than Dec. 13, which it says to do in the LWMViewer manual. I deleted everything in my file above the "include" commands. I changed the file to ASM, even though in rhumbaflappy's LWM tutorial it says you can leave it as a text file. I also, of course, read the BGLC SDK. Now I'm stumped, so I'm wondering if anyone can help. Did I edit out the right lines? Do I have to do something else to the file header? Please use English, because like I said I'm not very familiar with the BGLC language. Thanks!-Scott

Hi Scott.Leave this in the code:; Start of cell 44 x 193 dataCELLSTART_000002 label wordCellID_000002 EQU LWMCellID 0, 0, _Transparent_, 44, 193CELLEND_000002 label word; End of cell 44 x 193 dataThat should keep the LWM index info at the end of the file OK, even though there's no data in the cell.It can be a TXT file. :)Dick

Thanks for your help, I finally got my BGL. Modifying default LWM files is a far cry from placing macros with FSSC, but I guess if you want to make a good scenery, you've got to do it right.-Scott

ScottI'm glad you've got this sorted out now, but if you ever have a similar problem try running BGLC from a command prompt. Not as easy as drag and drop, and you will need to familiarise yourself with how the command prompt is used if you've not used it before, but it will allow you to see the error message from BGLC which should help you to pinpoint the error.John FarrieVisual Flighthttp://www.visualflight.co.uk/

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.