![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
![]() |
|
|
Thread Tools | Display Modes |
10-02-25, 09:21 PM
|
#1 |
|
Sailor man
![]() Join Date: Jul 2015
Posts: 49
Downloads: 29
Uploads: 0
|
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
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
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.
Finally Starting the Game
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'
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
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" 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%
__________________
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 |
|
|
10-03-25, 08:43 AM
|
#2 |
|
Electrician's Mate
![]() Join Date: Sep 2024
Posts: 131
Downloads: 172
Uploads: 0
|
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. |
|
|
10-03-25, 06:03 PM
|
#3 |
|
Weps
![]() Join Date: Jun 2020
Posts: 359
Downloads: 17
Uploads: 0
|
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. |
|
|
10-03-25, 06:11 PM
|
#4 | |
|
Sailor man
![]() Join Date: Jul 2015
Posts: 49
Downloads: 29
Uploads: 0
|
Quote:
__________________
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 --- |
|
|
|
10-03-25, 06:16 PM
|
#5 | |
|
Sailor man
![]() Join Date: Jul 2015
Posts: 49
Downloads: 29
Uploads: 0
|
Quote:
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 --- |
|
|
|
![]() |
| Tags |
| linux, onealex, proton, sh3, steam |
|
|
