Compatible Support Forums: about flightgear

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

about flightgear

#1 User is offline   AKHILA1 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 05-November 09

Posted 05 November 2009 - 01:06 PM

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.
0

#2 User is offline   KenJackson 

  • stranger
  • Group: Members
  • Posts: 5
  • Joined: 25-June 09

Posted 28 November 2009 - 11:01 PM

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users