Mail Archives: djgpp/1997/05/27/13:18:56
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 -