![]() |
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 |
|
|
| Tags |
| linux, onealex, proton, sh3, steam |
|
|
