Message-Id: <199807070014.BAA14407@sable.ox.ac.uk> Comments: Authenticated sender is From: George Foot To: Oliver Batchelor Date: Tue, 7 Jul 1998 01:13:05 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Data files.... Again... Won't identify things inside the da Reply-to: george DOT foot AT merton DOT oxford DOT ac DOT uk CC: djgpp AT delorie DOT com Precedence: bulk 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