Page 1 of 1

Edit contents of a DFile.bin file

Posted: Mon Aug 07, 2023 7:20 pm
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!

Re: Edit contents of a DFile.bin file

Posted: Tue Aug 08, 2023 7:39 pm
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.

Re: Edit contents of a DFile.bin file

Posted: Wed Aug 09, 2023 6:58 pm
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.

Re: Edit contents of a DFile.bin file

Posted: Fri Aug 18, 2023 3:34 pm
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.