Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dosbox quits immediately #1784

Closed
Maximus5 opened this issue Jul 31, 2015 · 11 comments
Closed

Dosbox quits immediately #1784

Maximus5 opened this issue Jul 31, 2015 · 11 comments
Assignees

Comments

@Maximus5
Copy link
Owner

Originally reported on Google Code with ID 1785

Required information!
OS version: Win7x64
ConEmu version: 141101/64

I managed to integrate DosBox (by installing in Conemu/Conemu/Dosbox, not the base
Conemu dir as specified in the wiki page), but now every time I run a DOS program the
DosBox window flashes up and then immediately exits, no matter what I do... any ideas?
Thanks!

Reported by krakout on 2014-11-04 08:25:15

@Maximus5
Copy link
Owner Author

Without screenshots or video? No.

Reported by ConEmu.Maximus5 on 2014-11-04 10:16:19

@Maximus5
Copy link
Owner Author

Well, there's nothing much to show!

Here's a screenshot. That's DosBox' output, as expected, but the main DosBox window
just flashes for an instance (I don't see anything in it but it's really fast) and
then closes. That's all.

Reported by krakout on 2014-11-04 10:21:39


- _Attachment: dosbox.png
![dosbox.png](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-1785/comment-2/dosbox.png)_

@Maximus5
Copy link
Owner Author

This is ConEmu output but not a dosbox.

Did you manage your dosbox.cfg?

Reported by ConEmu.Maximus5 on 2014-11-04 10:24:26

@Maximus5
Copy link
Owner Author

Ah, thanks for the clarification.

Config seems to be fine, I've set the paths which is the only thing that the wiki really
mentions, and my programs run fine if I just run DosBox so I'm really not sure what
else to check... maybe I'm missing something...?

Reported by krakout on 2014-11-04 10:50:00

@Maximus5
Copy link
Owner Author

I'm not an oracle. What have you "set" in dosbox.cfg?

ConEmu is not a magic box, it just runs dosbox with your "vgacopy.exe" as an argument.
You can easily check that yourself using ProcessMonitor.

Obviously, if the same command can't be run from Win+R, it will not be working from
ConEmu prompt.

For example, just checked on my PC, the command line is:
"C:\ConEmu\DosBox\DosBox.exe" -noconsole  -conf "C:\ConEmu\DosBox\DosBox.conf"  -c
"C:" -c "cd C:\Games.DOS\Prince" -c "C:\Games.DOS\Prince\PRINCE.EXE" -c "exit" 

Reported by ConEmu.Maximus5 on 2014-11-04 10:55:44

  • Labels added: dosbox

@Maximus5
Copy link
Owner Author

Well, as I said all I added to the DB config is the paths. Here's my complete conf file:
http://pastebin.com/EHxyDH1V (I commented out the C: at the end)

Ok, so I took a look at the command (thanks for the ProcessMonitor heads-up!), the
command it runs is:

"E:\utils\sys\ConEmu\ConEmu\DosBox\DosBox.exe" -noconsole  -conf "E:\utils\sys\ConEmu\ConEmu\DosBox\DosBox.conf"
 -c "E:" -c "cd E:\utils\sys\ConEmu\ConEmu\DosBox\HDD\vgacopy" -c "E:\utils\sys\ConEmu\ConEmu\DosBox\HDD\vgacopy\vgacopy.exe"
-c "exit

So the issue seems to be twofold:

-it passes a command to change to E: whereas the HDD folder is mounted as C: and
-that it passes, as an argument, the full host machine path to vgacopy (and then exits,
hence the window flashing briefly). But, how to pass the executable by itself?

Maybe I'm missing something regarding paths. The way I run vgacopy.exe (or anything
else) is I CD into the DosBox HDD folder and then run "vgacopy.exe" from there. Is
that wrong?

Reported by krakout on 2014-11-04 11:58:12

@Maximus5
Copy link
Owner Author

ConEmu does not do cfg parsing. If you want to use dosbox autostart you need to mount
e:

Reported by ConEmu.Maximus5 on 2014-11-04 12:11:41

@Maximus5
Copy link
Owner Author

Hmmmm ok, one down. Thanks!

However, even if I do mount the path as E: instead of C: ConEmu passes as a command
the whole path instead of simply e:\vgacopy\vgacopy.exe, so again it fails. 

How have you managed in your setup to make it simply switch to C:\Games.DOS\Prince?

Reported by krakout on 2014-11-04 15:11:42

@Maximus5
Copy link
Owner Author

As I said before ConEmu does not do dosbox.cfg parsing. It does not change host path
too. Your dosbox drives must match host drives if you want to use that feature.

Reported by ConEmu.Maximus5 on 2014-11-04 15:15:06

@Maximus5
Copy link
Owner Author

Oh *now* I get it! cool.... thanks so much for your support :)

Reported by krakout on 2014-11-04 15:16:15

@Maximus5
Copy link
Owner Author

Reported by ConEmu.Maximus5 on 2014-11-04 15:18:23

  • Status changed: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant