-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
am2rlauncher: The game no longer launches #370680
Comments
That's a shame. We have to do some I'll do some sleuthing and see what was changed/broken. Fair warning; this package may need to just get marked as |
Is it not possible to replace it with the library verion of OpenSSL 1.1.1? |
Unfortunately, even if the binary is patched to link against
the binary still requires symbols versioned with
last time I tried out that method was >1 year ago though, so I can also re-explore linking against OpenSSL 1.1 to see if there's anything I didn't try last time. |
@peeley I was able to get it to run. It requires a patched version of patchelf: https://github.com/chitao1234/patchelf There is a PR open for it here: NixOS/patchelf#564 but it is not added yet. # Clear all symbol versioning in the binary
for s in $(objdump -T .runner-unwrapped | grep OPENSSL | awk '{ print $6; }'); do
echo "Patching $s"
patchelf .runner-unwrapped --clear-symbol-version $s
done
# Remove any needed version for the library as well
patchelf --remove-needed-version libcurl.so OPENSSL_1.0.0 .runner-unwrapped I'm sure some of this could be done at least in the AM2R-Autopatcher-Linux |
Nice, I managed to get the game launching through a somewhat similar method. I manually edited the patched You can try it out on my branch here, like so (assuming you have a valid copy of AM2R 1.1): $ ./patcher.sh -l -m -z AM2R_11.zip
$ nix-shell
$ ./am2r_1.5.5/runner I'd love to use the patchelf option (it's way less error prone than the manual editing & patching of the binary), but development of the tool seems to have slowed quite a bit so there's no guarantee that branch will be merged anytime soon. I'll test that these changes work on other platforms/distributions, and then I can work on getting the fix upstream to the Autopatcher project if the patchelf PR hasn't been merged by then. |
Yeah that's essentially exactly what the patchelf version does, just less manually. Hopefully it can be merged soon, but after a year of nothing, I doubt it :( |
Describe the bug
When attempting to run AM2R, the game doesn't run. Looks like it's probably due to OpenSSL support for 1.0.0 not being there (See the log for more details).
Steps To Reproduce
Steps to reproduce the behavior:
nix run nixpkgs#am2rlauncher
Expected behavior
Game runs and plays as normal
Screenshots
Additional context
Log file from AM2R
Metadata
"x86_64-linux"
Linux 6.12.7, NixOS, 25.05 (Warbler), 25.05.20241229.88195a9
yes
yes
nix-env (Nix) 2.24.11
"nixos-23.05"
/nix/store/8vz84mqgnm1gz5yk7hgnnb5gir5hjxas-source
Notify maintainers
@peeley
Note for maintainers: Please tag this issue in your PR.
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: