delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/06/20:27:42

Sender: nate AT cartsys DOT com
Message-ID: <35A162CA.546AB4C2@cartsys.com>
Date: Mon, 06 Jul 1998 16:50:34 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: Oliver Batchelor <batch AT netaccess DOT co DOT nz>
CC: djgpp AT delorie DOT com
Subject: Re: Data files.... Again... Won't identify things inside the data file.
References: <01bda8a1$a17d8200$bf0562cb AT dialup DOT voyager DOT co DOT nz>

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)
> 
> draw_compiled_sprite(active_page, tiledata[TILE1_TGA].dat x,y);
> 
> or
> 
> draw_sprite(active_page, tiledata[MOUSE_MBP].dat x,y);
> 
> This is puzzeling me because the demo  in the example directory does this
> in exacly the same way but works !! And when I just used plain files it
> worked fine.

You have to include the header that the dat tool creates.  Read
grabber.txt for more info.
-- 

Nate Eldredge
nate AT cartsys DOT com


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019