-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
surreal-engine: init at 2024-11-08 #337069
Conversation
b4e6375
to
604a359
Compare
Re-opening this by request (closed before as it was getting stale) |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I don't know why I was elected to be a reviewer on this, but here goes)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interest yes, time ehhhh. Will try.
Please fetch & apply dpjudas/SurrealEngine#142 as a patches
entry, or bump if it gets merged before you get to it, to fix building on aarch64-linux (haven't tested running yet).
Also, during configurePhase
:
-- Checking for modules 'wayland-client++;wayland-client-extra++;wayland-client-unstable++;wayland-cursor++;xkbcommon>=0.5.0'
-- No package 'xkbcommon' found
Needs libxkbcommon
in buildInputs
to be happy with that search. Continues then with
-- Checking for modules 'wayland-client++;wayland-client-extra++;wayland-client-unstable++;wayland-cursor++;xkbcommon>=0.5.0'
-- Found wayland-client++, version 1.0.0
-- Found wayland-client-extra++, version 1.0.0
-- Found wayland-client-unstable++, version 1.0.0
-- Found wayland-cursor++, version 1.0.0
-- Found xkbcommon, version 1.7.0
Package wayland-client was not found in the pkg-config search path.
Perhaps you should add the directory containing `wayland-client.pc'
to the PKG_CONFIG_PATH environment variable
Package 'wayland-client', required by 'wayland-client++', not found
Package wayland-client was not found in the pkg-config search path.
Perhaps you should add the directory containing `wayland-client.pc'
to the PKG_CONFIG_PATH environment variable
Package 'wayland-client', required by 'wayland-client++', not found
Package wayland-client was not found in the pkg-config search path.
Perhaps you should add the directory containing `wayland-client.pc'
to the PKG_CONFIG_PATH environment variable
Package 'wayland-client', required by 'wayland-client++', not found
Package wayland-client was not found in the pkg-config search path.
Perhaps you should add the directory containing `wayland-client.pc'
to the PKG_CONFIG_PATH environment variable
Package 'wayland-client', required by 'wayland-client++', not found
Haven't checked if it's 100% happy with that arrangement already, otherwise the following would need to be added to buildInputs
as well: wayland libffi
Upstream has merged and I've updated the src.
Added
Added Thank you for your detailed attention. |
I had to handle the UT99 setup on an x86_64 machine & copy over the resulting I assume it tries to force fullscreen & a resolution change, that doesn't work with my compositor. And Vulkan is not supported by my SoC, so the rendering is really slow. But it seems to work? Will try this on a more normal setup. |
Try with gamescope
|
Let's just leave this at "system/setup is struggling, but in theory it prolly works fine on ARM" 😅. I'll give it a shot on x86_64 tonight, so we can push this PR along. |
Try moving the mouse around, hovering over the buttons should "force a repaint" or something. I'm not sure why that happens honestly. (Hi from SurrealEngine btw!) |
If windowing system selection is done at compile-time and this is expected for now(?), then we should control Wayland support via a switch in the derivation. |
Windowing system selection is controllable with the
Note that Surreal Engine main window (not the launcher) will force the SDL2 backend regardless of the option picked.
Does your compositor support server side decorations? ZWidget tries to use em when available. I haven't really tested it without SSDs. I'll admit that, as the guy who wrote the code for it, the Wayland backend is pretty buggy atm, mostly due to the lack of knowledge and experience on my part. |
Based on the stack trace from earlier
…I think the issue is the global |
Can you give it a try again when you have time, it should be fixed now. |
Can confirm that on dpjudas/SurrealEngine@087fa2a it now launches fine on X11. I assume the leftover issues in-game are not a packaging issue (can't change keybinds, graphical artifacts at the start of the intro, characters are displayed upside-down in the session-config-dialogue-thingy, ...). Nonetheless pretty cool so far :) @hughobrien can you update the PR? |
Yeah, they're bugs with the engine instead. We documented the known ones in the bugs.txt file in the repo.
Thank you! :D |
(Commit title should've been |
Description of changes
Introduce SurrealEngine
Testing this package requires Unreal Tournament (1999) to be available. I used wine to run the installer.
One should also patch the installation to the version best supported by SurrealEngine
Then run with
If the dialog box is blank, move your cursor around the bottom area where the buttons should be.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.