Closed incognico closed 8 years ago
There appears to be incorrect data in the masterSize
array. On line 5696 in masterList.h change 2 to 1.
I'm surprised this doesn't also segfault on Windows. I guess the CRT's strlen is more robust?
I guess so. I wish it wasn't so I could trust my testing on Windows.
Windows 8+ also seems to initialize memory differently, which makes it impossible to reproduce problems like this without a different OS (or compiler/runtime?).
You might try MinGW.
Works now with the small change. But isn't it supposed to find my custom sounds and use them as replacement for the maps sounds? I see
Finding non-default content... Sounds ------------- 0 (10 excluded)
while I have almost 7000 sound files in sound/
MinGW worked, and so did the masterSize change.
For the custom sound problem, yes, it should be finding your custom sounds. Which content folder are they in (svencoop, svencoop_addon, svencoop_downloads, svencoop_hd)? I forgot svencoop_hd was a thing, so the program doesn't search there.
Edit: Also, where is the program located? It looks like it couldn't even find the default sounds (~5000 should be excluded).
Using svencoop_addon. It only finds 10 sounds, every time. Sound scanning finishing way too quickly too. Could there be problematic files in the sound folder or am I hitting any limits or something?
Nope, there aren't any hard-coded limits, and sound files aren't checked for validity. Maybe the *nix code is ignoring subdirectories when finding content?
There are way more at the root of sound/. Well at least the segfault is fixed fow now.
It's an issue of case sensitivity. Working on a fix.
As soon as I change 5) Sound Mode to anything other than "Do not change" I get a segfault of gsrand after starting.
It crashes almost instantly after "Finding content...". All other corruptions work fine but sound crashes.
I've tried different versions of llvm to complile gsrand, no difference. Somehow I have problems running it in lldb, gdb says the following:
0x00007ffff72241da in strlen () from /lib/x86_64-linux-gnu/libc.so.6
CC @Yoplitein