That's not a bug in the editor. Dark Omen rejects all save files that don't have the correct size (18.996 Bytes) Wh32Edit is more clever in handling this
Try the Mod Selector (install by extracting it in PRG_ENG (where the original EngRel.exe is) and run the new EngRel.exe. And set compatibility settings (right click -> settings) to 640x480 and 16bit.
The reason is that the developers use (no idea why) SetCurrentDirectory to move into the map directory and then work with relative paths (e.g. "B1_01.prj"). The problem is now that SetCurrentDirectory fails, because the directory does not exist (and succeeds when the empty directory exists). This can be worked around by remembering which directory they wanted to change to and just prepend it to the filenames BUT this fails for reading BTB files because instead of opening "B1_01.btb" directly they get the current working directory (which is the wrong one because the call failed) and append "B1_01.btb" and then pass the full pathname (!) to CreateFile. This means besides SetCurrentDirectory also GetCurrentDirectory must be hooked because they use the result of Get once to generate the BTB path... WTF, why do they do this, was the BTB part written by a different person???
New version! (Sourcecode follows during the next days)
Olly, you can delete the empty folders now Also fixes the focus lost crash.
Guess I can take a break now again... all bugs fixed.
Losing focus under Windows 10 results in Dark Omen crashing. Makes debugging almost impossible. In case somebody wants to fix this before I invest time in it.
I was avoiding the ms crt mess because the vc libraries break backward compatibility with old versions of windows.
Yep, but crt is necessary evil to write clean code. No STL = no life.
I don't like using C, is so inconvenient, C++ adds so many useful stuff, at least std::string.
I always compile using the static CRT and never had problems. I don't target platforms older then XP. Actually I even dropped XP support now (if you really need it simply recompile using the v100 compiler...). My latest patch is compiled using the VS2015 CRT, still works fine inside of Dark Omen.
Long time passed but here is a new version. Sorry I don't have VS2010 anymore, this version will only work under Vista and newer!
This hooks CopyFile, GetFileAttributes and SetFileAttributes so they are redirected to the mod directory. I hope Get/SetFileAttributes fixed not detected map files... and CopyFile armytmp issues.
Note that you need Compatibility 640x480 and 16bit from Win8 and newer
This looks like some strange redirection issue. Maybe it uses an API function the is not hooked. Potential candidates are (without checking) CopyFile or MoveFile because the two APIs to handle file reading (CreateFile and MapViewOfFile) are already redirected.