Utodev / DRC

A new compiler for DAAD adventure writer. For ZX Spectrum, Commodore 64, Amstrad CPC and PCW, MSX, MSX2, MSDOS, Amiga, Atari ST and HTML.
GNU General Public License v3.0
23 stars 8 forks source link

INTEM1.EXE refuses to open the database #26

Closed auraes closed 3 years ago

auraes commented 3 years ago

Hi, I compile my database under Linux like this:

./drf pc vga BLANK_EN.DSF mygame.json
php drb.php pc vga en mygame.json PART1.DDB

But I can't use the INTEM1.EXE program under DOSBOX; only INTSM1.EXE works. INTEM1.EXE: "The file PART1.DDB is incompatible with this program" Am I doing it wrong?

Utodev commented 3 years ago

Hi,

Sorry for the long delay in response. It's a bug, which in fact affects all targets, but apparently not all interpreters complain. The problem is the DDB file is being generated with the Spanish language flag on.

I don't have time right now to fix it, but you can try the following:

1) using any text editor open file drb.php 2) Locate a line like this:

if (($language=='ES') || ($language!='PT')) $b = $b | 1;

3) Replace "!=" with "=="

I believe that should do it, but I don't really have the time right now to check.

I hope it helps.

auraes commented 3 years ago

The patch works. Thanks.

Utodev commented 3 years ago

Thank you for your feedback. The patch has been committed to the repository so I'm closing this issue.