PDA

View Full Version : bgl file search


Real Old Salt
June 9th, 2005, 10:53
I'd like to be able to change the default texture around an airfield. This A/P is located in the desert but the area around the runways and taxiways displays as partially grass.
Doing some research it looks like this could be changed in the .bgl file for the airport's background. But how do I find the right .bgl file?
Does anyone know of a tool that will/can search through this files?

crashaz
June 9th, 2005, 11:07
DOnt know about which BGL file ROS but you will also need to change the BGL.... using BGLAnalyzer... can decode a BGL .. make your texture edit and then recompile using SCASM.

Real Old Salt
June 9th, 2005, 11:48
DOnt know about which BGL file ROS but you will also need to change the BGL.... using BGLAnalyzer... can decode a BGL .. make your texture edit and then recompile using SCASM.
Thanks, I have BGLanalze. It takes two steps to find out which airport a particular .bgl file is for. First you open the file with BGLAna.. then you have to decompile to a text file then, open that. There's a whole lot of files to go through just to find the one I need! There used to be a utility available that shortened that proceedure but I can't find it anywhere.

SdC
June 9th, 2005, 12:00
You could use fsregen http://www.nhreas.com/fsregen.html to see wat type bgl's they are.

SdC
June 9th, 2005, 12:03
or: if you know which texture (filename) is used, you could seach with Windows Explorer for the *.bgl file containing that filename and then use a hex editor to replace the filename with a desert texture filename.

Real Old Salt
June 9th, 2005, 15:19
LOL this is like the story of my life. Been chasing my tail for over 65 yrs. FSregen hasn't been updated since 2K2 and so can't open the newer ap.bgl files. Without being able to open those to determine which file I need, I'm dead in the water.

SdC
June 9th, 2005, 16:10
There are more tricks possible: you could use filemon.exe from www.sysinternals.com (http://www.sysinternals.com) to check which files are loaded when you load the scenery. With a bit of filtering, you should be able to locate the "grass" bitmap filename. Then you could place a "desert" bitmap with the same filename in the scenery's \texture folder.
It would help if you could post a screenshot of the problem area.

Real Old Salt
June 9th, 2005, 16:16
Thanks again. I'll try filemon.exe and see what I can do with that.