How to add GOG Galaxy features to No Man's Sky (or any gog game I guess)

I wanted this and I managed to get it. I hope this saves some poor soul the hours I had to spend trawling through the internet.

I started with an offline installation of No Man’s Sky and I wanted to add the multiplayer, cloud save and automatic updates features provided by GOG Galaxy, without GOG Galaxy showing when I started the game.

First, download the GOG galaxy executable from here. I opened lutris and selected the No Man’s Sky installation (but didn’t start it). To the right of the “start” button, there is a wine icon with an arrow up; if you click it, you get a menu with the option “Run EXE inside Wine prefix”. Use this, then navigate to the downloaded GOG Galaxy exe. Follow install instructions on-screen and make sure to select “launch” after it is done.

In the GOG Galaxy that opens, go to owned games and select NMS. At the top, to the right of the Install button, there is a settings button. In the menu, go to Manage installation → Import folder. Navigate to the install location of NMS (for me C:\GOG Games\No Man’s Sky, I think that’s the default) and it will find the game. It will now also install any updates for the game.

When it’s finished, close Galaxy and return to Lutris. There, right-click the game and select Configure. Go to Game options and change the executable to “[path to your game’s prefix, for examle /home/caedem/GOG Games/NMS]/drive_c/Program Files (x86)/GOG Galaxy/GalaxyClient.exe”. In the Arguments field below, add the following: /command=runGame /gameId=1446213994 /path="C:\GOG Games\No Man's Sky" /launchViaAutostart.

If your path from previously is not C:\GOG Games\No Man’s Sky, don’t forget to change it here too. The gameid used is No Man’s Sky’s gog gameid. The /launchViaAutostart parameter makes GOG Galaxy not show a window, but minimise to tray immediately.

If you have cloud save backup enabled, you will have to wait for that to finish before the game actually starts (this could take a few seconds).

Finally, I guess this would work for any game so long as you use the correct path and gameid. You can find the gameid by going to the game’s installed directory and looking for a file named something along the lines of “goggame-1446213994.hashdb”, with the numbers being the gog game id.

Hope this helps someone!

2 Likes

Archive.org link to the download

Nicely written, thanks :slight_smile:

Online mode wasn’t working in NMS for me, and I suspect the cause was that Lutris launched the game straight from NMS’s binaries, instead of going through GOG.

The symptoms were:

  • The anomaly space station was empty of other people
  • My settings menu did not have a “Network” tab
  • The “Discovery” menu showed a message in the bottom left saying it wasn’t able to connect to servers
  • The first screen when loading the game was my saves list, instead of a title screen with game mode selection, Multiplayer card, Settings, etc
  • That first screen also showed a never-ending loading thing in the top left saying it was trying to connect to servers.

After making the modifications in this post, it still didn’t work because I couldn’t launch GOG. I noticed a window pop up for half a second and then disappear, though.

So I installed the game on Windows, which worked properly, and noticed that both GOG and NMS installations were practically the same on Windows and Linux, except for this “Dependencies” folder:

So I copied that folder over into my Linux GOG installation, and suddenly I was able to launch GOG!

I continued with the steps here, and it still failed.

Then, I noticed that some GOG processes were launched and consuming CPU, but the game itself never did so.

Then, I noticed the quotes used in the “Arguments” parameter were those weird italics ones (“”). So I switched to the normal ones (""), and it worked!

It takes a few more seconds to load, but connectivity was restored!

Now, I’ve since put back the weird quotes to test them, and it still works :person_shrugging: .
So IDK. Maybe you need to try to launch it multiple times?

Anyway, SOLVED. A weird issue is closing the game.

The GOG Client process keeps running after closing the game, and Lutris still shows a “Stop” button.
I have to manually click “Stop” on Lutris to kill GOG.

The compressed redist folder.

https://drive.proton.me/urls/SW9K2H4YPW#z62rySLvu2bV

Since these are redistributable packages, I don’t think it’s an issue to share them.

TY for sharing. I wonder why it behaved like that, maybe gog has had an update since?

As for the special backets, I’ll try to fix that, just in case it was an issue!