www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/27/13:18:56

From: frenchc AT cadvision DOT com (Calvin French)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Datafiles Stuph...
Date: 27 May 1997 03:53:00 GMT
Organization: Reham Salad
Lines: 26
Distribution: world
Message-ID: <5mdlqs$2ufu@elmo.cadvision.com>
References: <5m39k7$2hga AT elmo DOT cadvision DOT com> <mL962MAE1ehzEw5e AT talula DOT demon DOT co DOT uk>
NNTP-Posting-Host: ts51ip73.cadvision.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <mL962MAE1ehzEw5e AT talula DOT demon DOT co DOT uk>, Shawn AT talula DOT demon DOT co DOT uk 
says...

>The way you are doing it will work just fine. The size field is set by
>the loader routines to the raw size of the object, which is very useful
>for blocks of binary data but not particularly interesting for things
>like bitmaps that are read into specialised structures. The size is
>totally ignored by all the Allegro functions, so as long as you aren't
>using it for anything in your own code, it doesn't matter if it is
>wrong. Even if you want to save out these modified datafiles at some
>point (why would you?) the routines in tools\datedit.c only use the size
>for objects that they don't understand directly, so it isn't important
>for bitmap data.

Ahh, wonderful. I don't think I will ever end up writing out datafiles; 
mainly I was concerned if I made some kind of map editor, I might run into 
problems. Anyways, I do have one more question. Is there a way to load a 
datafile object strictly by NUMBER (rather than name)? All my other 
datafiles are addressed in this manner, however the map for my game will be 
stored in square-blocks which of course could be loaded by name, but may as 
well be loaded by number. Sorry for all the questions, I know it's probably 
a bit annoying after awhile, but this should be about the last allegro 
question I'll have for awhile! :-)

- Calvin -

- Raw text -


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