-
Notifications
You must be signed in to change notification settings - Fork 16
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
Game seems to play itself and triggers GNOME Shell's "is not responding" dialog #119
Comments
Hi! Thank you for the report. That's most likely a bug, probably of the SDL graphics library, that blocks any key and mouse input. Which Ubuntu version is this? Could you experiment a bit with commandline options? Run |
I see the repo is up to v0.11.0.0, so my apologies if this was already fixed. I'll try compiling the repo next...
|
Oh, right, I forgot how ancient the version in Ubuntu is. It even has a known error for which the fix is still not applied in Ubuntu (but it's not the one). It would be great if you tried compiling, feel free to ask questions here if there are any snags. Another option is to download a linux binary, which may or may not work on your new Ubuntu. See the Releases github subsection. In this Allure version I'd love to work around the SDL bug (it's not present in my old Ubuntu, but I've had reports about it), so any experiments would be very useful. E.g., perhaps newer Haskell SDL bindings (the ones you'd use when compiling yourself) eliminate the problem. Or perhaps upgrading SDL fixes it (downgrading certainly does, but that's hard to do). Or perhaps I can tweak something. |
The github build instructions from the README didn't work for me:
Adding
|
(Deleted the previous comment about running the custom compile. It hadn't actually finished, and I was running |
Yes, cabal 3.0 is ancient. I could fix instructions for |
My custom compile of the code from GitHub is worse; it still says "not responding", but now I can't even move the window. |
This comment was marked as resolved.
This comment was marked as resolved.
Thank you for the experiment. I guess I mixed up too different methods in the README. One for official version from Hackage, using |
I'm trying both in parallel, which admittedly is causing some confusion, but primarily focusing on the unofficial version from the repo right now. |
This comment was marked as resolved.
This comment was marked as resolved.
I just tried and this works |
|
Thanks! That worked for me as well, and spacebar took me to the menu where I could turn off autoplay. My replies may slow down now that I'm trying out the gameplay... |
Still sounds like a broken SDL and, given that your GHC is probably ancient, it prevents the use of the new Haskell SDL bindings that have some workarounds for SDL bugs. If, at some point, you'd like to to experiment more, please consider installing new cabal and new GHC using https://www.haskell.org/ghcup/. No rush, however, have fun playing (some people prefer the terminal interface, though it has some features turned off and the map aspect ratio is far from 1:1). |
In case the details would be useful:
Latest seems to be 9.2.4, so maybe not as bad as some of the others?
OK, I'll try that, thanks.
That successfully installed
Heh, fortunately I'm very comfortable playing Roguelikes in a non-1:1 aspect ratio. When I started with Nethack it was the only option available. I guess ultimately this amounts to an FYI that Ubuntu users will be having a poor user experience at the moment. Thanks for all the help in solving what would have taken me days if ever. |
My pleasure. I await any other feedback you may feel like sharing in the future. When I get any news of the SDL situation, I will update this ticket. |
I GHCup'd my system, but I deleted These are the APT packages that I have with I don't know which of those is important or out of date, but they're all whatever is current in Ubuntu 22.04. |
Thank you for checking. If your https://www.libsdl.org/download-2.0.php which is available for Ubuntu (but this may break your system) here https://launchpad.net/ubuntu/+source/libsdl2 It is possible they fixed it, but far from guaranteed (I haven't read the changelogs). |
The cheapest workaround in Allure we could try is change the line ghc-options: "-with-rtsopts=-A99m -I5" in Allure.cabal to ghc-options: -threaded "-with-rtsopts=-A99m -I5" Low chance of success, but hey, it's only one line. :) I can't check easily, because in my ancient Ubuntu with its old libsdl2, I have no problems of that kind (and I never had any for a decade). And I can't install a newer libsdl2, I'm already using a version years ahead of my distribution precisely to debug the errors libsdl, libfreetype and OpenGL did introduce in the past. P.S. It won't rebuild anything, just re-link, so the experiment should be fast. |
Here's what GHCup gave me:
Oddly I still can't drop the target name from the run command:
Click to expand the part where I edited the file wrongCabal doesn't seem to like the
I think I'm going to draw the line at updating SDL manually, since that might risk breaking other software. |
Thanks a lot for verifying. Oh well.
OK, that must have changed in the pre-release cabal I'm running. In that case, README needs to be fixed by adding that "Allure" target at the end, just as you suggested.
I'd recommend 9.2.*, which ghcup gives you if you insist in
It may indeed and recovering is a frantic mix of apt, dpkg, etc. |
Cool (and that tui is a surprisingly nice app), but Allure is still "not responding". |
Thank you again. I appreciate it. |
Note to self: I'm going to leave |
Hello! On the other hand, backporting allure from bookworm version: 0.11.0.0 It required to also add the following dependencies in order to build allure_0.11.0.0-1;
It takes a bit of work, but at the end, you can get the latest on a jammy based distro. |
Yay, congrats. Any idea where the root cause of the problems lies? A bug in SDL2 or the libsdl2 bindings or an incompatibility between versions of things or something else entirely? |
Well, seems like there is a bug in the jammy sdl2 version that may be causing the issue as even the bullseye one is working. So something there is weird. 🤨 |
Problem
I just stumbled on this game while browsing apps randomly in my Ubuntu system menus. I'm quite interested in Haskell and Roguelikes, so this seems like a really neat project. But so far this is what I get:
It looks like the numerals are the player's squad members (I browsed the documentation a bit but not a lot), based on the cursor movements hovering on them, but they're moving around by themselves rather than waiting for player input. It looks like an AI autoplay mode has been triggered automatically.
I eventually noticed the prompt at the top and tried pressing a key, but nothing happened. All I can seem to do is Force Quit.
Suggestions
The text was updated successfully, but these errors were encountered: