Fear & Hunger 2: Termina
This Community Hub is marked as 'Adult Only'. You are seeing this hub because you have set your preferences to allow this content.

Fear & Hunger 2: Termina

Not enough ratings
[Unofficial] Linux Native Game Launch (Termina)
By Monsieur Elephant
NW.js for Termina (on steamdeck)


I was able to follow @Tostaday 's guide to use NW.js for Termina with slight modifications


TLDR

If you haven't done so already, run passwd to set sudo password for your deck.
Follow @Tostaday 's guide and copy NW.js files over to the Termina directory and make the game directory case-insensitive using

cd "$HOME/.local/share/Steam/steamapps/common" mkdir termina_backup mv 'Fear & Hunger 2 Termina/'* termina_backup sudo chattr +F 'Fear & Hunger 2 Termina' mv termina_backup/* 'Fear & Hunger 2 Termina' rm -r termina_backup

Explanation

I initially encountered the same problem as @Tostaday where the game launches, but attempting to leave the train causes an infinite hang. Looking at the devtools console when leaving the train showed the following error message:

rpg_core.js:9169 GET chrome-extension://<extension_id>/www/img/layers/fog1.rpgmvp net::ERR_FILE_NOT_FOUND

Checking the relevant directory showed that the file exists, but with a capitalized first letter

# ls -1 "$HOME/.local/share/Steam/steamapps/common/Fear & Hunger 2 Termina/www/img/layers" | grep -i 'fog1.rpgmvp' Fog1.rpgmvp

This doesn't cause any problems when running the game with Proton since Windows is case-insensitive, but causes errors on Linux since Linux is case-sensitive. Thankfully, the main filesystem on steamdeck was created with casefold feature enabled

# sudo dumpe2fs -h /dev/nvme0n1p8 | grep -oP 'Filesystem features.*\Kcasefold' dumpe2fs 1.47.0 (5-Feb-2023) casefold

which allows us to easily make specific directories case-insensitive.


Instructions


Make sure you have sudo access on your deck. This requires running passwd to set the sudo password


cd to Steam's game directory

cd "$HOME/.local/share/Steam/steamapps/common"

Since casefold attribute can only be modified on an empty directory, move existing files to a temporary location

mkdir termina_backup mv 'Fear & Hunger 2 Termina/'* termina_backup

Make Termina directory case-insensitive

sudo chattr +F 'Fear & Hunger 2 Termina'

Restore the backup files

mv termina_backup/* 'Fear & Hunger 2 Termina' rm -r termina_backup

Non-steamdeck users


The guide above won't work if the filesystem was not created with casefold feature enabled. You can check by running

steam_fs="$(df "$HOME/.local/share/Steam/steamapps/common" | tail -n1 | cut -d' ' -f1)" sudo dumpe2fs -h "$steam_fs" | grep -oP 'Filesystem features.*\Kcasefold'

If you don't see casefold in the output, the filesystem does not support case-insensitive directories. This post[www.collabora.com] explains how to create a new filesystem that supports case-insensitive directories.




Kudos to @Tostaday for the original guide! It really improved my experience playing both Fear & Hunger games!

I wanted to post this as a comment to your guide, but couldn't due to fomatting/character restrictions
   
Award
Favorite
Favorited
Unfavorite
Guide
2 Comments
Maxixam 5 Oct, 2024 @ 5:21pm 
For me this fix only works if you use the chattr +F command while the files are still in the folder.
Tostaday 18 Sep, 2024 @ 2:50pm 
Good day. Added a link to here at the top of my F&H 1 guide, hope you don't mind. Good job on figuring out what the problem with NWjs/Linux was. :happycthulhu: