Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambient Soundscapes Not Playing On Linux Server #13

Closed
Thornskade opened this issue Jun 6, 2023 · 15 comments
Closed

Ambient Soundscapes Not Playing On Linux Server #13

Thornskade opened this issue Jun 6, 2023 · 15 comments

Comments

@Thornskade
Copy link

I'm not sure if I did something wrong, but when I join the server I host, outside areas are dead silent. When I create a local server, I hear environmental sounds outside, which I think are called soundscapes

@NicknineTheEagle
Copy link
Owner

Does the server console have any messages about missing files?

@Thornskade
Copy link
Author

Oh yeah, it actually does, lol. CSoundscapeSystem::Init: Manifest 'scripts/soundscapes_manifest.txt' with bogus file type '', expecting 'file'
I should have checked earlier

@NicknineTheEagle
Copy link
Owner

NicknineTheEagle commented Jun 7, 2023

Sounds like you have some missing/corrupt files on the server side, I suggest you double check that.

@Thornskade
Copy link
Author

The file is there and not corrupt, so no idea

It says bogus file type, but I can't interpret that. I know Linux doesn't care for file extensions so the ".txt" is meaningless, but I also don't know what to do about it

As I downloaded the Multiplayer SDK directly from Steam using SteamCMD and verified it, it seems it's just "corrupt" on the servers as is

@NicknineTheEagle
Copy link
Owner

Steam servers are not the issue, the file is supposed to be a part of tf_port. You did download the server package listed on the latest release's page, right?

@Thornskade
Copy link
Author

Certainly – I don't believe there's any other way I could have gotten a server up and running. But I couldn't find the file with a search, as I didn't realize it was included with the misc vpk, so I assumed it was referencing the hl2 folder instead

However, what I've seen just now is really strange. The vpk file in question always goes corrupt and fails to validate most files inside, including the soundscapes manifest.

I downloaded the zip to my Linux server directly and unzipped it there. -> The file is corrupt and won't validate
I downloaded the zip to my Windows PC and unzipped it there. -> The file validates
I uploaded the unzipped tf_port folder to my server. -> The file turns corrupt and won't validate

So it seems not matter what I do, the vpk files go corrupt simply by existing on a Linux server. What...?

Maybe I will try extracting the vpk files and upload everything as a simple folder structure instead.

@NicknineTheEagle
Copy link
Owner

That is really bizarre. What are you using to validate vpk files on Windows and Linux?

@Thornskade
Copy link
Author

I use GCFScape. I don't know how to validate on my Linux server, what I do instead is download the file and check on my Windows PC. So if I upload the validated vpk to my server and then download it back from there, it is corrupt on Windows as well. And of course, the server can't use it either.

Well, I mean, given the server always throws that error message regarding the manifest file being a bogus file, I suppose in that sense the server is what I use to validate

@Thornskade
Copy link
Author

Okay, so I extracted all the vpk contents into the folder structure and deleted the vpk files. The server still complains that the manifest file is bogus.

While I don't know why the vpk files go corrupt when transferring them between my desktop and the server, that whole thing appears to have been a red herring

@Thornskade
Copy link
Author

So I searched up this problem and found these GitHub issues:
ValveSoftware/source-sdk-2013#448
ValveSoftware/Source-1-Games#2499

From what I can gather, the bug is on the Linux version of the Source Multiplayer 2013 SDK, or I guess it specifically has issues with Ubuntu, and this has nothing to do with this project

But other than that, that's all Chinese to me. I have no idea what they're saying so I don't know what to do to fix it

@NicknineTheEagle
Copy link
Owner

According to the linked posts, the issue is that Source SDK Base 2013 Dedicated Server ships with some outdated libraries on Linux. This post details the solution for that: ValveSoftware/source-sdk-2013#448 (comment)

@Thornskade
Copy link
Author

Yes, as I said, but the solution is like it's written in a different language. I don't speak programmer, I can't code

I think they're saying I should go to the folder with the srcds or hl2 executable and then enter all that stuff they put in the box. But I'm not 100% sure and I'm always a little worried when someone tells me to put a lot of things in a terminal when I have no idea what it does

@NicknineTheEagle
Copy link
Owner

It's literally just a set of commands to put into Linux terminal, it's not even programming, have you never used Linux terminal before? The provided solution renames the bad outdated .so files and then creates symbolic links to proper ones in their place.
You can alternatively simply delete the outdated files and copy or rename the proper ones:

rm libtier0.so
cp libtier0_srv.so libtier0.so
rm libvstdlib.so
cp libvstdlib_srv.so libvstdlib.so

@Thornskade
Copy link
Author

Thornskade commented Jun 11, 2023

Obviously I have used the Linux terminal. Otherwise I doubt I'd be able to keep up a server without any GUI. I am still not inputting random commands that weren't explained. I don't know what "link against" or "out of sync" means or any of the other things which the person said

What you say makes sense to me, the other person (to me) worded it really strangely to the point that I simply didn't understand it, so I didn't take the risk

EDIT: it worked, and thank you very much for your help, much appreciated

@NicknineTheEagle
Copy link
Owner

Nice, I'll update README so that other people know about this required workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants