
Heroquest Datafiles 2-2005
--------------------------

The Heroquest game uses the datafiles put in specific folder/directory. 
By default this is the "data" folder, as indicated by the first line
in the hquest.cfg file: "datsubdir = data"
When tweaking the game one could make it point to another folder
to use that data instead, like "datsubdir = new_data".

The datafolder should contain:

hquest.qpf    Quest prefab : modifies prefab objects in the editor and the wandering monsters
bmp_flr.dat   Floor images : Additional bmp files added will be available in the game/editor*
bmp_obj.dat   Object images: Additional bmp files added will be available in the game/editor*
smp_eff.dat   Sound effects: Additional wav files added will be available in the game/editor*
smp_amb.dat   Sound effects: Do not Modify
bmp_main.dat  Main images  : Do not Modify
bmp_fnt.dat   Text fonts   : Do not Modify
All images in true color bmp format, both width and height must be an even number.
(* with a maximum of 99)

with the included Allegro dat.exe tool you can extract and add files from the .dat archives 
(The dat.exe tool requires alleg40.dll to be in the same directory or in the 
system directory. Use this tool add your own risk, running heroquest with 
unsuitable datafiles will give unpredictable behaviour.)

SYNTAX EXPORT ALL:
dat.exe bmp_main.dat -x *.* -t BMP  
dat.exe bmp_obj.dat  -x *.* -t BMP  
dat.exe bmp_flr.dat  -x *.* -t BMP  
dat.exe bmp_fnt.dat  -x *.* -t FONT (I Noticed fonts not exporting correctly)
dat.exe smp_eff.dat  -x *.* -t SAMP 
dat.exe smp_amb.dat  -x *.* -t SAMP 

SYNTAX IMPORT ALL:
dat.exe bmp_main.dat -a Z*.BMP    -t BMP  -c2 -h bmp_main.h
dat.exe bmp_obj.dat  -a OBJ??.BMP -t BMP  -c2 -h bmp_obj.h
dat.exe bmp_flr.dat  -a FLR??.BMP -t BMP  -c2 -h bmp_flr.h
dat.exe bmp_fnt.dat  -a FNT??.BMP -t FONT -c2 -h bmp_fnt.h  
dat.exe smp_eff.dat  -a EFF??.WAV -t SAMP -c2 -h smp_eff.h 
dat.exe smp_amb.dat  -a AMB??.WAV -t SAMP -c2 -h smp_amb.h

/* Allegro datafile object indexes, produced by dat v4.0.3, MSVC */
/* Date: Fri Oct 01 23:09:16 2004 */

#define ZBKG1         0        /* BMP  */
#define ZBKG2         1        /* BMP  */
#define ZBKGTILE      2        /* BMP  */
#define ZDICE1        3        /* BMP  */
#define ZDICE2        4        /* BMP  */
#define ZDICE3        5        /* BMP  */
#define ZDICE4        6        /* BMP  */
#define ZEXPL1        7        /* BMP  */
#define ZEXPL2        8        /* BMP  */
#define ZEXPL3        9        /* BMP  */
#define ZEXPL4        10       /* BMP  */
#define ZFLR          11       /* BMP  */
#define ZHATCH        12       /* BMP  */
#define ZLOGO1        13       /* BMP  */
#define ZOBJ          14       /* BMP  */
#define ZPTR01        15       /* BMP  */
#define ZPTR02        16       /* BMP  */
#define ZSHAD1        17       /* BMP  */
#define ZSHAD2        18       /* BMP  */
#define ZSHAD3        19       /* BMP  */
#define ZSHAD4        20       /* BMP  */
#define ZSHAD5        21       /* BMP  */
#define ZSHAD6        22       /* BMP  */

#define FNT01         0        /* FONT */
#define FNT02         1        /* FONT */
#define FNT03         2        /* FONT */
#define FNT04         3        /* FONT */

#define OBJ01         0        /* BMP  */
#define OBJ02         1        /* BMP  */
#define OBJ03         2        /* BMP  */
#define OBJ04         3        /* BMP  */
#define OBJ05         4        /* BMP  */
#define OBJ06         5        /* BMP  */
#define OBJ07         6        /* BMP  */
#define OBJ08         7        /* BMP  */
#define OBJ09         8        /* BMP  */
#define OBJ10         9        /* BMP  */
#define OBJ11         10       /* BMP  */
#define OBJ12         11       /* BMP  */
#define OBJ13         12       /* BMP  */
#define OBJ14         13       /* BMP  */
#define OBJ15         14       /* BMP  */
#define OBJ16         15       /* BMP  */
#define OBJ17         16       /* BMP  */
#define OBJ18         17       /* BMP  */
#define OBJ19         18       /* BMP  */
#define OBJ20         19       /* BMP  */
#define OBJ21         20       /* BMP  */
#define OBJ22         21       /* BMP  */
#define OBJ23         22       /* BMP  */
#define OBJ24         23       /* BMP  */
#define OBJ25         24       /* BMP  */
#define OBJ26         25       /* BMP  */
#define OBJ27         26       /* BMP  */
#define OBJ28         27       /* BMP  */
#define OBJ29         28       /* BMP  */
#define OBJ30         29       /* BMP  */
#define OBJ31         30       /* BMP  */
#define OBJ32         31       /* BMP  */
#define OBJ33         32       /* BMP  */
#define OBJ34         33       /* BMP  */
#define OBJ35         34       /* BMP  */
#define OBJ36         35       /* BMP  */
#define OBJ37         36       /* BMP  */
#define OBJ38         37       /* BMP  */
#define OBJ39         38       /* BMP  */
#define OBJ40         39       /* BMP  */
#define OBJ41         40       /* BMP  */
#define OBJ42         41       /* BMP  */
#define OBJ43         42       /* BMP  */
#define OBJ44         43       /* BMP  */
#define OBJ45         44       /* BMP  */
#define OBJ46         45       /* BMP  */
#define OBJ47         46       /* BMP  */
#define OBJ48         47       /* BMP  */
#define OBJ49         48       /* BMP  */
#define OBJ50         49       /* BMP  */
#define OBJ51         50       /* BMP  */
#define OBJ52         51       /* BMP  */
#define OBJ53         52       /* BMP  */
#define OBJ54         53       /* BMP  */
#define OBJ55         54       /* BMP  */
#define OBJ56         55       /* BMP  */
#define OBJ57         56       /* BMP  */
#define OBJ58         57       /* BMP  */
#define OBJ59         58       /* BMP  */

#define FLR01         0        /* BMP  */
#define FLR02         1        /* BMP  */
#define FLR03         2        /* BMP  */
#define FLR04         3        /* BMP  */
#define FLR05         4        /* BMP  */
#define FLR06         5        /* BMP  */
#define FLR07         6        /* BMP  */
#define FLR08         7        /* BMP  */
#define FLR09         8        /* BMP  */
#define FLR10         9        /* BMP  */
#define FLR11         10       /* BMP  */
#define FLR12         11       /* BMP  */
#define FLR13         12       /* BMP  */
#define FLR14         13       /* BMP  */
#define FLR15         14       /* BMP  */
#define FLR16         15       /* BMP  */
#define FLR17         16       /* BMP  */
#define FLR18         17       /* BMP  */
#define FLR19         18       /* BMP  */
#define FLR20         19       /* BMP  */
#define FLR21         20       /* BMP  */
#define FLR22         21       /* BMP  */
#define FLR23         22       /* BMP  */
#define FLR24         23       /* BMP  */
#define FLR25         24       /* BMP  */
#define FLR26         25       /* BMP  */
#define FLR27         26       /* BMP  */

#define EFF01         0        /* SAMP */
#define EFF02         1        /* SAMP */
#define EFF03         2        /* SAMP */
#define EFF04         3        /* SAMP */
#define EFF05         4        /* SAMP */
#define EFF06         5        /* SAMP */
#define EFF07         6        /* SAMP */
#define EFF08         7        /* SAMP */
#define EFF09         8        /* SAMP */
#define EFF10         9        /* SAMP */
#define EFF11         10       /* SAMP */
#define EFF12         11       /* SAMP */
#define EFF13         12       /* SAMP */
#define EFF14         13       /* SAMP */
#define EFF15         14       /* SAMP */
#define EFF16         15       /* SAMP */
#define EFF17         16       /* SAMP */
#define EFF18         17       /* SAMP */

#define AMB01         0        /* SAMP */
#define AMB02         1        /* SAMP */
#define AMB03         2        /* SAMP */
#define AMB04         3        /* SAMP */
#define AMB05         4        /* SAMP */
#define AMB06         5        /* SAMP */
#define AMB07         6        /* SAMP */
#define AMB08         7        /* SAMP */
#define AMB09         8        /* SAMP */
#define AMB10         9        /* SAMP */


