View previous topic :: View next topic |
Author |
Message |
ribx Apprentice
Joined: 20 Nov 2003 Posts: 219 Location: germany
|
Posted: Mon Dec 22, 2003 2:07 pm Post subject: warcraft3 without crack - bnet |
|
|
if someone is interessted:
i managed to run wc3 without a crack just by changeing one single option:
you have to set the option
"windows" = "win2k"
i think the reson is that "win98" supports only cd names up to 11 letters. the "WARCRAFT III" cd has 12 letters as you can see.
but you have to make second entry in the cdrom section, if you didnt do that:
"device" = "/dev/hdX"
while hdX stands for you CDROM drive! this will make wine to read out the name of the cd. you can uncommend the "label" option because it is ignored if a device is set.
my config lines looks like that:
[Drive D]
"Path" = "/mnt/cdrom/"
"Type" = "cdrom"
#"Label" = "Warcraft III"
"Filesystem" = "win95"
"Device" = "/dev/hdc"
note that this is an very easy way to enter the battlenet |
|
Back to top |
|
|
ivan300 n00b
Joined: 03 May 2003 Posts: 42 Location: New Westminster BC
|
Posted: Mon Dec 22, 2003 7:59 pm Post subject: |
|
|
im a little confused. you want s to make 2 cdroms ? |
|
Back to top |
|
|
ribx Apprentice
Joined: 20 Nov 2003 Posts: 219 Location: germany
|
Posted: Wed Dec 24, 2003 1:07 am Post subject: |
|
|
no you dont need a second cd-rom.. you have to add raw access on the cdrom drive. you can do so with adding the line
"device" = "/dev/hdX"
to your cdrom section
i got this information out of the man pages.. read them for more information
or check out the forums on http://www.winehq.org |
|
Back to top |
|
|
Dracnor Guru
Joined: 08 Jun 2003 Posts: 397 Location: Pennsylvania
|
Posted: Tue Jan 13, 2004 4:38 am Post subject: |
|
|
This is a very good find. Now it is much easier to log on to battle.net. Thanks |
|
Back to top |
|
|
whiskeypriest Tux's lil' helper
Joined: 05 Feb 2004 Posts: 91
|
Posted: Wed Oct 27, 2004 6:34 pm Post subject: |
|
|
So I noticed we were dangerously close to going 48 hours without a post about WarCraft III and Wine; can't allow that to happen, can we?
Basically, this is about my third attempt at running a game under Wine in as many years. All have resulted in Hell with it, I'll play it under Windows and a resolution to check back in a few months. WC3 is one of the final holdouts on my Windows partition, which I'd like to ditch by year's end. Here's my progress thus far:- Emerged app-emulation/wine-20041019.
- Emerged winesetuptk-0.6.0b-r3; ran same as user.
- Edited ~/.wine/config to reflect the specifications found in the above thread (e.g. Windows = win2k and so on).
- Mounted WC3 disc, ran...
Code: | $ wine autoplay.exe |
...from the appropriate directory. Pretty installation screen comes up, sound is there, all looks good. Skipped DX installation, everything else went off without a hitch; exited installer without starting game.- Without patching, I shifted to the WC3 directory and ran...
Code: | $ wine War3.exe -- -opengl |
...which yields this error message: Code: | /usr/bin/wine: line 55: 9107 Trace/breakpoint trap WINEDEBUG=-all "$RUNWINE" "$@" |
If I run... Code: | $ wine Warcraft\ III.exe -- -opengl |
...I get the WC3 splash screen (briefly) then this dialogue pops up: Code: | Please verify that your WarCraft III disc is in your CD-ROM drive, then click on 'Retry'. |
So what gives? Why isn't the WC3 disc being detected?
Here's my (abbreviated) ~/.wine/config file: Code: | WINE REGISTRY Version 2
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config
<snip comments>
[Drive E]
"Type" = "cdrom"
"Path" = "/mnt/dvd"
;;"Label" = "DVD-ROM"
"FS" = "win95"
"Device" = "/dev/ide/host0/bus1/target0/lun0/cd"
[Drive F]
"Type" = "cdrom"
"Path" = "/mnt/cdr"
;;"Label" = "CD-RW"
"FS" = "win95"
"Device" = "/dev/ide/host0/bus1/target1/lun0/cd"
[Drive X]
"Type" = "hd"
"Path" = "/tmp"
"Label" = "Tmp Drive"
"FS" = "win95"
[Drive Y]
"Type" = "network"
"Path" = "${HOME}"
"Label" = "Home"
"FS" = "win95"
[Drive Z]
"Type" = "network"
"Path" = "/"
"Label" = "Root"
"FS" = "win95"
[wine]
"Windows" = "C:\\Windows"
"System" = "C:\\Windows\\System"
"Temp" = "X:\\"
"Path" = "C:\\Windows;C:\\Windows\\System;X:\\;Y:\\"
"GraphicsDriver" = "x11drv"
"ShellLinker" = "wineshelllink"
# <wineconf>
[Version]
"Windows" = "win2k"
[DllOverrides]
"*" = "builtin, native, so"
[x11drv]
"AllocSystemColors" = "100"
"PrivateColorMap" = "N"
"PerfectGraphics" = "N"
"Managed" = "Y"
"Desktop" = "N"
"UseDGA" = "Y"
"UseXShm" = "Y"
"DXGrab" = "Y"
"DesktopDoubleBuffered" = "Y"
"TextCP" = "0"
[fonts]
"Default" = "-adobe-helvetica-"
"DefaultFixed" = "fixed"
"DefaultSerif" = "-adobe-times-"
"DefaultSansSerif" = "-adobe-helvetica-"
<snip serialports, parallelports, spooler, ports, spy>
[registry]
"LoadGlobalRegistryFiles" = "Y"
"LoadHomeRegistryFiles" = "Y"
"LoadWindowsRegistryFiles" = "Y"
"WritetoHomeRegistryFiles" = "Y"
"SaveOnlyUpdatedKeys" = "Y"
[Tweak.Layout]
"WineLook" = "Win98"
[Console]
;"Drivers" = "tty"
;"XtermProg" = "nxterm"
;"InitialRows" = "25"
;"InitialColumns" = "80"
;"TerminalType" = "nxterm"
[Clipboard]
"ClearAllSelections" = "0"
"PersistentSelection" = "1"
[afmdirs]
"1" = "/usr/share/ghostscript/fonts"
"2" = "/usr/share/a2ps/afm"
"3" = "/usr/share/enscript"
"4" = "/usr/X11R6/lib/X11/fonts/Type1"
[WinMM]
"Drivers" = "wineoss.drv"
"WaveMapper" = "msacm.drv"
"MidiMapper" = "midimap.drv"
# </wineconf> |
In addition to the wine/winesetuptk versions listed above, this is being attempted on gentoo-dev-sources-2.6.9-r1 with ati-drivers-3.14.1. Native Linux games (NWN, UT2K4) work flawlessly. Everything from ~/.wine/ down has the appropriate permissions for the user, as do both my DVD and CD-RW drives (tried installation/game execution from both, and yes, they're mounted). My WC3:RoC disc is the Battle Chest edition, if that makes any difference; WC3:FT will be installed later if I can get this to fly.
The one odd thing I noticed during installation is that when the installer suggests a target location for the install (e.g. C:\Program Files\Warcraft III) it shows the standard Explorer tree of drives, but lists the volume in my CD-RW drive as Warcraft II (F:). Part of the detection problem, perhaps?
I know I'm resurrecting a long-dead thread here, but I'd be extremely grateful for any assistance or insight. Let me say up front that I'm not interested in purchasing any TransGaming products, and would like to avoid using any cracks if at all possible...and since I know from this thread it is possible, I guess we can rule that out as well.
Thoughts? |
|
Back to top |
|
|
discomfitor l33t
Joined: 21 Feb 2003 Posts: 927 Location: None
|
Posted: Wed Oct 27, 2004 7:57 pm Post subject: |
|
|
It seems like each version of wine is highly selective about various things (such as actually working at all...). I'm currently running Warcraft 3 (Frozen Throne) with the 20040914 version using a nocd crack. I DO own the game and I CAN get on battle.net.
The only reason I would switch to not using a nocd crack would be if I decided I actually wanted to tie up a cdrom drive with a cd that isn't actually necessary. Which I don't. I spent way too long trying to get the cd detection working, and eventually realized that it wasn't even completely wine's fault that it didn't work. It's partly the kernel as well. With version 2.6.6 of the kernel, I could run it with the cd in the drive (no crack needed). Anything other than that failed. There were no other things changed between tests of this.
That's why I believe it to be better to give up on things like this. If you can get it to work, great. But if it takes more than a few minutes of tinkering to get the cd detection to work then don't bother. It isn't worth your time when you could just grab a nocd crack that does the same thing but faster. You aren't costing Blizzard any money if you bought the game, so any moral qualms you have with the idea of a crack are groundless. _________________ There is no substitute for experience.
Imperfection indicates a lack of effort. |
|
Back to top |
|
|
whiskeypriest Tux's lil' helper
Joined: 05 Feb 2004 Posts: 91
|
Posted: Wed Oct 27, 2004 11:22 pm Post subject: |
|
|
I never mentioned any moral qualms with using a crack; I simply stated that I'd prefer not to use one unless absolutely necessary. If that's the only option available to me, I consider it fair use of the game I purchased and will continue to sleep soundly at night. Regardless, I can understand your sentiment and have no wish to spend the next few weeks working on this.
That said, I've gotten over the detection hurdle only to encounter another one: Code: | [FAIL] CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC, IID_IGraphBuilder, (void **)&s_pGraph) = -2147221164wine: Unhandled exception (thread 0009), starting debugger... |
Interestingly enough, I was able to circumvent the need for a crack by downgrading my kernel to gentoo-dev-sources-2.6.8-r10...but upon starting the game with the parameters listed above, I get the splash screen, a brief interlude of black screen, then get dropped back to the console where I find the aforementioned error message. Note that this error occurs whether I use 2.6.9-r1 with a crack, or 2.6.8-r10 with the actual disc.
So what's this issue about? I'm beginning to think the problem's either with my Wine configuration file or somewhere else in my system. I run two monitors in dual-head mode from an ATi Radeon 9700 Pro; is it possible this might be causing a problem? I've also seen references to enabling some options in the [Dsound] section of the Wine configuration.
I've seen this error mentioned quite a bit here on the forums, but have yet to read about anyone resolving it. Any ideas? |
|
Back to top |
|
|
discomfitor l33t
Joined: 21 Feb 2003 Posts: 927 Location: None
|
Posted: Thu Oct 28, 2004 5:03 am Post subject: |
|
|
Try using the 20040914 version of wine. I have problems with the October version myself. _________________ There is no substitute for experience.
Imperfection indicates a lack of effort. |
|
Back to top |
|
|
whiskeypriest Tux's lil' helper
Joined: 05 Feb 2004 Posts: 91
|
Posted: Thu Oct 28, 2004 3:57 pm Post subject: |
|
|
So, progress (of a sort).
First off, I googled the bulk of that error message; the result led me back to WineHQ and their article on running WC3. While wading through the detection nonsense, Id apparently forgotten to do something about the movies (which I had read about before and promptly forgotten, it seems)
need to start taking better notes. So I renamed the Movies directory, launched the game off the command line again, and was rewarded with a message about a missing key and instructions to reinstall the game.
After nuking ~/.wine/ from orbit for the sixteenth time in two days, reconfiguring/reinstalling the whole mess, patching WC3 current, and making sure it skipped the introductory movie (see here)
and it worked.
Sort of.
The game fired up just fine; I could play both SP (only tried custom games) and on Battle.net without issue. Game play itself was somewhat dodgy: sound latency was horrible after about sixty seconds, and many of the textures were missing (e.g. no animated character portraits, no ghost images while placing potential buildings) but the game was far from unplayable. Since ALSA seems to be persnickety (had to reset my mixer levels going from 2.6.8-r10 to 2.6.9-r1, and the same was true in reverse) on its first boot, I decided to cycle the machine in hopes of ironing out the sound issue.
This was apparently a mistake. After the reboot, I got the same message about a missing key and instructions to reinstall the game. This was where I left it last night, using gentoo-dev-sources-2.6.8-r10 and wine-20041019. Ill do another wash-rinse-repeat this evening, but in the meantime, are you getting wine-20040914 from Portage? Perhaps Ive missed something, but the only versions I had available to me last night were 20040716 and 20041019
Thanks for your help, by the way. |
|
Back to top |
|
|
discomfitor l33t
Joined: 21 Feb 2003 Posts: 927 Location: None
|
Posted: Thu Oct 28, 2004 4:48 pm Post subject: |
|
|
You can find a 20040914 ebuild on bugzilla if you look, or you can just bump the 20041019 down to 20040914 and remove any version specific things in the ebuild. Make sure you don't use the alsa driver for wine, because it doesn't work. At all. _________________ There is no substitute for experience.
Imperfection indicates a lack of effort. |
|
Back to top |
|
|
whiskeypriest Tux's lil' helper
Joined: 05 Feb 2004 Posts: 91
|
Posted: Thu Oct 28, 2004 5:26 pm Post subject: |
|
|
I'll see what I can do with it tonight...and yeah, I've been sticking with the oss driver in Wine after one ugly experiment with winealsa.drv.
Will post the results once I've had a chance to suss things out. Thanks again. |
|
Back to top |
|
|
whiskeypriest Tux's lil' helper
Joined: 05 Feb 2004 Posts: 91
|
Posted: Fri Oct 29, 2004 2:54 pm Post subject: |
|
|
Got it. Mostly.
Took me a bit to find a working ebuild for 20040914, so for posteritys sake let me say that I used this one (making the corrections the author mentioned in his successive comment).
After that, rebuilding the whole mess (as above) was textbook. The game starts with no problems, plays relatively smoothly, and the sound issues Id experienced before were not in evidence this time around. Game plays SP (custom games) and MP (Battle.net was no problem). Game performance was replicable through multiple reboots. The SP campaign seems to be inaccessible, but thats no loss so far as Im concerned. TeamSpeak must be started before the game, but again, thats hardly a major problem.
I did notice a couple things Id like to correct (if possible). First, the mouse cursor wont stay within the confines of the game window, which is highly annoying. I do have "DXGrab" = "Y" in my configuration; is there anything else that needs to be done with this?
Second (and probably corollary to the first) is that I dont believe Im issuing the -opengl option correctly. For the game to run, I issue: Code: | $ wine war3.exe -opengl |
and this results in what Ive described above. If I run: Code: | $ wine war3.exe -- -opengl |
I get something about Wine building font metrics, and then it crashes with an unhandled exception.
Ive seen both switches listed in these forums; which is correct? I figure if Im not issuing the switch properly, theres a good possibility thats causing my problems with the mouse. |
|
Back to top |
|
|
ConVicTioN Tux's lil' helper
Joined: 24 Sep 2004 Posts: 80 Location: Orlando
|
Posted: Fri Oct 29, 2004 4:01 pm Post subject: |
|
|
One command to get war3 working with cdrom. I have no problems at all with war3 winx/cedega
Before you mount cdrom.
Code: | echo 1 > /proc/sys/vm/legacy_va_layout |
_________________ I think there for I am? |
|
Back to top |
|
|
discomfitor l33t
Joined: 21 Feb 2003 Posts: 927 Location: None
|
Posted: Fri Oct 29, 2004 4:12 pm Post subject: |
|
|
To get opengl mode running correctly, you should do exactly what you've been doing:
Code: | $ wine war3.exe -opengl |
As for getting it to stay within the game window, that's mostly because you're running it in windowed mode. I always run it in a separate instance of X where it can take up the whole screen with something like this:
Where war3 is a script I wrote that calls the opengl mode of Warcraft 3 and a few other things which aren't actually necessary but make me feel better. _________________ There is no substitute for experience.
Imperfection indicates a lack of effort. |
|
Back to top |
|
|
whiskeypriest Tux's lil' helper
Joined: 05 Feb 2004 Posts: 91
|
Posted: Sat Oct 30, 2004 8:38 pm Post subject: |
|
|
ConVicTioN:
I'm not using any TransGaming products, nor is the CD detection an issue for me at this time; regardless, thanks for the tip. Perhaps I'll have a look at that sometime in the future...
Darckness:
Thanks again for your assistance. All things considered, I'm going to call this little experiment a success: while starting a new instance of X is a great idea, my ATi card is having none of it. I've read elsewhere that this is an issue with the ATi drivers; it doesn't matter if I attempt to launch the new instance from a console or an existing session, neither function to my satisfaction.
I've (mostly) solved the problem by simply setting Desktop = N in my configuration; the mouse cursor will still fly off into my second monitor if I cross that particular edge of the screen, but the other cardinal directions are fine. I'm calling this good enough and moving on.
Again, thanks for the help. |
|
Back to top |
|
|
yogipsu Tux's lil' helper
Joined: 30 Aug 2003 Posts: 98
|
Posted: Mon Nov 01, 2004 7:38 am Post subject: |
|
|
This is just a "me too" post echoing whiskeypriest's earlier troubles. On the 2.6.8 series, I was able to run War3 fine-- without a cd crack, on BNet fine, and with perfect graphics and sound under ALSA.
As soon as I upgraded 2.6.9, I get this whenever I attempt to run the program (though PokerStars works fine):
Code: | /usr/bin/wine: line 55: 31983 Trace/breakpoint trap "$RUNWINE" "$@"
|
I'm baffled.
EDIT: Just tried it again, and it works perfectly under 2.6.8-r10.
Any ideas? Whiskeypriest, what did you end up doing to fix the detection problem? I already have it set to win2k, it's mounted-- it's always worked like this before. |
|
Back to top |
|
|
whiskeypriest Tux's lil' helper
Joined: 05 Feb 2004 Posts: 91
|
Posted: Mon Nov 01, 2004 3:06 pm Post subject: |
|
|
Actually, my "solution" for the CD detection issue was to downgrade from 2.6.9-r1 to 2.6.8-r10. Nothing more, nothing less.
I'll give it another go when the next iteration of gentoo-dev-sources hits Portage, but in the meantime, there's nothing in 2.6.9 that I can't live without. |
|
Back to top |
|
|
yogipsu Tux's lil' helper
Joined: 30 Aug 2003 Posts: 98
|
Posted: Tue Nov 02, 2004 10:36 pm Post subject: |
|
|
Same. I decided to downgrade to 2.6.8-r10, but it turns out that I'm getting the "Invalid CD Key" error-- but only *after* I install Frozen Throne. It worked fine on RoC.
Suppose I'll just continue to reinstall. |
|
Back to top |
|
|
whiskeypriest Tux's lil' helper
Joined: 05 Feb 2004 Posts: 91
|
Posted: Tue Nov 02, 2004 11:56 pm Post subject: |
|
|
Can't tell you anything about Frozen Throne, but for what it's worth...
W3:RoC loads flawlessly about half the time; as for the remainder, it seems to require an intricate combination of:- Mounting and unmounting the media.
- Multiple attempts to start the game; the first few either fail without feedback or result in invalid key and/or reinstall messages.
- Swinging a dead cat counter-clockwise above my head while typing...
Code: | $ echo "My life for Ner'zhul!" >> ~/load.dammit |
...in a separate console, three times in succession.Best of luck with it...if you find a consistent solution, please post it. |
|
Back to top |
|
|
Xyun n00b
Joined: 21 Aug 2004 Posts: 22 Location: Singapore
|
Posted: Sun Nov 07, 2004 8:19 am Post subject: |
|
|
I'm using cedega and I cant seem to get TFT nor ROC to detect the CDROM even after following the instructions here.
Here are extracts from my cedega config file (I followed my fstab config for the device for my cdrom):
Code: |
[Drive D]
"Path" = "/mnt/cdrom"
"Type" = "cdrom"
"Filesystem" = "win95"
"Device" = "/dev/cdroms/cdrom0"
...
[Version]
; Windows version to imitate. Valid versions are: 'win20', 'win30', 'win31', 'win95', 'win98', 'winme', 'nt351', 'nt40', 'win2000', 'winxp'
"Windows" = "winxp"
|
|
|
Back to top |
|
|
Cerdan n00b
Joined: 20 Jul 2004 Posts: 15
|
Posted: Sun Nov 07, 2004 10:23 am Post subject: |
|
|
Hi Guys,
my experience with wine and Warcraft 3 was that only older versions of wine did actually work with Win2k simulation turned on. I got Warcraft 3 working with ebuilds dated January 2004 and December 2003 without NoCD patch. Later ebuilds from e.g. April 2004 did no longer work for me (it took me hours to find that out, I always thought I was too dumb to get it working )
I guess the developers did some changes on "how wine talks to a cd-rom / dvd-rom" or something like that
I also heard about a safedisc copy protection patch for wine, maybe someone else can help us with that?
Thomas |
|
Back to top |
|
|
Cerdan n00b
Joined: 20 Jul 2004 Posts: 15
|
Posted: Sun Nov 07, 2004 10:44 am Post subject: |
|
|
whiskeypriest wrote: | I've (mostly) solved the problem by simply setting Desktop = N in my configuration; the mouse cursor will still fly off into my second monitor if I cross that particular edge of the screen, but the other cardinal directions are fine. I'm calling this good enough and moving on |
I found a nice start script which you can use to start Warcraft 3 directly from console (no longer annoying border problems):
------------------------------------------------------------
#!/bin/sh
# warcraft3 start script
# Version 0.02
# Copyright 2003 Johannes Weißl
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License.
EXEC_DIR="/home/username/.wine/fake_windows/games/war3"
EXEC_CMD="roc.exe"
#EXEC_CMD="war3.exe"
#EXEC_CMD="War3.exe"
EXEC_OPT="-opengl"
#SCREEN="low_res_800"
SCREEN="Screen1"
DEPTH="16"
XINIT="/usr/X11R6/bin/xinit"
X="/usr/X11R6/bin/X"
WINE="/usr/bin/wine"
if xdpyinfo > /dev/null 2>&1 ; then
$WINE $EXEC_DIR/$EXEC_CMD -- $EXEC_OPT $*
else
$XINIT $0 -- $X :1 -depth $DEPTH -screen $SCREEN
# xset -display X m 3 2
fi
------------------------------------------------------------
I'm not sure if it was possible to start it with the roc.exe symlink or if I had to use War3.exe (or war3.exe?).
Hope this helps.
Thomas |
|
Back to top |
|
|
Cerdan n00b
Joined: 20 Jul 2004 Posts: 15
|
Posted: Mon Nov 08, 2004 7:57 pm Post subject: |
|
|
I found some more information about the Warcraft 3 Copy Protection issue on the developer's mailing list:
---------------------------------------------------------------------------
Warcraft 3 will not run without a crack after the following commit:
http://www.winehq.org/hypermail/wine-cvs/2004/03/0093.html
If no one wants to tackle this immediately I'd like to fix it. Any ideas?
Brian G.
---------------------------------------------------------------------------
Thomas |
|
Back to top |
|
|
yogipsu Tux's lil' helper
Joined: 30 Aug 2003 Posts: 98
|
Posted: Wed Nov 10, 2004 8:21 pm Post subject: |
|
|
Just thought I'd update-- WC3 works fine now in 2.6.8-r10. I don't know why, actually, since it seems that it magically fixed itself.
I sometimes have to install the program twice; it seems that it only works after installing it, rm -r'ing Program Files/Warcraft III, and installing again.
Sometimes during the install I get an error about "desktop.ini" (I think; it's not the standard error that talks about not being able to create desktop links). If that happens, I rm the directory and try again.
There's really no rhyme or reason as far as I can tell, but it works perfectly-- so I'm masking wine and will wait a few rc's for the kernel before trying again. |
|
Back to top |
|
|
|