dasisdormax / cs2-multiserver

Managing multiple CS2 Servers with ease
Apache License 2.0
52 stars 9 forks source link

Initial setup falls on a loop if steamservice.so isn't found #3

Closed lolotraverso closed 10 months ago

lolotraverso commented 11 months ago

When running the initial setup, the script seems to execute the steam console client and throws an error when loading Steam API: Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory After that, it seems to continue with the attempt to log in, but even if it is successful as it is my case (I had previously logged in using the steam client) it returns ok, finishes that section, and then comes back to asking for the username again. Here is the full operation log (I omitted the username):

To install and update the CS2 game server, you need to log in to your
Steam account.

Please enter your Steam account's username (the one you log in with, not
your display name).

> Your steam username: (username)

We will now try to log you in with that username. Steam will probably ask
you for your password and Steam Guard code.

Redirecting stderr to '/home/steam/.steam/logs/stderr.txt'
Logging directory: '/home/steam/.steam/logs'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1698778122
-- type 'quit' to exit --
Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
OK
Logging in user '(username) to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
quit

Please enter your Steam account's username (the one you log in with, not
your display name).

I guess the fact that it enters the loop might be a bug, but where does the script look for 'steamservice.so' so I can create a symlink?

Thank you!

lolotraverso commented 11 months ago

Just tested the steamcmd console again and it does present the same steam API failure, although steamcmd ignores that and shows the steam console prompt.

dasisdormax commented 11 months ago

SteamCMD showing that error is normal, it works fine without steamservice.so, and there is no way I know to add it.

There is a different issue here. Apparently, my script did not detect that you logged in successfully after SteamCMD exited. Can you check the file ~/Steam/config/config.vdf and check if it has a section like this?

    "Accounts"
    {
        "(username)"
        {
            "SteamID"       "..."
        }
    }
lolotraverso commented 11 months ago

Hey,

Thanks for your time and effort :)

I don't have config.vdf located there, its under /home/steam/.steam/config/config.vdf, and it does contains that, and the account and SteamID are the right ones. Might that be the reason why it doesn't detect it? if so, a symLink could do as a workaround?

Again, thank you!

dasisdormax commented 11 months ago

Thanks for your response.

Putting a Symlink from Steam/config to .steam/config should do the trick for you.

I'm still investigating why the config file is in different locations. Maybe I need to modify the script to look in both places for the config file.

dzagu commented 10 months ago

I have the same issue image This is in loop.

dasisdormax commented 10 months ago

Please check if the latest version on main (commit 92ca14a) fixes your issue.

I couldn't reproduce the issue on my end, so I'll just check for the file in both locations.

dasisdormax commented 10 months ago

I did another fix with aa7c3e4. Apparently, Steam uses yet another config location if the regular Steam client is installed on the system.