Skip to content
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

Won't Launch from Custom Desktop File #298

Open
SgtMooshroom opened this issue Nov 12, 2021 · 3 comments
Open

Won't Launch from Custom Desktop File #298

SgtMooshroom opened this issue Nov 12, 2021 · 3 comments

Comments

@SgtMooshroom
Copy link

I compiled the game and tried creating a desktop shortcut, and I enabled both launching and running as a program, but I get a black screen for three seconds followed by a crash. It can only be launched directly from its parent folder.

Ubuntu 21.10, HP 255-G5

@Quuxplusone
Copy link
Contributor

FWIW, I'd call this "not a bug." You'll probably find that the game doesn't crash; it simply exits cleanly with messages like

000651 start_game
000652   initcells
000992   initGame
001000     addMessage: Welcome to HyperRogue!
001000     addMessage: Press F1 or right-shift-click things for help.
001001     (done)
001001   restartGraph
001001     (done)
001001   (done)
linking log (99): WARNING: Could not find vertex shader attribute 'aTexture' to match BindAttributeLocation request.

linking log (196): WARNING: Could not find vertex shader attribute 'aColor' to match BindAttributeLocation request.
WARNING: Could not find vertex shader attribute 'aTexture' to match BindAttributeLocation request.

error: Font file not found: DejaVuSans-Bold.ttf

You can fix this yourself. When you create the shortcut, make sure that the shortcut changes the "current working directory" to the HyperRogue directory before launching the game. On Windows, apparently this is hidden in the "Properties" of the shortcut file: this SO question is relevant to your interests.

@SgtMooshroom
Copy link
Author

Tried it. It still doesn't work.

@zenorogue
Copy link
Owner

@SgtMooshroom mentioned Ubuntu, so not a Windows problem.

But I agree that it looks like some issue with the shortcut itself. (I do not use Ubuntu myself, so hard to help here.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants