VOGONS


Allegro dat.exe - error writing .dat file

Topic actions

  • This topic is locked. You cannot reply or edit posts.

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 2, by MrD

User metadata
Rank Member
Rank
Member

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.

Reply 2 of 2, by KixMcfly

User metadata
Rank Newbie
Rank
Newbie

One year too late, but I spent a week compiling every DOS version of allegro trying to create DAT files that would work in DOS, nearly losing my marbles. Turns out, DAT files created with the Windows version of Grabber.exe will work with DOS compiled Allegro executables! Link below contains a precompiled Windows version of Grabber.exe, and works flawlessly in Windows 10. Note, I didn't confirm if Dat.exe worked. I tested this with Allegro 4.2.3.

http://www.allegro.cc/files/4.2.1-RC1/allegro-misc-4.2.1.zip