View previous topic :: View next topic |
Author |
Message |
couker n00b
Joined: 21 Feb 2006 Posts: 8
|
Posted: Tue Feb 21, 2006 11:54 pm Post subject: |
|
|
hi..
i have just installed warcraft.Everything is going fine until i want run w3 in fullscreen.
i tried scripts that truc posted here,but it doesnt work for me..
Code: |
cat frozenthrone
#! /bin/bash
cd ~/wine/drive_c/Program\ Files/Warcraft\ III
exec `wine w3l.exe -opengl` #w3l.exe is no-cd loader
exit 0
cat xfrozenthrone
#! /bin/bash
xinit ~/scripts/frozenthrone -- :1
exit 0
|
when i write in scripts directory,]new X window is opened (you know,grey backrounnd,cross as cursor),but w3 doesnt start and i have to ctr+alt+F1 and kill X..if i just write wine w3l.exe -opengl in warcraft 3 directory everything going fine..
whats wrong ?
p.s: sry for my bad english |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Wed Feb 22, 2006 7:38 am Post subject: |
|
|
where did you paste theses scripts? do you have the ~/scripts/dir? could you give us the output of ls -l in ~/scripts
BTW, you don't need nocd patch anymore, you know? |
|
Back to top |
|
|
couker n00b
Joined: 21 Feb 2006 Posts: 8
|
Posted: Wed Feb 22, 2006 4:48 pm Post subject: |
|
|
i have these scripts in /home/couker/scripts directory
ls -l in ~/scripts directory give me this:
Code: | ls -l
total 8
-rwxr-xr-- 1 couker users 96 Feb 22 00:34 frozenthrone
-rwxr-xr-- 1 couker users 56 Feb 22 00:34 xfrozenthrone
|
really?thanks for the info |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Wed Feb 22, 2006 6:33 pm Post subject: |
|
|
does it work if you launch frozenthrone via xinit directly cia the CLI:
run: Code: | xinit ~/scripts/frozenthrone -- :1 | ? |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Wed Feb 22, 2006 11:26 pm Post subject: |
|
|
drescherjm wrote: | Well, after emerging wine 0.9.8, creating a brand new .wine folder and reinstalling Warcraft3 I am still back to the Please Insert cd if I do not run warcraft with the -opengl paramater. If I run it with that paramater I get this error:
Code: |
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 143 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 468
Current serial number in output stream: 468 |
So I guess its back to 0.9.5 again where Warcraft works great for me without any dlloverrides or even a no-cd patch. |
I get this too (on a fresh WarIII install with 1.20c patch and nocd).
Other people are seeing it as well: http://bugs.winehq.org/show_bug.cgi?id=4604 _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
couker n00b
Joined: 21 Feb 2006 Posts: 8
|
Posted: Wed Feb 22, 2006 11:34 pm Post subject: |
|
|
truc wrote: | does it work if you launch frozenthrone via xinit directly cia the CLI:
run: Code: | xinit ~/scripts/frozenthrone -- :1 | ? |
yes..when i run your command in console without running X its ok.. but when i try run these scripts in running X with fluxbox i have to kill X.. any idea what i'm doing wrong ? |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Thu Feb 23, 2006 1:05 am Post subject: |
|
|
without the nocd patch, (that you dont need..)
Code: | cat scripts/frozenthrone
#! /bin/bash
cd ~/wine/drive_c/Program\ Files/Warcraft\ III
exec `wine Frozen\ Throne.exe -opengl`
exit 0
|
and
Code: | cat scripts/xfrozenthrone
#! /bin/bash
xinit ~/scripts/frozenthrone -- :1
exit 0
|
|
|
Back to top |
|
|
couker n00b
Joined: 21 Feb 2006 Posts: 8
|
Posted: Thu Feb 23, 2006 10:27 am Post subject: |
|
|
thx for help |
|
Back to top |
|
|
KevinLarson Tux's lil' helper
Joined: 23 Sep 2005 Posts: 126 Location: Chaimpaign, IL
|
Posted: Tue Feb 28, 2006 10:35 pm Post subject: |
|
|
I have been unable to find a no cd exe after extensive searching (gamecopyworld only seems to have a mountable image). When I try and run it with the standard exe, it looks almost like it will work (screen goes black and resolution changes), but I just end up seeing my desktop at 800x600 resolution. When I get back to xterm, I see:
"wine ~/.wine/drive_c/Warcraft\ III/Frozen\ Throne.exe -opengl
err:ole:CoCreateInstance apartment not initialised
kevin@localhost ~ $ X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 143 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 465
Current serial number in output stream: 465"
Any suggestions on what to do or where to find the exe are greatly appreciated! |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Tue Feb 28, 2006 11:00 pm Post subject: |
|
|
Quote: | Any suggestions on what to do or where to find the exe are greatly appreciated! |
You do not need it. All versions of wine released in the last 4 to 6 months do not require a no-cd crack. Getting an error message that asks you for the cd generally caused by a different problem. There is some helpful hints to get around these problems here: http://appdb.winehq.org/appview.php?versionId=1177 See the part right after the Upgrade Warning. _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
|
quellthrix Tux's lil' helper
Joined: 09 May 2005 Posts: 111
|
Posted: Wed Mar 01, 2006 6:40 am Post subject: |
|
|
I thought I'd chime in quickly to mention that I have TFT running perfectly (except for random missing polygons in-game). Running wine-0.9.8-r1, installed RoC, then installed TFT, applied patch and made a tiny script to run the game (and I think running it under Windows 2000). The only other game that has been as smooth as WC3 was Jedi Knight 2, which might as well have been marketed for Linux (if I recall correctly, I didn't have to do anything to get it to run right off, and it's quicker than windows.)
My only complaint is the occasional lag spike, which is probably thanks to my ATI Radeon Pro 9800. That brings me to a nagging question of mine: considering I play a lot of Windows games on this box, is it worth snagging a different, nVidia based card? Or is WC3 performance just generally poor under wine? I read on slashdot a while ago about a new nvidia AGP card (I don't have PCI express on this mobo) that looked pretty nice. Or would I be better served to wait for a mobo upgrade to get pci-e? I could scrounge up money to grab a new card if I really needed it, which sounds pretty good, because my 9800 is a royal pain to play 3D games in.
Not to hijack the thread or anything - just seemed too small a question to warrant an entire thread.
Thanks _________________ "Ford," he said, "you're turning into a penguin. Stop it." |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Wed Mar 01, 2006 10:15 am Post subject: |
|
|
Quote: | Or is WC3 performance just generally poor under wine? |
I have a 4 maybe 5 year old nVida Geforce 2 440 card and my Warcraft3 performance (running 1024x768 fullscreen as a win2k box) is just as good as in windows xp if not better and this is with or without the -opengl param. Only thing I can not do is to play the game movies... My system is a dual processor Athlon MP 2200 with 2GB of PC2100 REG ECC DDR.
John _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Wed Mar 01, 2006 11:22 am Post subject: |
|
|
same here, before having this *** error : (X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 143 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent )
Warcraft ran really well with the -opengl option and was a bit lagging without it. I also have a nvidia card.. (that's why I felt suprised when drescherjm said he doesn't use this option.. (a few pages before..) |
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Wed Mar 01, 2006 1:18 pm Post subject: |
|
|
I have an nvidia 6800 128Mb AGP and I also can run warcraft3 in wine without -opengl option and it goes even better,
letting me choose more screen resolutions.(wine 9.5-9.7, some dll overlays but not any directx dll....) _________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/ |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Wed Mar 01, 2006 3:04 pm Post subject: |
|
|
Could it be that my card does not have all the bells and whistles so warcraft3 detects this and does not use all the new features? Or possibly since I am running on a SMP box the second processor makes up for the difference but then again its only an Athlon MP 2200 and I only have agp 4X because this is a workstation mobo (Tyan Thunder K7 Pro) again over 3 years old.
I do have my hands on a TI 4200 card which I can try and replace it and see if performance changes but this will not be soon because I have 5 hard drives in my system and their a mix of 2 IDE, 1 SATA and 2 U160 SCSI. I also have all 7 slots full of PCIX, PCI and the AGP graphics cards. The PCIX card is a full length 45 drive U80 raid card with 64mb of memory so its huge. With all this going on its hard to get to the mobo to swap out the graphics card.
And then there is time which is in short supply for me since my girlfrend and I are remodeling the house and its almost time to put a ring on her finger... I will stop here before I tell my whole live history... _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Wed Mar 01, 2006 5:55 pm Post subject: |
|
|
well I just try again without -opengl and..
The game don't even start I have a first strange "FATAL ERROR" about "acces violation", I click "OK" then I have the "CDROM not detected " error!
Strange, I put again -opengl , and it's working, no error at all, unless I wana cahnge the resolution (or changing 16 bits to 32bits) the game stops, exit, and I got Code: | X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 144 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 454
Current serial number in output stream: 454
|
BTW I can play in 16 bits for now but.. I'd like to have 32 bits as before... but it doesn't look bad, I'm wondering if I really am in 16bits, how can I know, in the game? (wihtout going in the options that said I'm 16bits?) |
|
Back to top |
|
|
quellthrix Tux's lil' helper
Joined: 09 May 2005 Posts: 111
|
Posted: Thu Mar 02, 2006 1:26 am Post subject: |
|
|
drescherjm wrote: | I have a 4 maybe 5 year old nVida Geforce 2 440 card and my Warcraft3 performance (running 1024x768 fullscreen as a win2k box) is just as good as in windows xp if not better and this is with or without the -opengl param. Only thing I can not do is to play the game movies... My system is a dual processor Athlon MP 2200 with 2GB of PC2100 REG ECC DDR.
John |
Interesting. I can't help wondering if I'd be better served swapping out my Radeon 9800 for my old Geforce 4200 Ti sitting in my test box. Anyone think I'd experience a nice FPS increase? Unless I'm mistaken, the only changes I'd have to make to my Gentoo installation would be some modifictations to the kernel config, Xorg.conf and emerge nvidia-dirvers.... _________________ "Ford," he said, "you're turning into a penguin. Stop it." |
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Mon Mar 06, 2006 3:28 pm Post subject: |
|
|
warcraft 3 seems to work fine with wine 9.9, even if I found some warnings in console after exiting. _________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/ |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Wed Mar 08, 2006 4:53 am Post subject: |
|
|
truc wrote: | well I just try again without -opengl and..
The game don't even start I have a first strange "FATAL ERROR" about "acces violation", I click "OK" then I have the "CDROM not detected " error! |
I got the same error when I upgraded from wine-0.9.5 to 0.9.8. And with the -opengl param I could not get by the opengl badmatch error. I did not have time to figure it out so I reverted back to my binary package of wine 0.9.5 which I still run until I figure out how to fix it... _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
|
Doomsdeye n00b
Joined: 23 Jun 2005 Posts: 5
|
Posted: Fri Mar 10, 2006 1:22 am Post subject: |
|
|
For cd-detection problems only in installation (Frozen Throne), you should install Warcraft3 in a directory without any spaces. Works for me without spaces, and doesn't work with spaces.
Anyway, I can't run with success my war3 with cedega. I've tried all tips and tricks, but I have two solutions: If I use crack no-cd, I can play solo but not on Battle-net. If I don't use it, CD-Rom is not detected, despite my correct permissions, correct letter on cedega config, etc...
Thanks for help. _________________ cu |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Fri Mar 10, 2006 6:32 am Post subject: |
|
|
use wine ! read previous pages for cd detection, if needed, but, with wine you don't need nocd crack and so on, and you'll be able to join battle net too:) |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Sun Mar 19, 2006 2:53 pm Post subject: Patches that fix opengl glx problems. |
|
|
I have been watching the status on the GLX bug that occurs with newer versions of wine and xorg-7 and finally I have found a patch that works for me:
http://bugs.winehq.org/show_bug.cgi?id=4143#c42
To install the patch create an overlay at /usr/local/portage. And add it to your portage overlays in your make.conf.
Then execute the following commands:
Code: | mkdir -p /usr/local/portage/app-emulation/wine/files
cp /usr/portage/app-emulation/wine/files/*.patch /usr/local/portage/app-emulation/wine/files
cp /usr/portage/app-emulation/wine/wine-0.9.10.ebuild /usr/local/portage/app-emulation/wine/
|
The following is a diff between the ebuild save it as ~/wine-0.9.10-ebuild.patch
Code: | #diff -Naru /usr/portage/app-emulation/wine/wine-0.9.10.ebuild /usr/local/portage/app-emulation/wine/wine-0.9.10.ebuild
--- /usr/portage/app-emulation/wine/wine-0.9.10.ebuild 2006-03-15 19:08:36.000000000 -0500
+++ /usr/local/portage/app-emulation/wine/wine-0.9.10.ebuild 2006-03-19 05:48:11.000000000 -0500
@@ -69,6 +69,7 @@
epatch "${FILESDIR}"/wine-0.9.6-force-ddraw-gamma.patch #119931
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in
epatch "${FILESDIR}"/wine-gentoo-no-ssp.patch #66002
+ epatch "${FILESDIR}"/wine-opengl-glx.patch
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
} |
Then copy the following and save it as /usr/local/portage/app-emulation/wine/files/wine-opengl-glx.patch
Code: | --- dlls/x11drv/opengl.c 2006-03-11 11:58:01.000000000 -0900
+++ dlls/x11drv/opengl.c 2006-03-11 11:58:09.000000000 -0900
@@ -199,6 +199,12 @@
dump_PIXELFORMATDESCRIPTOR((const PIXELFORMATDESCRIPTOR *) ppfd);
}
+ if (ppfd->dwFlags & PFD_DRAW_TO_BITMAP) {
+ ERR("Flag not supported !\n");
+ /* Should SetError here... */
+ return 0;
+ }
+
/* Now, build the request to GLX */
if (ppfd->iPixelType == PFD_TYPE_COLORINDEX) {
--- dlls/opengl32/wgl.c 2006-03-11 11:58:01.000000000 -0900
+++ dlls/opengl32/wgl.c 2006-03-11 11:58:09.000000000 -0900
@@ -154,11 +154,11 @@
}
-/* retrieve the GLX drawable to use on a given DC */
+/* retrieve the X drawable to use on a given DC */
inline static Drawable get_drawable( HDC hdc )
{
- GLXDrawable drawable;
- enum x11drv_escape_codes escape = X11DRV_GET_GLX_DRAWABLE;
+ Drawable drawable;
+ enum x11drv_escape_codes escape = X11DRV_GET_DRAWABLE;
if (!ExtEscape( hdc, X11DRV_ESCAPE, sizeof(escape), (LPCSTR)&escape,
sizeof(drawable), (LPSTR)&drawable )) drawable = 0;
@@ -571,8 +571,6 @@
}
TRACE(" make current for dis %p, drawable %p, ctx %p\n", ctx->display,(void*) drawable, ctx->ctx);
ret = glXMakeCurrent(ctx->display, drawable, ctx->ctx);
- if(ret && type == OBJ_MEMDC)
- glDrawBuffer(GL_FRONT_LEFT);
}
LEAVE_GL();
TRACE(" returning %s\n", (ret ? "True" : "False"));
|
Then execute the following commands:
Code: | patch -l < ~/wine-0.9.10-ebuild.patch
ebuild /usr/local/portage/app-emulation/wine/wine-0.9.10.ebuild digest
|
If everything worked you should now be able to emerge wine. And if you are upgrading from a version of wine that is less than 0.9.6 you must reinstall Warcraft or you will get an error about not being able to find the cd key. _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Sun Mar 19, 2006 10:03 pm Post subject: |
|
|
Wow, that sounds really good, have to try that! erm.. the game don't even start, I'll try to reinstall later, btw, thanks good work:) |
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Sun Apr 02, 2006 4:45 pm Post subject: |
|
|
Wine-0.9.11 fails to run/need fixes:
Code: |
#wine War3.exe
err:ole:CoCreateInstance apartment not initialised
|
then it will run very slow (audio disabled) , 1 frame every 3 seconds.
Code: |
#wine War3.exe -opengl
err:ole:CoCreateInstance apartment not initialised
err:wgl:X11DRV_ChoosePixelFormat glXChooseFBConfig returns NULL (glError: 0)
|
then it will ask for directX and not run.... _________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/ |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Sun Apr 02, 2006 4:52 pm Post subject: |
|
|
Matteo Azzali wrote: | Wine-0.9.11 fails to run/need fixes:
Code: |
#wine War3.exe
err:ole:CoCreateInstance apartment not initialised
|
| I've had this same problem since 0.9.10 :/ |
|
Back to top |
|
|
|