Jump to content
Compatible Support Forums
Sign in to follow this  
akhila1

about flightgear

Recommended Posts

hi,

how to read .btg files as its in binary format. I m trying to put X-Plane terrain in FlightGear. X-Plane contains .ter files in Windows and FlightGear contains .stg files in Linux. In X-Plane .dsf is in binary format and in FlightGear its .btg. I converted .dsf files into .txt format for my understanding and now my next aim is to convert .btg into .txt format. I want to knw how to convert the file. Is there any tool for conversion so that i can proceed further.

Share this post


Link to post

You just want to see what text is in the file, right? That is, you aren't trying to edit the binary, right?

 

You can use the strings command to do that. If it's not installed by default in your distro, install the binutils package.

 

I'm not familiar with .btg files, but you will be able to see any ASCII they contain with this command:

Code:
strings file.btg
If they contain unicode, this will probably work better:
Code:
strings -el file.btg
If you get a lot of short little garbage strings, you can add a length discriminator, like -n8 to only show you strings of 8 chars or more.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×