deathkiller / jazz2-native

🎮 · Jazz² Resurrection: Native C++ reimplementation of Jazz Jackrabbit 2
https://deat.tk/jazz2/
GNU General Public License v3.0
535 stars 35 forks source link

No music when using absolute paths #3

Closed myself600 closed 1 year ago

myself600 commented 1 year ago

Following https://github.com/deathkiller/jazz2-native/commit/b8b7cc6291be76ae1c4cc0eeafdeb9f54b3dd35b#commitcomment-86262687, I've placed the Content folder to "/usr/share/Jazz² Resurrection" and game data into "~/.local/share/Jazz² Resurrection/Source" and now I'm getting the following error whenever the game tries to load a .j2b file:

static std::unique_ptr nCine::IAudioLoader::createFromFile(const Death::Containers::StringView&) -> Loading from file "/home/pbpro/.local/share/Jazz² Resurrection/Source/Intro.j2b" void nCine::StandardFile::OpenStream(nCine::FileAccessMode, bool) -> File "/home/pbpro/.local/share/Jazz² Resurrection/Source/Intro.j2b" opened static std::unique_ptr nCine::IAudioLoader::createLoader(std::unique_ptr, const Death::Containers::StringView&) -> Extension unknown: "j2b" virtual void nCine::StandardFile::Close() -> File "/home/pbpro/.local/share/Jazz² Resurrection/Source/Intro.j2b" closed nCine::AudioStream::AudioStream(const Death::Containers::StringView&) -> Audio file "/home/pbpro/.local/share/Jazz² Resurrection/Source/Intro.j2b" cannot be loaded

Logs:

jazz2_build.log.gz (replace .gz with .7z) jazz2_absolute_path.log jazz2_relative_path.log

myself600 commented 1 year ago

Latest code cc8bee3 fixes the issue, thank you! 2 more issues to go... :smile: