/*
 *	This program will dump the .DAT data files for the Three-Sixty 
 *       product HARPOON.  HARPOON (TM), Three-Sixty and Three-Sixty logo are 
 *       trademarks of Three-Sixty Pacific, INC.  Copyright 1989 Three-Sixty 
 *       Pacific, INC. All rights reserved.  It currently supports the 
 *	 GIUK, NACV and MEDC battlesets.
 *
 *	This program was reverse engineered from playing the HARPOON game. I
 *	 needed to lookup data quicker than was provided via the game, so I 
 *	 wrote this program to dump the data suitable for printer output.
 *
 *	To use this program, the user must assign a logical device name to
 *	 the GIUK.DAT file location.  For example:
 *
 *		assign dump_file: harpoon2:			or
 *		assign dump_file: dh0:harpoon2			or
 *		assign dump_file: ram:
 *
 *	Then run the program:
 *
 *		dump_harpoon giuk all
 *		dump_harpoon nacv all
 *		dump_harpoon medc all
 *		dump_harpoon giuk plane ship sub missile torp
 *		dump_harpoon >ram:giuk.out  giuk all
 *
 *	If you run the program with no parameters, then the usage is output.
 */

     written by: Mark A. Kyprianou

The program, DUMP_HARPOON, was written entirely by Mark A. Kyprianou,
and therefore it's source is the sole property of Mark A. Kyprianou,
I retain all rights to the source.  The executable is released as FreeWare,
I retain the rights, but allow free copying and distribution except where 
such would infringe upon my rights as described above.  This readme file 
must accompany the executable.

I would like to hear from any users of DUMP_HARPOON because it provides
me feedback on the programs usefullness, as well as provides me with
an incentive to support it and future enhancements. (Item 1 is complete or
up to date with this release, Item 2 below is currently in the works.)

For a donation, I will send you the latest source for DUMP_HARPOON.

Future enhancements could include:
	1)Support for other Battle Sets
	2)An intuition based utility to modify/edit the data.
	3)Support for non-Amiga versions of HARPOON.

Below is a sample output from DUMP_HARPOOON:

				Torpedo Data

                                   RANG RANG                      
                        DAMG  DAMG HIGH  LOW          HGH LOW  HIT
Idx    Name              SUB  SHIP  SPD  SPD ?? ?? ?? SPD SPD PROB ?? ??
=== ================== ===== ===== ==== ==== == == == === === ==== == ==
  0 Mk23 Torpedo          23     0  6.0  0.0  D 40  0  20   0  60%  2 31
  1 Mk24 Tigerfish        85   170  7.0 16.0  D 40  2  35  24  60%  2 31
  2 Mk8 Torpedo            0   102  2.5  3.5  0  0  0  45  40  30%  5 53
  3 Stingray Torpedo      23     0  6.0  0.0  D 40  3  45   0  70%  1 42
  4 Mk46 NEARTIP Torp     23     0  6.0  6.0  D 40  2  45  25  60%  2 42
  5 Mk48 ADCAP Torp       75   150 15.0 25.0 1A 80  2  60  40  80%  1 32
  6 E40-75A Torpedo       50     0  7.0  0.0  D 40  0  30   0  50%  2 42

				SONAR Data

                        ACT PASS      ACT PASS        
                        DET  DET NUM  DET  DET        
Index    Name           RNG  RNG  CV   %    %  TYPE ??
===== ================= === ==== === ==== ==== ==== ==
    0 HType 162/162M      0    0   0  70%   0%   H   0
    1 HType 184/184M      3    1   0  80%  40%   H   0
    2 HType 186           0   24   2   0%  60%   H   0
    3 HType 187           8   12   2  80%  50%   H   0
    4 DType 195/195M      1    0   0  80%   0%   D   0
    5 HType 197           0   16   0   0%  60%   H   0

		Ship Data

Idx:44 Mod Kashin            Type:DDG   Spd:35/21 Dis:3950 Len: 147 Dam:127 
 0 13  0  D  0  0  0  0 41 23  3  9  4  1  0 28 47  0  0  0  0  0  0  1  1 53 
	SONAR:HMF Hull          ACT(  4nm, 60%) PASS(  2nm, 30%)TYPE:H,CV: 0
	SONAR:TMF VDS           ACT(  5nm, 60%) PASS(  0nm,  0%)TYPE:T,CV: 0
	RADAR:Head Net C        ACT( 70nm, 75%) TYPE:HF
	RADAR:Big Net           ACT(200nm, 80%) TYPE:AS
	RADAR:Don Kay           ACT( 15nm, 75%) TYPE:SS
	RADAR:Don Kay           ACT( 15nm, 75%) TYPE:SS

    (  1)AK-630 30mm/65 pair            Ammo:  15
        twin 30mm bursts  
    (  1)AK-630 30mm/65 pair            Ammo:  15
        twin 30mm bursts  
    (  1)533mm Torpedo Tubes            Ammo:   5
        SET-65 Torpedo   
    (  1)76mm/60 Gun                    Ammo:  40
        76mm Shell        
    (  1)76mm/60 Gun                    Ammo:  40
        76mm Shell        
    (  0)Helo Pad                       Ammo:   1
    (  2)RBU 6000 ASW Mortars           Ammo:   5
        ASW Mortar Salvo     
    (  1)SA-N-1 Launcher                Ammo:  22
        SA-N-1 Goa           
    (  1)SA-N-1 Launcher                Ammo:  22
        SA-N-1 Goa           
    (  4)SS-N-2C Launchers              Ammo:   1
        SS-N-2C Styx         


				Plane Data

       ********************
IDX: 13 F-14A Tomcat         TYPE:Fighter  Cruise Range:1556

??: 2DF  F A0  0 6A  0 50 BC  5  E  C 28 28  D  0  F  0  3  6  6 41 
	             Loiter    Cruise  Military  Aftrbrnr
	Vlow/Low        300       405       405       405
	Medium          300       650       708       765
	High/VHigh      300       792      1067      1342

	RADAR:AWG-9         LD  ACT(170nm, 70%) TYPE:SD

Ferry        RANGE:1564  Tanker       RANGE:1482  AirToAir     RANGE:1350  
  2)AIM-7M Sparrow         1)Refuel Store           6)AIM-54C Phoenix      
  2)AIM-9L Sidewinder      1)Drop Tank              2)AIM-9L Sidewinder    
  2)Drop Tank                                       2)Drop Tank            
LR AirToAir  RANGE:1564  
  4)AIM-54C Phoenix      
  2)AIM-7M Sparrow       
  2)AIM-9L Sidewinder    
  2)Drop Tank            

Thanks to Felix Hack for the initial data layout documentation I started with.

Mark A. Kyprianou
36 Virginia Ave
Shrewsbury, PA 17361
USA
(717)235-7644

July 4, 1991
