Author Topic: WCS:DD in Linux with Wine  (Read 32552 times)

0 Members and 1 Guest are viewing this topic.

Offline niffiwan

  • 211
  • Eluder Class
WCS:DD in Linux with Wine
Update: The Wine AppDB now has instructions that include getting the launcher working.  I'll leave my instructions here for now, but I'd recommend following the AppDB guide instead.



If you're like me and you can't wait for the Linux (or Mac) version to be released, you can try running it with wine.  I've played maybe 25 missions and it's worked fine so far.  Hopefully someone else will find this useful - if you have any feedback, please post below!

I'm assuming that you've already downloaded the windows release of Wing Commander Saga: Darkest Dawn and unzipped it into /some/path.

1) Install Wine
Rather than repeat someone else's work, refer to here for general instructions.
Ubuntu users can add this PPA to get access to a recent version of wine.

2) Prepare the Wine environment
I like to keep all my wine apps separate from each other.  I think it makes it easier to run different apps without conflicts.

Open a terminal and run the following command:
Note - you need to keep this terminal window open to run the rest of the commands below.
Code: [Select]
export WINEPREFIX=~/.wine-wcsdd

You can replace .wine-wcsdd with anything you like - the name does not matter.

3) Install WCS:DD
Run the installer with:
Code: [Select]
wine /some/path/darkest-dawn-setup.exe
/some/path is where-ever you extracted the install files to. 

Just accept all the defaults - if you change the install dir you'll need to update the script I use below (if you want to use the script that is).  The install should also put a link on your desktop, I... umm... deleted it because I like the command line :nervous:, but you may prefer to use the link to run the game rather than mess with scripts like I do...

4) Run the game once
Running the game creates some registry paths - it's easier to do this than type them in by hand:
Code: [Select]
wine $WINEPREFIX/drive_c/Program\ Files/Wing\ Commander\ Saga/wcsaga_sse2.exe
(or use the desktop shortcut)

Create a pilot, and then exit.

5) Update the registry
From your terminal, run regedit and set the following key/values in:
Code: [Select]
HKEY_CURRENT_USER -> Software -> Volition -> WingCommanderSaga
You only really need to set the 1st key/value to get your correct video resolution, but the others don't hurt.

NameTypeValueComment
VideocardFs2openREG_SZOGL -(1680x1050)x32 bitChange 1680x1050 to be your resolution
TextureFilterREG_DWORD1
OGL_AnisotropicFilterREG_SZ4.0Or use 8.0, or 16.0
CurrentJoystickREG_DWORD0

6) Play!
Use the desktop shortcut.  Or if you like scripts:
Code: [Select]
#!/bin/bash
export WINEPREFIX=~/.wine-wcsdd
cd $WINEPREFIX/drive_c/Program\ Files/Wing\ Commander\ Saga
wine ./wcsaga_sse2.exe


7) The Launcher
The whole regedit thing could be skipped if you can get the launcher working.  I couldn't, but I didn't try very hard either.  It seems to be a .NET app, so you may have some luck if you want to install mono - at least, that's what wine suggested  ;)
« Last Edit: April 05, 2012, 05:56:39 am by niffiwan »
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Tolwyn

  • The Admiral
  • Administrator
  • 214
  • Ridiculously Old Fraud
    • Wing Commander Saga
Re: WCS:DD in Linux with Wine
Fantastic guide. Much appreciated. Stickied!
Wing Commander Saga: A Legend Is Reborn | WingCenter
 
Tolwyn’s reputation for risk taking with other people’s lives was considered  to understate the facts. The admiral’s willingness to sacrifice anyone or anything to achieve his objectives had long been lauded in the popular press. He was “the man who got things done”.- Colonel Blair

No errors, no random CTDs, just pure fun and proof of why getting hit with missiles is a bad thing.
-WC Saga's beta tester


Report Wing Commander Saga bugs with Mantis

 

Offline Aginor

  • Spelljammer
  • 210
Re: WCS:DD in Linux with Wine
Great guide, thanks!
Member of the Scooby Doo model Fanclub "verticies and splines are the medium and he is the artist."

 

Offline Topgun

  • 210
Re: WCS:DD in Linux with Wine
why can't you use a svn build of fs2?

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: WCS:DD in Linux with Wine
WCS use a custom branch of FSO, you would need to build into your build all the changes they made into FSO for it to work
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: WCS:DD in Linux with Wine
Or you'd need the WCS team to actually build one and distribute it, but that must be too hard for them.

Or they could release their code for us to compile, but code's only for devs.
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: WCS:DD in Linux with Wine
WCS team promised releasing the code a long time ago, so I hope it'll keep that promise. It'll most likely come out with the SDK.

 

Offline Tolwyn

  • The Admiral
  • Administrator
  • 214
  • Ridiculously Old Fraud
    • Wing Commander Saga
Re: WCS:DD in Linux with Wine
Or you'd need the WCS team to actually build one and distribute it, but that must be too hard for them.

Or they could release their code for us to compile, but code's only for devs.

We appreciate your feedback and input on the matter. Thanks for stopping by.
Wing Commander Saga: A Legend Is Reborn | WingCenter
 
Tolwyn’s reputation for risk taking with other people’s lives was considered  to understate the facts. The admiral’s willingness to sacrifice anyone or anything to achieve his objectives had long been lauded in the popular press. He was “the man who got things done”.- Colonel Blair

No errors, no random CTDs, just pure fun and proof of why getting hit with missiles is a bad thing.
-WC Saga's beta tester


Report Wing Commander Saga bugs with Mantis

 
Re: WCS:DD in Linux with Wine
Then mac users can use wineskin which makes the whole wine on mac very easy to use.

wineskin.doh123.com

The app has a very simple to use GUI that lets you install your game into a finder click-able application wrapper, and then you can use whatever tricks you normally use with wine to get the game running. 

I got it working great for standoff. it does add another (aprox.) 150mb to the file, as each wrapper also includes its own x11 package and wine installation.

a native app would still be better :) Wineskines take a few seconds longer to load up for starters.


[EDIT]  Yup the game works in wineskin upon installation.  Also installation of .NET from winetricks will get the launcher working as well.  Only major hitch is joystick isn't detected.  This is a common wine on MacOSX issue as the wine joystick system isn't near as good as it is on linux.  It's only a miracle that it works with WC Prophecy, Secret OPs, and Standoff so I'm not surprised.  Flight by keyboard is a little rough though with a macbook. ;)



Interesting graphical quirk noticed though. The old Mac OSX bug when ships go through a jump they will show through the other side of the jump before vanishing, is actually there.  This is common on native mac builds of FSO but this the first time I tried to run a windows build via wine and I got the same results.   Doesn't happen in windows..  :confused:

My graphics card is an older Nvidia 8600M
« Last Edit: March 28, 2012, 12:11:54 pm by Darklord42 »

 

Offline niffiwan

  • 211
  • Eluder Class
Re: WCS:DD in Linux with Wine
I tried installing .NET2.0 with this:
Code: [Select]
winetricks dotnet20

While this lets the launcher run, it's very slow (maybe 3-5 secs to switch tabs and draw everything), plus text (like your resolution) is nearly 75% hidden by the box it's in.  So unfortunately, close to unusable.  There's probably something else that I could install with winetricks that would improve things, but I'm not much of a wine guru, more just a user :)
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Aginor

  • Spelljammer
  • 210
Re: WCS:DD in Linux with Wine
Wait, you can install .NET with wine now?? When did this happen?
(I just realize I last worked with wine some years ago)

Of course you may want to wait for the Linux version of the game to get everything running smoothly, but I admit it feels pretty cool playing with wine and getting something to work that ain't designed for Linux. :)

Anyway, please continue posting if you find out more, it sure is interesting and the more impatient Linux users will like it. :)
Member of the Scooby Doo model Fanclub "verticies and splines are the medium and he is the artist."

 

Offline flecht

  • 24
Re: WCS:DD in Linux with Wine
Linux users can use PlayOnLinux for easier Wine management (wineprefix, different Wine versions for different apps and many more).

 

Offline Athrun

  • 20
Re: WCS:DD in Linux with Wine
Hi, I'm the current maintainer of WCS:DD in WINE's AppDB. I've just updated the HOWTO, it should solve any previous problem with the launcher.

Since this game is OpenGL it should run at native speed, and shouldn't show differences to a native port in terms of performance.

Please check it at:

http://appdb.winehq.org/objectManager.php?sClass=version&iId=25648

Unlucky we cannot give support to derived projects like Wineskin or PlayOnLinux as they change WINE's code, making us difficult to give support to those projects.

Aside of that feel free to ask for any support there.

-------------------------------------------------------------

PS: God I love this game.

« Last Edit: March 29, 2012, 11:28:05 am by Athrun »

 
Re: WCS:DD in Linux with Wine
Afaik, wineskin isn't suppose to change wine's code, it is just an implementation of wine in a mac appropriated package form.  In my experience, if it works in wine on macosx it will work there too.

 
Re: WCS:DD in Linux with Wine
Tolwyn,

Whats the timeframe on the Mac/Linux launcher?

Your news will save me checking the forums on a daily basis   

 :eek:


 
Re: WCS:DD in Linux with Wine
Just a heads up, I finished a playthrough of Darkest dawn in Linux native running Knossos. It of course has the knossos launcher, but it worked well.

It has 3 minor bugs:

1- Shelton sliding in autopilot causes audio glitches
2- the portraits are sometimes staticky
3- the landing sequence sometimes shows your ship landing through a wall. You survive though.

They are not showstoppers though, happy native penguin time to all!