Edit contents of a DFile.bin file

Post here anything related to the MGL EFIS systems
Forum rules
Please keep your posts friendly and on topic. No politics or discussions of a controversial nature not related to our favorite subject of flying and avionics. Offending posts may be removed or moderated.
Post Reply
Carbon-14
Posts: 3
Joined: Fri Jun 11, 2021 7:38 pm

Edit contents of a DFile.bin file

Post by Carbon-14 »

Is there any way to edit or extract the screen files from a dfile.bin? I'd like to use the existing screens as a starting point to updating one or two of the pages. Is that possible or should I just start from the default?

Thanks!
sparxfly
Posts: 71
Joined: Mon Aug 31, 2020 5:57 pm
Location: Waikato, NZ
Contact:

Re: Edit contents of a DFile.bin file

Post by sparxfly »

In Project menu, Copy current default screens....., then edit as you wish.
A much easier learning curve modifying from the existing screens than starting from scratch with a blank screen.
Stuart
NZ MGL dealer
Carbon-14
Posts: 3
Joined: Fri Jun 11, 2021 7:38 pm

Re: Edit contents of a DFile.bin file

Post by Carbon-14 »

Thanks for the help! Unfortunately, I get a "File not found." error when I try that. Not sure what file its refering to but unless someone has another suggestion, I think I'm out of luck.
rainier
Site Admin
Posts: 662
Joined: Fri Aug 28, 2020 7:03 pm

Re: Edit contents of a DFile.bin file

Post by rainier »

OK that dfile.bin - where does it come from ? Has this been created by somebody and you want to extract ?
If yes - use the simulator/screen designer. Place file in screens folder of active project - after restart it will use the dfile instead of it's own built in screens (including all possible selections). In your system defaults menu select the desired configuration (which will be in that dfile - there could be a lot of screen files in there). Once you have everything selected and showing in the simulator then choose to extract the screens files to a new project.

Alternatively if you want to have some fun and know what you are doing - view the contents of the dfile.bin in a hex viewer - you will quickly see how it is organized - very simple. It has a directory at the start that contains up to 255 entries (thus one dfile is limited to a maximum or 255 screen files). Each entry can easily be identified - it contains the name of the file, the size of the file in bytes and a start address in the dfile.bin file.
That's it - pretty straight forward. Since the file is read only it does not require a complicated file system management structure.
Post Reply