VOGONS


Castles 2 Problems

Topic actions

First post, by kareemy

User metadata
Rank Newbie
Rank
Newbie

I am using dosbox 0.63 on linux and am having a lot of trouble getting castles 2 to work. Here is what I did step by step.

Before running dosbox, I mounted the castles 2 cd in linux under /media/cdrom

* start up dosbox
* run "mount c /home/kcd/dosbox"
* run "mount d /media/cdrom -t cdrom"
* go to "d:" and run install.bat
* Castles 2 installs just fine into C:\C2CD
* run c2cd

I go through the text based setup to configure my sound and then castles 2 just sits at a blank screen and even locked up dosbox so i had to kill -9 it at the terminal.

I tried mounting the castles 2 cd with "mount d /media/cdrom -t cdrom -usecd 0"

That caused "Fatal signal: Segmentation Fault (SDL Parachute Deployed)"
and dosbox quit immediately.

What else can I try?

Reply 1 of 39, by kareemy

User metadata
Rank Newbie
Rank
Newbie

More information about the Segmentation Fault issue. I ran dosbox through gdb, mounted the cdrom using the -usecd 0 parameter and reproduced the segfault:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1221731968 (LWP 13707)]
0x080b4c09 in CDROM_Interface_SDL::GetMediaTrayStatus (this=0x9ba6ce8,
mediaPresent=@0xbfffc0bd, mediaChanged=@0xbfffc0be, trayOpen=@0xffffffff)
at cdrom.cpp:116
116 mediaPresent = (cd->status!=CD_TRAYEMPTY) && (cd->status!=CD_ERROR);

Here is a backtrace:

#0 0x080b4c09 in CDROM_Interface_SDL::GetMediaTrayStatus (this=0x9ba6ce8,
mediaPresent=@0xbfffc0bd, mediaChanged=@0xbfffc0be, trayOpen=@0xffffffff)
at cdrom.cpp:116
#1 0x080b3693 in CMscdex::GetMediaStatus (this=0x9b9d9f8, subUnit=0 '\0',
media=@0xffffffff, changed=@0xffffffff, trayOpen=@0xffffffff)
at dos_mscdex.cpp:658
#2 0x080b36ff in CMscdex::GetDeviceStatus (this=0x9b9d9f8, subUnit=0 '\0')
at dos_mscdex.cpp:667
#3 0x080b3faa in MSCDEX_Interrupt_Handler () at dos_mscdex.cpp:775
#4 0x0804ca65 in Normal_Loop () at dosbox.cpp:127
#5 0x0804caf6 in DOSBOX_RunMachine () at dosbox.cpp:170
#6 0x0804d836 in CALLBACK_RunRealInt (intnum=33 '!') at callback.cpp:102
#7 0x080fd393 in DOS_Shell::Execute (this=0x9ba51a8,
name=0x4b00 <Address 0x4b00 out of bounds>,
args=0x53 <Address 0x53 out of bounds>) at shell_misc.cpp:434
#8 0x080f9e45 in DOS_Shell::DoCommand (this=0x9ba51a8,
line=0xbfffe478 " quickfades firsttime") at shell_cmds.cpp:98
#9 0x080f7a14 in DOS_Shell::ParseLine (this=0x9ba51a8,
line=0xbfffe470 "c2cdtool quickfades firsttime") at shell.cpp:146
#10 0x080f8a6a in DOS_Shell::Run (this=0x9ba51a8) at shell.cpp:215
#11 0x080f889d in SHELL_Init () at shell.cpp:418
#12 0x080db780 in main (argc=-1, argv=0xffffffff) at sdlmain.cpp:1127

Just to recap, when I mount castles cd without the -usecd 0 parameter, it loads up but gives me a blank black screen, with the -usecd 0 parameter, I get the above segfault.

Reply 3 of 39, by stevo1977

User metadata
Rank Newbie
Rank
Newbie

I am having the same problem, running Ubuntu 8.10 and Dosbox 0.72. I also tried running Castles 2 under Dosbox 0.73, with the same result.

I installed it with no problems whatsoever on my friend's Windows 7 machine. Anyone have any suggestions or questions? Thanks.

stevo

Reply 5 of 39, by stevo1977

User metadata
Rank Newbie
Rank
Newbie

Yeah, I also tried copying the cd to a folder on my computer and mounting that as the cdrom in dosbox. It installed everything without incident, but still just loads a black screen and freezes Dosbox when I try to play Castles 2.

Reply 7 of 39, by stevo1977

User metadata
Rank Newbie
Rank
Newbie

I made an .iso of the Castles 2 cd and mounted that in Dosbox, but exactly the same thing happened: it installed without incident, then froze up Dosbox when I tried to play it.

I installed TIE Fighter in Dosbox and it works fine. So I guess there could be something wrong with my CD. I'll try and download another version of the game and see how that goes, if no one has any other ideas.

Reply 10 of 39, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

cue/bin is just a different format of a cd image, just with more information
than iso files (cue/bin can store layout information, audio tracks etc.)
Check your ripping applications, maybe they provide direct extraction
into a cue/bin.

Reply 13 of 39, by stevo1977

User metadata
Rank Newbie
Rank
Newbie

wd, please forgive my noobish ignorance. After about an hour of searching ubuntu/linux forums, I have been unable to find a program that will CREATE cue/bin files from a mixed-mode cd (but at least I understand why they are needed now). Do you have any suggestions for a poor linux user? Thanks again.

Reply 14 of 39, by stevo1977

User metadata
Rank Newbie
Rank
Newbie

Okay, it looks like cdrdao does it fine (I found a little guide here: http://miketeo.net/wp/index.php/2008/05/10/cr … s-on-linux.html).

I mounted the .bin file in dosbox no problem, then installed the game again, but it still locked up as soon as I tried to play.

Reply 16 of 39, by stevo1977

User metadata
Rank Newbie
Rank
Newbie

My apologies, wd; I did not read your earlier replies very closely because I did not understand what you were talking about.

If understand correctly now, here's what I tried in Dosbox:

-------------------------------------
z:/>mount c ~/Games
Drive C is mounted as local directory ~/Games

z:/>imgmount d ~/Games/c2cd.cue -t cdrom
Could not load image file : ~/Games/c2cd.cue
MSCDEX: Failure: Path not valid.

z:/>imgmount d ~/Games/c2cd.bin -t cdrom
MSCDEX installed.
Drive D is mounted as ~/Games/c2cd.bin
----------------------------------------

I checked the .cue file to make sure it pointed at the .bin file correctly and it does. Any other info I can give you? Thanks again for your help.

Reply 17 of 39, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

The CUE-file is a text file. Please post it here.

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 19 of 39, by stevo1977

User metadata
Rank Newbie
Rank
Newbie

Yes, the .cue file is in the same folder as the .bin file, and the path listed in the .cue file (below) is the actual location of both files on my home drive.

-----------------
CD_ROM_XA

// Track 1
TRACK MODE2_RAW
NO COPY
DATAFILE "~/Games/c2cd.bin" 69:22:34 // length in bytes: 734256768
-----------------

Thanks, everyone, for your time. I appreciate your help.