VOGONS


Reply 20 of 91, by ADDiCT

User metadata
Rank Oldbie
Rank
Oldbie

Hey, don't give up so quickly! (; I see that "CD not found" error message. There's one more thing you could try, and that's to make an image of the CD, and try mounting that in DOSBox with the imgmount command. Right now, you're using the "mount" command to mount a subdirectory as a "fake" cd drive. Even when you've mounted your "real" CD-ROM drive, it was treated as a directory by DOSBox. Mounting an image works differently, and could make a difference for copy-protected games.

Do you know how to make an image of a CD in ISO or BIN/CUE format? you could do that with programs like Alcohol 120%, IsoBuster or CDRWin. If the game has audio tracks (which is not very probable in this case), you'd have to create a BIN/CUE image, if it has only the data on it, an ISO image would be fine.

After you have the image on your hd, you'd mount it like this:
imgmount d: <path_and_filename_of_image> -t iso -ioctl

If you've created a BIN/CUE image, you have to use the CUE filename to mount the image.

And then you can try to start the game again.

Reply 21 of 91, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

I have an idea why the MODE.BAT trick didn't work. Unlike a real program, I think BAT-files needs to be CALL'ed if they have to return to the caller (the GO.BAT on the CD). And since that GO.BAT is on the CD it will be difficult to change! 🙁

Let me check it...

Another option, somewhat like the one ADDiCT suggests, is to copy everything on the CD onto your hard-drive. I think you tried that before, right?

But how did you mount the fake CD? Did you remember the -t cdrom option? E.g. create a directory, C:\FakeCD, and copy the CD to FakeCD.

Edit the GO.BAT in FakeCD and remove the mode command (or turn it into a REM-ark by adding the REM in front of mode).

Then mount the FakeCD in DOSBox as if it was a real CD:

mount D C:\FakeCD -t cdrom

And since you have removed/rem'ed the call to mode you don't have to create MODE.BAT, and you don't need to set PATH either.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 22 of 91, by TeaRex

User metadata
Rank Member
Rank
Member

Another hint: Some games identify their CDs by label. You should check out the -label option to the mount command (it's in the README I believe). This might make image-mounting unnecessary.

Though in the end image creation (cue/bin or iso) and image-mounting is the most compatible method if the game does unusual stuff, such as reading outside of files on the CD.

tearex

Reply 23 of 91, by MiniMax

User metadata
Rank Moderator
Rank
Moderator
MiniMax wrote:

I have an idea why the MODE.BAT trick didn't work. Unlike a real program, I think BAT-files needs to be CALL'ed if they have to return to the caller (the GO.BAT on the CD). And since that GO.BAT is on the CD it will be difficult to change! 🙁

Let me check it...

Yep 😒 Unless a BAT-file is CALL'ed it will never return. So the MODE.BAT thing will not work.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 24 of 91, by TeaRex

User metadata
Rank Member
Rank
Member
MiniMax wrote:

Yep 😒 Unless a BAT-file is CALL'ed it will never return. So the MODE.BAT thing will not work.

You could use a zero byte .COM file. Just create a "New Text File" from the Windows context menu, then rename it to MODE.COM (ignore the complaint by Windows about the file becoming unusable). Such files do nothing and return directly to the caller.

This won't help the OP it seems, just pointing it out.

tearex

Reply 25 of 91, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Yep! That works. Maybe it will work??

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 26 of 91, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

i'm not sure if dosbox likes zero byte files. I think we have a protection mechanism in for that.

Water flows down the stream
How to ask questions the smart way!

Reply 27 of 91, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Well just delete that whole mode thing, "mode co80" just clears the
screen so it shouldn't hurt the cdrom detection.

Reply 28 of 91, by ADDiCT

User metadata
Rank Oldbie
Rank
Oldbie

I had the chance to try out the game. It seems to have a copy protection scheme that DOSBox can't handle (yet). The game says it can't find the CD, not matter how it is mounted.

I tried to find a no-cd fix for that game, but couldn't find anything, which essentialy means this game is currently not playable in DOSBox. Qbix/wd: if you're interested in checking out the protection scheme for a possible fix to DOSBox, just PM me.

To clear up some of the confusion: when starting the game, it tries to execute the "mode" command, which doesn't work, of course. Right after that command, it tries to start the game's main executable, which fails with the "CD not found - terminating" error message. It looks like these two error messages are somehow connected, but i don't think that's the case.

Reply 29 of 91, by Madhoax

User metadata
Rank Newbie
Rank
Newbie
ADDiCT wrote:

I had the chance to try out the game. It seems to have a copy protection scheme that DOSBox can't handle (yet). The game says it can't find the CD, not matter how it is mounted.

I tried to find a no-cd fix for that game, but couldn't find anything, which essentialy means this game is currently not playable in DOSBox. Qbix/wd: if you're interested in checking out the protection scheme for a possible fix to DOSBox, just PM me.

To clear up some of the confusion: when starting the game, it tries to execute the "mode" command, which doesn't work, of course. Right after that command, it tries to start the game's main executable, which fails with the "CD not found - terminating" error message. It looks like these two error messages are somehow connected, but i don't think that's the case.

That's my idea to. No matter what I try, the game just won't work with dosbox. I remember that when I played it in 'normal' dos, that the game also would give some difficulty sometimes.

But thanks for all the help guys!

I apreciate it very much 😀

Reply 30 of 91, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

They open a file on the cd which is marked hidden, this fails in dosbox as
file attributes are not supported (besides directory and cdrom->readonly).
ISO specs have a flag for the hidden attribute, so it might be possible to
get it working at least for disk images.

Reply 31 of 91, by MiniMax

User metadata
Rank Moderator
Rank
Moderator
Qbix wrote:

i'm not sure if dosbox likes zero byte files. I think we have a protection mechanism in for that.

Nope - works just fine 😉

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 32 of 91, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Well "working" isn't the right word. There should be some error message
in the console window iirc., as somewhen a guy had a broken executable.

Reply 33 of 91, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

No - no message.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 34 of 91, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Right, guess the argument was "if they do shit like executing zero-byte files they're off anyways" 😉

		if (len==0) {
/* Prevent executing zero byte files */
DOS_SetError(DOSERR_ACCESS_DENIED);
DOS_CloseFile(fhandle);
return false;
}

Reply 35 of 91, by TeaRex

User metadata
Rank Member
Rank
Member

Well if zero byte .COM files are a no-no you could always use a one-byte file (RET) or a two-byte file (INT 20).

tearex

Reply 36 of 91, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Well deleting a line of a batch file is maybe easier.....

Reply 37 of 91, by TeaRex

User metadata
Rank Member
Rank
Member
wd wrote:

Well deleting a line of a batch file is maybe easier.....

Absolutely, as long as it isn't on a read-only medium.

But I admit this discussion is... um... a bit pointless.

tearex

Reply 38 of 91, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Nah, the point was just to try to avoid zero-byte executables 😉

The problem (cdrom check) is fixed in the cvs btw.

Reply 39 of 91, by ADDiCT

User metadata
Rank Oldbie
Rank
Oldbie

Cool! Gonna check this when a new AEP CVS build is available... wd, do i have to mount a ISO of the game, or can i copy the CD's contents to a directory, and mount from there?

Edit: nevermind, i read in the changelog that it's only working on ISO images. The game still stops with an error message with "dosbox_15.06.2007.exe" from AEP, will try it again with a later build.