NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.48k stars 14.4k forks source link

Package request: 2ship2harkinian #316326

Closed qubitnano closed 6 months ago

qubitnano commented 6 months ago

Project description

It's Shipwright but for Majora's Mask

Metadata


Add a :+1: reaction to issues you find important.

qubitnano commented 6 months ago

I've got it to build, but the audio is all garbled and it crashes after a few seconds on the main menu. Will check against staging-next as upstream builds their binaries with SDL 2.30.3

shuniki commented 6 months ago

I've got it to build, but the audio is all garbled and it crashes after a few seconds on the main menu. Will check against staging-next as upstream builds their binaries with SDL 2.30.3

For me it works flawlessly. Downloaded the appimage and used appimage-run though

boomshroom commented 6 months ago

My initial experiences were exactly what both prior comments described. Identical audio glitches and crash when building manually; flawless execution with the prebuilt appimage and appimage-run. Obviously I'd prefer to get the former working as well as the latter, but at least we know it is capable of running at all under the right conditions. We just need to figure out what exactly those conditions are.

shuniki commented 6 months ago

My initial experiences were exactly what both prior comments described. Identical audio glitches and crash when building manually; flawless execution with the prebuilt appimage and appimage-run. Obviously I'd prefer to get the former working as well as the latter, but at least we know it is capable of running at all under the right conditions. We just need to figure out what exactly those conditions are.

It may have something to do with the software they're using. For example they use OpenGL for rendering, so digging into what they use for audio and then tinkering with it might help. I can't remember it off the top of my head, but it's certainly in the context menu if you emulate majora.

shuniki commented 6 months ago

Weirdly enough, after installing home-manager with it, the appimage-run method sort of breaks it. It asks for the rom to be put in your home directory but then can't find it. Weird.

shuniki commented 6 months ago

Weirdly enough, after installing home-manager with it, the appimage-run method sort of breaks it. It asks for the rom to be put in your home directory but then can't find it. Weird.

Using sudo on appimage-run gave a horrendous audio "host is down" error. I had to close kitty to stop it.

shuniki commented 6 months ago

Weirdly enough, after installing home-manager with it, the appimage-run method sort of breaks it. It asks for the rom to be put in your home directory but then can't find it. Weird.

Using sudo on appimage-run gave a horrendous audio "host is down" error. I had to close kitty to stop it.

My bad, ALSA gave that error. It can't launch sdl_openaudio.

shuniki commented 6 months ago

Weirdly enough, after installing home-manager with it, the appimage-run method sort of breaks it. It asks for the rom to be put in your home directory but then can't find it. Weird.

Using sudo on appimage-run gave a horrendous audio "host is down" error. I had to close kitty to stop it.

My bad, ALSA gave that error. It can't launch sdl_openaudio.

Doing it without sudo simply crashes it with an error message to send it to the discord.

shuniki commented 6 months ago

Weirdly enough, after installing home-manager with it, the appimage-run method sort of breaks it. It asks for the rom to be put in your home directory but then can't find it. Weird.

Using sudo on appimage-run gave a horrendous audio "host is down" error. I had to close kitty to stop it.

My bad, ALSA gave that error. It can't launch sdl_openaudio.

Doing it without sudo simply crashes it with an error message to send it to the discord.

Moved it back to documents. Cd'd into it. No sudo. Works!!! I was probably being stupid or something lmao

keenanweaver commented 6 months ago

I'm using steam-run instead of appimage-run and it's working great with no obvious issues, but I'm by no means a Zelda expert.

nix-shell -p steam-run.out --run 'cd /path/to/appimage && steam-run ./2ship.appimage'

image

qubitnano commented 6 months ago

I've been able to reproduce this crash on Fedora 40. It's a slightly different traceback than building on NixOS, but involves the audio stack. Let's see what upstream thinks.

qubitnano commented 6 months ago

2ship doesn't segfault when built with hardeningEnable = [ "pie" ]; :satisfied: Please test https://github.com/NixOS/nixpkgs/pull/317889

boomshroom commented 6 months ago

Just built the pull request. Appears to run flawlessly.