Mail Archives: djgpp/1998/07/06/20:14:44
On 6 Jul 98 at 5:52, Oliver Batchelor wrote:
> Hello,
> When I load my data file called tile.dat it works fine. (this is the start
> of an editor for a game I am making)
> When I go to put an image from the data file (16 bit compiled sprite and 16
> bit bitmap)
> It tells me that I have undeclared Idifiers even when I use the exact names
> from the data file. eg. (If you need to see the whole thing (quite short
> 1k) its attached)
If you want to use the datafile in this way you must tell the grabber
or dat utility to output a header file along with the datafile. You
then include this header file in any source files that refer to the
datafile objects. The header file defines things like `TILE1_TGA' to
the objects' indices in the datafile.
For more information, see:
Allegro documentation: `allegro/allegro.txt', section "Datafile
routines" (line 3602 in my copy)
Grabber documentation: `allegro/tools/grabber.txt', section
"Accessing Datafiles" (line 413 in my copy) which goes into
much more detail
Allegro Vivace, subsection 10.3.1 ("Loading an entire datafile").
[I know this is a strange place to talk about using the
datafile; when I get some time I'll sort this out.]
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -