CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.32k stars 4.14k forks source link

Versions without sound cause error on startup #75866

Open XygenSS opened 1 month ago

XygenSS commented 1 month ago

Describe the bug

Opening a version of DDA with tiles but without sounds (such as cdda-windows-tiles-x64-...) shows an error on startup. They can be ignored and the game plays normally, however.

Attach save file

N/A

Steps to reproduce

  1. Download a release of DDA with tiles, but without sounds
  2. Start the game and see the error

Expected behavior

Game does not expect a soundpack to be present on a release without sounds

Screenshots

No response

Versions and configuration

Additional context

Total of 7 error reports are present, starting with:

DEBUG : (json-error) Json error: data/sound/Basic/musicset.json:4:17: Invalid or misplaced field name "playlists" in JSON data

{ "type": "playlist",

"playlists": [ ] ▲▲▲ } ]
alef commented 1 month ago

I guess something similar happens the other way around too: a game built with sound but the computer has no audio device.