Sign in to follow this  
Guest visualflight

Need help compiling with BGLC

Recommended Posts

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

Share this post


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

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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/

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