LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Running Starcraft 2 in slackware 13.1 using wine 1.2 (http://www.linuxquestions.org/questions/slackware-14/running-starcraft-2-in-slackware-13-1-using-wine-1-2-a-823755/)

kkorhonen 08-03-2010 05:27 AM

Running Starcraft 2 in slackware 13.1 using wine 1.2
 
Hello slackers

My first post to forum so don't expect miracles... Alien BOB is man for that.

I have a dual boot system with slackware 64bit and win xp (yep still running that 'cause ain't gonna buy new one... ever). Nowadays gaming is allmost only reason to boot to win xp and I don't even play much. I have been looking a way to get rid off the win xp partition from my hard drive and now I'm one step closer.

I'll list the steps I had to take to get Starcraft 2 running in slackware, I'm not going to go in details too much 'cause I'm still linux & slackware noob myself. There's good howto's to each step that I followed...

- Upgraded kernel to 2.6.35 -> next time remember to make initrd 'cause using lvm! (kernel panic otherwise... cough)
howto -> Alien BOB wiki - kernel

- Upgraded graphics driver. I used newest nvidia drivers straight from nvidias homepage
nvidia -> Nvidia drivers

- I'm on a 64bit system so I needed the multilib stuff to build 32bit packages
howto -> Alien BOB wiki - multilib

- Removed existing wine install

- Compiled and installed wine 1.2 from Slackbuilds.
link-> SlackBuilds - Wine

I didn't need any spesial winetricks kunfu to get it work, but there's two things I did in winecfg
1. In "Applications" tab I changed windows to "windows 7" (now that was an easy upgrade!)
2. In "Libraries" tab I added new override "mmdevapi" and changed it to disabled. (That fixed the no sound issue)

Then I mounted the Starcraft 2 dvd and copied it to hard drive (might work straight from dvd, didn't try that). Mount it with
Code:

$ mount -t udf -o ro,unhide,uid=$(id -u) /dev/cdrom /media/cdrom
howto I kinda followed -> HOWTO: Starcraft 2 on Linux with Wine

Then crossed my fingers...
Code:

$ cd /<where I copied starcraft 2 files>
$ wine Installer.exe

... and it worked! Installer ran whitout problems and updated to newest version from battle.net after installation. Game has been running whitout problems so far... it also feels like it's running bit faster than in 32bit win xp. I'm getting at least the same performance.

I hope this might help someone to get Starcraft 2 running... if not, I wasted precious forum space.

gasdim 08-03-2010 05:40 AM

Thanks for the tip. Here nothing is wasted space.....

CincinnatiKid 08-03-2010 10:13 AM

I have Slack64 and was wanting to try Startcraft II, but decided not to because I didn't want to deal with multilib, after seeing this post though, I am thinking about trying it out.

octoberblu3 08-03-2010 11:08 AM

Any particular reason why you updated the kernel to .35? Has anyone tried this yet with the stock kernel from current or 13.1?

Tedward 08-03-2010 12:15 PM

Neither Starcraft 2 or World of Warcraft work with the 2.6.33 kernel. It won't even load the first screen with the loading bar. Upgrading to the 2.6.35 kernel helped, and it runs both smoothly now.

octoberblu3 08-03-2010 12:28 PM

Quote:

Originally Posted by Tedward (Post 4054223)
Neither Starcraft 2 or World of Warcraft work with the 2.6.33 kernel. It won't even load the first screen with the loading bar. Upgrading to the 2.6.35 kernel helped, and it runs both smoothly now.

Thanks, I had just found the bug report myself.

For others: http://bugs.winehq.org/show_bug.cgi?id=23713

kkorhonen 08-03-2010 05:39 PM

Quote:

Originally Posted by octoberblu3 (Post 4054107)
Any particular reason why you updated the kernel to .35? Has anyone tried this yet with the stock kernel from current or 13.1?

I see Tedward allready answered to this, but I can say I tried with the stock (13.1) kernel. I couldn't get the installer to run. Then I decided to follow the instructions from WineHQ. Installer worked right away after upgrading kernel to 2.6.35. I would say upgrading the kernel is the easiest way to get SC2 running.

D1ver 08-03-2010 07:38 PM

I'm glad to see that SC2 is working in Linux. I'm running it in xp at the moment but when I get around to upgrading to a new computer it'll be running slack :)

Though for the purposes of gaming on Linux I would probably just shell out the 40 bucks and buy crossover. It'd probably be worth it to save the time patching wine every time I buy a new game.

If any of you are playing on the SEA servers we should get a game going :)

mmpl 08-29-2010 06:28 PM

Hello kkorhonen i have question how you compile wine exactly because i done that multilib and i still get that this version of wine is for 32 bit and i have 64 bits.... witch file you take from that link slackbuilds and how you compile it??

dTd 08-30-2010 10:17 AM

Quote:

Originally Posted by kkorhonen (Post 4054656)
I see Tedward allready answered to this, but I can say I tried with the stock (13.1) kernel. I couldn't get the installer to run. Then I decided to follow the instructions from WineHQ. Installer worked right away after upgrading kernel to 2.6.35. I would say upgrading the kernel is the easiest way to get SC2 running.

Really, 2.6.33.7 contains the fixes required to run these games and can be built easily using Pats scripts and configs. I remade the kernel packages and module packages as original substituting the 2.6.33.7 source on my home machine and starcraft 2 plays flawlessly. Hope this helps.

kkorhonen 08-30-2010 12:22 PM

Quote:

Originally Posted by mmpl (Post 4081736)
Hello kkorhonen i have question how you compile wine exactly because i done that multilib and i still get that this version of wine is for 32 bit and i have 64 bits.... witch file you take from that link slackbuilds and how you compile it??

There's no wine package for 64-bit slackware, that's why you need the multilib first so that you can use the 32-bit version.
You'll need the slackbuild script (wine.tar.gz) and the source downloads (wine-1.2.tar.bz2 & attachment.cgi?id=29994) as well. Here's guide I found about using slackbuilds if you are not familiar with those. How_to_use_slackbuilds

In the slackbuild script I changed one line.
Code:

elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"

... to ->

elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX=""

I hope this helps

dimm0k 08-30-2010 12:31 PM

Great to hear! I have yet to get my system into multilib mode, but it's great knowing such a new game is already playable in Linux!

igadoter 08-30-2010 03:21 PM

@kkorhonen
Please post your hardware configuration.

kkorhonen 08-30-2010 06:31 PM

Quote:

Originally Posted by igadoter (Post 4082695)
Please post your hardware configuration.

Sure... but what info "hardware configuration" includes? I really don't know. Anyways here some info about my system, if you need more specifics let me know.

kernel: 2.6.35
motherboard: Asus P5N-T-Deluxe
cpu: Intel(R) Core(TM)2 Quad CPU Q6700 @ 2.66GHz
memory: DDR2-800 4GB
graphics card: Asus ENGTX460/2DI/768MD5

igadoter 08-31-2010 02:20 AM

@kkorhonen
Thank's. That explains much.


All times are GMT -5. The time now is 01:43 PM.