WedgeHG WedgeHG

Unofficial Guide to Running SoaSE on Wine

Unofficial Guide to Running SoaSE on Wine

For anyone who wants Sins on Linux

As suggested by TFL BigBANGtheory here is a basic guide to installing Sins of a Solar Empire on Linux using Wine. Please note that Linux is not officially supported by Stardock or Ironclad. Also, please do not send in any minidumps that are generated while running Sins on Linux. The problem may be Linux/Wine related and not a problem with Sins itself so we don't need the nice devs wasting their time looking at them - they have enough work already.

Summary of steps:
1. Install Wine
2. Configure Wine with winecfg
3. Install Sins of a Solar Empire
4. Run Sins with Wine

Step 1: Install Wine.

If you are running Ubuntu or another Debian based distro, good instructions for doing this can be found here: http://www.winehq.org/site/download-deb (Thanks XRolando!). Please note that Ubuntu users cannot simply install it from the Ubuntu repos because the version currently in the Ubuntu repositories (as of January 3rd 2008) is outdated and will not run Sins properly. Version I used was 0.9.52.

Instructions for other distros can be found here: http://www.winehq.org/site/download.

Step 2: Configure Wine

To configure Wine run winecfg from a terminal:

$ winecfg

This will launch a setup GUI. Here are the settings I used (note that there may be other ways to make it work... this is just what I did). Any settings I don't mention were just left at their defaults:

Under the Applications tab I set the Windows Version to Windows XP

Under the Graphics tab:
  • I unchecked Allow DirectX Apps to stop the mouse leaving their window
  • Unchecked Allow the window manager to control the windows.
  • I did check Emulate virtual desktop and set it at 1024x768 (adjust that to your own preference). This is not required but I recommend it so that if the game freezes up you still have use of your monitor to kill the process.

Under the Drives tab I just clicked Autodetect and accepted the defaults.

Under the Audio tab I unchecked the OSS drivers and checked the ALSA drivers.

Click OK to exit winecfg.

Step 3: Install Sins

There are two options for installing Sins.

Option 1: Installing From DVD

If you purchased Sins at retail or ordered online and chose to receive a boxed copy then you can install from the DVD. This is probably the fastest way to do it.

To install, simply change directory to your DVDROM drive and run setup.exe with Wine. My DVD drive is found at /media/cdrom0/ but yours may be different.


$ cd /media/cdrom0
$ wine setup.exe


This will launch an installer. Follow the instructions it gives you. Should be very straightforward. When it finishes it will launch Sins. Now that it is installed we need to install the latest patch (at the time of this writing it was version 1.02) so exit Sins for now and go to https://www.sinsofasolarempire.com/update.aspx (you will need to be registered and logged in to do this) and download the patch. Once downloaded, run the patch with Wine:


$ cd /directory/where/you/downloaded/the/patch
$ wine Sins_Bonuspack_102_setup.exe


The wizard this launches is also very straightforward.

Option 2: Installing from Stardock Central

If you purchased Sins online, don't have your DVD yet, or just don't feel like using the DVD then you will need to install Stardock Central in order to download and install Sins.

Download the Stardock Central installer from www.stardock.com then run it with wine:

$ cd /directory/where/you/downloaded/the/installer
$ wine sdcentral_setup.exe


This will launch the SDC installer. Follow the directions exactly as if you were running it in Windows.

Once installed, launch SDC with Wine:


$ cd ~/.wine/drive_c/Program\ Files/Stardock/SDCentral/
$ wine sdcentral.exe


Then use SDC to install Sins as if you were doing it in Windows.

Unfortunately, with recent versions of Wine, SDC has had some trouble installing Sins. It can fail at the point where it attempts to download sin.sdc. If this happens to you the workaround is to install an older version of Wine for the Sins install and then reinstall the current version to actually run Sins. Thanks for pointing this out, Radtoo.

To do this go to http://www.winehq.org/site/download, select your distribution, and then find the list of previous versions that are available. For Ubuntu, for example, you would select Ubuntu from the list and then click the link under "Older .deb packages," download the package, and install it.

A version of Wine known to work well with SDC and install Sins properly is 0.9.47 so I'd recommend going with that one.

Once you have version 0.9.47 installed, run SDC and install Sins of a Solar Empire exactly like you would in Windows.

Once the install is finished you can go ahead and reinstall the most recent version of Wine.

Step 4: Run Sins

Now to run Sins you can either run it from SDC or run it more directly with Wine. Depending on how you installed it, the Sins directory will be in one of two places (unless you specified a different location during instillation).

If installed from the DVD:
~/.wine/drive_c/Program\ Files/Stardock\ Games/Sins\ of\ a\ Solar\ Empire/

If installed using SDC:
~/.wine/drive_c/Program\ Files/Stardock/TotalGaming/Sins\ of\ a\ Solar\ Empire/

To run Sins, change directory to the Sins directory specified above and then run:


$ wine Sins\ of\ a\ Solar\ Empire.exe



Notes:
While the beta versions of Sins worked quite well under Wine the retail release has been plagued with crashes. While it seems to be better with Wine 0.9.55 than with previous versions I still get crashes every 20 minutes or so. Others have reported it running quite well for them, however, so your experience may vary. In any case I would recommend saving often so that you can pick up where you left off if the game crashes.

Font Size Bandaid

Currently the fonts don't display properly - they are too big and often trail off of the screen. I have partially fixed this by messing around with the .font files in the ~/.wine/drive_c/Program\ Files/Stardock\ Games/Sins\ of\ a\ Solar \Empire/Font folder. More specifically I adjusted the "Height" value down to a smaller number so that it would display properly.

The modified files can be downloaded here www.honorguardonline.com/sins/sinsfontfix.tar.gz. Just replace the .font files in your ~/.wine/drive_c/Program\ Files/Stardock\ Games/Sins\ of\ a\ Solar \Empire/Font folder with the ones provided in the download (I would recommend making a backup of the originals first just in case, for whatever reason, you want/need to go back to the original version).

I only fixed the most grievous problems so there are still areas that need work. If anyone feels industrious enough to fix some of the others please share your results. It would be most appreciated.
179,981 views 82 replies
Reply #51 Top
Hmmm I don't seem to have latest wine 9.5.5 in repos? How did you guys install it?
Reply #52 Top
What distro do you have? The .deb package for Ubuntu for 0.9.55 didn't show up in Wine's repos until today (or at least I didn't install it 'til today, could have been yesterday or Sunday afternoon). To use it previously I had to compile it from source. I'll play around with the official binary package when I get home from school and work today.

I'm also looking forward to trying out Rylin's method of launching it. Also, Rylin, are you using the updated version of Sins (the 1.02 patch) or are you just using the one that came on the CD?
Reply #53 Top
How is sins running under cedega/wine compared to vista/xp? using vista x64 atm, and it works fine for me. But i like to check out new things and linux is really tempting.

I've been tempted to move over to linux many times, but each time i tend to remind me of the bad game support, so it never happened, or i've tried linux once, but i didn't hold out for long. But things has come a long way since then, also the new KDE 4.0 looks really nice =)
Reply #54 Top
Well, if running games is your primary concern then Linux probably isn't the best option for you. Sins runs very well in Windows but has some issues in Linux (though it's getting better with every new release of Wine). Check out the original post to see the current state of things (at least for me, others have reported having more or less luck).

That said, Linux does have quite a bit to offer such as a pretty good equivalent to many popular Windows programs that are FREE. It's also more secure and flexible. And if you are planning a career in any sort of technical field it is nice to be able to put that you know your way around Linux on your resume. In my last job interview they skimmed right over all the other stuff - ccna, job experience in a large network, etc. and interrogated me over the one little line that said "Some Linux experience."

And if you want to try it out you can always set it up as a dual-boot (that's what I'm doing) so that you can switch right back to Windows when the occasion calls for it. My favorite distro is Ubuntu and they also have a Kubuntu variant which uses KDE if that is what you prefer (I like GNOME myself).
Reply #55 Top
Guys, try Wine 0.9.56. Maybe its just me having delusions, but it doesn't seem to crash as much anymore.
Reply #57 Top
Is it in repos yet? Wine I mean

You didn't say what Linux distribution you used. It is in Gentoo's portage tree, but quite frequently Gentoo is a couple of days faster than other Linux distributions as far as package updates are concerned...

If your dist doesn't have it yet, wait for a couple of days, or compile wine manually.
Reply #58 Top
I have Ubuntu sorry for not mentioning it earlier. Think I'm gonna wait for repos. I tried compiling wine once but got some troubles with menus and such, everything dissapeared from start menu...
Reply #59 Top
No, it isn't in the repos for Ubuntu yet. With the previous version it took over a week for the .deb package to show up after the release.


And on another topic, I have made some adjustments to Sins' .font files to help resolve the "fonts are too large" issue. See the original post for details.
Reply #60 Top
Im going to experiment getting Sins to work under the latest Wine for Ubuntu 7.10 (Which I assume will be one of the more popular ones.

Hopefully I can post any of my findings on here.

I will also try Cedega (with latest patches) and see how I get on.

I kinda wish there was a native Linux version, but being built on DirectX, I assume this would be hard to implement, and with Ironclad being a smaller company, I doubt they have the resources.

Cheers for an awesome game though - its the most hooked I've been on a PC in YEARS (Since Transport Tycoon if I recall!)
Reply #61 Top
Okay, so far Wine 0.9.56 is looking really good. I just played through an entire random medium map without a single crash. In fact, Sins hasn't crashed on me since I started using 0.9.56.

Now all we need is for multiplayer to work. Has anyone had any success with that? For me it freezes up after I put in my name and password.
Reply #62 Top
May need to activate some native DLL's. I tried it on .56 last nite and it seemed to run ok. But I didn't try logging on to ICO.
Reply #63 Top
i am running wine 0.9.56 on gentoo, runnnig on a laptop with Pentium-M 1.6GHz, 1GB RAM, ATI Mobility Radeon 9700 64MB
I am using the proprietary ati drivers in version 8.455.2-r1

I configured wine to run as WinXP, set my resolution to 1400x1050 and allowed the window manager to manage the windows ;)

StarDock Central installed without problems, Sins downloaded and installed without problems, and starts without problems.

Sins runs a little slow on my machine, which might be due to the introduced overhead by wine. I haven't fiddled with the settings yet, will try lower resolution and lower details...

EDIT: Some problems seem to be when closing Sins.. X crashes on me, don't know why yet..

In windows on this machine, it runs perfectly (with the newest graphic drivers... with old ones, big problems!)

cheers
Reply #64 Top
Thanks for a great guide, I made a link to it from SoaSe wine appdb page. I'd appriciate it if people would send reports there about how well the game plays!
Reply #65 Top
i am running wine 0.9.56 on gentoo, runnnig on a laptop with Pentium-M 1.6GHz, 1GB RAM, ATI Mobility Radeon 9700 64MBI am using the proprietary ati drivers in version 8.455.2-r1I configured wine to run as WinXP, set my resolution to 1400x1050 and allowed the window manager to manage the windows StarDock Central installed without problems, Sins downloaded and installed without problems, and starts without problems.Sins runs a little slow on my machine, which might be due to the introduced overhead by wine. I haven't fiddled with the settings yet, will try lower resolution and lower details...EDIT: Some problems seem to be when closing Sins.. X crashes on me, don't know why yet..In windows on this machine, it runs perfectly (with the newest graphic drivers... with old ones, big problems!)cheers


Your performance problems are not so much due to Wine overhead most likely, but rather:
1. The inferior state of ATI linux drivers compared to their windows counter parts. (though they've been improving rapidly and you don't have the latest versions)

2. Wine has severe trouble doing any directx stuff beyond the dx7 level. You might be able to speed things up a lot by disabling some more advanced effects, I think Wine actually falls back to software rendering for a lot of dx8/9 effects. (though as a dx9 game, even dropping the effects levels may not be enough)
Reply #66 Top
Since the 28 feb, Sins is on the support list from Cedega... it mean that if enough people vote for the Sins, devs from Cedega will work hard to have Sins running with Cedega... From the last version of Cedega, DX9 is fully supported...

I am using Linux but use a VM ( virtual machine ) where i run windows XP...
Reply #67 Top
Does Sins run decently in a VM? I would have thought it would be very slow.
Reply #68 Top
I don't think there's much in the ways of accelerated direct x / opengl yet. (VMGL, okay - but see, that version number is indicative of its current usefulness...).

Wine / Cedega are your best bet, even for a longer while from now onwards.
Reply #69 Top
Thank you for the guide. SoSE seems to run atleast as fine on latest ubuntu packaged Wine (x86_64/gutsy) than it did on my (again defunct) windows.

I would like to add, that the sdcentral does not work properly on the Wine I have, if my account info is not valid.

The game seems to run a bit faster on Wine than on Windows - which is actually pretty cool.

Has anyone tried SoSE on Crossover Games - that should be a pretty straighforward version of wine, with installer tools, right?
Reply #70 Top
I just tried Sins under ubuntu 8.04 beta with wine 0.9.59, it installs well, also intro and menus work - but every time when logging into ico or opening a multiplayer game it hangs up saying:

fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (98000004)
fixme:winsock:ws_sockaddr_u2ws Unknown address family 8
fixme:winsock:ws_sockaddr_u2ws Unknown address family 8
fixme:winsock:ws_sockaddr_u2ws Unknown address family 8
fixme:winsock:ws_sockaddr_u2ws Unknown address family 8
fixme:winsock:ws_sockaddr_u2ws Unknown address family 8
fixme:winsock:ws_sockaddr_u2ws Unknown address family 8
fixme:winsock:ws_sockaddr_u2ws Unknown address family 63120
fixme:winsock:ws_sockaddr_u2ws Unknown address family 63120
fixme:winsock:ws_sockaddr_u2ws Unknown address family 63120
fixme:winsock:ws_sockaddr_u2ws Unknown address family 63120
fixme:winsock:ws_sockaddr_u2ws Unknown address family 63120

:(
Reply #71 Top
Yea, I get the same thing with Ubuntu 7.10 and Wine 0.9.59. Then again multiplayer in Wine probably isn't a very good idea anyways considering that the game crashes periodically - a bummer in single player but totally devastating to an online game.
Reply #72 Top
I've tried it on Crossover Games on my Macbook Pro. It runs fine for a few minutes, but then it locks up the whole desktop after about 5-10 minutes of play. If that locking up problem can be resolved, it would be just fine.
Reply #73 Top
With Wine 0.9.60 and a Madriva 8.0 it works fine, with some little bugs but not too annoying.
I fix the font bug with the font mod XiskiosFontMod07beta.

I hope a patch will fix the multiplayer.

The most annoying bug is the blinking cursor when mouse move. I search an option, use hardware cursor, like in Galciv 2 (which works well with linux too).

Reply #74 Top
I have a few suggestions that may help:

1. Install Microsoft True Type Fonts, that might help the font issue under wine.

2. Try "Play on Linux" : WWW Link

I run Linux Mint, and it rocks. WWW Link

Let me know how it goes.

Thanks,
TN
Reply #75 Top
Hi, excellent article. I follow the steps and SoaSE runs like silk on my Fedora 8.
However, I'm having a issue, I cannot save game! Any help will be greatly appereciated.