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: 31
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
Old 07-18-16, 01:04 PM   #7
BarracudaUAK
Captain
 
Join Date: Apr 2016
Posts: 520
Downloads: 31
Uploads: 0


Default

Which ATI card do you have?
Which Distro are you running? (Fedora, Ubuntu, Arch?)

http://support.amd.com/en-us/download/linux

SHORT VERSION:

Older cards are usually supported "out of the box" on linux.

But high end options like SLI and Crossfire aren't.
You would need the ATI/AMD Catalyst/Crimson driver. Called FGLRX in linux. "Fire GL & Radeon for Linux".

The newest is Crimson 15.12, AMD is working on a new driver setup.
(But they aren't updating Crimson anymore, see next sentence.)

AMDGPU which is the new open-source kernel side driver, which lets the proprietary AMDGPU-PRO run 'on-top' of and 'plug-in' to the kernel side.
(So kernel updates won't "break" the driver.)
amdgpu handles all the base stuff, would only need PRO (still beta) if running Crossfire, etc.
It will eventually (the're still coding this) work for, R7 300 series, and R9 200, and RX 400 series and newer. No pre-GCN cards on this one. (but hey, day 1 driver support for linux.)

I'm running 2 PCs with Fedora 23... well, The AMD 5600x2 has an 40GB IDE with Fedora 20, and Catalyst 15.4 (I think), and a SATA with Fedora 23 with Crimson 15.12 (catalyst rebadge in linux).
This machine runs dual 6750s in crossfire... but the driver works with older cards too.
Check the readme with the drivers.

My FX8350 is running dual R7 370s in crossfire on Fedora 23 with Crimson 15.12 also.

I Know that these are much newer, but newer hardware is usually what doesn't have driver support. Older hardware is more often supported.

Let me see if I can find the page that has what all the open source Radeon driver covers.

Barracuda

Almost forgot, There is a setting in the Catalyst/Crimson driver, where you can set to "maintain aspect ratio" or "scale image to full screen".
if you can tell me which Distribution your are running we can nail down where it is in the settings, or how to get FGLRX installed on it and get you back in the game!

Last edited by BarracudaUAK; 02-21-18 at 03:55 AM. Reason: noticed some typos, yes 19 months later I noticed typos.
BarracudaUAK is offline   Reply With Quote
Old 07-18-16, 02:56 PM   #8
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

I really appreciate the effort, but I have an ancient Ati Mobility Radeon HD 4530, which I understand has never been supported that well. I doubt there are many users left anymore
__________________
[SIGPIC][/SIGPIC]
NYGM+H.sie v16+Stiebler 4C+MaGui WS
sublynx is offline   Reply With Quote
Old 07-18-16, 10:54 PM   #9
BarracudaUAK
Captain
 
Join Date: Apr 2016
Posts: 520
Downloads: 31
Uploads: 0


Default

I saw your post earlier, but I was at lunch, and typing on my phone is a tedious chore...


https://help.ubuntu.com/community/RadeonDriver

Ubuntu specific, but it does go list the chipsets/GPUs that are covered by the open source driver.

However, checking the X.org page for the Radeon driver, (the open source driver),

https://www.x.org/wiki/RadeonFeature/

if you look at the chipset listing for the 4000/5000 series (the first link) they are a RV700 series, aka the R700 series, if you check the 2nd link, you can see the state of the driver for the R700... (scroll down to the table, and find R600/700 across the top.)

If you installed any of the more recent linux distros, you already have the driver.
ATI/AMD are focusing on the newer hardware, but the open source guys aren't, they are working on the older hardware.

Unsure about the quality/accuracy/rep of the source, but this link goes over the Mobility 4530 a bit in depth, i.e. what to expect.

http://www.notebookcheck.net/AMD-ATI...0.13972.0.html

Only thing I would point out, is dispite Linus Torvalds (spelling?) aim at making linux a PC OS, it runs on EVERYTHING, so it has taken 'root' in buisness areas, and hardware.
Gaming on linux is not new, but is just starting to gain steam over the last few years.
The Hardware can most likely handle it, but the drivers are what is needed to get there.

(I had an HD4850 in that 5600x2 I mentioned in a previous post, it ran Crysis max res/settings, and did it at 70fps (WinXP). BUT it was driver dependent, updating didn't always help, had a few times I went back to the old driver... In Linux MOST of the time, it's a step up. Very few times have I had to downgrade...)

And I've found several Mobility 4X00 users requesting help with setting up the video, there's more out there then you think.

If you decide you want to give it another go... I'm game to try and see if we can find the answers.

Barracuda
BarracudaUAK is offline   Reply With Quote
Old 07-19-16, 09:41 AM   #10
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

I'll take a look at the links you posted and see if I can get the card working any better.

I use Linux Mint Mate Rosa. It's pretty new and works mostly just fine. If only the graphics driver for my card was better SH3 would probably work better in Linux as the operating system is very light weight compared to Windows. I'm surprised how well a modern Linux is able to run Windows-based programs.
__________________
[SIGPIC][/SIGPIC]
NYGM+H.sie v16+Stiebler 4C+MaGui WS
sublynx is offline   Reply With Quote
Old 07-19-16, 11:39 AM   #11
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



I ran glmark2 on the thing and got this result and an overall glmark2 score of 332. To me this looks that the driver made by Linux aficionados is working, but not as a good as GL renderer made by ATI would?
__________________
[SIGPIC][/SIGPIC]
NYGM+H.sie v16+Stiebler 4C+MaGui WS
sublynx is offline   Reply With Quote
Old 07-19-16, 10:34 PM   #12
BarracudaUAK
Captain
 
Join Date: Apr 2016
Posts: 520
Downloads: 31
Uploads: 0


Default

Sorry, I have been out all day, but I did see your post ealier...

I looked up Gallium and refreshed my memory on it....

then I got glmark2 installed, and I ran it to see how FGLRX performed, so I can compare and see where the bottleneck might be for your system...


I got a score of 60...



================================================== =====
glmark2 2014.03
================================================== =====
OpenGL Information
GL_VENDOR: ATI Technologies Inc.
GL_RENDERER: AMD Radeon R7 370 Series
GL_VERSION: 4.5.13416 Compatibility Profile Context 15.302
================================================== =====
[build] use-vbo=false: FPS: 60 FrameTime: 16.667 ms
[build] use-vbo=true: FPS: 60 FrameTime: 16.667 ms
[texture] texture-filter=nearest: FPS: 60 FrameTime: 16.667 ms
[texture] texture-filter=linear: FPS: 60 FrameTime: 16.667 ms
[texture] texture-filter=mipmap: FPS: 60 FrameTime: 16.667 ms
[shading] shading=gouraud: FPS: 60 FrameTime: 16.667 ms
[shading] shading=blinn-phong-inf: FPS: 60 FrameTime: 16.667 ms
[shading] shading=phong: FPS: 60 FrameTime: 16.667 ms
[shading] shading=cel: FPS: 60 FrameTime: 16.667 ms
[bump] bump-render=high-poly: FPS: 60 FrameTime: 16.667 ms
[bump] bump-render=normals: FPS: 60 FrameTime: 16.667 ms
[bump] bump-render=height: FPS: 60 FrameTime: 16.667 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 60 FrameTime: 16.667 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 60 FrameTime: 16.667 ms
[pulsar] light=false:quads=5:texture=false: FPS: 60 FrameTime: 16.667 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windo ws=4: FPS: 60 FrameTime: 16.667 ms
[desktop] effect=shadow:windows=4: FPS: 60 FrameTime: 16.667 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 60 FrameTime: 16.667 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 60 FrameTime: 16.667 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 60 FrameTime: 16.667 ms
[ideas] speed=duration: FPS: 60 FrameTime: 16.667 ms
[jellyfish] <default>: FPS: 60 FrameTime: 16.667 ms
[terrain] <default>: FPS: 60 FrameTime: 16.667 ms
[shadow] <default>: FPS: 60 FrameTime: 16.667 ms
[refract] <default>: FPS: 60 FrameTime: 16.667 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 60 FrameTime: 16.667 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 60 FrameTime: 16.667 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 60 FrameTime: 16.667 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 60 FrameTime: 16.667 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 60 FrameTime: 16.667 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 60 FrameTime: 16.667 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 60 FrameTime: 16.667 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 60 FrameTime: 16.667 ms
================================================== =====
glmark2 Score: 60
================================================== =====


Congradulations...

Your 4530 has smoked dual R7 370s in crossfire...
I think I've got Vsync on, so I'm limited to 60....



HOWEVER!
Looking over your results should give us an idea where either the card or driver needs work, so we can adjust those settings for SH3...

the only time you drop below 300fps are after the [effect2d] kernel=1,1,1,...... line, and that one is 252.

Stays above 100 until terrain, which is 46fps, which is plenty playable for something like SH3.

It might not be your drivers, it might be Wine, can you tell me what version of Wine you are running?

I need to reinstall SH3, as I wiped my system about a month ago to add a few HDD to the RAID. So I haven't checked the last few versions.
Which I'm going to do now.

If we are running the same wine version, then I'll play with some settings on this end and google to see what might help.

Fedora is usually a ver or 2 behind what is on the WineHQ page, Ubuntu runs a bit farther behind than that. (usually sticking to "stable" 1.6, 1.8, Fedora is "staging" 1.7, now 1.9.xx)
I'm not sure how Mint handles it, but it is a "fork" of Ubuntu...

I've had it work perfectly, then update to the next version, and something be amiss, like 1.7.40, or 1.7.41, I had flat black water..., I updated a few weeks later, and back to normal and working perfectly...

I'll get to digging...
Barracuda

Last edited by BarracudaUAK; 07-19-16 at 10:46 PM.
BarracudaUAK is offline   Reply With Quote
Old 07-20-16, 12:22 AM   #13
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

I seem to have an incredibly potent legacy card Maybe that is why I can fry eggs on my laptop...
__________________
[SIGPIC][/SIGPIC]
NYGM+H.sie v16+Stiebler 4C+MaGui WS
sublynx is offline   Reply With Quote
Old 07-20-16, 01:13 PM   #14
BarracudaUAK
Captain
 
Join Date: Apr 2016
Posts: 520
Downloads: 31
Uploads: 0


Default

I typed the entire post then had the thought...
If YOU want to keep at this, then I'll keep working too. These post don't look like much in the box, but when I preview them, they look huge.
Don't want to appear to be "pushing" you to work on something you are tired of working on. But happy to help, I have several games that didn't, and some that still are not working, and I try what solutions I can. So simply trying to assist in the same way.
So ideas and possible paths below...

-----

Did some digging on the heat issue, seems to be a common thing with Linux on laptops.
But, I ran across several ways to fix it.

Gives a few suggestions on the temp side of things:

https://itsfoss.com/reduce-overheating-laptops-linux/

Also read on a forum post somewhere, I closed the tab, as I type this I have 24 tabs open, 4 of which are google, 1 is subsim...
Someone with a HD 4530 installed the AMD drivers and it runs much cooler now.

As far as that and getting a bit more out of your card...

Also dug up a bit more info on Mint 17.3 Rosa, it comes with, unless you updated it, the kernel and Xorg (the graphics/GUI server for linux) versions required to install the ATI drivers.

Mint is based on Ubuntu, so what works in one has the potential (but not always) to work for the other.

The latest driver doesn't support the older cards, but I'm checking the readme files with the previous drivers to see which is the newest to still support your card.

You can usually look in the update program to see what you have installed.
OR you can use the command line, I prefer the CL, but the graphical works to...

Can you tell me what versions of:

xorg-x11-server-Xorg
xorg-x11-server-common

that you have. (needs to be 1.17 or older, Mint Rosa ships 1.17.)
And also which kernel version, terminal command should be:
uname -r

'uname' and it should say 'Linux'
'uname -r' and it will tell you the kernel version.

This will let me nail down which driver will work for you IF you want to try the AMD driver.

I'm not saying that you will have to do all this, but Fedora 23 shipped 1.18, I had to downgrade to F22's Xorg 1.17, and then patch the driver install file for each kernel upgrade, then install.... it can be in depth, but that's mainly because linux is moving faster than AMD is.
Just a heads-up

Barracuda

Last edited by BarracudaUAK; 07-20-16 at 01:15 PM. Reason: I can't seem to type today....
BarracudaUAK is offline   Reply With Quote
Old 07-21-16, 02:19 PM   #15
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

Kernel:

3.19.0-32-generic

Xorg:
sudo Xorg -version 2>&1 | awk '/X.Org X Server/ {print $NF}'
1.17.1

I'm a bit hard pressed on time, but I do appreciate your helping me out here

Switching to an older version might help. I wasn't ready to try that by myself, but with your advice I'm ready to give it a go
__________________
[SIGPIC][/SIGPIC]
NYGM+H.sie v16+Stiebler 4C+MaGui WS
sublynx is offline   Reply With Quote
Reply


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 03:05 AM.


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