Warcraft 3: TFT or RoC in Wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Entanglement
Level 3
Level 3
Posts: 62
Joined: Tue Aug 02, 2011 1:12 am

Warcraft 3: TFT or RoC in Wine

Post by Entanglement »

I'm trying to get Warcraft 3: The Frozen Throne or Reign of Chaos to work in wine version 1.3.35 on Gentoo x86_64 kernel 3.0.6 (oss USE flag is included).

However, although installation of both games went smoothly, no matter which one I use, I get this error when I attempt to play:

($GAME) was unable to detect a disc in your CD-ROM drive.
Please make sure your ($GAME) disc is in your CD-ROM drive, then
click on 'Retry'.

In this situation (Game) corresponds with either of the two:
1. Reign of Chaos
2. Frozen Throne

I've looked at solutions through Google, and all of them basically tell me to download the newest patch which apparently allows this game to work without the CD. Although I've found this patch, I am unsure of two things:

1. Is it possible to still play the game WITH the CD? The reason I ask this is because I would like to download all of the latest patches since the patch that allows users to play without the CD.

2. Which folder should this patch be moved to?
Entanglement
Level 3
Level 3
Posts: 62
Joined: Tue Aug 02, 2011 1:12 am

Post by Entanglement »

Bump for help.

I've already looked through the AppDB and although this problem did show up (twice on Reign of Chaos), the solutions did not work for me in case anybody was wondering, which is why I made the first post.
John Drescher

Warcraft 3: TFT or RoC in Wine

Post by John Drescher »

On Sat, Dec 24, 2011 at 10:28 PM, Entanglement
<[email protected]> wrote:
Bump for help.

I've already looked through the AppDB and although this problem did show up (twice on Reign of Chaos), the solutions did not work for me in case anybody was wondering, which is why I made the first post.
Did you try using a clean prefix?

John
Entanglement
Level 3
Level 3
Posts: 62
Joined: Tue Aug 02, 2011 1:12 am

Post by Entanglement »

I'm not sure what you mean by a "clean prefix."
John Drescher

Warcraft 3: TFT or RoC in Wine

Post by John Drescher »

On Sat, Dec 24, 2011 at 10:39 PM, Entanglement
<[email protected]> wrote:
I'm not sure what you mean by a "clean prefix."
Start reading here:
http://wiki.winehq.org/FAQ#head-7cc3497 ... e102f58abd

John
Entanglement
Level 3
Level 3
Posts: 62
Joined: Tue Aug 02, 2011 1:12 am

Post by Entanglement »

This was my first installation of Wine. I never re-installed it on this computer.
John Drescher

Warcraft 3: TFT or RoC in Wine

Post by John Drescher »

This was my first installation of Wine. I never re-installed it on this computer.
Remember that the prefix and the install are separate items. The
install is in you system with the other applications. Your prefix
resides in your home folder at $HOME/.wine. If you never used wine on
your user home folder you would have had a clean prefix up to the
point that you started installing things in wine. The first time you
run a windows app with wine it will create a prefix if one does not
exist. If you tried any of the solutions for WC3 (some are very
outdated) in appdb.winehq.org or installed other windows software you
can have a prefix that prevents you from running WC3.

I would start with a clean prefix. Run the install in the terminal and
get a log. If the log is more than a few lines post the log on
pastebin.com and link here.

The instructions for getting a log are here:
http://wiki.winehq.org/FAQ#get_log

--
John M. Drescher
John Drescher

Warcraft 3: TFT or RoC in Wine

Post by John Drescher »

BTW, I own a copy of WC3 battle chest edition and I also use gentoo so
I can possibly look into this later this week. WC3 has worked for me
for many years however I have not played it much lately (no free time
anymore). I will start with a clean prefix and wine 1.3.35.



--
John M. Drescher
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Warcraft 3: TFT or RoC in Wine

Post by vitamin »

Entanglement wrote:($GAME) was unable to detect a disc in your CD-ROM drive.
Please make sure your ($GAME) disc is in your CD-ROM drive, then
click on 'Retry'.
Have you mapped the cd to a drive in winecfg?

When you compile Wine, what gcc version have you used? And did you have prelink installed?
Entanglement
Level 3
Level 3
Posts: 62
Joined: Tue Aug 02, 2011 1:12 am

Post by Entanglement »

Okay, I've done the following so:

mv ~/.wine ~/.wine-old
(I wanted to back up all of my files before I did a clean prefix).
rm -rf ~/.wine
(Deleting the hidden wine folder)

Then I inserted the installation CD for RoC. Then proceeded with:
mount /dev/cdrom /mnt/cdrom (as root)
(Mounted the cdrom and created a mount point)
cd /mnt/cdrom (this part and the next parts were all done as the standard user)
wine install.exe
(The installer .exe was titled install.exe)

Afterwards, the installation succeeded. When I try to run the program:
cd ~/.wine/drive_c/Program\ Files/Warcraft\ III/Warcraft\ III.exe
Then I get the error message as stated from my first post. Specifically stated, this is what the error message shows:
Warcraft III was unable to detect a disc in your CD-ROM drive. Please make sure your Warcraft III disc is in your CD-ROM drive, then click on 'Retry'.
There are two options, "Retry" and "Cancel." However, according to the FAQ for the log, I need to click the equivalent of "Okay" to make it, or in this case "Retry." It fails to make Warcraft III work, but it does create the log. Here is the output of log.txt:

Code: Select all

fixme:seh:RtlAddFunctionTable 0x61e45620 1 61e40000: stub
fixme:seh:RtlAddFunctionTable 0x61776ba0 1 61700000: stub
fixme:seh:RtlAddFunctionTable 0x64f69540 1 64f40000: stub
fixme:seh:RtlAddFunctionTable 0x622c6620 1 622c0000: stub
fixme:seh:RtlAddFunctionTable 0x6ce47620 1 6ce40000: stub
fixme:seh:RtlAddFunctionTable 0x682d4b20 1 682c0000: stub
fixme:seh:RtlAddFunctionTable 0x638d1dc0 1 63800000: stub
fixme:seh:RtlAddFunctionTable 0x266ea0 1 240000: stub
fixme:seh:RtlAddFunctionTable 0x68f5b6a0 1 68f40000: stub
fixme:seh:RtlAddFunctionTable 0x6b431bc0 1 69c40000: stub
fixme:iphlpapi:NotifyAddrChange (Handle 0xcae308, overlapped 0xcae2d0): stub
fixme:iphlpapi:NotifyAddrChange (Handle 0xd8e8fc, overlapped 0xd8e8e0): stub
wine: configuration in '/home/myusername/.wine' has been updated.
===============================================
That was just Reign of Chaos (RoC). This is Frozen Throne, which as stated previous with the "$GAME" error message part, is the same:

I put the CD in, and then:
mount /dev/cdrom /mnt/cdrom (as root)
cd /mnt/cdrom (from here on, I switched back to the standard user)
wine install.exe

Again, like RoC the install went flawlessly. However, when attempting to run the program, I get (once again):
Frozen Throne was unable to detect a disc in your CD-ROM drive. Please make sure your Frozen Throne disc is in your CD-ROM drive, then click on 'Retry'.
However, this time with:
wine ~/.wine/drive_c/Program\ Files/Warcraft\ III/Frozen\ Throne.exe &> log.txt
log.txt doesn't have anything for me as RoC did. I'm not sure what happened.

I tried to start both games using wine while the CD was mounted and unmounted (but if it's unmounted, due to my game CD's being old, they would not work anyways).

vitamin, as for my gcc version, this is the output of

Code: Select all

$ gcc --version

Code: Select all

thomas@carrion7 ~ $ gcc --version
gcc (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) 4.5.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Nowhere in your description of what you did for either game do you say that you actually mapped the drive in winecfg, which is what vitamin asked. If you haven't, you need to.
Entanglement
Level 3
Level 3
Posts: 62
Joined: Tue Aug 02, 2011 1:12 am

Post by Entanglement »

Oh whoops, I did forget to mention that. That was already done. Under "Drives" in winecfg, D: is set to /mnt/cdrom.

I had the drives autodetected.
Entanglement
Level 3
Level 3
Posts: 62
Joined: Tue Aug 02, 2011 1:12 am

Post by Entanglement »

bumping again because it seems this thread has been forgotten
John Drescher

Warcraft 3: TFT or RoC in Wine

Post by John Drescher »

bumping again because it seems this thread has been forgotten
I did not forget. However I was away visiting relatives on my wife's
side of the family when I got word that a cousin of mine on my
fathers side died on Christmas Eve.


I would start with a D:: link to your cdrom device. See the dosdevices
part here:

http://www.winehq.org/docs/wine

John
Entanglement
Level 3
Level 3
Posts: 62
Joined: Tue Aug 02, 2011 1:12 am

Post by Entanglement »

I'm sorry to hear that Mr. Drescher,

As for your suggestion, I'm not completely understanding it. Is in ~/.wine/dosdevices/, are you suggesting that I make d:: symlinked to /mnt/cdrom?
John Drescher

Warcraft 3: TFT or RoC in Wine

Post by John Drescher »

I'm sorry to hear that Mr. Drescher,
Thanks.
As for your suggestion, I'm not completely understanding it. Is in ~/.wine/dosdevices/, are you suggesting that I make d:: symlinked to /mnt/cdrom?
d:: should be symlinked to the /dev/cdrom
and
d: should be symlinked to /mnt/cdrom

--
John M. Drescher
Entanglement
Level 3
Level 3
Posts: 62
Joined: Tue Aug 02, 2011 1:12 am

Post by Entanglement »

Okay, I've taken your suggestion and implemented them. I unlinked d: and d:: in ~/.wine/dosdevices/ and then remade the symlinks to d: and d:: but again I get the same error.

As for running the program with: ~/.wine/path/to/the/program.exe &> ~/Documents/log.txt, the log file provides nothing and is an empty .txt file.
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Warcraft 3: TFT or RoC in Wine

Post by jjmckenzie »

On 12/28/11 1:38 PM, Entanglement wrote:
Okay, I've taken your suggestion and implemented them. I unlinked d: and d:: in ~/.wine/dosdevices/ and then remade the symlinks to d: and d:: but again I get the same error.

As for running the program with: ~/.wine/path/to/the/program.exe&> ~/Documents/log.txt,
This usually does not work.

Try:

Code: Select all

cd $HOME/.wine/path/to/the/programfiles
wine program.exe >& log.txt
I recommend AGAINST writing the logging file to your documents folder.

Also the use of $HOME works in most shells/*nixes and is technically
more accurate than using the tilde character.

James
Entanglement
Level 3
Level 3
Posts: 62
Joined: Tue Aug 02, 2011 1:12 am

Post by Entanglement »

Thank you for those tips Mr. McKenzie,

As per your suggestion, I did the following:

Code: Select all

cd $HOME/.wine/drive_c/Program\ Files/Program\ Directory/Program.exe &> log.txt
This successfully generated a log.txt file in the directory of $HOME/.wine/drive_c/Program\ Files/Program\ Directory/.

Unfortunately, the log.txt file constantly ends up empty. The exception is if I go back into my terminal instead, and Ctrl+C to quit outputs:

Code: Select all

fixme:console:CONSOLE_DefaultHandler Terminating process 32 on event 0
The "process XY" part seems to be dynamic as it constantly changes every time I do this.

At this point I think the easier solution would be to just take the patch that let's everybody skip putting the CD in and just put that in the correct folder. So, as a last resort, my question is does anybody know which folder this might be and which patch I will need?
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Post by jjmckenzie »

Entanglement wrote:T

Code: Select all

fixme:console:CONSOLE_DefaultHandler Terminating process 32 on event 0
The "process XY" part seems to be dynamic as it constantly changes every time I do this.
This should be so. Each time you start the program in UNIX/Linux, a process is started. Thus when you force terminate it (using the break control sequence) a report like this is generated.
At this point I think the easier solution would be to just take the patch that let's everybody skip putting the CD in and just put that in the correct folder. So, as a last resort, my question is does anybody know which folder this might be and which patch I will need?
For many reasons, most of them legal, we cannot help here. You may find help by using Google or other means.

James
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

jjmckenzie wrote: For many reasons, most of them legal, we cannot help here. You may find help by using Google or other means.
He's talking about the official patch from Blizzard that removed the cd check.

The AppDB says the way to get it is to connect to battle.net and upgrade. It also says that buggy video drivers are the cause of the "Please insert disc" message. http://appdb.winehq.org/objectManager.p ... n&iId=3126

Finally, the question actually asked in the original post was:
Although I've found this patch, I am unsure of two things:

1. Is it possible to still play the game WITH the CD? The reason I ask this is because I would like to download all of the latest patches since the patch that allows users to play without the CD.

2. Which folder should this patch be moved to?
Neither of those are Wine questions. Ask on the Warcraft III forum.
Entanglement
Level 3
Level 3
Posts: 62
Joined: Tue Aug 02, 2011 1:12 am

Post by Entanglement »

As dimesio stated, I was simply looking for the official patch. I don't plan on playing something that I bought with money illegally.

Unfortunately I'm not able to get into Battle.net because of the "no cd" problem. I will look around the Warcraft 3 forums, thank you for your help.
Entanglement
Level 3
Level 3
Posts: 62
Joined: Tue Aug 02, 2011 1:12 am

Post by Entanglement »

Oh, and there seems to be a bug with wine uninstaller. It seems to uninstall from the first program on the list, not the program selected.
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Post by lahmbi5678 »

Hi,

sometimes things can be so easy:
http://us.battle.net/support/en/article ... -downloads
http://us.battle.net/support/en/article ... ll-patches

You probably need the TfT patch only, it should contain the RoC patch.

It's been some time, since I last played WC3 under wine, but it should be quite easy to get it patched, the patch is a kind of installer (.exe), which just looks in the registry for some keys to find out where WC3 is installed, and automatically patches everything. This should work out of the box, if not, file a bug.

for the uninstaller issue, please test it (with a few smaller applications) and file a bug, if the issue is reproducible.
Entanglement
Level 3
Level 3
Posts: 62
Joined: Tue Aug 02, 2011 1:12 am

Post by Entanglement »

Hello lahmbi5678,

I've already looked through the WC3 forums and looked through blizzard's ftp server and found the latest patch (sometime in March).

As for the bug, I will try and reproduce it. Currently I only have 2 programs installed, but when I install more I will see if the problem persists.
Locked