Dumb question time If, for example, I wanted to pull a bgl apart (a scenery bgl that is) in FS9 to remove offensive bits or bit's that cause a hit on framerates.. is there a single bit of software available that would allow me to do it and recompile it again or is it a matter of what the scenery was compiled with in the first place and/or a requirement to have the source files?? I have a couple of airports that fall under this category.. some have static's coded into the scenery bgl and others have bits that look naff, animate naff and cause a frame hit. I don't want to delve into scenery building from scratch (yet) but would like to dip my toe in to this aspect of flightsim (the real one.. FS9)
I've done that kind of thing with FS9 bgl a couple of years ago. I probably used bglanalyse and Airport for Windows to recompile. Be waned, Airport for Windows has a rather steep learning curve... :brick:
I was looking for something more along the lines of 'Delete and Go' but this was always going to be a hope rather than a reality I went to re-edit a bgl a couple of days ago that I'd initially fiddled with using EZ-Scenery then re-fiddled with in Afcad and found that all of the EZ-Scenery stuff was now cast in stone! Not something I'd considered but something I'll be aware of in future so there was no way editing a-n-other bgl was going to be any easier! :brick: ;-)
Hi Dave. Send it over with a small description of what you want to remove, and I'll try to give it a wizz.
If successfull I'll post details so others could make use of it....
Best Rgds
Dan
Who's General Failure, and why is he reading my harddisk?
I think BGL analyze and Airport for windows both use scasm. I have never had much luck doing what your trying to do with those. If it was originally coded with XML, then BGLXML can dis-assemble the file into xml code. I have been able to edit the .xml file and delete items I did not want. I will say it was rather a hit or miss affair but with persistence and luck I succeeded. I say luck because, as usual, I really did not know what I was doing.
I think PeterM made his lovely McLeland Field using XML but I doubt very much the particular field I'm looking at was so produced. Scasm.. that's the word that was missing. I think I had it with ASD some years ago (another program I bought and rarely used) :roll:
OK.. I have some pointers now so thanks ;-) Tks for the offer of 'killing bits off' for me Dan but I'd really like to be able to kill them myself. However.. if all goes not to plan (expected).. you can look forward to receiving 'said' bgl via email ;-)
McLeland Field is XML and I have the original .txt files so that I can do what you are trying to do very easily and then recompile it with the SDK bglcomp program. That way I was able to remove the "Circling Sharks" which is a heavy hit and then recompile it with a new title "GBMcLeland_FieldNS.BGL" while keeping the original disabled as "GBMcLeland_Field.BGL.dis". The users BATCH file allows him to simply switch from "No Sharks" to "Sharks" from the desktop and all it does is rename those two files to make just the relevant one active.
I also use BGLX to decompile .bgl files into XML but a word of caution here as I have found that BGLX destroys the XML syntax of refuelling points and they then have to be re-written before using bglcomp to re-compile it.