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 > Silent Hunter III
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-23-12, 05:22 AM   #1
Paco
Captain
 
Join Date: May 2005
Location: Kassel, Germany
Posts: 542
Downloads: 345
Uploads: 0
Default SH3 Resolution Fix under Linux/Wine

Hi,

I'm running SH3 under Linux and Wine. So I cannot execute the batch-file in the wine-bottle, something is wrong with the sdbinst.exe? .

Is there another way to fix the resolution on a Linux-System?

Thanks,
Paco.
Paco is offline   Reply With Quote
Old 11-08-15, 04:23 AM   #2
a.g.
Swabbie
 
Join Date: Nov 2015
Posts: 11
Downloads: 18
Uploads: 0
Default

Just posting here in case anyone is interested, since I got things working under wine:

  • The resolution fix actually works on wine without running any of that sdb stuff (in case of the dx9res10.7z version anyway). However, at least in windowed mode, it won't change the window size, so you have to configure your window manager to override it. With kwin in KDE it's rather easy to do through its options dialogs.
  • This small patch to the game's Kernel.dll can be used to enable hardware antialiasing, seeing as nvidia driver options don't work for wine. Note that it's quite possible that this patch only works correctly for wine, not native windows DirectX.
    Code:
    00010CB0: 85 -> 04
    00010CB1: C0 -> 04
    0001A8AB: 85 -> 31
  • To use h.sie patches you have to switch msvcr71.dll to native in winecfg, or your diesels will instantly explode after loading the mission.
a.g. is offline   Reply With Quote
Old 07-12-16, 11:40 AM   #3
sublynx
Sea Lord
 
Join Date: Mar 2011
Location: In the conning tower of my VIIC scanning the sea through the periscope
Posts: 1,698
Downloads: 173
Uploads: 7
Default

Sounds really great, but does anybody with Linux knowhow describe how to actually do this? I'm not a Linux whizzkid, I just have changed into Linux because my old computer can't keep up with the Windows 7/10 kind of load anymore. I did get SH3 working in 1024x768 size but would like to make it widescreen.
__________________
[SIGPIC][/SIGPIC]
NYGM+H.sie v16+Stiebler 4C+MaGui WS
sublynx is offline   Reply With Quote
Old 07-18-16, 03:23 AM   #4
BarracudaUAK
Captain
 
Join Date: Apr 2016
Posts: 520
Downloads: 33
Uploads: 0


Default

Sublynx,

Are you refering to,

running the batch file?

Adjusting the window manager?

or hex editing the .dll?


Just a few things I can think of:

https://wiki.winehq.org/FAQ

Sometimes a bit out of date, but most of it is accurate and up to date.
They release a new wine every 2 weeks, so I doubt the documentation is always on point.

Although I believe A.G Mentioned you can use the widescreen mod by running full screen, WITHOUT the program/patch.
It might need a window component installed in a new or existing 'prefix'.


If it's called through a .bat file, a quick google search found this:

http://www.linux.org/threads/running...on-linux.7610/

Gives a rundown on what to do, and how to do it.


Apologies if I covered anything you already knew, (what little I covered) but figured I would start with the basics and go from there.

It's currently the wee hours of the morning, so this is probably a bunch of jibberish...
But if you want me to clarify any part of this, let me know and I will try to go into more detail.

Barracuda

p.s. Oops, just noticed his comment about setting the .dll to native, you can do that though wine configuration, should be in your launcher (i.e. "start menu") under the "Wine" menu.
then select the "Libraries" tab, select the .dll from the drop down list "new override for library:" then add, then select the .dll in the list, and choose edit.
Then select which option you want...

Last edited by BarracudaUAK; 07-18-16 at 03:30 AM. Reason: missed a comment the first time.
BarracudaUAK is offline   Reply With Quote
Old 07-18-16, 08:20 AM   #5
sublynx
Sea Lord
 
Join Date: Mar 2011
Location: In the conning tower of my VIIC scanning the sea through the periscope
Posts: 1,698
Downloads: 173
Uploads: 7
Default

Thanks a million for the links and interest on this

I'll try to follow the instructions in the links and see if I can get it working.
__________________
[SIGPIC][/SIGPIC]
NYGM+H.sie v16+Stiebler 4C+MaGui WS
sublynx is offline   Reply With Quote
Old 07-18-16, 10:49 AM   #6
sublynx
Sea Lord
 
Join Date: Mar 2011
Location: In the conning tower of my VIIC scanning the sea through the periscope
Posts: 1,698
Downloads: 173
Uploads: 7
Default

At first no success:
1. changing the dll didn't do anything
2. the batch file can be run with the instructions, but complains that it can't find the file sbdinst.exe
3. The game runs at 1366x768, but stretched. Maybe that means that Wine forces the screen to 1366x768, but SH3 still runs at 1024x768. I guess that for some reason I can't get the widescreen d3d9 files to be selected.

Then I copied everything from a previous Windows installed backup copy and then it did run at 1366x768 but so slow that it was unplayable. So thanks for the help, it did run at 1366, but unfortunately my legacy ATI is not compatible with Linux and I seem to run out of graphical memory. If I had a computer with NVIDIA card it would probably have worked.

I'll have to get back at the game if I someday get a computer with NVIDIA or if AMD releases a legacy Linux driver for my card. Perhaps unlikely, but I remember reading somewhere that they are actually doing that.
__________________
[SIGPIC][/SIGPIC]
NYGM+H.sie v16+Stiebler 4C+MaGui WS
sublynx 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 10:36 AM.


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