cloudyluna / cdda-custom-experimental

My nix flake to install & run pre-built Cataclysm: Dark-Days-Ahead experimental from CDDA repo.
GNU Affero General Public License v3.0
1 stars 0 forks source link

Adding sound? #2

Closed Raikiri closed 3 months ago

Raikiri commented 3 months ago

How do I add a soundpack to this?

cloudyluna commented 3 months ago

Hi @Raikiri. Thanks for opening this issue :smiley:.

If you're looking to add sound packs, say dynamically through nix build as a string of arguments for example, then I'm afraid I have to answer that with: I don't know :confused:. Maybe you could, but my experience with nix and flakes are still very limited to answer that properly :see_no_evil:.

Although, I released a new update to make adding sound packs through the nix flake code, a bit easier, as demonstrated here. Unfortunately, you'd have to clone this flake repository and locally update the cddaExtraContents.soundPacks to your liking, and rebuild it yourself (just a simple nix build --refresh .#extras would do).

Raikiri commented 3 months ago

I guess it's worth mentioning in the readme that you can simply copy a soundpack manually (non-declaratively) into ~/.cdda-custom-experimental for those of us less than literate with nix.

I also think that adding some basic soundpack by default is probably better than having no soundpack at all. UPD: ah, I see in the comments that a basic soundpack is 500MB. That's not ideal for a default choice. Maybe have it a different option then (not extras)?

cloudyluna commented 3 months ago

I've addressed on the adding a soundpack into the $USERDIR/sound in the README.md with the latest 0.3.0 release. That's cool to know. Didn't know I could do something like that.

For the default soundpack, the current game used does include a default soundpack (CC-sounds), though you'd need to enable this manually in your game options. tbf, I'm not sure why this is not yet the default.

I'm planning to make this as the default option by writing into $USERDIR/config/options.json and set this option by default for first time launch in the future. Not sure if this will work though.

Raikiri commented 3 months ago

I think it's ok to leave the cdda's option.json at its defaults. You have the explanation now how to install additional sound packs, optional code for those who want to do so declaratively and instructions of how to copy it manually, I think the issue is solved. Thanks!