VOGONS


First post, by divinity

User metadata
Rank Newbie
Rank
Newbie

I have sucessfully compiled Allegro https://liballeg.org/ for DOS. Now i want to make a .dat file with "dat.exe" which compiles and compresses the resources into one file.
"dat.exe game.dat -a titl.tga" is the command but i always get this message: "Error writing GAME.DAT". The same happens with "grabber.exe" which is the GUI version of "dat.exe".
This occurs with my compiled "dat.exe" and with the one from DJGPP site:
ftp://ftp.delorie.com/pub/djgpp/current/v2tk/ … o/all422br2.zip
The documentation is located here:
https://liballeg.org/stabledocs/en/dat.html
Dat.exe and demo file "titl.tga" is in the Attachments.
What am i doing wrong?

Attachments

Reply 1 of 1, by MrD

User metadata
Rank Newbie
Rank
Newbie

I don't think you're doing anything wrong.

I've compiled my own Allegro 4.2.3 from the sources at allegro.cc and my dat.exe is giving the same errors when I try to do the same thing. I think perhaps at some point very late in the 4.x series the dat file code in DATEDIT.C stopped working, without it being tested. I've tried it in both dosbox and virtualbox with freedos.

Maybe you can try an earlier Allegro 4.x and see if their dat handling works. Alternatively, you'd compile a debug build of dat.exe and try to step through and see where the problem is.