Source Code Center

Source Code
of my own programs
Links to sites
with VGAP Source Code
List of available
VGAP files

with VGAP Source Code

My Projects

I've written some small utils myself (or better: dirty hacks!) to keep track of some data I always or very often use. All utils have the same basic principles, but heck, they work! The code is written in C++ and should not be too Macintosh specific - it should be easily ported to any other system.
You may use the code for whatever you want if my work will be appreciated. Drop me a line when you include my code in your own util. I would appreciate it if you would send me a copy of your util when you've finished it!

Timo


  1. Planets Score Tool
  2. This small util will extract the score from an unpacked resultfile (i.e. the genX.dat file) and will use it to compile a small text file similar to the one you see in Planets or Winplan. This util will also sort the data and write it to a tab delimited 'scores' file which you can import in a spreadsheet to draw a nice graph of the running score. You can find an example of this text file and a graph I've made on my Mac using the scores file here: game2.

    Source code: project1.zip


  3. PTScore Tool
  4. This util will use the score from a Thomas Voight's PTScore.exe outputfile and will sort and write it to a tab delimited 'scores' file which you can import in a spreadsheet to draw a nice graph of the running score. You can find an example of a graph I've made on my Mac using the scores file here: game1.

    Source code: project2.zip


  5. Convert Coordinates
  6. This new util will take the coordinates of the starmap you're using from the XYPLAN.DAT file and write them to a plain text file with the format x,y. Example:
    1234,2345
    2345,1234

    I use this textfile to import it in an advanced graphics (Macintosh) application to make my own starmap.
    (With a little rewriting it should be capable of reading the PLANETXY.DAT file.)
    For more info check out my StarMap Service.

    Source code: project3.zip
    DOS application: ConvCoor.
    Adam Quigley has used my C++ source code and converted it to a PERL script. Get it at his homepage.


  7. BMP2Icon Project
  8. I've been looking around for months searching, asking and begging for a good Icon Editor... I've tried about seven or eight different editors, but none of them had the specifications I wanted. None of them could convert a 16 colour BMP of 32 x 32 pixels into the identical ICON of 32 x 32 pixels.
    Just a few could read/import/capture the BMP and if it could dot that, always something went wrong with the colours when saving the .ICO file.

    After examining and comparing the fileformats of .ICO files and .BMP files, I've written a dirty hack that could to the job. The source code is available for download below. I've included the specifications of the fileformats I've found and used.

    Source code: project4.zip


Links to sites with VGAP Source Code

Andre van den Bos

Your primary source for new VGA-Planets tools will be the famous Planmap II headerfiles of the Dutchman Andre van den Bos. These headerfiles will reveil the fileformats of all major files. Get his C headerfiles by surfing to his WWW site.

Kero van Gelder

New to this subject is this other Dutchman: Kero van Gelder. In addition to the Planmap header files Kero has described the valuable fileformats of the .RST file, the .TRN file and some others. And that's not all! You can get his self-written UNPACK and MAKETURN utils with source code. There is even a still growing version of a text-based vga-planets editor (also with the source code included).
His code is written in C and should work on any MS-DOS or UNIX like computer. (It even works on my Macintosh...!)
A must go! You have to visit his homepage!

Charles Bloom

A neat site carrying misc vga-planets stuff - similar to mine, but smaller. You can find the source code of his self written utils like planfmt.zip right there.
Get them at his site.

Roger Burton West

Author of several self written utils, including one that automatically renames new ships by ship type. Another util extracts the turn number from your game data and returns it to the standard output - perfectly suited for professional use in your batch files! The source code is included in all of his files.
Surf to his homepage.

Adam Quigley

Adam has used some of my C++ source code and converted it to PERL scripts. Get it at his homepage.


List of available VGAP files with Source Code

Some third party utils come with (partial) source codes. You can find these in the regular online VGAP archives.
The following files have source code included: The FTP site in Berlin even has its own directory for source codes. You can find there about half the number of the files listed above.

PHost Development Kit

A Host/PHost independent development kit. Allows you to write Addons and other VGAP utils. There are files for at least 12 different operating systems. DOS/UNIX/OS2 and many, many more. Get your kit at the PHost site of Andrew Sterian and friends.