alexbatalov / fallout2-ce

Fallout 2 for modern operating systems
Other
1.66k stars 109 forks source link

No SFX in Fallout of Nevada under MacOS #336

Open idealogica opened 7 months ago

idealogica commented 7 months ago

Everything works as expected, including music and speech. But totally no any sound effect. Sound effects are enabled in the options but they don't work. MacOS 12.6.7 (21G651). This is the log:

2023-11-12 14:07:08.829 fallout2-ce[58533:29697851] INFO: Fade time is 1102 Fade steps are 38 2023-11-12 14:07:08.831 fallout2-ce[58533:29697851] INFO: Chi squared is 28.120000, P = 4000.000000 at 0.05 2023-11-12 14:07:08.831 fallout2-ce[58533:29697851] INFO: Sequence is random, 95% confidence. 2023-11-12 14:07:09.046 fallout2-ce[58533:29697851] INFO: Reading SNDLIST.LST Sound FX Count: 1362 2023-11-12 14:07:09.046 fallout2-ce[58533:29697851] INFO: >gsound_init
2023-11-12 14:07:09.046 fallout2-ce[58533:29697851] INFO: >initMovie
2023-11-12 14:07:09.046 fallout2-ce[58533:29697851] INFO: >gmovie_init
2023-11-12 14:07:09.046 fallout2-ce[58533:29697851] INFO: >moviefx_init 2023-11-12 14:07:09.049 fallout2-ce[58533:29697851] INFO: >art_init
2023-11-12 14:07:09.049 fallout2-ce[58533:29697851] INFO: >tile_init
2023-11-12 14:07:09.051 fallout2-ce[58533:29697851] INFO: >obj_init
2023-11-12 14:07:09.051 fallout2-ce[58533:29697851] INFO: >cycle_init
2023-11-12 14:07:09.053 fallout2-ce[58533:29697851] INFO: >intface_init
2023-11-12 14:07:09.053 fallout2-ce[58533:29697851] INFO: >iso_init 2023-11-12 14:07:09.054 fallout2-ce[58533:29697851] INFO: >gmouse_init
2023-11-12 14:07:09.115 fallout2-ce[58533:29697851] INFO: >proto_init
2023-11-12 14:07:09.115 fallout2-ce[58533:29697851] INFO: >anim_init
2023-11-12 14:07:09.121 fallout2-ce[58533:29697851] INFO: >scr_init 2023-11-12 14:07:09.122 fallout2-ce[58533:29697851] INFO: >game_load_info
2023-11-12 14:07:09.122 fallout2-ce[58533:29697851] INFO: >scr_game_init
2023-11-12 14:07:09.131 fallout2-ce[58533:29697851] INFO: wmMapInit::Error reading ambient sfx. Too many! Str: SLC NukeCola, MapIdx: 148 2023-11-12 14:07:09.144 fallout2-ce[58533:29697851] INFO: WorldMap Error: Couldn't find match for Map Index! 2023-11-12 14:07:09.144 fallout2-ce[58533:29697851] INFO: strParseStrFromFunc Error: Couldn't find match for string: desert encounter 1 desert encounter 2, desert encounter 3, mountain encounter 1! 2023-11-12 14:07:09.150 fallout2-ce[58533:29697851] INFO: >wmWorldMap_init
2023-11-12 14:07:09.150 fallout2-ce[58533:29697851] INFO: >CharEditInit 2023-11-12 14:07:09.150 fallout2-ce[58533:29697851] INFO: >pip_init
2023-11-12 14:07:09.157 fallout2-ce[58533:29697851] INFO: >InitLoadSave 2023-11-12 14:07:09.157 fallout2-ce[58533:29697851] INFO: >gdialog_init 2023-11-12 14:07:09.161 fallout2-ce[58533:29697851] INFO: >combat_init
2023-11-12 14:07:09.161 fallout2-ce[58533:29697851] INFO: >automap_init 2023-11-12 14:07:09.161 fallout2-ce[58533:29697851] INFO: >message_init 2023-11-12 14:07:09.161 fallout2-ce[58533:29697851] INFO: >message_load 2023-11-12 14:07:09.161 fallout2-ce[58533:29697851] INFO: >scr_disable
2023-11-12 14:07:09.202 fallout2-ce[58533:29697851] INFO: >init_options_menu 2023-11-12 14:07:09.202 fallout2-ce[58533:29697851] INFO: >endgameDeathEndingInit 2023-11-12 14:07:09.202 fallout2-ce[58533:29697851] INFO: Playing movie: iplogo.mve 2023-11-12 14:07:09.854 fallout2-ce[58533:29697851] INFO: Direct 2023-11-12 14:07:09.854 fallout2-ce[58533:29697851] INFO: Playing at (80, 0)
2023-11-12 14:07:09.854 fallout2-ce[58533:29697851] INFO: not scaled 2023-11-12 14:07:16.456 fallout2-ce[58533:29697851] INFO: Movie aborted 2023-11-12 14:07:16.456 fallout2-ce[58533:29697851] INFO: Frames 75, dropped 28 2023-11-12 14:07:16.517 fallout2-ce[58533:29697851] INFO: Playing movie: intro.mve 2023-11-12 14:07:16.518 fallout2-ce[58533:29697851] INFO: Direct 2023-11-12 14:07:16.518 fallout2-ce[58533:29697851] INFO: Playing at (80, 0)
2023-11-12 14:07:16.518 fallout2-ce[58533:29697851] INFO: not scaled 2023-11-12 14:07:17.329 fallout2-ce[58533:29697851] INFO: Movie aborted 2023-11-12 14:07:17.329 fallout2-ce[58533:29697851] INFO: Frames 20, dropped 0 2023-11-12 14:07:17.359 fallout2-ce[58533:29697851] INFO: Playing movie: credits.mve 2023-11-12 14:07:17.360 fallout2-ce[58533:29697851] INFO: Opening subtitle file text\russian\cuts\credits.SVE 2023-11-12 14:07:17.360 fallout2-ce[58533:29697851] INFO: Read 21 subtitles 2023-11-12 14:07:17.360 fallout2-ce[58533:29697851] INFO: Direct 2023-11-12 14:07:17.360 fallout2-ce[58533:29697851] INFO: Playing at (80, 0)
2023-11-12 14:07:17.360 fallout2-ce[58533:29697851] INFO: not scaled 2023-11-12 14:07:18.519 fallout2-ce[58533:29697851] INFO: Movie aborted 2023-11-12 14:07:18.519 fallout2-ce[58533:29697851] INFO: Frames 28, dropped 0

roginvs commented 7 months ago

I do not know is it relevant but I had similar issue with Nevada running on Linux. I solved it by running dos2unix master.dat/sound/SFX/SNDLIST.LST. If it helps then you will also need to update other text files (VAULT13.GAM, enddeath.txt, etc)

idealogica commented 7 months ago

It worked! Thank you @roginvs! It looks like a bug, because even no any warning in the console when running it with a bad encoding.

idealogica commented 7 months ago

I ran these commands to resolve this:

brew install dos2unix
find . -iname "*.lst" | while read f ; do dos2unix "$f"; done  
find . -iname "*.txt" | while read f ; do dos2unix "$f"; done
find . -iname "*.gam" | while read f ; do dos2unix "$f"; done
roginvs commented 7 months ago

@idealogica Also take a look on those notes regarding Fallout Nevada: https://github.com/roginvs/fallout2-ce/blob/main/os/web/README.md#fallout-nevada-notes Especially important part is artimer configuration because without any change your vault-city will disappear at some point

PS: I like your snipper for dos2unix, i will borrow it

idealogica commented 7 months ago

Thanks! This is very useful!