Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey, there's an error on the nw.sh script file used to launch the game, you should replace all instaces of $1 with $PWD since that's how you get the current working directory. Now, to get the directory where the currently running script is place gets a bit more complicated. Also, you can set "Path" on the desktop file, which sets the working directory, so you can set it like:

Path=%k

and it changes the path to whatever %k is which would be the path where the desktop file is placed.

I hope that helps.

(2 edits)

Nevermind, I've just looked at the desktop file and you put the directory where the game is located as an argument to the game.


Weird. The problem is that the itch client tries to run the nw.sh script directly instead of launching the desktop file as it should be.

Launching the desktop file without modifying anything works as normal. I should report this itch client bug to the developers of the itch client.


Anyways, thanks.

Thank you bringing this to my attention! Rex was made before itch had a client (I've not even used it yet myself), so I have no idea how it plays with it. I'm glad you managed to get the game working, and I'll see if it's anything I can fix on my end as well.

No problem! By the way, I opened an issue on the itch client project and they took notice. The issue's page by the way: https://github.com/itchio/itch/issues/2436.

Much appreciated!

Thanks for posting this. I was able to modify the nw.sh file and got the game to launch properly from the itch client.

I sent an error report to itch when the nw.sh file failed to launch the game originally.