Fear & Hunger
Denne fællesskabshub er markeret som "kun for voksne". Du ser hubben, fordi du har indstillet dine præferencer til at tillade dette indhold.

Fear & Hunger

Ikke nok vurderinger
[Unofficial] Linux Native Game Launch
Af Tostaday
Run the game natively on Linux, with the help of NW.js executable without Steamplay (Proton), use it at your own risk.
2
4
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Info
I tested this with NW.js version 0.57.1, others might or might not work.

NW.js versions who were built with node 14 or 16 in mind are more likely to be compatible as per my testing, node 18+ focused versions break some images and sprites in-game.

This was not tested in Steamdeck, i have no idea if it works there.

I advise you to backup your save data located in the sub-folder "www / save" in your steam game install dir
Fear & Hunger - Termina by Monsieur Elephant
For Fear & Hunger - Termina, check out Monsieur Elephant's guide. Link below.

Link 1

1a - Download NW.js (Direct Link)
Direct Link(s)

64 bits executable[dl.nwjs.io]
or
32 bits executable (Not tested)[dl.nwjs.io]

Below is the expected file structure inside the archive, if you follow 1b), you need to download the Linux compatible archive

1b - Navigate their site (Alternative way)
Go to this page to download NW.js https://nwjs.io/.

After entering the homepage and click "Downloads" on the navbar

Click "Previous Releases"


Choose version 0.57.1 from the list
Download the linux executable, paste it in the steam dir folder and extract it

2 - Extract and overwrite the existing files
Warning: If you intend to run the game with Steamplay (Proton) at a later date after doing the step below, you might need to delete the game folder or reinstall the game, don't forget to backup your saves beforehand

Extract the archive inside the game dir and overwrite any existing files.

3 - Give executable run permissions
Right click and go to "Properties" in your file manager
Go to the "Permissions" tab and enable the "is executable" checkbox
4 - Run the game
Click "nw" to run the game and you're done
Tweaks
If you want to use the steam to start the game, you can also set steam launch options:
./nw %command%

or

/'InstalledGameLocationPathHere'/nw %command%

NW.js additional info
The method shown works for most RPGMaker games by my experience, but you need to figure out the right version of NW.js for each game and even then it might still not work, for those who like to tweak things, this below might help.

This is based on my experience with this and other RPGMaker games, therefore some of my assumptions below might be wrong, in any case it can serve as a starting point for more experienced users.

Locally installed Node.js version or game code based on it:
  • 10 -> NW,js v0.33.4
  • 12 -> NW,js v0.41.3
  • 14 -> NW,js v0.49.1
  • 16 -> NW,js v0.57.1
  • 18 -> NW,js v0.69.1
22 kommentarer
PANSITOSAURIO 28. maj kl. 21:14 
now is working thanks
gumball riggy 25. maj kl. 22:44 
hi, thanks for the guide. just wanted to let anyone interested know that this works perfectly for me with NW.js v0.100.0 (just upgraded from v0.99.1, which also worked without a hitch)

if you're really crazy (as i am), run ./nw using gamescope for extra performance (in the same dir as nw):

>sudo setcap 'CAP_SYS_NICE=eip' $(which gamescope) && gamescope -f --expose-wayland --backend drm --immediate-flips --rt -- ./nw

use drm backend if running straight from tty for best performance, otherwise use the default if running on top of DE (or for me, needing sdl backend currently as there is some bug with unsupported windows scRGB profiles - very interesting).
Fishamus 4. jan. kl. 18:51 
Thanks king
Tostaday  [ophavsmand] 18. sep. 2024 kl. 14:49 
@Monsieur_Elephant

Added a link to your guide at the top, hope you don't mind. Good job on figuring out what the problem with NWjs/Linux was. :happycthulhu:
Monsieur Elephant 18. aug. 2024 kl. 15:27 
I've posted about tweaks needed to get this to work for Termina at https://sp.zhabite.com/sharedfiles/filedetails/?id=3311914110

I wanted to post it as a comment, but there were formatting/character restrictions for a comment :(. Thanks again @Tostaday for this guide!
Tostaday  [ophavsmand] 7. mar. 2024 kl. 17:37 
@Keliryn

Short answer: yes but with no success.

Long answer: I experimented running it with NW.js 0.69.1 or earlier sometime before i made the guide (~ 1 year ago), i remember you were able to leave the train but performance was really bad and random crashes happened 5 to 15 min into the game so i gave up on making a Termina guide also. I gave it another shot today and tried NW.js versions (0.41.3 ; 0.49.2 ; 0.69.1 ; 0.77.0 ; 0.85.0), versions earlier than 0.69.1 run but get stuck in the train's loading screen, versions after that show a new error pop-up on the screen that can be solved by adding text to the "name" key inside the "package.json" file located in the root folder ("name": "FH2" for example), that makes the game boot normaly but it still gets stuck at the train's loading screen as before.

[Part 1/2]
Tostaday  [ophavsmand] 7. mar. 2024 kl. 17:34 
My suspicion is that since file paths work differently between Windows and Linux a special character ($, &, /, \) or a hardcoded path (C:\%gamedir%\img\1;2;;3.png) in the game code makes the game unable to find one or more of the game assets which leads to it staying stuck looping forever trying to load them, but i didn't do any in depth testing so it's just speculation on my part. I might give it another go later if i have some free time to spare, but for now Proton or a native version released by the dev is probably your best bet.

Part [2/2]
Keliryn 6. mar. 2024 kl. 14:11 
Hi, first of all thanks for the guide.

Tell me, have you tried running Termina with this method?
The first game launches without problems, but Termina goes into an infinite loading screen when exiting the train at the beginning.

Arch, nw.js 0.57.1
Deathstruck 30. nov. 2023 kl. 7:12 
Ah, I tried that as well with the .exe renaming and command. Unfortunately stil no good results. Only difference is that now there is no sound in the background at all during the spinning logo, haha.

At this point I think it's really up to the developer himself to fix this then. Nothing that can be really done about the Deck. Until then, I am fine with just using the "nw" file as a non-steam game in the library.

But thank you so much for trying to help me and giving me a bunch of methods to try! It's really appreciated :steamhappy:
Tostaday  [ophavsmand] 29. nov. 2023 kl. 14:38 
@Deathstruck you can try renaming Game.exe to Game.exe.old and nw to Game.exe and using "./Game.exe %command%" in the steam launch options to see if steam "catches it", other than that, you can try newer NW.js versions, they might work better with steam overlay (See NW.js section and try some of the versions there), if even that fails, there's not much else to do but wait for steam to support the game better or the developer releasing a patch for that deck specific problem