Now ready for general usage/testing
Note that all indices are 0-based instead of 128-based.
Requires (only) JDK5 (since Mac people are likely to use this <_< ).
Works with Windows .plt pilots and Macintosh MacBinary .bin and raw resource fork pilots, regardless of the presence of a data fork in the MacBinary file (I think) and any other resource in the resource fork.
There are two major sections not filled in. Some part is probably planetary destruction status, since I haven't got that yet. Note that most things are shorts, even when a byte would suffice. Some knowledge of hexadecimal may be required. If you fill in all the unknowns, I'll create a converter, since I figured out where the missing 6*16 bytes went (this information is noted when running it). However, I can't do this until I know at least the sizes of the remaining.
Thanks to Guy for help and resources.
Some code contained in this resource was covered by the MIT X11 license. This information is covered in the readme.
Binary only (to most people).
Usage: from a terminal:
java -jar PilotReader.jar pilotfile.ext>outfile.txt
It'd be possible be write a batch/shell script to make some of this easier, using readline (Unix) and set /p (Windows). If created, I'll edit them in here. It'd probably be a good idea to allow passing a command-line argument and check if it is there before prompting for pilotfile, but always prompt for outfile (although perhaps save a default, or allow a simple numbering scheme)
-NC
This post has been edited by Nonconventionally Creative : 20 August 2009 - 04:32 PM