It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
When trying to run game version 1.1.1b on Linux, it starts with a critical error preventing from reaching the game menu:
Oh no! EXCEPTION found!
Look for the latest ErrorLog_#.txt message inside your game folder!
Send it to us and we'll sort it out!
ErrorLog_#.txt does not exist, but the following error is spammed in the game log:
DllNotFoundException: GalaxyCSharpGlue assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) Galaxy.Api.GalaxyInstance+CustomExceptionHelper.CustomExceptionRegisterCallback(Galaxy.Api.GalaxyInstance/Cust omExceptionHelper/CustomExceptionDelegate)
at Galaxy.Api.GalaxyInstance+CustomExceptionHelper..cctor () [0x00011] in <720b5b3a3c054243ba7f4793c4cda61e>:0
Rethrow as TypeInitializationException: The type initializer for 'CustomExceptionHelper' threw an exception.
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
at Galaxy.Api.GalaxyInstance..cctor () [0x00000] in <720b5b3a3c054243ba7f4793c4cda61e>:0
Rethrow as TypeInitializationException: The type initializer for 'Galaxy.Api.GalaxyInstance' threw an exception.
at NMGogGalaxyManager.Update () [0x00000] in <39a98b2d3e71420babf69da531d28d63>:0
I can confirm that there is no GalaxyCSharpGlue shipped with GOG build 82930. It was not shipped with GOG build 82721 either (game version 1.1.0c), but this version of the game was not failing to run despite the absence of this library.

On game version 1.1.0c, the error about a missing GalaxyCSharpGlue library does not appear in the game logs.
According to the changelog for this update, this is most probably related to achievements integration with Galaxy.
Hi, Near-Mage dev here!

First of all, I'm sorry this has been happening. I've only personally received one other official report about this so far, and I'm still investigating the issue as it seems only to be targeting Linux.

Did you by any chance use a third party launcher to download and install the game or does this happen with the official offline installer? It seems to be the case with the other person who reported this to me but, again, I'm still investigating.

I will give yet another look at the documentation and my implementation for the Achievements, trying to spot what is wrong with the Linux version specifically, but in the meantime your answer might help me move towards the correct direction.

I'm sorry for this inconvenience and I hope to have it sorted as soon as possible.

Thanks a lot in advance!
Post edited June 20, 2025 by LostTrainDude
avatar
LostTrainDude: First of all, I'm sorry this has been happening. I've only personally received one other official report about this so far, and I'm still investigating the issue as it seems only to be targeting Linux.
It is indeed specific to the GOG + Linux combination.
avatar
LostTrainDude: Did you by any chance use a third party launcher to download and install the game or does this happen with the official offline installer? It seems to be the case with the other person who reported this to me but, again, I'm still investigating.
This happens both with my home-made installer and with a more regular launch. This is most probably due to a missing library libGalaxyCSharpGlue.so that should have been included in Near-Mage_Data/Plugins, but is missing in this build of the game.
avatar
LostTrainDude: I'm sorry for this inconvenience and I hope to have it sorted as soon as possible.
No problem, your quick answer already puts you above most devs in the way you treat Linux users ;)

In the meantime I’m not stuck as I kept the previous installer for game version 1.1.0. And people who do not have access to this one can find this missing library from another GOG game they own, I know it is provided at least by Stardew Valley and Spiritfarer.

---

I just remembered some build of Spiritfarer had the same problem, so I did put online an archive providing the missing libraries: https://downloads.dotslashplay.it/games/spiritfarer/

People affected by this bug can extract its content into Near-Mage_Data/Plugins to work around this error while you are working on a fix.

---

I might have been a bit too quick jumping to conclusions, the libraries that fixed that problem for Spiritfarer do not seem to work with Near-Mage. Maybe something that changed in the library symbols or something else like that, since GOG does not use proper versioning it’s hard to be sure about that.

---

Unlike what I said previously, an ErrorLog_0.txt file is created, only in an unexpected path. I pasted its content here: https://debian-facile.org/paste-4921BEF7EF-raw
Post edited June 20, 2025 by vv221
I admit having a hard time right now understanding why exactly this is happening. In the official GOG package for Unity I downloaded, the GalaxyCSharpGlue and libGalaxyCSharpGlue DLLs are set to be exported, respectively, for Windows and MacOS.

Thanks a lot for trying to provide a workaround!

I tried to send out the GalaxyCSharpGlue DLL (didn't have access to an .so file), as the ErrorLog reported, to the other person who was having the issue, but it didn't work either.

My only lead, currently, is that, for Linux, I am compiling the game using Mono rather than IL2CPP (like I do for Windows builds) because, unfortunately, it conflicts with a modified internal Unity package and gives out errors when trying to build for Linux specifically.

EDIT:

To be more specific, I also have a GalaxyCSharp DLL that is set to be compiled for all platforms including Linux (x64) but that's not, of course, the same as GalaxyCSharpGlue
Post edited June 20, 2025 by LostTrainDude
I still find it really interesting what the OP said here:

"On game version 1.1.0c, the error about a missing GalaxyCSharpGlue library does not appear in the game logs"

How is this possible if the file is missing in both builds? Maybe it really is possible that the achievement calls are actually triggering this error message?
Since I have no knowledge of Near-Mage codebase, maybe this could not be done easily: what about completely disabling the code paths relative to GOG Galaxy for the Linux build of the game?

There is no Linux build of GOG Galaxy in the first place, so no way to register achievements from this build (GOG + Linux) of Near-Mage.
avatar
MarkoH01: I still find it really interesting what the OP said here:

"On game version 1.1.0c, the error about a missing GalaxyCSharpGlue library does not appear in the game logs"

How is this possible if the file is missing in both builds? Maybe it really is possible that the achievement calls are actually triggering this error message?
I think the reason lies in the fact that prior to actually implementing Achievements on GOG I simply skipped all of the Galaxy-related functions because they weren't really implemented. It simply didn't have any callback to Galaxy, before this version.

I think I might have to resort to go back to this solution for Linux builds? Either that or have some sort of specific fallback solution.

EDIT:

That's exactly what I was doing before, @vv221! :D Sorry I answered right after you sent your own answer and didn't catch it in time!
Post edited June 20, 2025 by LostTrainDude
avatar
LostTrainDude: (…)
It looks like Arcen devs got a similar problem with AI War 2: https://bugtracker.arcengames.com/view.php?id=23128

After trying different things, they resorted to prevent calling any Galaxy-related code from the Linux build of the game, exactly like you did in your previous game builds.
avatar
LostTrainDude: (…)
avatar
vv221: It looks like Arcen devs got a similar problem with AI War 2: https://bugtracker.arcengames.com/view.php?id=23128

After trying different things, they resorted to prevent calling any Galaxy-related code from the Linux build of the game, exactly like you did in your previous game builds.
I guess I will do that again, then. I will get to it soon!

Thanks a lot for the back and forth!
avatar
LostTrainDude: (…)
You’re welcome, it’s a pleasure to know I bought a game from such reactive and dedicated devs ;)

(Gibbous was great by the way, this is what prompted me to buy Near-Mage on release despite lacking time to actually play it for now)
avatar
LostTrainDude: (…)
avatar
vv221: You’re welcome, it’s a pleasure to know I bought a game from such reactive and dedicated devs ;)

(Gibbous was great by the way, this is what prompted me to buy Near-Mage on release despite lacking time to actually play it for now)
Hi!

I have just uploaded the v1.1.4 patch for all platforms, including Linux. Would you mind giving it a spin? I should have prevented any callback to Galaxy in Linux builds, as intended!

Thanks a lot in advance, and for the kind words!
Post edited June 23, 2025 by LostTrainDude
avatar
LostTrainDude: I have just uploaded the v1.1.4 patch for all platforms, including Linux. Would you mind giving it a spin? I should have prevented any callback to Galaxy in Linux builds, as intended!
Well done, it does indeed work again on Linux!
avatar
LostTrainDude: I have just uploaded the v1.1.4 patch for all platforms, including Linux. Would you mind giving it a spin? I should have prevented any callback to Galaxy in Linux builds, as intended!
avatar
vv221: Well done, it does indeed work again on Linux!
Phew! Thanks :)
Hope you can now enjoy the actual game :D