SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-20-12, 01:38 AM   #1
dthomo
Seaman
 
Join Date: Jul 2007
Posts: 33
Downloads: 758
Uploads: 0
Default SH5 and Linux

Has anyone ran SH5 on a Linux system (any distro)? I know WINE can be used but I believe that it is very limited in the Mods that work. Are there any other restrictions?
Any help and/or advice would be very much appreciated.
dthomo is offline   Reply With Quote
Old 05-23-12, 11:30 AM   #2
Castorp24
Loader
 
Join Date: Apr 2005
Location: Spain
Posts: 83
Downloads: 278
Uploads: 0
Default

Hi.

I see that no one answered yet, so I thought I'd say something. I love and enjoy Linux and commit my most important documents to a Debian 6.0 OS. I am aware that a few good games run nicely with Wine, but I don't think that will be the case with SH5. I've never tested this, though.
Personally, I finally chose to partition my hard drive in two sections, a main one with Debian and a second one with WindowsXP which I use mainly to play games.
You could do the same... or try SH5 with Wine... and share your findings here...
__________________
Castorp U-34 / 24 Flotilla
Castorp24 is offline   Reply With Quote
Old 05-25-12, 01:29 PM   #3
SilentOtto
Engineer
 
Join Date: Mar 2002
Location: BF79
Posts: 201
Downloads: 71
Uploads: 0
Default

Hey!

According to the info at winehq here http://appdb.winehq.org/objectManage...sion&iId=19549 it should work, and quite some people have been able to run it (though they only talk about SH5 v1.1 and not 1.2.

Right now I have installed it under ubuntu 12.04, I could setup and update it.
But it does not run. I'm getting a heap error and am looking for more info to try and correct it. I'll post if I find out anything else, but you might be lucky! Nowadays you can run many windows games with wine, and more so if they are not-so-new releases such as sh5.

Good luck!

*Edit to share here, that I haven't been able to run SH5 but SH4 runs flawlessly under wine 1.4 in Ubuntu 12.04 (xubuntu to be precise). And SH4 + TMO/OTC or SH4 + OM/OMEGU are more than enough for my subsimming needs!

** It's been some years now that I don't use windows and hopefully won't ever again use it. Linux has become so good for my needs, and so worries-free that I can't be arsed to suffer windows troubles again. Plus, now my friends/relatives can't bug me with their windows problems, since "I have forgotten most about that OS"

Last edited by SilentOtto; 05-29-12 at 10:32 AM.
SilentOtto is offline   Reply With Quote
Old 05-30-12, 03:46 AM   #4
Paco
Captain
 
Join Date: May 2005
Location: Kassel, Germany
Posts: 538
Downloads: 345
Uploads: 0
Default

Hi,

on my ubuntu 12.04 the game does not install properly with PlayOnLinux. It hangs at the end of the installation. I'm using a 64bit ubuntu, SH3 works fine with GWX and JSGME.

Have You installed winetricks and the packages as mentioned in WineHQ.

Greets,
Paco.
Paco is offline   Reply With Quote
Old 06-07-12, 09:08 AM   #5
SilentOtto
Engineer
 
Join Date: Mar 2002
Location: BF79
Posts: 201
Downloads: 71
Uploads: 0
Default

Hi Paco,
Yes I installed all the required packages, and didnt use PlayonLinux, I used "vanilla" 1.4 wine. As I said before, I can install it perfectly, the installer runs great and it updates too. But it doesnt run at all.

I stopped trying since I have SH4 working perfectly
SilentOtto is offline   Reply With Quote
Old 06-12-12, 06:11 AM   #6
SilentOtto
Engineer
 
Join Date: Mar 2002
Location: BF79
Posts: 201
Downloads: 71
Uploads: 0
Default

Hi again,

I have some more info regarding SH5 and linux, though I'm playing SH4 full time, but curiosity made me install SH5 again. This time I just installed everything, the first time I had not installed that Uplay ****, and that was part of the problem.

Now, installing the game with everything, it again updated itself and then updated uplay. I setup an account (which I didnt have yet) and everything looked good... until I tried to start the game, it failed.

Wine logs inspected, and searched on the webs, I found out this:

Bug 28119 - Games with UPlay won't start due to ReadFileEx failture

So this leaves us with two choices, both involving a patch.

Someone has posted on the link above a patch (he calls it a hack ;D) for wine source code. So solution one is downloading current wine source, apply this patch, compile it for your system and hope it works (it seems to work for all other ubi games, like assassins creed and some more).

Solution two would involve patching another thing, with a patch available in the web too, but which we should not mention here.

So, now i'm deciding what to do, you can bet I felt like an idiot (again) with my original SH5 copy and its serial number, with my uplay account, and again not working because of a ***** copy protection scheme.

Talk about a love-hate feeling for a developing company!

Best wishes

Edited because Grandpa says I'm a badmouth

Last edited by SilentOtto; 06-12-12 at 10:46 AM.
SilentOtto is offline   Reply With Quote
Old 06-12-12, 12:12 PM   #7
SilentOtto
Engineer
 
Join Date: Mar 2002
Location: BF79
Posts: 201
Downloads: 71
Uploads: 0
Default

So, I finally have gotten SH5 working under linux! (xubuntu 12.04 in my case).

Basically I had to do what I said above:

1) Download wine source (I used latest 1.5.6 from sourceforge) here:

http://sourceforge.net/projects/wine...r.bz2/download

2) Extract in your docs folder (or wherever) with:

Quote:
tar -xvfj wine-1.5.6.tar.bz2
Apply patch http://bugs.winehq.org/attachment.cgi?id=40106

(save the code as a regular file, in wine source folder (wine-1.5.6) name it for example hack-patch)

Quote:
patch -Np1 -i hack-patch
3) In order to be able to compile wine, you need a lot of developing libraries you probably won't have in your system. Fortunately, in Ubuntu there is a very easy way to do this, with:

Quote:
sudo apt-get build-dep wine1.4
(this installs all the needed libs for wine 1.4, it worked perfectly with 1.5 too)

in my system it downloaded about 200Megs of data

4) verify everything is ok with

Quote:
./configure
5) if reported ok, you can then

Quote:
make
6) magic will happen for a few minutes while new wine is compiled.
then the command

Quote:
sudo make install
will setup your new wine binaries


7) Done!!


PS: Unfortunately in my first test sh5 runs sloooow compared to Sh4. That was to be expected, when the kids go to bed i'll test it a bit more, but I could load one of the historical missions and mess around a bit. Though I didnt go inside since I have no mods installed yet, and I never cared much to learn the new (silly?) sh5 interface!

Anyway my objective is achieved, I wanted to get the thing working, even if I don't play it!


Edited for clarity

Last edited by SilentOtto; 06-12-12 at 02:03 PM.
SilentOtto is offline   Reply With Quote
Old 06-12-12, 03:08 PM   #8
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 715
Downloads: 575
Uploads: 0
Default

Hello SilentOtto.

Thank you. Can I ask what gfx card do you have?

Mine is AMD HD5870, I think Ubuntu runs better with nVidia cards

I will try this the next days.

Again, thank you.

Regards.

Echolt.
Echolot is offline   Reply With Quote
Old 06-12-12, 03:23 PM   #9
SilentOtto
Engineer
 
Join Date: Mar 2002
Location: BF79
Posts: 201
Downloads: 71
Uploads: 0
Default

Hey!

I have a nVidia GT-240, nothing fancy at all

And yes I have been using nvidia cards for quite a while since the drivers are sooo much better in linux than ATI ones. As you probably know nvidia doesnt release their code but they keep updating and improving binary drivers all the time, the difference is really big, so all linux versions will run better with these cards, just because of the drivers.

I am now trying to patch the exe with tdw's patcher, first try didnt work for a .NET issue. Am setting up newer .NET via winetricks. Then I'll try to get some mods running (the UI one first or I don't know what the hell to do anywhere! xD). It's not going as slow as I thought, first try i had a lot of stuff running on the background.

One awesome thing about running SH4 and SH5 under linux is you have no prob at all switching tasks, you can minimize, send back and bring forward the game window with no problems at all! Take that windows users!

Good luck with your setup, if I can help you later on just tell me and I'll try!

Last edited by SilentOtto; 06-12-12 at 03:27 PM. Reason: update
SilentOtto is offline   Reply With Quote
Old 06-12-12, 03:42 PM   #10
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 715
Downloads: 575
Uploads: 0
Default

Quote:
Good luck with your setup, if I can help you later on just tell me and I'll try!


PS The laptop also have AMD graphics

.Net with wine

Can we patch the exe under windows and copy over to the linux system?

Last edited by Echolot; 06-12-12 at 03:55 PM.
Echolot is offline   Reply With Quote
Old 06-12-12, 03:49 PM   #11
SilentOtto
Engineer
 
Join Date: Mar 2002
Location: BF79
Posts: 201
Downloads: 71
Uploads: 0
Default

You would feel the PAIN there!


Quote:
Can we patch the exe under windows and copy over to the linux system?
Well I think you could do that of course. I'm running into a problem since I don't have windows anymore, my netbook (which was dual boot) is mostly dead so I can't boot a windows system (also, I don't want to! xD) TDW's patcher requires .NET 3.5 and that is not working well under linux (i'm reading about that now, some ppl seem to have gotten it to work, but I can't) and even if you can install it many apps don't work well with it...

So it would be a good idea to patch the exe somewhere. Hell I can go to my sister's with usb key with sh5 and patcher and that would be it

Last edited by SilentOtto; 06-12-12 at 04:42 PM.
SilentOtto is offline   Reply With Quote
Old 06-19-12, 01:55 PM   #12
SilentOtto
Engineer
 
Join Date: Mar 2002
Location: BF79
Posts: 201
Downloads: 71
Uploads: 0
Default

Just to share that with the new .exe that TDW has been kind enough to prepare (compiled against .NET 2.0 instead of 3.5) there is no problem at all to patch sh5.exe under linux. Am running it patched, so cool!
SilentOtto is offline   Reply With Quote
Old 06-19-12, 02:46 PM   #13
Paco
Captain
 
Join Date: May 2005
Location: Kassel, Germany
Posts: 538
Downloads: 345
Uploads: 0
Default

Quote:
Originally Posted by SilentOtto View Post
Just to share that with the new .exe that TDW has been kind enough to prepare (compiled against .NET 2.0 instead of 3.5) there is no problem at all to patch sh5.exe under linux. Am running it patched, so cool!
hm, I still have problems compiling wine (32bit) in an 64 bit ubuntu

From repository without the patch, the installation failed. Ok, still on windows-patrol....
Paco is offline   Reply With Quote
Old 06-19-12, 02:57 PM   #14
SilentOtto
Engineer
 
Join Date: Mar 2002
Location: BF79
Posts: 201
Downloads: 71
Uploads: 0
Default

I am using 32 bit ubuntu but with the pae kernel which allows to use up to 8Gb of RAM... Though I have an AMD64, I didnt want to do a full reinstall when I upgraded MoBo-Processor and RAM so I updated the distro instead...

What problem do you find exactly when trying to compile? Or is it when running the binary later?
SilentOtto is offline   Reply With Quote
Old 06-19-12, 05:26 PM   #15
Paco
Captain
 
Join Date: May 2005
Location: Kassel, Germany
Posts: 538
Downloads: 345
Uploads: 0
Default

Quote:
Originally Posted by SilentOtto View Post
What problem do you find exactly when trying to compile? Or is it when running the binary later?
I have tried it last week. I think, I have had the following problems:

Compiling a 32 bit wine in an ubuntu 12.04 64bit does not work, because there are problems with the depencies to the 32bit development-files (asked google for help, but its a problem with the 64bit 12.04.)

Compiling wine64 with the patch was no problem, but installing the game does not work, because its 32 bit and the SH5 installer did not open.

At this point I stopped my work, because I need my, of course, good working ubuntu and didn't want to wrecked it with the wine/PoL mixes, because of using some other wine bottles with windows-programs I still need for my work.

Perhaps I will setup a Virtual-Box and will do some tests there. Setup a 32 bit environment and install the game there in one bottle, transfer the bottle to my 64 bit ubuntu. Sometimes the transfer of a bottle to another system works, but I havent tested it with a transfer from an 32 to 64 bit ubuntu yet.

Many thanks for Your time,
Paco.
Paco is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.