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 10-02-25, 09:21 PM   #1
promitheas
Sailor man
 
Join Date: Jul 2015
Posts: 49
Downloads: 29
Uploads: 0
Icon1 SH3 OneAlex AIO Mod on Linux (or v1.53 install) - Install Guide

EDIT: I was just made aware of the fact that SH3 doesn't play nice with FPS above 60, leading to strange issues for some like sun drift over time (an extreme example is sunrise at 10:00 and sunset at 23:00) so I'm updating this guide with steps on how to limit the FPS to 60 from Steam Tinker Launch. Updates are below in the place you would normally have to apply the limit while installing.

EDIT 2: Added "NOTES" section at the end with potentially useful information that is not strictly needed for installation but may help with certain issues.

PREFACE

Hello everyone! I am writing this post to hopefully help people out installing this on Linux, as well as to have a future reference for myself (embarrassingly I managed to install 1.53 almost a year ago, got it working, then I had to move some of my steam libraries around causing my installation to not work - and I forgot some crucial pieces of information like which steam proton version worked best).

As you may have surmised from the previous sentence, I will be using steam for this. It just makes things so much simpler in my opinion compared to other options like wine or lutris. In addition to steam, this guide assumes you have a brilliant little program installed called Steam Tinker Launch (https://github.com/sonic2kk/steamtinkerlaunch). I won't be going over the install steps for that because they exist on the github.

You will also need to install Proton-GE. I will also not go into the steps for this because you can once again find numerous guides online helping you to do this for your particular distribution and environment.

Something else to keep in mind is that this is for my setup, which admittedly is a bit uncommon (I don't have a desktop environment but a tiling window manager called BSPWM - this will be important later). Some things I had to do may or may not be necessary for your setup, depending on how niche/common it is.

First Steps
  1. Download the mod

    While in the official discord they stress that its best not to have multiple SH3 installations along side this mod, due to the way we will be setting it up and the way that proton prefixes work, it shouldn't be an issue to have multiple versions of the mod or multiple different mega mods installed on the same machine (proton prefixes are self contained environments).

  2. Copy or move the .7z archive to wherever you want.

    Once we unpack the archive, that is essentially the installation. This mod doesn't require installation in the traditional sense.

  3. Unpack the archive. I placed mine in my steam library (steamapps/common/SH3_OA_AIO/).

    You should have a directory structure like this:
    $ tree -L 2
    .
    ├── GWX Onealex AIO Readme.txt
    ├── GWX Onealex All In One Mod v3.1.7z
    └── SH3
    ....├── /* A bunch of game files and folders */
    ....├── JSGME.exe
    ....├── /* more game files and folders */
    ....├── MODS
    ....├── /* more game files and folders */
    ....├── SH3 Commander Eng
    ....├── /* more game files and folders */
    ....├── sh3.exe
    ....└── /* more game files and folders */


  4. These 2 files and 2 folders are what we care about and will use to set everything up.
  5. In the Steam client's bottom left corner, click on Add a Game -> Add a Non-Steam Game
  6. Click the Browse button and go to wherever you unpacked the .7z archive to. You want to select the SH3 Commander Eng/SH3Cmdr.exe file
  7. Once that has been added, find it in your steam library, right click on it, and click on Properties
  8. In the Shortcut tab you can change the name of the game with respect to how it will show up in your steam library. I named mine SH3 OneAlex AIO
  9. Still in the Shortcut tab, delete everything from the Target text field. If you don't then everytime you exit the game it will launch SH3Cmdr.exe again
  10. In the Compatibility tab, check the box Force the use of a specific Steam Play compatibility tool and then from the drop down menu select Steam Tinker Launch
  11. If you want you can now go to the Customisation tab and add any art you'd like so you can differentiate the game in your Steam library
  12. Close the Properties window and click play. If you have Steam Tinker Launch set up correctly, you should get a new window with 2 buttons: Main Menu and Skip.
  13. As quickly as you can, click on the Main Menu button because there is a short timer, where if you don't do anything it will try to launch SH3Cmdr

It's a good idea to familiarise yourself with Steam Tinker Launch and its main menu, because it really is an amazing little tool. From now on to save time, whenever I refer to the Steam Tinker Launch main menu I mean the one with the 4x5 grid of buttons in the centre, and the 7 buttons at the bottom (at least this is how it is on my setup, yours might be a different layout). This is the menu you should be seeing right now.

Right, lets move on.

Setting up Steam Tinker Launch for SH3 and Launching the Game Once
  1. From the Steam Tinker Launch main menu, click on the GAME MENU button in the bottom row. It will close the main menu and open a new window with a bunch of options.
  2. Tick the Use custom command checkbox, and click in the field Custom command. This will bring up a new window allowing you to browse to and select a file. The file you should select is SH3Cmdr.exe - the same one you selected to add the steam game (this is why we deleted everything in the Target field in the Properties window, because we will let Steam Tinker Launch handle running the program instead of Steam)
  3. Scroll down a bit and under the Proton options section, the first option is the Proton version. For this one you will need to select Proton-GE
  4. Scroll down a bit more until you find the option Use DXVK config and make sure to check it.
  5. Now you should have a few DXVK options available to you. The one we are interested in is DXVK Framerate Limit and - you guess it - you need to set this to 60.
  6. Click on the SAVE button (NOT the SAVE AND PLAY one). Then click the MAIN MENU button.
  7. From the Steam Tinker Launch main menu, click on the One time run button (on mine its the 3rd down, 2nd across - it may or may not be different on your setup)
  8. A new window should open. Ensure that for the One time Proton version it has Proton-GE
  9. Click on the One time command field and navigate to wherever you unpacked the .7z archive. The file you want to select is sh3.exe
  10. Once selected, click on the RUN COMMAND button. The game should now launch. Do not click anything or hit any buttons.

    This is where I suspect my window manager caused some issue, but I'm not 100% certain if that was the culprit, so to avoid any issues don't touch anything. (The bug I would get is that if I focused any other window by either clicking on it or using my shortcuts to switch focus, the game window would be all black with a small super scaled down version of the game in the top left corner)

  11. As soon as the game finishes loading and you get to the main game menu, click on Options->Graphics
  12. Set particle density to 95%. To solve the bug I just mentioned that I suspect is because of my setup, I also had to deselect the Full Screen option.
  13. Apply the changes, click Yes to confirm, and then from the Options menu set the parameters to English text, German speech, English keyboard and click on Apply again
  14. Exit the game. Do nothing else.

Loading Your Desired Submods

The following process is how you should always open JSGME if you ever want to load any mods, so take note of it.
  1. From the Steam Tinker Launch main menu, click on the One time run button
  2. From the window that opens, click on the One time command field and navigate to wherever you unpacked the .7z archive. The file you want to select is JSGME.exe
  3. Once you select the JSGME.exe file, click on the RUN COMMAND button. JSGME should now open. Load any mods you desire, and then close it

Finally Starting the Game
  1. From the Steam Tinker Launch main menu, click on the PLAY button from the bottom row
  2. SH3 Commander should launch
  3. Make sure that the checkbox "Rollback automatically after exiting SH3" is checked
  4. Set any other desired game options you want
  5. Launch the game in SH3 Commander. Always launch the game through SH3 Commander. Follow all well-documented rules for starting campaigns through SH3 Commander (making sure that once in game you select the same flotilla and year as you did when creating the campaign in SH3 Commander, etc)

And that's it. You should now have a working installation of the OneAlex All In One mod (or the older 1.53 version of it) on Linux.

I'm awaiting permission from the mod team to either put a download link or the link to the official discord in this post, so once I have that I will edit this post.

I'd love to hear how it went for you, and if you think some instructions could be written better or if everything is good.

Enjoy, and happy hunting!

NOTES

Memory Limit
SH3 is an old game, and as such is a 32 bit program. This means that it can't access more than 4GB of RAM (this is the max, if it gets to 4GB it will likely crash). If you notice frequent crashes, most often just before or just as a convoy is detected (convoys are memory heavy) then run this command in a terminal and keep an eye on the number - if it gets really close to or at 4GB then its likely that your program is running out of memory because wine (and by extension proton) doesnt automatically trim cache memory so it just fills up and fills up until theres none left.

Code:
watch -n 1 'pid=$(ps -eo pid,comm,rss | grep sh3.exe | sort -k3 -n | tail -n 1 | awk "{print \$1}"); awk "/VmRSS/ {printf \"PID %s: %.2f GB\n\", ENVIRON[\"pid\"], \$2/1024/1024}" /proc/$pid/status 2>/dev/null'
This command essentially watches for the sh3.exe process' memory usage, translates that from KB to GB and outputs it every 1 second.

If that does indeed happen, install gamemode for your distribution and place the following config file either in your $HOME/.config/ directory or in any other directory that suits you according to
Code:
man gamemoded
Code:
CONFIG
       gamemoded will load and merge gamemode.ini config files from these directories in the following order:

           /usr/share/gamemode/
           /etc/
           $XDG_CONFIG_HOME or $HOME/.config/
           $PWD
The config file should be named gamemode.ini and should contain:
Code:
[general]
# Check interval for the memory watchdog in seconds
reaper_frequency=5

# Maximum allowed RAM in MB before triggering the trim action
reaper_max_mem=3200

# Number of consecutive checks (each reaper_frequency seconds) above limit
# before triggering the action — 1 means "for 1 second"
reaper_max_consec=1

# Command to run when memory exceeds limit
# This tells Wine to compact its heaps (safe operation)
reaper_trim_command=wineserver -k && echo "$(date): Trimmed SH3 memory" >> ~/gamemode_sh3.log

[custom]
start=echo "GameMode started for SH3"
end=echo "GameMode ended for SH3"
This effectively sets it up to monitor any process run through gamemode and force wine to recalculate its heap memory if the process memory exceeds 3.2GB for at least 1 second.

To run the game with gamemode you need to add the following to the launch flags from the steam properties window (right click on game in steam and select properties - add the below text to the LAUNCH OPTIONS field):

Code:
gamemoderun %command%
Keep in mind that the gamemode.ini file being in $HOME/.config means that it is a general configuration applied to anything run with gamemode. If you intend to or already run several programs with it, you might want to look into putting the config in a SH3 specific directory to avoid limiting the memory of your other programs.
__________________
Recognition manual pdf (v0.1 - kinda proof of concept for the generator): https://drive.google.com/file/d/1Wxz...ew?usp=sharing

Recognition manual generator code: https://github.com/promitheas17j/Sil...nual-Generator



---

Last edited by promitheas; 10-07-25 at 04:32 PM. Reason: Add instruction to limit framerate to 60 FPS
promitheas is offline   Reply With Quote
Old 10-03-25, 08:43 AM   #2
millnate
Electrician's Mate
 
Join Date: Sep 2024
Posts: 131
Downloads: 172
Uploads: 0
Default

Promitheus,

Hello again! Been a while! Was finally able to get widescreen mods to work on the steam deck a few weeks ago so between that and you figuring out how to make SH3 commander work on the Linux file structure, hopefully Linux and mobile gamers are finally able to have it all!

Thanks!

PS… will try my widescreen fix on your steps at some point and get back to you.
millnate is offline   Reply With Quote
Old 10-03-25, 06:03 PM   #3
Hooston
Weps
 
Join Date: Jun 2020
Posts: 359
Downloads: 17
Uploads: 0
Default

Thanks for this.
I don't know what this forum does with FAQs and howtos these days. This is the sort of thing that should be pinned there.
There used to be a Linux howto on the Steam SH3 discussion page, which I used to get my DVD copy going some years back. Might be useful if it's still there.
I usually find it is easier to move everything out of the steam folder for these really old games and copy it somewhere else. i then use Wine rather than Proton on my Linux box.
There's not a lot of difference to be honest, it's just i feel all the features in Proton designed to make things simpler just result in me not understanding what is going on or where stuff is being put.
For a modern supermod it's just a matter of unzipping it to somewhere in Wine's fake Windows file structure, winecfg to register sh3.exe and set overrides for the dlls in the sh3 folder. then exit winecfg go to the sh3 folder and "wine sh3.exe". Then if you want you can create a desktop launcher with a .desktop file.


Thinking about it, all this could go in a script file which could go and download your chosen supermod and install it. Hmmmm....

Last edited by Hooston; 10-03-25 at 06:27 PM.
Hooston is offline   Reply With Quote
Old 10-03-25, 06:11 PM   #4
promitheas
Sailor man
 
Join Date: Jul 2015
Posts: 49
Downloads: 29
Uploads: 0
Default

Quote:
Originally Posted by Hooston View Post
Thanks for this.
I don't know what this forum does with FAQs and howtos these days. This is the sort of thing that should be pinned there.
There used to be a Linux howto on the Steam SH3 discussion page, which I used to get my DVD copy going some years back. Might be useful if it's still there.
I usually find it is easier to move everything out of the steam folder for these really old games and copy it somewhere else. i then use Wine rather than Proton on my Linux box. There's not a lot of difference to be honest, it's just i feel all the features in Proton designed to make things simpler just result in me not understanding what is going on or where stuff is being put. Also it means I don't have to keep logging in to Steam.
No worries! For me its the opposite, using steam is just so much easier. I have it always open. Basically as soon as I boot into my PC I immediately open my browser with all previously open tabs restored, my email client, and steam. As such it makes sense to me to have all my games accessible from one program. The addition of steam tinker launch immediately makes things 20 times easier I believe. If you do end up trying the process described in this guide using steam tinker launch, please don't forget to reply with your experiences after a couple patrols. Let everyone know if you encountered any issues, where you get CTDs, and what other glitches you get. Maybe we can collaboratively solve them.
__________________
Recognition manual pdf (v0.1 - kinda proof of concept for the generator): https://drive.google.com/file/d/1Wxz...ew?usp=sharing

Recognition manual generator code: https://github.com/promitheas17j/Sil...nual-Generator



---
promitheas is offline   Reply With Quote
Old 10-03-25, 06:16 PM   #5
promitheas
Sailor man
 
Join Date: Jul 2015
Posts: 49
Downloads: 29
Uploads: 0
Default

Quote:
Originally Posted by millnate View Post
Promitheus,

Hello again! Been a while! Was finally able to get widescreen mods to work on the steam deck a few weeks ago so between that and you figuring out how to make SH3 commander work on the Linux file structure, hopefully Linux and mobile gamers are finally able to have it all!

Thanks!

PS… will try my widescreen fix on your steps at some point and get back to you.
Hey again! I'd love to hear about if you have issues with this. If I remember correctly, your'e on a steam deck right? If that's the case I don't think I'm knowledgable with the internals of the game+mod enough to comment on how to get correct resolution on it (if I remember correctly and you are on a steam deck, I believe you had some issues with the resolution not working properly). I would head over to the discord and speak with the mod team, they're really seem to know how the game works at a pretty fundamental level and will hopefully be able to help you. Other than the original devs at Ubisoft, I think the people making amazing mega mods like this and others are the next best thing to guru levels of knowledge :p

Edit: I just read your post more carefully (its late haha) and I see you are indeed on a steam deck and did have issues with widescreen mods. Im curious how you got it to work in the end, so if you don't mind could you make a post somewhere on this forum if you havent already and send me the link, or put it in this thread? Thanks
__________________
Recognition manual pdf (v0.1 - kinda proof of concept for the generator): https://drive.google.com/file/d/1Wxz...ew?usp=sharing

Recognition manual generator code: https://github.com/promitheas17j/Sil...nual-Generator



---
promitheas is offline   Reply With Quote
Reply

Tags
linux, onealex, proton, sh3, steam


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 05:20 PM.


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.