Closed nile-sosa closed 6 months ago
Hey,
is file
package installed on your system ?
Yes, its installed, as well as python-magic.
Can you give me the output of file --version
?
file-5.45
magic file from /usr/share/file/misc/magic
seccomp support included
Great, then can you try:
MAGIC=/usr/share/file/misc/magic ./gamma-launcher full-install [...]
?
I ran that and this happened:
[+] Updating G.A.M.M.A. definition
will be updated from 840 to 846
downloading archive...
- Downloading Stalker_GAMMA-main.zip: 302MiB [01:08, 4.63MiB/s]
Traceback (most recent call last):
File "gamma-launcher.py", line 8, in <module>
File "launcher/cli.py", line 68, in main
File "launcher/commands/install.py", line 341, in run
File "launcher/commands/install.py", line 258, in _update_gamma_definition
File "launcher/archive.py", line 76, in extract_git_archive
File "launcher/archive.py", line 60, in extract_archive
File "magic/__init__.py", line 178, in from_file
File "magic/__init__.py", line 165, in _get_magic_type
File "magic/__init__.py", line 73, in __init__
File "magic/__init__.py", line 332, in magic_load
File "magic/__init__.py", line 225, in errorcheck_negative_one
magic.MagicException: b"File 5.41 supports only version 16 magic files. `/usr/share/file/misc/magic.mgc' is version 18"
[5870] Failed to execute script 'gamma-launcher' due to unhandled exception!
Progress ! So, this is because the libfile.so in the self extract executable is too old for your system.
So 2 solutions:
LD_PRELOAD=/usr/lib/libmagic.so
Can confirm this issue on both NixOS and Debian 12 as well. None of the solutions above worked.
(env) james@phoenix:/mnt/games/gamma-launcher$ ./gamma-launcher full-install --anomaly /mnt/games/Anomaly/ --gamma /mnt/games/GAMMA
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
[+] Updating G.A.M.M.A. definition
will be updated from 843 to 846
downloading archive...
- Downloading Stalker_GAMMA-main.zip: 302MiB [00:10, 29.7MiB/s]
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
Traceback (most recent call last):
File "gamma-launcher.py", line 8, in <module>
File "launcher/cli.py", line 68, in main
File "launcher/commands/install.py", line 341, in run
File "launcher/commands/install.py", line 258, in _update_gamma_definition
File "launcher/archive.py", line 76, in extract_git_archive
File "launcher/archive.py", line 61, in extract_archive
TypeError: 'NoneType' object is not callable
[4395] Failed to execute script 'gamma-launcher' due to unhandled exception!
(env) james@phoenix:/mnt/games/gamma-launcher$ pip install python-magic
Collecting python-magic
Downloading python_magic-0.4.27-py2.py3-none-any.whl.metadata (5.8 kB)
Downloading python_magic-0.4.27-py2.py3-none-any.whl (13 kB)
Installing collected packages: python-magic
Successfully installed python-magic-0.4.27
(env) james@phoenix:/mnt/games/gamma-launcher$ ./gamma-launcher full-install --anomaly /mnt/games/Anomaly/ --gamma /mnt/games/GAMMA
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
[+] Updating G.A.M.M.A. definition
will be updated from 843 to 846
downloading archive...
- Downloading Stalker_GAMMA-main.zip: 302MiB [00:09, 34.6MiB/s]
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
Traceback (most recent call last):
File "gamma-launcher.py", line 8, in <module>
File "launcher/cli.py", line 68, in main
File "launcher/commands/install.py", line 341, in run
File "launcher/commands/install.py", line 258, in _update_gamma_definition
File "launcher/archive.py", line 76, in extract_git_archive
File "launcher/archive.py", line 61, in extract_archive
TypeError: 'NoneType' object is not callable
[4418] Failed to execute script 'gamma-launcher' due to unhandled exception!
(env) james@phoenix:/mnt/games/gamma-launcher$ MAGIC=/usr/share/file/magic/ ./gamma-launcher full-install --anomaly /mnt/games/Anomaly/ --gamma /mnt/games/GAMMA
[+] Updating G.A.M.M.A. definition
will be updated from 843 to 846
downloading archive...
- Downloading Stalker_GAMMA-main.zip: 302MiB [00:09, 34.0MiB/s]
Traceback (most recent call last):
File "gamma-launcher.py", line 8, in <module>
File "launcher/cli.py", line 68, in main
File "launcher/commands/install.py", line 341, in run
File "launcher/commands/install.py", line 258, in _update_gamma_definition
File "launcher/archive.py", line 76, in extract_git_archive
File "launcher/archive.py", line 61, in extract_archive
TypeError: 'NoneType' object is not callable
[4469] Failed to execute script 'gamma-launcher' due to unhandled exception!
(env) james@phoenix:/mnt/games/gamma-launcher$ LD_PRELOAD=/usr/lib/libmagic.so ./gamma-launcher full-install --anomaly /mnt/games/Anomaly/ --gamma /mnt/games/GAMMA
ERROR: ld.so: object '/usr/lib/libmagic.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/libmagic.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
[+] Updating G.A.M.M.A. definition
will be updated from 843 to 846
downloading archive...
- Downloading Stalker_GAMMA-main.zip: 302MiB [00:09, 32.9MiB/s]
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
Traceback (most recent call last):
File "gamma-launcher.py", line 8, in <module>
File "launcher/cli.py", line 68, in main
File "launcher/commands/install.py", line 341, in run
File "launcher/commands/install.py", line 258, in _update_gamma_definition
File "launcher/archive.py", line 76, in extract_git_archive
File "launcher/archive.py", line 61, in extract_archive
TypeError: 'NoneType' object is not callable
[4480] Failed to execute script 'gamma-launcher' due to unhandled exception!
(env) james@phoenix:/mnt/games/gamma-launcher$ file --version
file-5.44
magic file from /etc/magic:/usr/share/misc/magic
Note: The above was with the release version and with trying to run the release version within a venv. Both times failed.
The cloning of the repo and "pip install ." is currently in progress and appears to have gotten over this initial issue. I'll update if successful.
Also another clear issue with this is that the full-install command continuously re-downloads ~300MiB every single attempt prior to breaking. I think this places unnecessary load on the servers. This check should be done before downloading any files to be more bandwidth friendly.
@JamesMowery This won't happen if you use a cache with --cache-directory
option
Also, binary are made on Ubuntu and are probably 100% compatible only with this distro.
LD_PRELOAD had the same result but the venv method worked without issue.
@Mord3rca that makes sense! Would you be so kind to update the readme to note that the release version should prefer to use Ubuntu (if it was already mentioned, I totally missed it).
Currently installing the game via clone. In the middle of upgrading. Hoping it works!
Nice dice. I setup everything from scratch. The game just does not want to detect the mods. And this was never, ever a problem before. I followed the instructions. Not really sure what's going on.
I only ever got this to work one time about a year ago. Ever since then, after attempting a simple upgrade, it broke. I haven't been able to get GAMMA working ever since. I've probably retried a dozen times. Just no luck at all. :disappointed:
@JamesMowery Do you have another profile for ModOrganizer ? Default is not valid, GAMMA need to be selected.
@Mord3rca I attempted to create a new profile because the first one didn't take. Is there a way to delete all the profiles and start over to where it asks you to select the Anomaly folder when you first start up the modorganizer.exe for the first time?
There was never a "GAMMA" profile available after the fresh install.
Also, unlike before, when I start modorganizer.exe, it doesn't show a GAMMA splash screen. It only shows the blue ModOrganizer splash screen.
Furthermore, when after the first run of modorganizer.exe, it asked me if I wanted to do a global setup or portable setup. That's new. I never saw that before. I did a global setup, but again this is all different than what I saw before when I setup Stalker GAMMA around a year ago. I think when I did it before it just gave an error about no Anomaly folder being set, and then it immediately asked me to select the correct folder, but this time around it was different.
Delete ModOrganizer.ini and remove profiles/default
Yes, the splash is the default one, this is expected
@Mord3rca I do appear to have a G.A.M.M.A profile, and no default one. But the GAMMA profile did not show up in MO. Should I delete the GAMMA folder and the ModOrganizer.ini? Or maybe just the .ini file?
@Mord3rca I think I know what's going on. There seems to be a disconnect between the Lutris Wineprefix location and where GAMMA is installing the files. I was able to locate the G.A.M.M.A and Default folders in a completely different places on my system.
/mnt/games/Prefixes/GAMMA/drive_c/users/steamuser/AppData/Local/ModOrganizer/STALKER Anomaly
(which only has a Default folder, I believe this is my prefix)
vs
/mnt/games/GAMMA/profiles
(which has the G.A.M.M.A profile folder)
Not really sure how to go about solving this. Maybe the Lutris setup is failing or stuff is just not getting put in the correct places with Lutris/Wine?
Here's what I have in Lutris:
Okay, after randomly deleting some stuff, I managed to get further. It was a really odd situation of having to delete profiles and stuff. I used a "Portable" profile this time, and it seems to have gotten me further. Regardless, the mods are now showing up, which is great!
The problem is that I'm getting this error now after trying to start:
Try setting the anomaly directory as your working directory, that solved my post-install issues.
@pl232602 Yeah that's how I actually got to finally get into the game menu. Unfortunately, after I attempt to load into the game world after setting up the options, I'm still getting fatal errors. Seems to happen very often. Once or twice I was able to actually make it into the game, but I could only see a completely black screen but could see the UI elements and move around.
But for the most part, I just get stuff like this:
Never had these issues before.
@JamesMowery this issue seems to appear randomly. There is further discussion about it in #96 but not much progress about it.
I still have no idea why this happen.
@Mord3rca both good and sad to know it's not just me then. I'll keep watching that issue!
One last question. If we want to update the game, we should just run the ./gamma-launcher full-install command? And it'll automatically update? That's what I was previously doing (and I unfortunately always had failures after that; still sad I nuked my only working attempt).
Edit: Confirmed on another issue that the full-install command should do it!
TL;DR: Error is caused by libmagic missmatch between ubuntu (in executable) / arch. Solution: Use venv installation to use system library
System: OS: Arch Linux x86_64 Host: B550M AORUS ELITE -CF Kernel: 6.8.7-arch1-2 Shell: bash 5.2.26 Resolution: 1920x1080 DE: GNOME 46.1 CPU: AMD Ryzen 5 5600X (12) @ 3.700GHz GPU: NVIDIA GeForce GTX 1060 3GB
Issue: When running the command ./gamma-launcher full-install, it will download for a few seconds before giving the following error: